From: Jani Nikula Date: Mon, 24 May 2010 21:33:00 +0000 (-0700) Subject: err.h: add __must_check to error pointer handlers X-Git-Tag: v2.6.35-rc1~345 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e47103b1af5df52fa69e18b14d3012472f78817d;p=pandora-kernel.git err.h: add __must_check to error pointer handlers Add __must_check to error pointer handlers to have the compiler warn about mistakes like: if (err) ERR_PTR(err); It found two bugs: Mar 12 Nikula Jani [PATCH] enclosure: fix error path - actually return ERR_PTR() on error Mar 12 Nikula Jani [PATCH] sunrpc: fix error path - actually return ERR_PTR() on error Signed-off-by: Jani Nikula Cc: Phil Carmody Cc: Alexey Dobriyan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed