From: Ralf Baechle Date: Fri, 20 Oct 2006 06:28:34 +0000 (-0700) Subject: [PATCH] Fix warnings for WARN_ON if CONFIG_BUG is disabled X-Git-Tag: v2.6.19-rc3~97 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c7c7c9bf39470c9689ad43cae3142cf948f4cfb;p=pandora-kernel.git [PATCH] Fix warnings for WARN_ON if CONFIG_BUG is disabled In most cases the return value of WARN_ON() is ignored. If the generic definition for the !CONFIG_BUG case is used this will result in a warning: CC kernel/sched.o In file included from include/linux/bio.h:25, from include/linux/blkdev.h:14, from kernel/sched.c:39: include/linux/ioprio.h: In function ‘task_ioprio’: include/linux/ioprio.h:50: warning: statement with no effect kernel/sched.c: In function ‘context_switch’: kernel/sched.c:1834: warning: statement with no effect Signed-off-by: Ralf Baechle Cc: Jeremy Fitzhardinge Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed