module: do not hide __modver_version_show declaration behind ifdef
authorDmitry Torokhov <dtor@vmware.com>
Tue, 8 Feb 2011 00:02:27 +0000 (16:02 -0800)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 19 May 2011 07:25:25 +0000 (16:25 +0930)
commit9b73a5840c7d5f77e5766626716df13787cb258c
tree5179b149129ee677d3a6fd621608cdc08206b516
parentb4bc842802db3314f9a657094da0450a903ea619
module: do not hide __modver_version_show declaration behind ifdef

Doing so prevents the following warning from sparse:

  CHECK   kernel/params.c
kernel/params.c:817:9: warning: symbol '__modver_version_show' was not
declared. Should it be static?

since kernel/params.c is never compiled with MODULE being set.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
include/linux/module.h