summaryrefslogtreecommitdiffstats
path: root/lib/crc16.c
diff options
context:
space:
mode:
authorDave Gordon <david.s.gordon@intel.com>2015-06-30 23:58:54 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2015-07-01 04:44:59 +0200
commit2a1bf8f93b33992bb0457512b28d046e279bbd7e (patch)
tree48db340683a7c617dd70c66a282f43d85c2714ad /lib/crc16.c
parentlib/scatterlist.c: fix kerneldoc for sg_pcopy_{to,from}_buffer() (diff)
downloadlinux-2a1bf8f93b33992bb0457512b28d046e279bbd7e.tar.xz
linux-2a1bf8f93b33992bb0457512b28d046e279bbd7e.zip
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 <david.s.gordon@intel.com> Cc: Akinobu Mita <akinobu.mita@gmail.com> Cc: "Martin K. Petersen" <martin.petersen@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/crc16.c')
0 files changed, 0 insertions, 0 deletions