summaryrefslogtreecommitdiffstats
path: root/drivers/pps/kc.c
diff options
context:
space:
mode:
authorFengguang Wu2013-05-01 00:28:31 +0200
committerLinus Torvalds2013-05-01 02:04:08 +0200
commit97439d0f84942d3031545e80852dde09457136c6 (patch)
tree1f8a190ea7d4417dd98879be7cdc94bb697fd7bc /drivers/pps/kc.c
parentpps: hide more configuration symbols behind CONFIG_PPS (diff)
downloadkernel-qcow2-linux-97439d0f84942d3031545e80852dde09457136c6.tar.gz
kernel-qcow2-linux-97439d0f84942d3031545e80852dde09457136c6.tar.xz
kernel-qcow2-linux-97439d0f84942d3031545e80852dde09457136c6.zip
pps: pps_kc_hardpps_lock can be static
drivers/pps/kc.c:37:1: sparse: symbol 'pps_kc_hardpps_lock' was not declared. Should it be static? drivers/pps/kc.c:39:19: sparse: symbol 'pps_kc_hardpps_dev' was not declared. Should it be static? drivers/pps/kc.c:40:5: sparse: symbol 'pps_kc_hardpps_mode' was not declared. Should it be static? Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> Cc: Rodolfo Giometti <giometti@enneenne.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/pps/kc.c')
-rw-r--r--drivers/pps/kc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pps/kc.c b/drivers/pps/kc.c
index 079e930b1938..e219db1f1c84 100644
--- a/drivers/pps/kc.c
+++ b/drivers/pps/kc.c
@@ -34,10 +34,10 @@
*/
/* state variables to bind kernel consumer */
-DEFINE_SPINLOCK(pps_kc_hardpps_lock);
+static DEFINE_SPINLOCK(pps_kc_hardpps_lock);
/* PPS API (RFC 2783): current source and mode for kernel consumer */
-struct pps_device *pps_kc_hardpps_dev; /* unique pointer to device */
-int pps_kc_hardpps_mode; /* mode bits for kernel consumer */
+static struct pps_device *pps_kc_hardpps_dev; /* unique pointer to device */
+static int pps_kc_hardpps_mode; /* mode bits for kernel consumer */
/* pps_kc_bind - control PPS kernel consumer binding
* @pps: the PPS source