backports: remove hex_byte_pack()
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 24 Nov 2013 18:48:06 +0000 (19:48 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 24 Nov 2013 21:17:46 +0000 (22:17 +0100)
hex_byte_pack() was never called by any code.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
backport/backport-include/linux/kernel.h
backport/compat/compat-2.6.26.c

index 4e249dbca034e9e509e0ed7746dcd1b3022f81af..01e2e9a46c2f04f51654220a571abebb8717c4b2 100644 (file)
 #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
index 72b17076722ff3861839bf04cd5a12c4abeb16a6..9ff1f76711540a8b5932e93e662ceb9bd934579a 100644 (file)
@@ -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