From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 51E93C43334 for ; Thu, 2 Jun 2022 11:17:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234090AbiFBLR3 (ORCPT ); Thu, 2 Jun 2022 07:17:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231266AbiFBLR1 (ORCPT ); Thu, 2 Jun 2022 07:17:27 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 701966348 for ; Thu, 2 Jun 2022 04:17:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654168645; x=1685704645; h=date:from:to:cc:subject:message-id:mime-version; bh=uevDuI523c4bFiva4JVL4fpLRmlgzY6VTweGr8x1Fe0=; b=Z/dZYTA5kHlp/S6XVuRh9ALr5ZUkM5BGHUWtXEN+eOGolKg8Zbc2etpk sCrU5pPcciPPRvd57VD5hi+uOLn+AOvx0hDYIW1oq8LEIxtWX/gsAmLE4 IlAqqTLoJa8Gq/GqNERz9ywD6jbf8+2To5Ji4CVfJuXt7VW4bBfL74EMT DVWofoWQ69ZXgpqFUMRB6CiYc9neN6AxDKfoqPH6oPvogYSd+ZNZ1/sXn +Wbd/JaqsLujg/OeVZz8qaYM4x1UhijuEl9aLz0cz1PktH9aCSD9r+QHE GX5HMsClISou8Ez6VEjhJclgpvkxTmhPkadUPg2DdneUAJEalHyJA34Uz g==; X-IronPort-AV: E=McAfee;i="6400,9594,10365"; a="338961989" X-IronPort-AV: E=Sophos;i="5.91,271,1647327600"; d="scan'208";a="338961989" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jun 2022 04:17:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,271,1647327600"; d="scan'208";a="563264494" Received: from lkp-server01.sh.intel.com (HELO 60dabacc1df6) ([10.239.97.150]) by orsmga002.jf.intel.com with ESMTP; 02 Jun 2022 04:17:23 -0700 Received: from kbuild by 60dabacc1df6 with local (Exim 4.95) (envelope-from ) id 1nwipP-00050f-6l; Thu, 02 Jun 2022 11:17:23 +0000 Date: Thu, 2 Jun 2022 19:17:05 +0800 From: kernel test robot To: Linus Walleij Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: [arm-integrator:kernel-in-vmalloc-v5.18-rc1 23/31] arch/mips/include/asm/page.h:257:25: error: implicit declaration of function 'virt_to_phys'; did you mean 'virt_to_pfn'? Message-ID: <202206021923.wWB7z5Z7-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git kernel-in-vmalloc-v5.18-rc1 head: 9083f89a58302e92fad7f144986e307db2350aad commit: 1b6fb48b9bb60a647b00e74c63ffa0e224446e8a [23/31] MIPS: Make virt_to_pfn() a static inline config: mips-allyesconfig (https://download.01.org/0day-ci/archive/20220602/202206021923.wWB7z5Z7-lkp@intel.com/config) compiler: mips-linux-gcc (GCC) 11.3.0 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 # https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git/commit/?id=1b6fb48b9bb60a647b00e74c63ffa0e224446e8a git remote add arm-integrator https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git git fetch --no-tags arm-integrator kernel-in-vmalloc-v5.18-rc1 git checkout 1b6fb48b9bb60a647b00e74c63ffa0e224446e8a # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=mips prepare 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/mips/include/asm/page.h:73, from arch/mips/include/asm/io.h:29, from include/linux/io.h:13, from arch/mips/include/asm/mips-cps.h:11, from arch/mips/include/asm/smp-ops.h:16, from arch/mips/include/asm/smp.h:21, from include/linux/smp.h:113, from arch/mips/include/asm/cpu-type.h:12, from arch/mips/include/asm/timex.h:19, from include/linux/timex.h:65, from include/linux/time32.h:13, from include/linux/time.h:60, from include/linux/compat.h:10, from arch/mips/kernel/asm-offsets.c:12: arch/mips/include/asm/page.h: In function 'virt_to_pfn': >> arch/mips/include/asm/page.h:257:25: error: implicit declaration of function 'virt_to_phys'; did you mean 'virt_to_pfn'? [-Werror=implicit-function-declaration] 257 | return PFN_DOWN(virt_to_phys((void *)(kaddr))); | ^~~~~~~~~~~~ include/linux/pfn.h:20:27: note: in definition of macro 'PFN_DOWN' 20 | #define PFN_DOWN(x) ((x) >> PAGE_SHIFT) | ^ In file included from include/linux/io.h:13, from arch/mips/include/asm/mips-cps.h:11, from arch/mips/include/asm/smp-ops.h:16, from arch/mips/include/asm/smp.h:21, from include/linux/smp.h:113, from arch/mips/include/asm/cpu-type.h:12, from arch/mips/include/asm/timex.h:19, from include/linux/timex.h:65, from include/linux/time32.h:13, from include/linux/time.h:60, from include/linux/compat.h:10, from arch/mips/kernel/asm-offsets.c:12: arch/mips/include/asm/io.h: At top level: >> arch/mips/include/asm/io.h:114:22: error: conflicting types for 'virt_to_phys'; have 'phys_addr_t(const volatile void *)' {aka 'unsigned int(const volatile void *)'} 114 | #define virt_to_phys virt_to_phys | ^~~~~~~~~~~~ arch/mips/include/asm/io.h:115:27: note: in expansion of macro 'virt_to_phys' 115 | static inline phys_addr_t virt_to_phys(const volatile void *x) | ^~~~~~~~~~~~ In file included from arch/mips/include/asm/page.h:73, from arch/mips/include/asm/io.h:29, from include/linux/io.h:13, from arch/mips/include/asm/mips-cps.h:11, from arch/mips/include/asm/smp-ops.h:16, from arch/mips/include/asm/smp.h:21, from include/linux/smp.h:113, from arch/mips/include/asm/cpu-type.h:12, from arch/mips/include/asm/timex.h:19, from include/linux/timex.h:65, from include/linux/time32.h:13, from include/linux/time.h:60, from include/linux/compat.h:10, from arch/mips/kernel/asm-offsets.c:12: arch/mips/include/asm/page.h:257:25: note: previous implicit declaration of 'virt_to_phys' with type 'int()' 257 | return PFN_DOWN(virt_to_phys((void *)(kaddr))); | ^~~~~~~~~~~~ include/linux/pfn.h:20:27: note: in definition of macro 'PFN_DOWN' 20 | #define PFN_DOWN(x) ((x) >> PAGE_SHIFT) | ^ arch/mips/kernel/asm-offsets.c:26:6: warning: no previous prototype for 'output_ptreg_defines' [-Wmissing-prototypes] 26 | void output_ptreg_defines(void) | ^~~~~~~~~~~~~~~~~~~~ arch/mips/kernel/asm-offsets.c:78:6: warning: no previous prototype for 'output_task_defines' [-Wmissing-prototypes] 78 | void output_task_defines(void) | ^~~~~~~~~~~~~~~~~~~ arch/mips/kernel/asm-offsets.c:92:6: warning: no previous prototype for 'output_thread_info_defines' [-Wmissing-prototypes] 92 | void output_thread_info_defines(void) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ arch/mips/kernel/asm-offsets.c:108:6: warning: no previous prototype for 'output_thread_defines' [-Wmissing-prototypes] 108 | void output_thread_defines(void) | ^~~~~~~~~~~~~~~~~~~~~ arch/mips/kernel/asm-offsets.c:136:6: warning: no previous prototype for 'output_thread_fpu_defines' [-Wmissing-prototypes] 136 | void output_thread_fpu_defines(void) | ^~~~~~~~~~~~~~~~~~~~~~~~~ arch/mips/kernel/asm-offsets.c:179:6: warning: no previous prototype for 'output_mm_defines' [-Wmissing-prototypes] 179 | void output_mm_defines(void) | ^~~~~~~~~~~~~~~~~ arch/mips/kernel/asm-offsets.c:218:6: warning: no previous prototype for 'output_sc_defines' [-Wmissing-prototypes] 218 | void output_sc_defines(void) | ^~~~~~~~~~~~~~~~~ arch/mips/kernel/asm-offsets.c:253:6: warning: no previous prototype for 'output_signal_defined' [-Wmissing-prototypes] 253 | void output_signal_defined(void) | ^~~~~~~~~~~~~~~~~~~~~ arch/mips/kernel/asm-offsets.c:320:6: warning: no previous prototype for 'output_pbe_defines' [-Wmissing-prototypes] 320 | void output_pbe_defines(void) | ^~~~~~~~~~~~~~~~~~ arch/mips/kernel/asm-offsets.c:332:6: warning: no previous prototype for 'output_pm_defines' [-Wmissing-prototypes] 332 | void output_pm_defines(void) | ^~~~~~~~~~~~~~~~~ arch/mips/kernel/asm-offsets.c:346:6: warning: no previous prototype for 'output_kvm_defines' [-Wmissing-prototypes] 346 | void output_kvm_defines(void) | ^~~~~~~~~~~~~~~~~~ arch/mips/kernel/asm-offsets.c:390:6: warning: no previous prototype for 'output_cps_defines' [-Wmissing-prototypes] 390 | void output_cps_defines(void) | ^~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:120: arch/mips/kernel/asm-offsets.s] Error 1 make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1194: prepare0] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:219: __sub-make] Error 2 make: Target 'prepare' not remade because of errors. vim +257 arch/mips/include/asm/page.h 254 255 static inline unsigned long virt_to_pfn(const void *kaddr) 256 { > 257 return PFN_DOWN(virt_to_phys((void *)(kaddr))); 258 } 259 #define virt_to_page(kaddr) pfn_to_page(virt_to_pfn(kaddr)) 260 -- 0-DAY CI Kernel Test Service https://01.org/lkp