From 46ea32e1ded36972b1793688a24848c4d5015ddb Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sun, 24 Nov 2013 19:48:06 +0100 Subject: [PATCH] backports: remove hex_byte_pack() hex_byte_pack() was never called by any code. Signed-off-by: Hauke Mehrtens --- backport/backport-include/linux/kernel.h | 20 -------------------- backport/compat/compat-2.6.26.c | 3 --- 2 files changed, 23 deletions(-) diff --git a/backport/backport-include/linux/kernel.h b/backport/backport-include/linux/kernel.h index 4e249dbca034..01e2e9a46c2f 100644 --- a/backport/backport-include/linux/kernel.h +++ b/backport/backport-include/linux/kernel.h @@ -20,26 +20,6 @@ #define SIZE_MAX (~(size_t)0) #endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26) -extern const char hex_asc[]; -#endif - -#ifndef hex_asc_hi -#define hex_asc_hi(x) hex_asc[((x) & 0xf0) >> 4] -#endif -#ifndef hex_asc_lo -#define hex_asc_lo(x) hex_asc[((x) & 0x0f)] -#endif - -#if LINUX_VERSION_CODE < KERNEL_VERSION(3,2,0) -static inline char *hex_byte_pack(char *buf, u8 byte) -{ - *buf++ = hex_asc_hi(byte); - *buf++ = hex_asc_lo(byte); - return buf; -} -#endif - /* This backports: * * commit 36a26c69b4c70396ef569c3452690fba0c1dec08 diff --git a/backport/compat/compat-2.6.26.c b/backport/compat/compat-2.6.26.c index 72b17076722f..9ff1f7671154 100644 --- a/backport/compat/compat-2.6.26.c +++ b/backport/compat/compat-2.6.26.c @@ -17,9 +17,6 @@ #include #include -const char hex_asc[] = "0123456789abcdef"; -EXPORT_SYMBOL_GPL(hex_asc); - /** * kobject_set_name_vargs - Set the name of an kobject * @kobj: struct kobject to set the name of -- 2.30.2