summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2013-11-24 19:48:06 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2013-11-30 21:11:39 +0100
commit687791dd0c66dce9d0abb016041a91ebc6c3e692 (patch)
tree7e33eaea79dd6473a6758423520ed1954482c1d2
parenta767d70c1ed32f68f6b916433b4a2cc908c25e26 (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.h20
-rw-r--r--backport/compat/compat-2.6.26.c3
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