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 6725C19B for ; Thu, 9 Jun 2022 08:42:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654764172; x=1686300172; h=date:from:to:cc:subject:message-id:mime-version; bh=rkvkafBJHA9CZwBiX7ZFsiojylCod4feTJKDvkaFfP4=; b=kvD1M76Dl74aviZLWmTkxhdtJ5q2SDgEio0hZmfo5fz4ZkDEwldReDgO 3tgAa/NuKy432Y0oQk8DHdNn5lNEwAkPFrM1v46d2XwOpBa86F3yTjv0v nowfpOt8zgfR140tSDaZBpn2pbb0DwB5vYOmTSSsYCqNfPQeAakYJXbEd DTVc+q2eGh9ofQl0aDE8ny1FT0JqHULQdG0YS4PH36avx0QxBjjiveiz9 0ELGFHapBO09FyqLh1ufOH5iCBjlu4P9z+S3XsOJZfRjpD/Mt6ABRXjjY /6mU0BGCnBY++WTqtSCgvcH19c508AKdvvCIYhsCtwmLepJ/VNKPmu2s8 w==; X-IronPort-AV: E=McAfee;i="6400,9594,10372"; a="277229443" X-IronPort-AV: E=Sophos;i="5.91,287,1647327600"; d="scan'208";a="277229443" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jun 2022 01:42:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,287,1647327600"; d="scan'208";a="566295068" Received: from lkp-server01.sh.intel.com (HELO 60dabacc1df6) ([10.239.97.150]) by orsmga002.jf.intel.com with ESMTP; 09 Jun 2022 01:42:27 -0700 Received: from kbuild by 60dabacc1df6 with local (Exim 4.95) (envelope-from ) id 1nzDkI-000Fnx-Pd; Thu, 09 Jun 2022 08:42:26 +0000 Date: Thu, 9 Jun 2022 16:42:16 +0800 From: kernel test robot To: Mayuresh Chitale Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Anup Patel Subject: [avpatel:virtio_rpmsg_bus_fix_v1 35/52] arch/riscv/kernel/setup.c:299:2: error: call to undeclared function 'riscv_tlbflush_init'; ISO C99 and later do not support implicit function declarations Message-ID: <202206091653.pAFZq908-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 tree: https://github.com/avpatel/linux.git virtio_rpmsg_bus_fix_v1 head: 390aaf641ff2f8919268d611e864227265c3f3f2 commit: efaaec7bcbaf3346e07955be46d5e3c2bd662167 [35/52] riscv: mm: use svinval instructions instead of sfence.vma config: riscv-randconfig-r042-20220609 (https://download.01.org/0day-ci/archive/20220609/202206091653.pAFZq908-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project b92436efcb7813fc481b30f2593a4907568d917a) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install riscv cross compiling tool for clang build # apt-get install binutils-riscv64-linux-gnu # https://github.com/avpatel/linux/commit/efaaec7bcbaf3346e07955be46d5e3c2bd662167 git remote add avpatel https://github.com/avpatel/linux.git git fetch --no-tags avpatel virtio_rpmsg_bus_fix_v1 git checkout efaaec7bcbaf3346e07955be46d5e3c2bd662167 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash arch/riscv/kernel/ arch/riscv/lib/ arch/riscv/mm/ kernel/dma/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from arch/riscv/kernel/setup.c:21: In file included from include/linux/efi.h:20: In file included from include/linux/rtc.h:17: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/riscv/include/generated/asm/hardirq.h:1: 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/riscv/include/asm/io.h:136: include/asm-generic/io.h:464:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:477:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 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' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from arch/riscv/kernel/setup.c:21: In file included from include/linux/efi.h:20: In file included from include/linux/rtc.h:17: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/riscv/include/generated/asm/hardirq.h:1: 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/riscv/include/asm/io.h:136: include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 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' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from arch/riscv/kernel/setup.c:21: In file included from include/linux/efi.h:20: In file included from include/linux/rtc.h:17: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/riscv/include/generated/asm/hardirq.h:1: 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/riscv/include/asm/io.h:136: include/asm-generic/io.h:501:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:511:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:521:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:1024:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port; ~~~~~~~~~~ ^ >> arch/riscv/kernel/setup.c:299:2: error: call to undeclared function 'riscv_tlbflush_init'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] riscv_tlbflush_init(); ^ 7 warnings and 1 error generated. vim +/riscv_tlbflush_init +299 arch/riscv/kernel/setup.c 297 298 riscv_fill_hwcap(); > 299 riscv_tlbflush_init(); 300 apply_boot_alternatives(); 301 } 302 -- 0-DAY CI Kernel Test Service https://01.org/lkp