Skip to contentSkip to conversation

kernel.h hexdump cleanup

PATCH NAK Dave Young 6 participants 10 messages Feb 22, 2010 – Feb 25, 2010

Subsystems (45)
lore
Share & tools
lore

Dave Young

author
#0 lore raw

PATCH 3/6 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

---
 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/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 
 84 files changed, 113 insertions(+), 1 deletion(-)
include/linux/hexdump.h new file +30 -0
@@ -0,0 +1,30 @@
+#ifndef _HEXDUMP_H
+#define _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
arch/blackfin/kernel/shadow_console.c +1 -0
@@ -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>
arch/cris/arch-v32/kernel/kgdb.c +1 -0
@@ -163,6 +163,7 @@
  */
 
 
+#include <linux/hexdump.h>
 #include <linux/string.h>
 #include <linux/signal.h>
 #include <linux/kernel.h>
arch/frv/kernel/gdb-stub.c +1 -0
@@ -114,6 +114,7 @@
  *
  */
 
+#include <linux/hexdump.h>
 #include <linux/string.h>
 #include <linux/kernel.h>
 #include <linux/signal.h>
arch/mn10300/kernel/gdb-stub.c +1 -0
@@ -120,6 +120,7 @@
  *
  */
 
+#include <linux/hexdump.h>
 #include <linux/string.h>
 #include <linux/kernel.h>
 #include <linux/signal.h>
arch/powerpc/kernel/btext.c +1 -0
@@ -3,6 +3,7 @@
  *
  * Benjamin Herrenschmidt <[email protected]>
  */
+#include <linux/hexdump.h>
 #include <linux/kernel.h>
 #include <linux/string.h>
 #include <linux/init.h>
arch/x86/kernel/mpparse.c +1 -0
@@ -7,6 +7,7 @@
  *      (c) 2008 Alexey Starikovskiy <[email protected]>
  */
 
+#include <linux/hexdump.h>
 #include <linux/mm.h>
 #include <linux/init.h>
 #include <linux/delay.h>
crypto/ansi_cprng.c +1 -0
@@ -13,6 +13,7 @@
  *
  */
 
+#include <linux/hexdump.h>
 #include <crypto/internal/rng.h>
 #include <linux/err.h>
 #include <linux/init.h>
crypto/testmgr.c +1 -0
@@ -13,6 +13,7 @@
  *
  */
 
+#include <linux/hexdump.h>
 #include <crypto/hash.h>
 #include <linux/err.h>
 #include <linux/module.h>
drivers/bluetooth/btmrvl_main.c +1 -0
@@ -18,6 +18,7 @@
  * this warranty disclaimer.
  **/
 
+#include <linux/hexdump.h>
 #include <net/bluetooth/bluetooth.h>
 #include <net/bluetooth/hci_core.h>
 
drivers/char/pcmcia/ipwireless/hardware.c +1 -0
@@ -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>
drivers/gpu/drm/drm_edid.c +1 -0
@@ -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>
drivers/isdn/gigaset/capi.c +1 -0
@@ -11,6 +11,7 @@
  * =====================================================================
  */
 
+#include <linux/hexdump.h>
 #include "gigaset.h"
 #include <linux/ctype.h>
 #include <linux/isdn/capilli.h>
drivers/isdn/gigaset/isocdata.c +1 -0
@@ -12,6 +12,7 @@
  * =====================================================================
  */
 
+#include <linux/hexdump.h>
 #include "gigaset.h"
 #include <linux/crc-ccitt.h>
 #include <linux/bitrev.h>
drivers/isdn/hardware/mISDN/avmfritz.c +1 -0
@@ -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>
drivers/isdn/hardware/mISDN/mISDNipac.c +1 -0
@@ -20,6 +20,7 @@
  *
  */
 
+#include <linux/hexdump.h>
 #include <linux/module.h>
 #include <linux/mISDNhw.h>
 #include "ipac.h"
drivers/isdn/hardware/mISDN/mISDNisar.c +1 -0
@@ -25,6 +25,7 @@
  */
 /* #define DEBUG */
 
+#include <linux/hexdump.h>
 #include <linux/delay.h>
 #include <linux/vmalloc.h>
 #include <linux/mISDNhw.h>
drivers/isdn/hardware/mISDN/netjet.c +1 -0
@@ -20,6 +20,7 @@
  *
  */
 
+#include <linux/hexdump.h>
 #include <linux/module.h>
 #include <linux/pci.h>
 #include <linux/delay.h>
drivers/isdn/hardware/mISDN/w6692.c +1 -0
@@ -21,6 +21,7 @@
  *
  */
 
+#include <linux/hexdump.h>
 #include <linux/module.h>
 #include <linux/pci.h>
 #include <linux/delay.h>
drivers/media/dvb/firewire/firedtv-avc.c +1 -0
@@ -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>
drivers/media/video/hdpvr/hdpvr-control.c +1 -0
@@ -9,6 +9,7 @@
  *
  */
 
+#include <linux/hexdump.h>
 #include <linux/kernel.h>
 #include <linux/errno.h>
 #include <linux/init.h>
drivers/media/video/hdpvr/hdpvr-core.c +1 -0
@@ -11,6 +11,7 @@
  *
  */
 
+#include <linux/hexdump.h>
 #include <linux/kernel.h>
 #include <linux/errno.h>
 #include <linux/init.h>
drivers/mfd/pcf50633-core.c +1 -0
@@ -12,6 +12,7 @@
  *
  */
 
+#include <linux/hexdump.h>
 #include <linux/kernel.h>
 #include <linux/device.h>
 #include <linux/sysfs.h>
drivers/misc/kgdbts.c +1 -0
@@ -94,6 +94,7 @@
  *
  */
 
+#include <linux/hexdump.h>
 #include <linux/kernel.h>
 #include <linux/kgdb.h>
 #include <linux/ctype.h>
drivers/mtd/tests/mtd_nandecctest.c +1 -0
@@ -1,3 +1,4 @@
+#include <linux/hexdump.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/list.h>
drivers/mtd/ubi/debug.c +1 -0
@@ -26,6 +26,7 @@
 
 #ifdef CONFIG_MTD_UBI_DEBUG
 
+#include <linux/hexdump.h>
 #include "ubi.h"
 
 /**
drivers/mtd/ubi/io.c +1 -0
@@ -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"
drivers/net/a2065.c +1 -0
@@ -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>
drivers/net/arcnet/arcnet.c +1 -0
@@ -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>
drivers/net/e1000/e1000_main.c +1 -0
@@ -26,6 +26,7 @@
 
 *******************************************************************************/
 
+#include <linux/hexdump.h>
 #include "e1000.h"
 #include <net/ip6_checksum.h>
 
drivers/net/enc28j60.c +1 -0
@@ -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>
drivers/net/sfc/selftest.c +1 -0
@@ -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>
drivers/net/skfp/smt.c +1 -0
@@ -14,6 +14,7 @@
  *
  ******************************************************************************/
 
+#include <linux/hexdump.h>
 #include "h/types.h"
 #include "h/fddi.h"
 #include "h/smc.h"
drivers/net/usb/hso.c +1 -0
@@ -50,6 +50,7 @@
  *
  *****************************************************************************/
 
+#include <linux/hexdump.h>
 #include <linux/sched.h>
 #include <linux/slab.h>
 #include <linux/init.h>
drivers/net/wimax/i2400m/rx.c +1 -0
@@ -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>
drivers/net/wireless/at76c50x-usb.c +1 -0
@@ -24,6 +24,7 @@
  *
  */
 
+#include <linux/hexdump.h>
 #include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/sched.h>
drivers/net/wireless/ath/ar9170/main.c +1 -0
@@ -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>
drivers/net/wireless/ath/ar9170/usb.c +1 -0
@@ -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>
drivers/net/wireless/ath/ath5k/debug.c +1 -0
@@ -58,6 +58,7 @@
  * THE POSSIBILITY OF SUCH DAMAGES.
  */
 
+#include <linux/hexdump.h>
 #include "base.h"
 #include "debug.h"
 
drivers/net/wireless/ath/ath9k/common.c +1 -0
@@ -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>
 
drivers/net/wireless/b43/main.c +1 -0
@@ -31,6 +31,7 @@
 
 */
 
+#include <linux/hexdump.h>
 #include <linux/delay.h>
 #include <linux/init.h>
 #include <linux/moduleparam.h>
drivers/net/wireless/iwlwifi/iwl-3945.c +1 -0
@@ -24,6 +24,7 @@
  *
  *****************************************************************************/
 
+#include <linux/hexdump.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/init.h>
drivers/net/wireless/iwlwifi/iwl-agn.c +1 -0
@@ -27,6 +27,7 @@
  *
  *****************************************************************************/
 
+#include <linux/hexdump.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/init.h>
drivers/net/wireless/iwlwifi/iwl-debugfs.c +1 -0
@@ -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>
drivers/net/wireless/iwlwifi/iwl3945-base.c +1 -0
@@ -27,6 +27,7 @@
  *
  *****************************************************************************/
 
+#include <linux/hexdump.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/init.h>
drivers/net/wireless/ray_cs.c +1 -0
@@ -30,6 +30,7 @@
  *
 =============================================================================*/
 
+#include <linux/hexdump.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/proc_fs.h>
drivers/net/wireless/wl12xx/wl1251.h +1 -0
@@ -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>
drivers/pnp/support.c +1 -0
@@ -6,6 +6,7 @@
  *	Bjorn Helgaas <[email protected]>
  */
 
+#include <linux/hexdump.h>
 #include <linux/module.h>
 #include <linux/ctype.h>
 #include <linux/pnp.h>
drivers/s390/cio/device_fsm.c +1 -0
@@ -7,6 +7,7 @@
  *		 Martin Schwidefsky ([email protected])
  */
 
+#include <linux/hexdump.h>
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/jiffies.h>
drivers/s390/net/qeth_core_main.c +1 -0
@@ -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>
drivers/scsi/osd/osd_initiator.c +1 -0
@@ -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>
drivers/spi/spi_stmp.c +1 -0
@@ -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>
drivers/staging/hv/ChannelMgmt.c +1 -0
@@ -18,6 +18,7 @@
  *   Haiyang Zhang <[email protected]>
  *   Hank Janssen  <[email protected]>
  */
+#include <linux/hexdump.h>
 #include <linux/kernel.h>
 #include <linux/mm.h>
 #include <linux/list.h>
drivers/staging/wavelan/wavelan_cs.c +1 -0
@@ -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
drivers/usb/c67x00/c67x00-sched.c +1 -0
@@ -21,6 +21,7 @@
  * MA  02110-1301  USA.
  */
 
+#include <linux/hexdump.h>
 #include <linux/kthread.h>
 
 #include "c67x00.h"
drivers/usb/gadget/storage_common.c +1 -0
@@ -54,6 +54,7 @@
  */
 
 
+#include <linux/hexdump.h>
 #include <asm/unaligned.h>
 
 
drivers/usb/wusbcore/crypto.c +1 -0
@@ -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>
fs/ext3/super.c +1 -0
@@ -16,6 +16,7 @@
  *        David S. Miller ([email protected]), 1995
  */
 
+#include <linux/hexdump.h>
 #include <linux/module.h>
 #include <linux/string.h>
 #include <linux/fs.h>
fs/ext4/super.c +1 -0
@@ -16,6 +16,7 @@
  *        David S. Miller ([email protected]), 1995
  */
 
+#include <linux/hexdump.h>
 #include <linux/module.h>
 #include <linux/string.h>
 #include <linux/fs.h>
fs/jffs2/wbuf.c +1 -0
@@ -11,6 +11,7 @@
  *
  */
 
+#include <linux/hexdump.h>
 #include <linux/kernel.h>
 #include <linux/slab.h>
 #include <linux/mtd/mtd.h>
fs/jfs/jfs_imap.c +1 -0
@@ -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>
fs/jfs/jfs_logmgr.c +1 -0
@@ -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>
fs/jfs/jfs_metapage.c +1 -0
@@ -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>
fs/jfs/jfs_txnmgr.c +1 -0
@@ -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>
fs/jfs/xattr.c +1 -0
@@ -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>
fs/ubifs/debug.c +1 -0
@@ -29,6 +29,7 @@
 
 #define UBIFS_DBG_PRESERVE_UBI
 
+#include <linux/hexdump.h>
 #include "ubifs.h"
 #include <linux/module.h>
 #include <linux/moduleparam.h>
fs/ubifs/scan.c +1 -0
@@ -27,6 +27,7 @@
  * debugging functions.
  */
 
+#include <linux/hexdump.h>
 #include "ubifs.h"
 
 /**
fs/xfs/support/debug.c +1 -0
@@ -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"
 
include/linux/ide.h +1 -0
@@ -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>
include/linux/wimax/debug.h +1 -0
@@ -153,6 +153,7 @@
 #ifndef __debug__h__
 #define __debug__h__
 
+#include <linux/hexdump.h>
 #include <linux/types.h>
 #include <linux/device.h>
 
kernel/kgdb.c +1 -0
@@ -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>
kernel/trace/trace_output.c +1 -0
@@ -5,6 +5,7 @@
  *
  */
 
+#include <linux/hexdump.h>
 #include <linux/module.h>
 #include <linux/mutex.h>
 #include <linux/ftrace.h>
lib/hexdump.c +1 -0
@@ -7,6 +7,7 @@
  * more details.
  */
 
+#include <linux/hexdump.h>
 #include <linux/types.h>
 #include <linux/ctype.h>
 #include <linux/kernel.h>
lib/vsprintf.c +1 -0
@@ -16,6 +16,7 @@
  * - scnprintf and vscnprintf
  */
 
+#include <linux/hexdump.h>
 #include <stdarg.h>
 #include <linux/module.h>
 #include <linux/types.h>
mm/debug-pagealloc.c +1 -0
@@ -1,3 +1,4 @@
+#include <linux/hexdump.h>
 #include <linux/kernel.h>
 #include <linux/mm.h>
 #include <linux/page-debug-flags.h>
mm/kmemleak.c +1 -0
@@ -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>
net/ieee802154/af_ieee802154.c +1 -0
@@ -21,6 +21,7 @@
  * Maxim Gorbachyov <[email protected]>
  */
 
+#include <linux/hexdump.h>
 #include <linux/net.h>
 #include <linux/capability.h>
 #include <linux/module.h>
net/ipv4/arp.c +1 -0
@@ -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>
net/ipv4/netfilter/ipt_CLUSTERIP.c +1 -0
@@ -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>
sound/pci/oxygen/xonar_hdmi.c +1 -0
@@ -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>
drivers/net/wireless/p54/eeprom.c +1 -0
@@ -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>
drivers/misc/iwmc3200top/log.h +1 -1
@@ -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 */
drivers/net/wireless/iwlwifi/iwl-debug.h +1 -0
@@ -29,6 +29,7 @@
 #ifndef __iwl_debug_h__
 #define __iwl_debug_h__
 
+#include <linux/hexdump.h>
 struct iwl_priv;
 extern u32 iwl_debug_level;
 
drivers/net/wireless/iwmc3200wifi/debug.h +1 -0
@@ -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)
#1 lore raw

include/linux/hexdump.h   2010-02-16 17:33:16.000000000 +0800 line 2

Quoted 5 lines · Dave Young
include/linux/hexdump.h   2010-02-16 17:33:16.000000000 +0800 renamed from dev/null   1970-01-01 00:00:00.000000000 +0000 +2 -0
@@ -0,0 +1,30 @@
+#ifndef _HEXDUMP_H
+#define _HEXDUMP_H

use _LINUX_HEXDUMP_H to match other linux/ headers ? -mike

author
#2 lore raw
Quoted 10 lines · Mike Frysinger

include/linux/hexdump.h   2010-02-16 17:33:16.000000000 +0800 line 2

Quoted 5 lines · Dave Young
include/linux/hexdump.h   2010-02-16 17:33:16.000000000 +0800 renamed from dev/null   1970-01-01 00:00:00.000000000 +0000 +2 -0
@@ -0,0 +1,30 @@
+#ifndef _HEXDUMP_H
+#define _HEXDUMP_H

use _LINUX_HEXDUMP_H to match other linux/ headers ? -mike

Thanks, either is fine for me.

Signature · 2 lines
Regards
dave
#3 lore raw
In reply to Dave Young
Quoted 1 line · Dave Young

hexdump stuff in kernel.h should be put into a standalone head file

I think it'd be clearer to have logging functions in kernel.h split into a separate header or grouped a bit better in kernel.h.

I would have kernel.h #include that header though rather than splitting out things like hexdump functions into a separate file requiring yet another #include in source files.

http://lkml.org/lkml/2009/12/16/77
http://lkml.org/lkml/2007/11/29/507

author
#4 lore raw
Quoted 11 lines · Joe Perches
Quoted 1 line · Dave Young

hexdump stuff in kernel.h should be put into a standalone head file

I think it'd be clearer to have logging functions in kernel.h split into a separate header or grouped a bit better in kernel.h.

I would have kernel.h #include that header though rather than splitting out things like hexdump functions into a separate file requiring yet another #include in source files.

Andrew, what do you think about this?

Actually I hesitate to send this patch as well, too many recipients needed from get_maintainer.pl.

Quoted 6 lines

http://lkml.org/lkml/2009/12/16/77
http://lkml.org/lkml/2007/11/29/507

Signature · 2 lines
Regards
dave
maintainer
#5 lore raw
Quoted 8 lines · On Thu, 25 Feb 2010 09:52:49 +0800 Dave Young <[email protected]> wrote:
Quoted 7 lines · Joe Perches
Quoted 1 line · Dave Young

hexdump stuff in kernel.h should be put into a standalone head file

I think it'd be clearer to have logging functions in kernel.h split into a separate header or grouped a bit better in kernel.h.

Quoted 6 lines
Quoted 4 lines

I would have kernel.h #include that header though rather than splitting out things like hexdump functions into a separate file requiring yet another #include in source files.

Andrew, what do you think about this?

Well. Avoiding bisection-bustage is hardly a priority any more, but let's not break bisection this time if we can avoid it.

Quoted 2 lines

Actually I hesitate to send this patch as well, too many recipients needed from get_maintainer.pl.

They'll live ;)

author
#6 lore raw
Quoted 15 lines · Andrew Morton
Quoted 13 lines · On Thu, 25 Feb 2010 09:52:49 +0800 Dave Young <[email protected]> wrote:
Quoted 11 lines · Joe Perches
Quoted 1 line · Dave Young

hexdump stuff in kernel.h should be put into a standalone head file

I think it'd be clearer to have logging functions in kernel.h split into a separate header or grouped a bit better in kernel.h.

I would have kernel.h #include that header though rather than splitting out things like hexdump functions into a separate file requiring yet another #include in source files.

Quoted 4 lines
Quoted 1 line

Andrew, what do you think about this?

Well.  Avoiding bisection-bustage is hardly a priority any more, but let's not break bisection this time if we can avoid it.

Thanks, see it.

Quoted 6 lines
Quoted 3 lines

Actually I hesitate to send this patch as well, too many recipients needed from get_maintainer.pl.

They'll live ;)

Signature · 2 lines
Regards
dave
#7 lore raw
In reply to Andrew Morton
Quoted 2 lines · Andrew Morton

Avoiding bisection-bustage is hardly a priority any more, but let's not break bisection this time if we can avoid it.

I think that kernel.h could use a lot more cleaning than this.

Separating it into multiple pieces is OK, but moving stuff around to categorize it a bit better is also useful. I've tried both ways.

Doing it all as one patchset / git commit would be best.

Here's a link to the last time I tried as a 14 patch block

http://patchwork.kernel.org/patch/67829/
http://lkml.org/lkml/2009/12/16/77

#8 lore raw
In reply to Dave Young

Hello Dave,

Quoted 5 lines · Dave Young

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

Can we include hexdump.h in kernel.h instead of including in every file.

Thanks,
--
Jaswinder

#9 lore raw
Quoted 1 line · Jaswinder Singh Rajput

Can we include hexdump.h in kernel.h instead of including in every file.

Can we include everything in kernel.h?