The patch titled hexdump: use const notation has been removed from the -mm tree. Its filename was hexdump-use-const-notation.patch This patch was dropped because an updated version will be merged ------------------------------------------------------ Subject: hexdump: use const notation From: Artem Bityutskiy <dedekind@xxxxxxxxx> Mark the buffer to hexdump as const so callers could avoid casting their const buffers when calling print_hex_dump(). Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/kernel.h | 2 +- lib/hexdump.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff -puN include/linux/kernel.h~hexdump-use-const-notation include/linux/kernel.h --- a/include/linux/kernel.h~hexdump-use-const-notation +++ a/include/linux/kernel.h @@ -229,7 +229,7 @@ extern void hex_dump_to_buffer(const voi char *linebuf, size_t linebuflen, bool ascii); extern void print_hex_dump(const char *level, const char *prefix_str, int prefix_type, int rowsize, int groupsize, - void *buf, size_t len, bool ascii); + const void *buf, size_t len, bool ascii); extern void print_hex_dump_bytes(const char *prefix_str, int prefix_type, void *buf, size_t len); #define hex_asc(x) "0123456789abcdef"[x] diff -puN lib/hexdump.c~hexdump-use-const-notation lib/hexdump.c --- a/lib/hexdump.c~hexdump-use-const-notation +++ a/lib/hexdump.c @@ -145,9 +145,9 @@ EXPORT_SYMBOL(hex_dump_to_buffer); */ void print_hex_dump(const char *level, const char *prefix_str, int prefix_type, int rowsize, int groupsize, - void *buf, size_t len, bool ascii) + const void *buf, size_t len, bool ascii) { - u8 *ptr = buf; + const u8 *ptr = buf; int i, linelen, remaining = len; unsigned char linebuf[200]; _ Patches currently in -mm which might be from dedekind@xxxxxxxxx are hexdump-use-const-notation.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html