Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] dvb: remove unused systime() function

The systime function uses struct timespec, which we want to stop
using in the kernel because it overflows in 2038. Fortunately,
this use in dibx000_common is in a function that is never called,
so we can just remove it.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>

authored by

Arnd Bergmann and committed by
Mauro Carvalho Chehab
a19e160d 38670189

-12
-10
drivers/media/dvb-frontends/dibx000_common.c
··· 502 502 } 503 503 EXPORT_SYMBOL(dibx000_exit_i2c_master); 504 504 505 - 506 - u32 systime(void) 507 - { 508 - struct timespec t; 509 - 510 - t = current_kernel_time(); 511 - return (t.tv_sec * 10000) + (t.tv_nsec / 100000); 512 - } 513 - EXPORT_SYMBOL(systime); 514 - 515 505 MODULE_AUTHOR("Patrick Boettcher <patrick.boettcher@posteo.de>"); 516 506 MODULE_DESCRIPTION("Common function the DiBcom demodulator family"); 517 507 MODULE_LICENSE("GPL");
-2
drivers/media/dvb-frontends/dibx000_common.h
··· 47 47 extern void dibx000_reset_i2c_master(struct dibx000_i2c_master *mst); 48 48 extern int dibx000_i2c_set_speed(struct i2c_adapter *i2c_adap, u16 speed); 49 49 50 - extern u32 systime(void); 51 - 52 50 #define BAND_LBAND 0x01 53 51 #define BAND_UHF 0x02 54 52 #define BAND_VHF 0x04