]> git.karo-electronics.de Git - mv-sheeva.git/commit
I2O: Fix "defined but not used" build warnings
authorSatyam Sharma <satyam@infradead.org>
Wed, 17 Oct 2007 06:29:39 +0000 (23:29 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:42:56 +0000 (08:42 -0700)
commitc98673fee235c158bef237a7851c742976d66284
treec8464820311ed217471e1d77aa78d084092b2e2e
parent9c0ca6f9a0a0820da25b64259ea475751f1dd306
I2O: Fix "defined but not used" build warnings

drivers/message/i2o/exec-osm.c:539: warning: `i2o_exec_lct_notify' defined but not used

comes when CONFIG_I2O_LCT_NOTIFY_ON_CHANGES=n, because its only callsite
is #ifdef'ed as such. So let's #ifdef the function definition also. Also
move the definition to before the callsite, to get rid of forward prototype.

[akpm@linux-foundation.org: fix warnings]
Signed-off-by: Satyam Sharma <satyam@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/message/i2o/exec-osm.c