hex_byte_pack() was never called by any code. Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx> --- 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 4e249db..01e2e9a 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 72b1707..9ff1f76 100644 --- a/backport/compat/compat-2.6.26.c +++ b/backport/compat/compat-2.6.26.c @@ -17,9 +17,6 @@ #include <net/sock.h> #include <net/compat.h> -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 -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe backports" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html