hex_dump: add missing "const" qualifiers

Add missing "const" qualifiers to the print_hex_dump_bytes() library routines.

(akpm: rumoured to fix some compile warning somewhere)

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Cc: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Alan Stern and committed by
Linus Torvalds
eb9a9a56 0c1eafdb

+2 -2
+1 -1
include/linux/kernel.h
··· 226 226 int prefix_type, int rowsize, int groupsize, 227 227 const void *buf, size_t len, bool ascii); 228 228 extern void print_hex_dump_bytes(const char *prefix_str, int prefix_type, 229 - void *buf, size_t len); 229 + const void *buf, size_t len); 230 230 #define hex_asc(x) "0123456789abcdef"[x] 231 231 232 232 #ifdef DEBUG
+1 -1
lib/hexdump.c
··· 189 189 * rowsize of 16, groupsize of 1, and ASCII output included. 190 190 */ 191 191 void print_hex_dump_bytes(const char *prefix_str, int prefix_type, 192 - void *buf, size_t len) 192 + const void *buf, size_t len) 193 193 { 194 194 print_hex_dump(KERN_DEBUG, prefix_str, prefix_type, 16, 1, 195 195 buf, len, 1);