From: Christoph Lameter Date: Tue, 11 Sep 2012 19:49:38 +0000 (+0000) Subject: slab: Only define slab_error for DEBUG X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~8^2~1^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f28510d30c7f03daa290019fbc57ad8277347614;p=pandora-kernel.git slab: Only define slab_error for DEBUG On Tue, 11 Sep 2012, Stephen Rothwell wrote: > After merging the final tree, today's linux-next build (sparc64 defconfig) > produced this warning: > > mm/slab.c:808:13: warning: '__slab_error' defined but not used [-Wunused-function] > > Introduced by commit 945cf2b6199b ("mm/sl[aou]b: Extract a common > function for kmem_cache_destroy"). All uses of slab_error() are now > guarded by DEBUG. There is no use case left for slab builds without DEBUG. Signed-off-by: Christoph Lameter Signed-off-by: Pekka Enberg --- Reading git-diff-tree failed