From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0C96B15B1; Fri, 30 Jun 2023 01:32:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1688088748; x=1719624748; h=date:from:to:cc:subject:message-id:mime-version; bh=h9HZr9GwNFKiQJp2x66B2V3zcIUKtMbHsDkn/k2HVJE=; b=k+I9OoCnFZPxsqXN8+geYoT88SE0Dy177u+cvtV+995lxKjesTp1WK4a E3gf0g0/y1Pe4e0j32IlgOcKAg5V9XS9VG/ohA42A9jaU16mu0zfozXOE i5jgUs2GgoAMtp+fbSaj+GNcQ3+6E/IOJ/LRhDLiFGD0EQ6EdVtdTMeQO I+VwWhOCwCGngdROkxDzdUUhGYTGPl5ibYe/1Rwg88k7EU6OTgIQKybla tvhvsC+JTYXZRCIu05dK560cCHaf6B/5u2pSwylp/JQtnefoLhDchbgsi txV/GP066aOAef2AZHGiglpBc1GfvB+cc0rAkNfDWe2OCiYwVyo9iLxIe w==; X-IronPort-AV: E=McAfee;i="6600,9927,10756"; a="362318314" X-IronPort-AV: E=Sophos;i="6.01,169,1684825200"; d="scan'208";a="362318314" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jun 2023 18:32:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10756"; a="862132648" X-IronPort-AV: E=Sophos;i="6.01,169,1684825200"; d="scan'208";a="862132648" Received: from lkp-server01.sh.intel.com (HELO 783282924a45) ([10.239.97.150]) by fmsmga001.fm.intel.com with ESMTP; 29 Jun 2023 18:32:07 -0700 Received: from kbuild by 783282924a45 with local (Exim 4.96) (envelope-from ) id 1qF2zW-000Ea1-1C; Fri, 30 Jun 2023 01:32:06 +0000 Date: Fri, 30 Jun 2023 09:31:30 +0800 From: kernel test robot To: Linus Walleij Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev Subject: [arm-integrator:kernel-in-vmalloc-v6.4-rc1-just-ttbr0-split 20/26] fs/binfmt_elf.c:1371:65: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' Message-ID: <202306300956.sonYcCul-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Linus, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git kernel-in-vmalloc-v6.4-rc1-just-ttbr0-split head: d0cf2fe7497259ee8a7308da99a8cbafaab5e5b5 commit: 8560cbc95c9fafe667f0faf076bba96cc2f4c717 [20/26] debug prints config: um-randconfig-r003-20230629 (https://download.01.org/0day-ci/archive/20230630/202306300956.sonYcCul-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) reproduce: (https://download.01.org/0day-ci/archive/20230630/202306300956.sonYcCul-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202306300956.sonYcCul-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from fs/binfmt_elf.c:30: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from arch/um/include/asm/hardirq.h:5: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/um/include/asm/io.h:24: include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 547 | val = __raw_readb(PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 560 | val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); | ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' 37 | #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) | ^ In file included from fs/binfmt_elf.c:30: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from arch/um/include/asm/hardirq.h:5: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/um/include/asm/io.h:24: include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 573 | val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); | ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' 35 | #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) | ^ In file included from fs/binfmt_elf.c:30: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from arch/um/include/asm/hardirq.h:5: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/um/include/asm/io.h:24: include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 584 | __raw_writeb(value, PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 594 | __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 604 | __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:692:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 692 | readsb(PCI_IOBASE + addr, buffer, count); | ~~~~~~~~~~ ^ include/asm-generic/io.h:700:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 700 | readsw(PCI_IOBASE + addr, buffer, count); | ~~~~~~~~~~ ^ include/asm-generic/io.h:708:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 708 | readsl(PCI_IOBASE + addr, buffer, count); | ~~~~~~~~~~ ^ include/asm-generic/io.h:717:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 717 | writesb(PCI_IOBASE + addr, buffer, count); | ~~~~~~~~~~ ^ include/asm-generic/io.h:726:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 726 | writesw(PCI_IOBASE + addr, buffer, count); | ~~~~~~~~~~ ^ include/asm-generic/io.h:735:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 735 | writesl(PCI_IOBASE + addr, buffer, count); | ~~~~~~~~~~ ^ >> fs/binfmt_elf.c:1371:65: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] 1371 | pr_info("%s: call START_THREAD() entry at 0x%08x\n", __func__, elf_entry); | ~~~~ ^~~~~~~~~ | %08lx include/linux/printk.h:528:34: note: expanded from macro 'pr_info' 528 | printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__) | ~~~ ^~~~~~~~~~~ include/linux/printk.h:455:60: note: expanded from macro 'printk' 455 | #define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__) | ~~~ ^~~~~~~~~~~ include/linux/printk.h:427:19: note: expanded from macro 'printk_index_wrap' 427 | _p_func(_fmt, ##__VA_ARGS__); \ | ~~~~ ^~~~~~~~~~~ 13 warnings generated. vim +1371 fs/binfmt_elf.c 1369 1370 finalize_exec(bprm); > 1371 pr_info("%s: call START_THREAD() entry at 0x%08x\n", __func__, elf_entry); 1372 START_THREAD(elf_ex, regs, elf_entry, bprm->p); 1373 retval = 0; 1374 out: 1375 pr_info("%s: exit\n", __func__); 1376 return retval; 1377 1378 /* error cleanup */ 1379 out_free_dentry: 1380 kfree(interp_elf_ex); 1381 kfree(interp_elf_phdata); 1382 out_free_file: 1383 allow_write_access(interpreter); 1384 if (interpreter) 1385 fput(interpreter); 1386 out_free_ph: 1387 kfree(elf_phdata); 1388 goto out; 1389 } 1390 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki