diff options
author | Sami Kerola | 2017-02-12 01:19:33 +0100 |
---|---|---|
committer | Karel Zak | 2017-02-20 12:58:49 +0100 |
commit | 2ba641e5f3879593e36fa84872289872a4060d03 (patch) | |
tree | 4381e82a91b01343555d803c8afe772e1d15826d /sys-utils/hwclock-cmos.c | |
parent | misc: do not use plain 0 as NULL [smatch scan] (diff) | |
download | kernel-qcow2-util-linux-2ba641e5f3879593e36fa84872289872a4060d03.tar.gz kernel-qcow2-util-linux-2ba641e5f3879593e36fa84872289872a4060d03.tar.xz kernel-qcow2-util-linux-2ba641e5f3879593e36fa84872289872a4060d03.zip |
misc: add static keyword to where needed [smatch scan]
text-utils/rev.c:68:9: warning: symbol 'buf' was not declared. Should it be
static?
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'sys-utils/hwclock-cmos.c')
-rw-r--r-- | sys-utils/hwclock-cmos.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/sys-utils/hwclock-cmos.c b/sys-utils/hwclock-cmos.c index 013fe094d..4915471bd 100644 --- a/sys-utils/hwclock-cmos.c +++ b/sys-utils/hwclock-cmos.c @@ -66,12 +66,12 @@ # undef __i386__ # undef __x86_64__ # warning "disable cmos access - no sys/io.h or asm/io.h" -void outb(int a __attribute__((__unused__)), - int b __attribute__((__unused__))) +static void outb(int a __attribute__((__unused__)), + int b __attribute__((__unused__))) { } -int inb(int c __attribute__((__unused__))) +static int inb(int c __attribute__((__unused__))) { return 0; } @@ -117,7 +117,7 @@ static int inb(int c __attribute__((__unused__))) * like SRM.) It is reported that ALPHA_PRE_V1_2_SRM_CONSOLE uses 1958. */ #define TM_EPOCH 1900 -int cmos_epoch = 1900; +static int cmos_epoch = 1900; /* * Martin Ostermann writes: @@ -133,18 +133,18 @@ int cmos_epoch = 1900; * Jensen when USE_DEV_PORT was defined, but not with the normal inb/outb * functions. */ -int use_dev_port = 0; /* 1 for Jensen */ -int dev_port_fd; -unsigned short clock_ctl_addr = 0x70; /* 0x170 for Jensen */ -unsigned short clock_data_addr = 0x71; /* 0x171 for Jensen */ +static int use_dev_port = 0; /* 1 for Jensen */ +static int dev_port_fd; +static unsigned short clock_ctl_addr = 0x70; /* 0x170 for Jensen */ +static unsigned short clock_data_addr = 0x71; /* 0x171 for Jensen */ -int century_byte = 0; /* 0: don't access a century byte - * 50 (0x32): usual PC value - * 55 (0x37): PS/2 - */ +static int century_byte = 0; /* 0: don't access a century byte + * 50 (0x32): usual PC value + * 55 (0x37): PS/2 + */ #ifdef __alpha__ -int funkyTOY = 0; /* 1 for PC164/LX164/SX164 type alpha */ +static int funkyTOY = 0; /* 1 for PC164/LX164/SX164 type alpha */ #endif #ifdef __alpha |