From: Dave Gordon Date: Tue, 30 Jun 2015 21:58:54 +0000 (-0700) Subject: lib/scatterlist: mark input buffer parameters as 'const' X-Git-Tag: omap-for-v4.2/fixes-rc1^2~53^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a1bf8f93b33992bb0457512b28d046e279bbd7e;p=pandora-kernel.git 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 Cc: Akinobu Mita Cc: "Martin K. Petersen" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed