Skip to contentSkip to conversation

strip: remove warnings when !PROC_FS

janitor Randy.Dunlap 1 participant 1 message Feb 23, 2004

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Hi,
Please apply to 2.6.3-current.

--
~Randy

From: Luiz Fernando Capitulino <[email protected]>

hi guys,

When !CONFIG_PROC_FS, I'm getting this warning:

drivers/net/wireless/strip.c:1169: warning: `strip_seq_fops' defined but not used

This patch fixes that.

diff -X dontdiff -Nru linux-2.6.2-rc2-bk2/drivers/net/wireless/strip.c linux-2.6.2-rc2-bk2~/drivers/net/wireless/strip.c

 linux-263-kj1-rddunlap/drivers/net/wireless/strip.c |    2 ++
 1 files changed, 2 insertions(+)
drivers/net/wireless/strip.c renamed from drivers/net/wireless/strip.c~net_strip_noprocfs +2 -0
diff -puN drivers/net/wireless/strip.c~net_strip_noprocfs drivers/net/wireless/strip.c
@@ -951,6 +951,7 @@ static void strip_unlock(struct strip *s
  * ascii representation of the number plus 9 charactes for the " seconds"
  * and the null character.
  */
+#ifdef CONFIG_PROC_FS
 static char *time_delta(char buffer[], long time)
 {
 	time -= jiffies;
@@ -1171,6 +1172,7 @@ static struct file_operations strip_seq_
 	.llseek  = seq_lseek,
 	.release = seq_release,
 };
+#endif
 
 
 

_