# git rev-parse -q --verify 42cdbd5fbbb3ab88135b1bcaaf76feac958a7a61^{commit} 42cdbd5fbbb3ab88135b1bcaaf76feac958a7a61 already have revision, skipping fetch # git checkout -q -f -B kisskb 42cdbd5fbbb3ab88135b1bcaaf76feac958a7a61 # git clean -qxdf # < git log -1 # commit 42cdbd5fbbb3ab88135b1bcaaf76feac958a7a61 # Author: Christophe Leroy # Date: Wed Aug 8 06:37:03 2018 +0000 # # lib/test_hexdump: fix failure on big endian cpu # # On a big endian cpu, test_hexdump fails as follows. The logs show # that bytes are expected in reversed order. # # [...] # [ 16.643648] test_hexdump: Len: 24 buflen: 130 strlen: 97 # [ 16.648681] test_hexdump: Result: 97 'be32db7b 0a1893b2 70bac424 7d83349b a69c31ad 9c0face9 .2.{....p..$}.4...1.....' # [ 16.660951] test_hexdump: Expect: 97 '7bdb32be b293180a 24c4ba70 9b34837d ad319ca6 e9ac0f9c .2.{....p..$}.4...1.....' # [ 16.673129] test_hexdump: Len: 8 buflen: 130 strlen: 77 # [ 16.678113] test_hexdump: Result: 77 'be32db7b0a1893b2 .2.{....' # [ 16.688660] test_hexdump: Expect: 77 'b293180a7bdb32be .2.{....' # [ 16.699170] test_hexdump: Len: 6 buflen: 131 strlen: 87 # [ 16.704238] test_hexdump: Result: 87 'be32 db7b 0a18 .2.{..' # [ 16.715511] test_hexdump: Expect: 87 '32be 7bdb 180a .2.{..' # [ 16.726864] test_hexdump: Len: 24 buflen: 131 strlen: 97 # [ 16.731902] test_hexdump: Result: 97 'be32db7b 0a1893b2 70bac424 7d83349b a69c31ad 9c0face9 .2.{....p..$}.4...1.....' # [ 16.744175] test_hexdump: Expect: 97 '7bdb32be b293180a 24c4ba70 9b34837d ad319ca6 e9ac0f9c .2.{....p..$}.4...1.....' # [ 16.756379] test_hexdump: Len: 32 buflen: 131 strlen: 101 # [ 16.761507] test_hexdump: Result: 101 'be32db7b0a1893b2 70bac4247d83349b a69c31ad9c0face9 4cd1199943b1af0c .2.{....p..$}.4...1.....L...C...' # [ 16.774212] test_hexdump: Expect: 101 'b293180a7bdb32be 9b34837d24c4ba70 e9ac0f9cad319ca6 0cafb1439919d14c .2.{....p..$}.4...1.....L...C...' # [ 16.786763] test_hexdump: failed 801 out of 1184 tests # # This patch fixes it. # # Fixes: 64d1d77a44697 ("hexdump: introduce test suite") # Signed-off-by: Christophe Leroy # Reviewed-by: Andy Shevchenko # Signed-off-by: Michael Ellerman # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-gcc --version # < git log --format=%s --max-count=1 42cdbd5fbbb3ab88135b1bcaaf76feac958a7a61 # < make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-next_85xx_sbc8548_defconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- 85xx/sbc8548_defconfig # make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-next_85xx_sbc8548_defconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:183:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/net/Makefile:24: CC cannot link executables. Skipping bpfilter. /kisskb/src/fs/proc/inode.c: In function 'proc_reg_open': /kisskb/src/include/linux/list.h:65:12: warning: 'pdeo' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/proc/inode.c:339:21: note: 'pdeo' was declared here /kisskb/src/drivers/tty/serial/8250/8250_core.c: In function 'univ8250_release_irq': /kisskb/src/drivers/tty/serial/8250/8250_core.c:251:18: warning: 'i' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/tty/serial/8250/8250_core.c:231:19: note: 'i' was declared here INFO: Uncompressed kernel (size 0x4500a0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x500000) INFO: Uncompressed kernel (size 0x43fa58) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x500000) Image Name: Linux-4.18.0-rc3-g42cdbd5 Created: Thu Aug 9 23:04:13 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2152620 Bytes = 2102.17 kB = 2.05 MB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-4.18.0-rc3-g42cdbd5 Created: Thu Aug 9 23:04:13 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2176759 Bytes = 2125.74 kB = 2.08 MB Load Address: 00500000 Entry Point: 00500248 Completed OK # rm -rf /kisskb/build/powerpc-next_85xx_sbc8548_defconfig_powerpc # Build took: 0:00:33.226865