diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2013-11-24 19:48:06 +0100 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2013-11-30 22:36:13 +0100 |
commit | 3a5ddc8d88dcfb0b7117cebf64ad7e3117e3e991 (patch) | |
tree | 29a09a8e4965bf140b61f801627f79ddbd3ce335 | |
parent | b3e15af92fe7210cd5d188d30ffaf2c32230622b (diff) |
backports: remove hex_byte_pack()
Upstream commit: 46ea32e1ded36972b1793688a24848c4d5015ddb
hex_byte_pack() was never called by any code.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r-- | backport/backport-include/linux/kernel.h | 20 | ||||
-rw-r--r-- | backport/compat/compat-2.6.26.c | 3 |
2 files changed, 0 insertions, 23 deletions
diff --git a/backport/backport-include/linux/kernel.h b/backport/backport-include/linux/kernel.h index 4e249dbc..01e2e9a4 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 72b17076..9ff1f767 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 |