From: Satyam Sharma Date: Wed, 17 Oct 2007 06:29:39 +0000 (-0700) Subject: I2O: Fix "defined but not used" build warnings X-Git-Tag: v2.6.24-rc1~633 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c98673fee235c158bef237a7851c742976d66284;p=pandora-kernel.git 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed