aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorJulia Lawall <[email protected]>2009-08-06 23:05:08 +0000
committerJeff Garzik <[email protected]>2009-09-11 06:25:58 +0000
commit041b5eac254107cd3ba60034c38a411531cc64ee (patch)
treea1abcfd2b97985ca06504c493fda9cd4123307aa /lib/debugobjects.c
parentsata_fsl: Defer non-ncq commands when ncq commands active (diff)
downloadkernel-041b5eac254107cd3ba60034c38a411531cc64ee.tar.gz
kernel-041b5eac254107cd3ba60034c38a411531cc64ee.zip
drivers/ata: use resource_size
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/) // <smpl> @@ struct resource *res; @@ - (res->end - res->start) + 1 + resource_size(res) // </smpl> Signed-off-by: Julia Lawall <[email protected]> Cc: Jeff Garzik <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions