Content-Type: multipart/mixed; boundary="===============0728021289767376843==" MIME-Version: 1.0 From: Russell King - ARM Linux admin To: kbuild-all@lists.01.org Subject: Re: arch/arm/boot/compressed/decompress.c:50: warning: "memmove" redefined Date: Sun, 09 May 2021 13:22:27 +0100 Message-ID: <20210509122227.GH1336@shell.armlinux.org.uk> In-Reply-To: <202105091112.F5rmd4By-lkp@intel.com> List-Id: --===============0728021289767376843== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Maybe the KASan folk can look into this, it isn't obvious how to fix this, since XZ needs memcpy/memmove #defined to avoid using its own version. Having KASan override these with a #define is all very well, but it makes the behaviour of lib/decompress_unxz.c indeterminant if we get rid of the definitions the XZ support added. On Sun, May 09, 2021 at 11:32:17AM +0800, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.gi= t master > head: b741596468b010af2846b75f5e75a842ce344a6e > commit: 421015713b306e47af95d4d61cdfbd96d462e4cb ARM: 9017/2: Enable KASa= n for ARM > date: 6 months ago > config: arm-randconfig-r015-20210509 (attached as .config) > compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0 > reproduce (this is a W=3D1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbi= n/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.= git/commit/?id=3D421015713b306e47af95d4d61cdfbd96d462e4cb > git remote add linus https://git.kernel.org/pub/scm/linux/kernel/= git/torvalds/linux.git > git fetch --no-tags linus master > git checkout 421015713b306e47af95d4d61cdfbd96d462e4cb > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-9.3.0 make.cros= s W=3D1 ARCH=3Darm = > = > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > = > All warnings (new ones prefixed by >>): > = > >> arch/arm/boot/compressed/decompress.c:50: warning: "memmove" redefined > 50 | #define memmove memmove > | = > In file included from arch/arm/boot/compressed/decompress.c:8: > arch/arm/include/asm/string.h:59: note: this is the location of the pr= evious definition > 59 | #define memmove(dst, src, len) __memmove(dst, src, len) > | = > arch/arm/boot/compressed/decompress.c:51: warning: "memcpy" redefined > 51 | #define memcpy memcpy > | = > In file included from arch/arm/boot/compressed/decompress.c:8: > arch/arm/include/asm/string.h:58: note: this is the location of the pr= evious definition > 58 | #define memcpy(dst, src, len) __memcpy(dst, src, len) > | = > arch/arm/boot/compressed/decompress.c:59:5: warning: no previous proto= type for 'do_decompress' [-Wmissing-prototypes] > 59 | int do_decompress(u8 *input, int len, u8 *output, void (*error= )(char *x)) > | ^~~~~~~~~~~~~ > = > = > vim +/memmove +50 arch/arm/boot/compressed/decompress.c > = > 6e8699f7d68589 Albin Tonnerre 2010-04-03 48 = > a7f464f3db93ae Imre Kaloz 2012-01-26 49 #ifdef CONFIG_KERNEL_XZ > a7f464f3db93ae Imre Kaloz 2012-01-26 @50 #define memmove memmove > a7f464f3db93ae Imre Kaloz 2012-01-26 51 #define memcpy memcpy > a7f464f3db93ae Imre Kaloz 2012-01-26 52 #include "../../../../lib/d= ecompress_unxz.c" > a7f464f3db93ae Imre Kaloz 2012-01-26 53 #endif > a7f464f3db93ae Imre Kaloz 2012-01-26 54 = > = > :::::: The code at line 50 was first introduced by commit > :::::: a7f464f3db93ae5492bee6f6e48939fd8a45fa99 ARM: 7001/2: Wire up supp= ort for the XZ decompressor > = > :::::: TO: Imre Kaloz > :::::: CC: Russell King > = > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org -- = RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! --===============0728021289767376843==--