[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20100225155408.GA2723@darkstar>
Date: Thu, 25 Feb 2010 23:54:08 +0800
From: Dave Young <hidave.darkstar@...il.com>
To: Andrew Morton <akpm@...ux-foundation.org>,
Mike Frysinger <vapier@...too.org>,
Mikael Starvik <starvik@...s.com>,
Jesper Nilsson <jesper.nilsson@...s.com>,
David Howells <dhowells@...hat.com>,
Koichi Yasutake <yasutake.koichi@...panasonic.com>,
linux-kernel@...r.kernel.org
Subject: [PATCH 04/07] kernel.h hexdump cleanup
hexdump stuff in kernel.h should be put into a standalone head file
cleanup hexdump declarations in kernel.h, put them into hexdump.h
include hexdump.h in every file which need it
Signed-off-by: Dave Young <hidave.darkstar@...il.com>
---
arch/blackfin/kernel/shadow_console.c | 1
arch/cris/arch-v32/kernel/kgdb.c | 1
arch/frv/kernel/gdb-stub.c | 1
arch/mn10300/kernel/gdb-stub.c | 1
arch/powerpc/kernel/btext.c | 1
arch/x86/kernel/mpparse.c | 1
crypto/ansi_cprng.c | 1
crypto/testmgr.c | 1
drivers/bluetooth/btmrvl_main.c | 1
drivers/char/pcmcia/ipwireless/hardware.c | 1
drivers/gpu/drm/drm_edid.c | 1
drivers/isdn/gigaset/capi.c | 1
drivers/isdn/gigaset/isocdata.c | 1
drivers/isdn/hardware/mISDN/avmfritz.c | 1
drivers/isdn/hardware/mISDN/mISDNipac.c | 1
drivers/isdn/hardware/mISDN/mISDNisar.c | 1
drivers/isdn/hardware/mISDN/netjet.c | 1
drivers/isdn/hardware/mISDN/w6692.c | 1
drivers/media/dvb/firewire/firedtv-avc.c | 1
drivers/media/video/hdpvr/hdpvr-control.c | 1
drivers/media/video/hdpvr/hdpvr-core.c | 1
drivers/mfd/pcf50633-core.c | 1
drivers/misc/iwmc3200top/log.h | 2 -
drivers/misc/kgdbts.c | 1
drivers/mtd/tests/mtd_nandecctest.c | 1
drivers/mtd/ubi/debug.c | 1
drivers/mtd/ubi/io.c | 1
drivers/net/a2065.c | 1
drivers/net/arcnet/arcnet.c | 1
drivers/net/e1000/e1000_main.c | 1
drivers/net/enc28j60.c | 1
drivers/net/sfc/selftest.c | 1
drivers/net/skfp/smt.c | 1
drivers/net/usb/hso.c | 1
drivers/net/wimax/i2400m/rx.c | 1
drivers/net/wireless/at76c50x-usb.c | 1
drivers/net/wireless/ath/ar9170/main.c | 1
drivers/net/wireless/ath/ar9170/usb.c | 1
drivers/net/wireless/ath/ath5k/debug.c | 1
drivers/net/wireless/ath/ath9k/common.c | 1
drivers/net/wireless/b43/main.c | 1
drivers/net/wireless/iwlwifi/iwl-3945.c | 1
drivers/net/wireless/iwlwifi/iwl-agn.c | 1
drivers/net/wireless/iwlwifi/iwl-debug.h | 1
drivers/net/wireless/iwlwifi/iwl-debugfs.c | 1
drivers/net/wireless/iwlwifi/iwl3945-base.c | 1
drivers/net/wireless/iwmc3200wifi/debug.h | 1
drivers/net/wireless/p54/eeprom.c | 1
drivers/net/wireless/ray_cs.c | 1
drivers/net/wireless/wl12xx/wl1251.h | 1
drivers/pnp/support.c | 1
drivers/s390/cio/device_fsm.c | 1
drivers/s390/net/qeth_core_main.c | 1
drivers/scsi/osd/osd_initiator.c | 1
drivers/spi/spi_stmp.c | 1
drivers/staging/hv/ChannelMgmt.c | 1
drivers/staging/wavelan/wavelan_cs.c | 1
drivers/usb/c67x00/c67x00-sched.c | 1
drivers/usb/gadget/storage_common.c | 1
drivers/usb/wusbcore/crypto.c | 1
fs/ext3/super.c | 1
fs/ext4/super.c | 1
fs/jffs2/wbuf.c | 1
fs/jfs/jfs_imap.c | 1
fs/jfs/jfs_logmgr.c | 1
fs/jfs/jfs_metapage.c | 1
fs/jfs/jfs_txnmgr.c | 1
fs/jfs/xattr.c | 1
fs/ubifs/debug.c | 1
fs/ubifs/scan.c | 1
fs/xfs/support/debug.c | 1
include/linux/hexdump.h | 30 ++++++++++++++++++++++++++++
include/linux/ide.h | 1
include/linux/kernel.h | 25 -----------------------
include/linux/wimax/debug.h | 1
kernel/kgdb.c | 1
kernel/trace/trace_output.c | 1
lib/hexdump.c | 1
lib/vsprintf.c | 1
mm/debug-pagealloc.c | 1
mm/kmemleak.c | 1
net/ieee802154/af_ieee802154.c | 1
net/ipv4/arp.c | 1
net/ipv4/netfilter/ipt_CLUSTERIP.c | 1
sound/pci/oxygen/xonar_hdmi.c | 1
85 files changed, 113 insertions(+), 26 deletions(-)
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ linux-2.6/include/linux/hexdump.h 2010-02-25 15:19:44.502477145 +0800
@@ -0,0 +1,30 @@
+#ifndef _LINUX_HEXDUMP_H
+#define _LINUX_HEXDUMP_H
+
+#include <linux/types.h>
+enum {
+ DUMP_PREFIX_NONE,
+ DUMP_PREFIX_ADDRESS,
+ DUMP_PREFIX_OFFSET
+};
+extern void hex_dump_to_buffer(const void *buf, size_t len,
+ int rowsize, int groupsize,
+ char *linebuf, size_t linebuflen, bool ascii);
+extern void print_hex_dump(const char *level, const char *prefix_str,
+ int prefix_type, int rowsize, int groupsize,
+ const void *buf, size_t len, bool ascii);
+extern void print_hex_dump_bytes(const char *prefix_str, int prefix_type,
+ const void *buf, size_t len);
+
+extern const char hex_asc[];
+#define hex_asc_lo(x) hex_asc[((x) & 0x0f)]
+#define hex_asc_hi(x) hex_asc[((x) & 0xf0) >> 4]
+
+static inline char *pack_hex_byte(char *buf, u8 byte)
+{
+ *buf++ = hex_asc_hi(byte);
+ *buf++ = hex_asc_lo(byte);
+ return buf;
+}
+
+#endif
--- linux-2.6.orig/arch/blackfin/kernel/shadow_console.c 2010-02-25 15:18:25.356649953 +0800
+++ linux-2.6/arch/blackfin/kernel/shadow_console.c 2010-02-25 15:19:09.035812691 +0800
@@ -7,6 +7,7 @@
* Licensed under the GPL-2 or later.
*/
+#include <linux/hexdump.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/console.h>
--- linux-2.6.orig/arch/cris/arch-v32/kernel/kgdb.c 2010-02-25 15:18:25.366649953 +0800
+++ linux-2.6/arch/cris/arch-v32/kernel/kgdb.c 2010-02-25 15:19:09.039159015 +0800
@@ -163,6 +163,7 @@
*/
+#include <linux/hexdump.h>
#include <linux/string.h>
#include <linux/signal.h>
#include <linux/kernel.h>
--- linux-2.6.orig/arch/frv/kernel/gdb-stub.c 2010-02-25 15:18:25.379983355 +0800
+++ linux-2.6/arch/frv/kernel/gdb-stub.c 2010-02-25 15:19:09.042478659 +0800
@@ -114,6 +114,7 @@
*
*/
+#include <linux/hexdump.h>
#include <linux/string.h>
#include <linux/kernel.h>
#include <linux/signal.h>
--- linux-2.6.orig/arch/mn10300/kernel/gdb-stub.c 2010-02-25 15:18:25.346650162 +0800
+++ linux-2.6/arch/mn10300/kernel/gdb-stub.c 2010-02-25 15:19:09.042478659 +0800
@@ -120,6 +120,7 @@
*
*/
+#include <linux/hexdump.h>
#include <linux/string.h>
#include <linux/kernel.h>
#include <linux/signal.h>
--- linux-2.6.orig/arch/powerpc/kernel/btext.c 2010-02-25 15:18:25.336650233 +0800
+++ linux-2.6/arch/powerpc/kernel/btext.c 2010-02-25 15:19:09.042478659 +0800
@@ -3,6 +3,7 @@
*
* Benjamin Herrenschmidt <benh@...nel.crashing.org>
*/
+#include <linux/hexdump.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/init.h>
--- linux-2.6.orig/arch/x86/kernel/mpparse.c 2010-02-25 15:18:25.326649814 +0800
+++ linux-2.6/arch/x86/kernel/mpparse.c 2010-02-25 15:19:09.045812621 +0800
@@ -7,6 +7,7 @@
* (c) 2008 Alexey Starikovskiy <astarikovskiy@...e.de>
*/
+#include <linux/hexdump.h>
#include <linux/mm.h>
#include <linux/init.h>
#include <linux/delay.h>
--- linux-2.6.orig/crypto/ansi_cprng.c 2010-02-25 15:18:25.316650930 +0800
+++ linux-2.6/crypto/ansi_cprng.c 2010-02-25 15:19:09.045812621 +0800
@@ -13,6 +13,7 @@
*
*/
+#include <linux/hexdump.h>
#include <crypto/internal/rng.h>
#include <linux/err.h>
#include <linux/init.h>
--- linux-2.6.orig/crypto/testmgr.c 2010-02-25 15:18:25.306650722 +0800
+++ linux-2.6/crypto/testmgr.c 2010-02-25 15:19:09.045812621 +0800
@@ -13,6 +13,7 @@
*
*/
+#include <linux/hexdump.h>
#include <crypto/hash.h>
#include <linux/err.h>
#include <linux/module.h>
--- linux-2.6.orig/drivers/bluetooth/btmrvl_main.c 2010-02-25 15:18:24.983317318 +0800
+++ linux-2.6/drivers/bluetooth/btmrvl_main.c 2010-02-25 15:19:09.049145535 +0800
@@ -18,6 +18,7 @@
* this warranty disclaimer.
**/
+#include <linux/hexdump.h>
#include <net/bluetooth/bluetooth.h>
#include <net/bluetooth/hci_core.h>
--- linux-2.6.orig/drivers/char/pcmcia/ipwireless/hardware.c 2010-02-25 15:18:24.799983636 +0800
+++ linux-2.6/drivers/char/pcmcia/ipwireless/hardware.c 2010-02-25 15:19:09.049145535 +0800
@@ -15,6 +15,7 @@
* Copyright (C) 2007 David Sterba
*/
+#include <linux/hexdump.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/irq.h>
--- linux-2.6.orig/drivers/gpu/drm/drm_edid.c 2010-02-25 15:18:24.836649813 +0800
+++ linux-2.6/drivers/gpu/drm/drm_edid.c 2010-02-25 15:19:09.052479358 +0800
@@ -26,6 +26,7 @@
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
+#include <linux/hexdump.h>
#include <linux/kernel.h>
#include <linux/i2c.h>
#include <linux/i2c-algo-bit.h>
--- linux-2.6.orig/drivers/isdn/gigaset/capi.c 2010-02-25 15:18:24.919984893 +0800
+++ linux-2.6/drivers/isdn/gigaset/capi.c 2010-02-25 15:19:09.052479358 +0800
@@ -11,6 +11,7 @@
* =====================================================================
*/
+#include <linux/hexdump.h>
#include "gigaset.h"
#include <linux/ctype.h>
#include <linux/isdn/capilli.h>
--- linux-2.6.orig/drivers/isdn/gigaset/isocdata.c 2010-02-25 15:18:24.933316480 +0800
+++ linux-2.6/drivers/isdn/gigaset/isocdata.c 2010-02-25 15:19:09.052479358 +0800
@@ -12,6 +12,7 @@
* =====================================================================
*/
+#include <linux/hexdump.h>
#include "gigaset.h"
#include <linux/crc-ccitt.h>
#include <linux/bitrev.h>
--- linux-2.6.orig/drivers/isdn/hardware/mISDN/avmfritz.c 2010-02-25 15:18:24.893316689 +0800
+++ linux-2.6/drivers/isdn/hardware/mISDN/avmfritz.c 2010-02-25 15:19:09.055813530 +0800
@@ -20,6 +20,7 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
*/
+#include <linux/hexdump.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/delay.h>
--- linux-2.6.orig/drivers/isdn/hardware/mISDN/mISDNipac.c 2010-02-25 15:18:24.909984265 +0800
+++ linux-2.6/drivers/isdn/hardware/mISDN/mISDNipac.c 2010-02-25 15:19:09.055813530 +0800
@@ -20,6 +20,7 @@
*
*/
+#include <linux/hexdump.h>
#include <linux/module.h>
#include <linux/mISDNhw.h>
#include "ipac.h"
--- linux-2.6.orig/drivers/isdn/hardware/mISDN/mISDNisar.c 2010-02-25 15:18:24.879983217 +0800
+++ linux-2.6/drivers/isdn/hardware/mISDN/mISDNisar.c 2010-02-25 15:19:09.055813530 +0800
@@ -25,6 +25,7 @@
*/
/* #define DEBUG */
+#include <linux/hexdump.h>
#include <linux/delay.h>
#include <linux/vmalloc.h>
#include <linux/mISDNhw.h>
--- linux-2.6.orig/drivers/isdn/hardware/mISDN/netjet.c 2010-02-25 15:18:24.899983984 +0800
+++ linux-2.6/drivers/isdn/hardware/mISDN/netjet.c 2010-02-25 15:19:09.059151193 +0800
@@ -20,6 +20,7 @@
*
*/
+#include <linux/hexdump.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/delay.h>
--- linux-2.6.orig/drivers/isdn/hardware/mISDN/w6692.c 2010-02-25 15:18:24.886650512 +0800
+++ linux-2.6/drivers/isdn/hardware/mISDN/w6692.c 2010-02-25 15:19:09.059151193 +0800
@@ -21,6 +21,7 @@
*
*/
+#include <linux/hexdump.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/delay.h>
--- linux-2.6.orig/drivers/media/dvb/firewire/firedtv-avc.c 2010-02-25 15:18:25.003317528 +0800
+++ linux-2.6/drivers/media/dvb/firewire/firedtv-avc.c 2010-02-25 15:19:09.062478729 +0800
@@ -11,6 +11,7 @@
* the License, or (at your option) any later version.
*/
+#include <linux/hexdump.h>
#include <linux/bug.h>
#include <linux/crc32.h>
#include <linux/delay.h>
--- linux-2.6.orig/drivers/media/video/hdpvr/hdpvr-control.c 2010-02-25 15:18:25.009983426 +0800
+++ linux-2.6/drivers/media/video/hdpvr/hdpvr-control.c 2010-02-25 15:19:09.062478729 +0800
@@ -9,6 +9,7 @@
*
*/
+#include <linux/hexdump.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/init.h>
--- linux-2.6.orig/drivers/media/video/hdpvr/hdpvr-core.c 2010-02-25 15:18:25.019984543 +0800
+++ linux-2.6/drivers/media/video/hdpvr/hdpvr-core.c 2010-02-25 15:19:09.062478729 +0800
@@ -11,6 +11,7 @@
*
*/
+#include <linux/hexdump.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/init.h>
--- linux-2.6.orig/drivers/mfd/pcf50633-core.c 2010-02-25 15:18:24.943317668 +0800
+++ linux-2.6/drivers/mfd/pcf50633-core.c 2010-02-25 15:19:09.062478729 +0800
@@ -12,6 +12,7 @@
*
*/
+#include <linux/hexdump.h>
#include <linux/kernel.h>
#include <linux/device.h>
#include <linux/sysfs.h>
--- linux-2.6.orig/drivers/misc/kgdbts.c 2010-02-25 15:18:24.949983985 +0800
+++ linux-2.6/drivers/misc/kgdbts.c 2010-02-25 15:19:09.065812062 +0800
@@ -94,6 +94,7 @@
*
*/
+#include <linux/hexdump.h>
#include <linux/kernel.h>
#include <linux/kgdb.h>
#include <linux/ctype.h>
--- linux-2.6.orig/drivers/mtd/tests/mtd_nandecctest.c 2010-02-25 15:18:24.826650233 +0800
+++ linux-2.6/drivers/mtd/tests/mtd_nandecctest.c 2010-02-25 15:19:09.065812062 +0800
@@ -1,3 +1,4 @@
+#include <linux/hexdump.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/list.h>
--- linux-2.6.orig/drivers/mtd/ubi/debug.c 2010-02-25 15:18:24.816650233 +0800
+++ linux-2.6/drivers/mtd/ubi/debug.c 2010-02-25 15:19:09.065812062 +0800
@@ -26,6 +26,7 @@
#ifdef CONFIG_MTD_UBI_DEBUG
+#include <linux/hexdump.h>
#include "ubi.h"
/**
--- linux-2.6.orig/drivers/mtd/ubi/io.c 2010-02-25 15:18:24.809984054 +0800
+++ linux-2.6/drivers/mtd/ubi/io.c 2010-02-25 15:19:09.065812062 +0800
@@ -86,6 +86,7 @@
* back and writes the whole sub-page.
*/
+#include <linux/hexdump.h>
#include <linux/crc32.h>
#include <linux/err.h>
#include "ubi.h"
--- linux-2.6.orig/drivers/net/a2065.c 2010-02-25 15:18:25.039983985 +0800
+++ linux-2.6/drivers/net/a2065.c 2010-02-25 15:19:09.069148049 +0800
@@ -37,6 +37,7 @@
* both 10BASE-2 (thin coax) and AUI (DB-15) connectors
*/
+#include <linux/hexdump.h>
#include <linux/errno.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
--- linux-2.6.orig/drivers/net/arcnet/arcnet.c 2010-02-25 15:18:25.029984894 +0800
+++ linux-2.6/drivers/net/arcnet/arcnet.c 2010-02-25 15:19:09.069148049 +0800
@@ -43,6 +43,7 @@
#define VERSION "arcnet: v3.94 BETA 2007/02/08 - by Avery Pennarun et al.\n"
+#include <linux/hexdump.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/delay.h>
--- linux-2.6.orig/drivers/net/e1000/e1000_main.c 2010-02-25 15:18:25.073318086 +0800
+++ linux-2.6/drivers/net/e1000/e1000_main.c 2010-02-25 15:19:09.072478868 +0800
@@ -26,6 +26,7 @@
*******************************************************************************/
+#include <linux/hexdump.h>
#include "e1000.h"
#include <net/ip6_checksum.h>
--- linux-2.6.orig/drivers/net/enc28j60.c 2010-02-25 15:18:25.093316620 +0800
+++ linux-2.6/drivers/net/enc28j60.c 2010-02-25 15:19:09.072478868 +0800
@@ -13,6 +13,7 @@
* $Id: enc28j60.c,v 1.22 2007/12/20 10:47:01 claudio Exp $
*/
+#include <linux/hexdump.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/types.h>
--- linux-2.6.orig/drivers/net/sfc/selftest.c 2010-02-25 15:18:25.059983148 +0800
+++ linux-2.6/drivers/net/sfc/selftest.c 2010-02-25 15:19:09.075811853 +0800
@@ -8,6 +8,7 @@
* by the Free Software Foundation, incorporated herein by reference.
*/
+#include <linux/hexdump.h>
#include <linux/netdevice.h>
#include <linux/module.h>
#include <linux/delay.h>
--- linux-2.6.orig/drivers/net/skfp/smt.c 2010-02-25 15:18:25.099983007 +0800
+++ linux-2.6/drivers/net/skfp/smt.c 2010-02-25 15:19:09.075811853 +0800
@@ -14,6 +14,7 @@
*
******************************************************************************/
+#include <linux/hexdump.h>
#include "h/types.h"
#include "h/fddi.h"
#include "h/smc.h"
--- linux-2.6.orig/drivers/net/usb/hso.c 2010-02-25 15:18:25.083317597 +0800
+++ linux-2.6/drivers/net/usb/hso.c 2010-02-25 15:19:09.079145606 +0800
@@ -50,6 +50,7 @@
*
*****************************************************************************/
+#include <linux/hexdump.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/init.h>
--- linux-2.6.orig/drivers/net/wimax/i2400m/rx.c 2010-02-25 15:18:25.053317248 +0800
+++ linux-2.6/drivers/net/wimax/i2400m/rx.c 2010-02-25 15:19:09.079145606 +0800
@@ -144,6 +144,7 @@
* i2400m_msg_size_check
* wimax_msg
*/
+#include <linux/hexdump.h>
#include <linux/kernel.h>
#include <linux/if_arp.h>
#include <linux/netdevice.h>
--- linux-2.6.orig/drivers/net/wireless/at76c50x-usb.c 2010-02-25 15:18:25.119983986 +0800
+++ linux-2.6/drivers/net/wireless/at76c50x-usb.c 2010-02-25 15:19:09.079145606 +0800
@@ -24,6 +24,7 @@
*
*/
+#include <linux/hexdump.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/sched.h>
--- linux-2.6.orig/drivers/net/wireless/ath/ar9170/main.c 2010-02-25 15:18:25.206650093 +0800
+++ linux-2.6/drivers/net/wireless/ath/ar9170/main.c 2010-02-25 15:19:09.082481733 +0800
@@ -37,6 +37,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include <linux/hexdump.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/etherdevice.h>
--- linux-2.6.orig/drivers/net/wireless/ath/ar9170/usb.c 2010-02-25 15:18:25.213316411 +0800
+++ linux-2.6/drivers/net/wireless/ath/ar9170/usb.c 2010-02-25 15:19:09.082481733 +0800
@@ -37,6 +37,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include <linux/hexdump.h>
#include <linux/module.h>
#include <linux/usb.h>
#include <linux/firmware.h>
--- linux-2.6.orig/drivers/net/wireless/ath/ath5k/debug.c 2010-02-25 15:18:25.196649603 +0800
+++ linux-2.6/drivers/net/wireless/ath/ath5k/debug.c 2010-02-25 15:19:09.085813809 +0800
@@ -58,6 +58,7 @@
* THE POSSIBILITY OF SUCH DAMAGES.
*/
+#include <linux/hexdump.h>
#include "base.h"
#include "debug.h"
--- linux-2.6.orig/drivers/net/wireless/ath/ath9k/common.c 2010-02-25 15:18:25.226650581 +0800
+++ linux-2.6/drivers/net/wireless/ath/ath9k/common.c 2010-02-25 15:19:09.085813809 +0800
@@ -18,6 +18,7 @@
* Module for common driver code between ath9k and ath9k_htc
*/
+#include <linux/hexdump.h>
#include <linux/kernel.h>
#include <linux/module.h>
--- linux-2.6.orig/drivers/net/wireless/b43/main.c 2010-02-25 15:18:25.236649465 +0800
+++ linux-2.6/drivers/net/wireless/b43/main.c 2010-02-25 15:19:09.089145466 +0800
@@ -31,6 +31,7 @@
*/
+#include <linux/hexdump.h>
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/moduleparam.h>
--- linux-2.6.orig/drivers/net/wireless/iwlwifi/iwl-3945.c 2010-02-25 15:18:25.156649814 +0800
+++ linux-2.6/drivers/net/wireless/iwlwifi/iwl-3945.c 2010-02-25 15:19:09.089145466 +0800
@@ -24,6 +24,7 @@
*
*****************************************************************************/
+#include <linux/hexdump.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
--- linux-2.6.orig/drivers/net/wireless/iwlwifi/iwl-agn.c 2010-02-25 15:18:25.149983357 +0800
+++ linux-2.6/drivers/net/wireless/iwlwifi/iwl-agn.c 2010-02-25 15:19:09.092480266 +0800
@@ -27,6 +27,7 @@
*
*****************************************************************************/
+#include <linux/hexdump.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
--- linux-2.6.orig/drivers/net/wireless/iwlwifi/iwl-debugfs.c 2010-02-25 15:18:25.169983076 +0800
+++ linux-2.6/drivers/net/wireless/iwlwifi/iwl-debugfs.c 2010-02-25 15:19:09.095812272 +0800
@@ -26,6 +26,7 @@
* Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
*****************************************************************************/
+#include <linux/hexdump.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/debugfs.h>
--- linux-2.6.orig/drivers/net/wireless/iwlwifi/iwl3945-base.c 2010-02-25 15:18:25.163316550 +0800
+++ linux-2.6/drivers/net/wireless/iwlwifi/iwl3945-base.c 2010-02-25 15:19:09.095812272 +0800
@@ -27,6 +27,7 @@
*
*****************************************************************************/
+#include <linux/hexdump.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
--- linux-2.6.orig/drivers/net/wireless/ray_cs.c 2010-02-25 15:18:25.129983216 +0800
+++ linux-2.6/drivers/net/wireless/ray_cs.c 2010-02-25 15:19:09.099145885 +0800
@@ -30,6 +30,7 @@
*
=============================================================================*/
+#include <linux/hexdump.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/proc_fs.h>
--- linux-2.6.orig/drivers/net/wireless/wl12xx/wl1251.h 2010-02-25 15:18:25.109984263 +0800
+++ linux-2.6/drivers/net/wireless/wl12xx/wl1251.h 2010-02-25 15:19:09.099145885 +0800
@@ -25,6 +25,7 @@
#ifndef __WL1251_H__
#define __WL1251_H__
+#include <linux/hexdump.h>
#include <linux/mutex.h>
#include <linux/list.h>
#include <linux/bitops.h>
--- linux-2.6.orig/drivers/pnp/support.c 2010-02-25 15:18:25.246649883 +0800
+++ linux-2.6/drivers/pnp/support.c 2010-02-25 15:19:09.099145885 +0800
@@ -6,6 +6,7 @@
* Bjorn Helgaas <bjorn.helgaas@...com>
*/
+#include <linux/hexdump.h>
#include <linux/module.h>
#include <linux/ctype.h>
#include <linux/pnp.h>
--- linux-2.6.orig/drivers/s390/cio/device_fsm.c 2010-02-25 15:18:24.843316899 +0800
+++ linux-2.6/drivers/s390/cio/device_fsm.c 2010-02-25 15:19:09.102480057 +0800
@@ -7,6 +7,7 @@
* Martin Schwidefsky (schwidefsky@...ibm.com)
*/
+#include <linux/hexdump.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/jiffies.h>
--- linux-2.6.orig/drivers/s390/net/qeth_core_main.c 2010-02-25 15:18:24.853317528 +0800
+++ linux-2.6/drivers/s390/net/qeth_core_main.c 2010-02-25 15:19:09.102480057 +0800
@@ -11,6 +11,7 @@
#define KMSG_COMPONENT "qeth"
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
+#include <linux/hexdump.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/string.h>
--- linux-2.6.orig/drivers/scsi/osd/osd_initiator.c 2010-02-25 15:18:24.993317388 +0800
+++ linux-2.6/drivers/scsi/osd/osd_initiator.c 2010-02-25 15:19:09.105834413 +0800
@@ -39,6 +39,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include <linux/hexdump.h>
#include <scsi/osd_initiator.h>
#include <scsi/osd_sec.h>
#include <scsi/osd_attributes.h>
--- linux-2.6.orig/drivers/spi/spi_stmp.c 2010-02-25 15:18:24.973317458 +0800
+++ linux-2.6/drivers/spi/spi_stmp.c 2010-02-25 15:19:09.105834413 +0800
@@ -15,6 +15,7 @@
* http://www.opensource.org/licenses/gpl-license.html
* http://www.gnu.org/copyleft/gpl.html
*/
+#include <linux/hexdump.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/interrupt.h>
--- linux-2.6.orig/drivers/staging/hv/ChannelMgmt.c 2010-02-25 15:18:24.859984124 +0800
+++ linux-2.6/drivers/staging/hv/ChannelMgmt.c 2010-02-25 15:19:09.109145467 +0800
@@ -18,6 +18,7 @@
* Haiyang Zhang <haiyangz@...rosoft.com>
* Hank Janssen <hjanssen@...rosoft.com>
*/
+#include <linux/hexdump.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/list.h>
--- linux-2.6.orig/drivers/staging/wavelan/wavelan_cs.c 2010-02-25 15:18:24.869982936 +0800
+++ linux-2.6/drivers/staging/wavelan/wavelan_cs.c 2010-02-25 15:19:09.109145467 +0800
@@ -57,6 +57,7 @@
*/
/* Do *NOT* add other headers here, you are guaranteed to be wrong - Jean II */
+#include <linux/hexdump.h>
#include "wavelan_cs.p.h" /* Private header */
#ifdef WAVELAN_ROAMING
--- linux-2.6.orig/drivers/usb/c67x00/c67x00-sched.c 2010-02-25 15:18:25.256649952 +0800
+++ linux-2.6/drivers/usb/c67x00/c67x00-sched.c 2010-02-25 15:19:09.112479498 +0800
@@ -21,6 +21,7 @@
* MA 02110-1301 USA.
*/
+#include <linux/hexdump.h>
#include <linux/kthread.h>
#include "c67x00.h"
--- linux-2.6.orig/drivers/usb/gadget/storage_common.c 2010-02-25 15:18:25.263316480 +0800
+++ linux-2.6/drivers/usb/gadget/storage_common.c 2010-02-25 15:19:09.112479498 +0800
@@ -54,6 +54,7 @@
*/
+#include <linux/hexdump.h>
#include <asm/unaligned.h>
--- linux-2.6.orig/drivers/usb/wusbcore/crypto.c 2010-02-25 15:18:25.276650722 +0800
+++ linux-2.6/drivers/usb/wusbcore/crypto.c 2010-02-25 15:19:09.112479498 +0800
@@ -45,6 +45,7 @@
* funneled through AES are...16 bytes in size!
*/
+#include <linux/hexdump.h>
#include <linux/crypto.h>
#include <linux/module.h>
#include <linux/err.h>
--- linux-2.6.orig/fs/ext3/super.c 2010-02-25 15:18:25.503318016 +0800
+++ linux-2.6/fs/ext3/super.c 2010-02-25 15:19:09.115814088 +0800
@@ -16,6 +16,7 @@
* David S. Miller (davem@...p.rutgers.edu), 1995
*/
+#include <linux/hexdump.h>
#include <linux/module.h>
#include <linux/string.h>
#include <linux/fs.h>
--- linux-2.6.orig/fs/ext4/super.c 2010-02-25 15:18:25.493316200 +0800
+++ linux-2.6/fs/ext4/super.c 2010-02-25 15:19:09.119145605 +0800
@@ -16,6 +16,7 @@
* David S. Miller (davem@...p.rutgers.edu), 1995
*/
+#include <linux/hexdump.h>
#include <linux/module.h>
#include <linux/string.h>
#include <linux/fs.h>
--- linux-2.6.orig/fs/jffs2/wbuf.c 2010-02-25 15:18:25.516649604 +0800
+++ linux-2.6/fs/jffs2/wbuf.c 2010-02-25 15:19:09.119145605 +0800
@@ -11,6 +11,7 @@
*
*/
+#include <linux/hexdump.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/mtd/mtd.h>
--- linux-2.6.orig/fs/jfs/jfs_imap.c 2010-02-25 15:18:25.556651070 +0800
+++ linux-2.6/fs/jfs/jfs_imap.c 2010-02-25 15:19:09.122479218 +0800
@@ -41,6 +41,7 @@
* written out when the filesystem is unmounted by diUnmount().
*/
+#include <linux/hexdump.h>
#include <linux/fs.h>
#include <linux/buffer_head.h>
#include <linux/pagemap.h>
--- linux-2.6.orig/fs/jfs/jfs_logmgr.c 2010-02-25 15:18:25.573317808 +0800
+++ linux-2.6/fs/jfs/jfs_logmgr.c 2010-02-25 15:19:09.122479218 +0800
@@ -59,6 +59,7 @@
* 32-bit lspn and page eor.
*/
+#include <linux/hexdump.h>
#include <linux/fs.h>
#include <linux/blkdev.h>
#include <linux/interrupt.h>
--- linux-2.6.orig/fs/jfs/jfs_metapage.c 2010-02-25 15:18:25.583316969 +0800
+++ linux-2.6/fs/jfs/jfs_metapage.c 2010-02-25 15:19:09.122479218 +0800
@@ -17,6 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#include <linux/hexdump.h>
#include <linux/fs.h>
#include <linux/mm.h>
#include <linux/module.h>
--- linux-2.6.orig/fs/jfs/jfs_txnmgr.c 2010-02-25 15:18:25.563316620 +0800
+++ linux-2.6/fs/jfs/jfs_txnmgr.c 2010-02-25 15:19:09.125813179 +0800
@@ -42,6 +42,7 @@
* hold on to mp+lock thru update of maps
*/
+#include <linux/hexdump.h>
#include <linux/fs.h>
#include <linux/vmalloc.h>
#include <linux/completion.h>
--- linux-2.6.orig/fs/jfs/xattr.c 2010-02-25 15:18:25.549983216 +0800
+++ linux-2.6/fs/jfs/xattr.c 2010-02-25 15:19:09.125813179 +0800
@@ -17,6 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#include <linux/hexdump.h>
#include <linux/capability.h>
#include <linux/fs.h>
#include <linux/xattr.h>
--- linux-2.6.orig/fs/ubifs/debug.c 2010-02-25 15:18:25.543317179 +0800
+++ linux-2.6/fs/ubifs/debug.c 2010-02-25 15:19:09.129145396 +0800
@@ -29,6 +29,7 @@
#define UBIFS_DBG_PRESERVE_UBI
+#include <linux/hexdump.h>
#include "ubifs.h"
#include <linux/module.h>
#include <linux/moduleparam.h>
--- linux-2.6.orig/fs/ubifs/scan.c 2010-02-25 15:18:25.533317318 +0800
+++ linux-2.6/fs/ubifs/scan.c 2010-02-25 15:19:09.129145396 +0800
@@ -27,6 +27,7 @@
* debugging functions.
*/
+#include <linux/hexdump.h>
#include "ubifs.h"
/**
--- linux-2.6.orig/fs/xfs/support/debug.c 2010-02-25 15:18:25.526649813 +0800
+++ linux-2.6/fs/xfs/support/debug.c 2010-02-25 15:19:09.129145396 +0800
@@ -15,6 +15,7 @@
* along with this program; if not, write the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <linux/hexdump.h>
#include <xfs.h>
#include "debug.h"
--- linux-2.6.orig/include/linux/ide.h 2010-02-25 15:18:25.403317458 +0800
+++ linux-2.6/include/linux/ide.h 2010-02-25 15:19:09.132479079 +0800
@@ -6,6 +6,7 @@
* Copyright (C) 1994-2002 Linus Torvalds & authors
*/
+#include <linux/hexdump.h>
#include <linux/init.h>
#include <linux/ioport.h>
#include <linux/ata.h>
--- linux-2.6.orig/include/linux/wimax/debug.h 2010-02-25 15:18:25.386649884 +0800
+++ linux-2.6/include/linux/wimax/debug.h 2010-02-25 15:19:09.132479079 +0800
@@ -153,6 +153,7 @@
#ifndef __debug__h__
#define __debug__h__
+#include <linux/hexdump.h>
#include <linux/types.h>
#include <linux/device.h>
--- linux-2.6.orig/kernel/kgdb.c 2010-02-25 15:18:25.283317458 +0800
+++ linux-2.6/kernel/kgdb.c 2010-02-25 15:19:09.132479079 +0800
@@ -27,6 +27,7 @@
* version 2. This program is licensed "as is" without any warranty of any
* kind, whether express or implied.
*/
+#include <linux/hexdump.h>
#include <linux/pid_namespace.h>
#include <linux/clocksource.h>
#include <linux/interrupt.h>
--- linux-2.6.orig/kernel/trace/trace_output.c 2010-02-25 15:18:25.296650303 +0800
+++ linux-2.6/kernel/trace/trace_output.c 2010-02-25 15:19:09.135814927 +0800
@@ -5,6 +5,7 @@
*
*/
+#include <linux/hexdump.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/ftrace.h>
--- linux-2.6.orig/lib/hexdump.c 2010-02-25 15:18:25.433316410 +0800
+++ linux-2.6/lib/hexdump.c 2010-02-25 15:19:09.135814927 +0800
@@ -7,6 +7,7 @@
* more details.
*/
+#include <linux/hexdump.h>
#include <linux/types.h>
#include <linux/ctype.h>
#include <linux/kernel.h>
--- linux-2.6.orig/lib/vsprintf.c 2010-02-25 15:18:25.423317179 +0800
+++ linux-2.6/lib/vsprintf.c 2010-02-25 15:19:09.135814927 +0800
@@ -16,6 +16,7 @@
* - scnprintf and vscnprintf
*/
+#include <linux/hexdump.h>
#include <stdarg.h>
#include <linux/module.h>
#include <linux/types.h>
--- linux-2.6.orig/mm/debug-pagealloc.c 2010-02-25 15:18:25.459983356 +0800
+++ linux-2.6/mm/debug-pagealloc.c 2010-02-25 15:19:09.139147073 +0800
@@ -1,3 +1,4 @@
+#include <linux/hexdump.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/page-debug-flags.h>
--- linux-2.6.orig/mm/kmemleak.c 2010-02-25 15:18:25.449983846 +0800
+++ linux-2.6/mm/kmemleak.c 2010-02-25 15:19:09.139147073 +0800
@@ -63,6 +63,7 @@
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+#include <linux/hexdump.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/list.h>
--- linux-2.6.orig/net/ieee802154/af_ieee802154.c 2010-02-25 15:18:25.466649813 +0800
+++ linux-2.6/net/ieee802154/af_ieee802154.c 2010-02-25 15:19:09.139147073 +0800
@@ -21,6 +21,7 @@
* Maxim Gorbachyov <maxim.gorbachev@...mens.com>
*/
+#include <linux/hexdump.h>
#include <linux/net.h>
#include <linux/capability.h>
#include <linux/module.h>
--- linux-2.6.orig/net/ipv4/arp.c 2010-02-25 15:18:25.486650372 +0800
+++ linux-2.6/net/ipv4/arp.c 2010-02-25 15:19:09.142478939 +0800
@@ -72,6 +72,7 @@
* Harald Welte : convert to make use of jenkins hash
*/
+#include <linux/hexdump.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/string.h>
--- linux-2.6.orig/net/ipv4/netfilter/ipt_CLUSTERIP.c 2010-02-25 15:18:25.476650233 +0800
+++ linux-2.6/net/ipv4/netfilter/ipt_CLUSTERIP.c 2010-02-25 15:19:09.142478939 +0800
@@ -9,6 +9,7 @@
* published by the Free Software Foundation.
*
*/
+#include <linux/hexdump.h>
#include <linux/module.h>
#include <linux/proc_fs.h>
#include <linux/jhash.h>
--- linux-2.6.orig/sound/pci/oxygen/xonar_hdmi.c 2010-02-25 15:18:25.443317248 +0800
+++ linux-2.6/sound/pci/oxygen/xonar_hdmi.c 2010-02-25 15:19:09.142478939 +0800
@@ -16,6 +16,7 @@
* along with this driver; if not, see <http://www.gnu.org/licenses/>.
*/
+#include <linux/hexdump.h>
#include <linux/pci.h>
#include <linux/delay.h>
#include <sound/asoundef.h>
--- linux-2.6.orig/drivers/net/wireless/p54/eeprom.c 2010-02-25 15:18:25.139984752 +0800
+++ linux-2.6/drivers/net/wireless/p54/eeprom.c 2010-02-25 15:19:09.142478939 +0800
@@ -16,6 +16,7 @@
* published by the Free Software Foundation.
*/
+#include <linux/hexdump.h>
#include <linux/init.h>
#include <linux/firmware.h>
#include <linux/etherdevice.h>
--- linux-2.6.orig/drivers/misc/iwmc3200top/log.h 2010-02-25 15:18:24.963317388 +0800
+++ linux-2.6/drivers/misc/iwmc3200top/log.h 2010-02-25 15:19:09.145812133 +0800
@@ -27,7 +27,7 @@
#ifndef __LOG_H__
#define __LOG_H__
-
+#include <linux/hexdump.h>
/* log severity:
* The log levels here match FW log levels
* so values need to stay as is */
--- linux-2.6.orig/drivers/net/wireless/iwlwifi/iwl-debug.h 2010-02-25 15:18:25.179983706 +0800
+++ linux-2.6/drivers/net/wireless/iwlwifi/iwl-debug.h 2010-02-25 15:19:09.145812133 +0800
@@ -29,6 +29,7 @@
#ifndef __iwl_debug_h__
#define __iwl_debug_h__
+#include <linux/hexdump.h>
struct iwl_priv;
extern u32 iwl_debug_level;
--- linux-2.6.orig/drivers/net/wireless/iwmc3200wifi/debug.h 2010-02-25 15:18:25.189983496 +0800
+++ linux-2.6/drivers/net/wireless/iwmc3200wifi/debug.h 2010-02-25 15:19:09.145812133 +0800
@@ -24,6 +24,7 @@
#ifndef __IWM_DEBUG_H__
#define __IWM_DEBUG_H__
+#include <linux/hexdump.h>
#define IWM_ERR(p, f, a...) dev_err(iwm_to_dev(p), f, ## a)
#define IWM_WARN(p, f, a...) dev_warn(iwm_to_dev(p), f, ## a)
#define IWM_INFO(p, f, a...) dev_info(iwm_to_dev(p), f, ## a)
--- linux-2.6.orig/include/linux/kernel.h 2010-02-25 15:18:44.166649321 +0800
+++ linux-2.6/include/linux/kernel.h 2010-02-25 15:19:09.145812133 +0800
@@ -167,31 +167,6 @@ extern enum system_states {
extern void dump_stack(void) __cold;
-enum {
- DUMP_PREFIX_NONE,
- DUMP_PREFIX_ADDRESS,
- DUMP_PREFIX_OFFSET
-};
-extern void hex_dump_to_buffer(const void *buf, size_t len,
- int rowsize, int groupsize,
- char *linebuf, size_t linebuflen, bool ascii);
-extern void print_hex_dump(const char *level, const char *prefix_str,
- int prefix_type, int rowsize, int groupsize,
- const void *buf, size_t len, bool ascii);
-extern void print_hex_dump_bytes(const char *prefix_str, int prefix_type,
- const void *buf, size_t len);
-
-extern const char hex_asc[];
-#define hex_asc_lo(x) hex_asc[((x) & 0x0f)]
-#define hex_asc_hi(x) hex_asc[((x) & 0xf0) >> 4]
-
-static inline char *pack_hex_byte(char *buf, u8 byte)
-{
- *buf++ = hex_asc_hi(byte);
- *buf++ = hex_asc_lo(byte);
- return buf;
-}
-
/*
* General tracing related utility functions - trace_printk(),
* tracing_on/tracing_off and tracing_start()/tracing_stop
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists