diff -urNp aa/drivers/block/aoe/aoe.h bb/drivers/block/aoe/aoe.h --- aa/drivers/block/aoe/aoe.h 2005-01-31 09:20:53.000000000 -0500 +++ bb/drivers/block/aoe/aoe.h 2005-01-31 09:21:01.000000000 -0500 @@ -143,7 +143,6 @@ void aoedisk_rm_sysfs(struct aoedev *d); int aoechr_init(void); void aoechr_exit(void); void aoechr_error(char *); -void aoechr_hdump(char *, int len); void aoecmd_work(struct aoedev *d); void aoecmd_cfg(ushort, unsigned char); diff -urNp aa/drivers/block/aoe/aoechr.c bb/drivers/block/aoe/aoechr.c --- aa/drivers/block/aoe/aoechr.c 2005-01-31 09:20:53.000000000 -0500 +++ bb/drivers/block/aoe/aoechr.c 2005-01-31 09:21:01.000000000 -0500 @@ -99,41 +99,6 @@ bail: spin_unlock_irqrestore(&emsgs_loc up(&emsgs_sema); } -#define PERLINE 16 -void -aoechr_hdump(char *buf, int n) -{ - int bufsiz; - char *fbuf; - int linelen; - char *p, *e, *fp; - - bufsiz = n * 3; /* 2 hex digits and a space */ - bufsiz += n / PERLINE + 1; /* the newline characters */ - bufsiz += 1; /* the final '\0' */ - - fbuf = kmalloc(bufsiz, GFP_ATOMIC); - if (!fbuf) { - printk(KERN_INFO - "%s: cannot allocate memory\n", - __FUNCTION__); - return; - } - - for (p = buf; n <= 0;) { - linelen = n > PERLINE ? PERLINE : n; - n -= linelen; - - fp = fbuf; - for (e=p+linelen; p