From: Julia Lawall Date: Wed, 23 Sep 2009 22:57:26 +0000 (-0700) Subject: edac: fix resource size calculation X-Git-Tag: v2.6.32-rc1~77 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30a61fff3a2b19506c66ea81fecb6a7747af3d47;p=pandora-kernel.git edac: fix resource size calculation Use the function resource_size, which reduces the chance of introducing off-by-one errors in calculating the resource size. The semantic patch that makes this change is as follows: (http://www.emn.fr/x-info/coccinelle/) // @@ struct resource *res; @@ - (res->end - res->start) + 1 + resource_size(res) // Signed-off-by: Julia Lawall Signed-off-by: Doug Thompson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed