aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorDave Gordon <[email protected]>2015-06-30 14:58:54 -0700
committerLinus Torvalds <[email protected]>2015-06-30 19:44:59 -0700
commit2a1bf8f93b33992bb0457512b28d046e279bbd7e (patch)
tree48db340683a7c617dd70c66a282f43d85c2714ad /lib/memory-notifier-error-inject.c
parent4dc7daf843f3914c9c0c7efb71b8f251c9c4636f (diff)
lib/scatterlist: mark input buffer parameters as 'const'
The 'buf' parameter of sg(p)copy_from_buffer() can and should be const-qualified, although because of the shared implementation of _to_buffer() and _from_buffer(), we have to cast this away internally. This means that callers who have a 'const' buffer containing the data to be copied to the sg-list no longer have to cast away the const-ness themselves. It also enables improved coverage by code analysis tools. Signed-off-by: Dave Gordon <[email protected]> Cc: Akinobu Mita <[email protected]> Cc: "Martin K. Petersen" <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions