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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 35680C77B73 for ; Thu, 20 Apr 2023 21:14:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id AE8B0900003; Thu, 20 Apr 2023 17:14:01 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A990D900002; Thu, 20 Apr 2023 17:14:01 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 960CC900003; Thu, 20 Apr 2023 17:14:01 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 86105900002 for ; Thu, 20 Apr 2023 17:14:01 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 5C1E5AC159 for ; Thu, 20 Apr 2023 21:14:01 +0000 (UTC) X-FDA: 80703021882.16.9D46823 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by imf25.hostedemail.com (Postfix) with ESMTP id 5CC61A0017 for ; Thu, 20 Apr 2023 21:13:57 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=AHUiuX3+; spf=pass (imf25.hostedemail.com: domain of lkp@intel.com designates 192.55.52.93 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1682025238; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=rqwcoVfaK9zXYoifJnoOX80tCTE/K8p/z/Lvp4P67RQ=; b=lyutxxq+FkHoIy0fNRNuWCEC3thSE9iqAuHdD0Cw7GGDPDJh+VWv7BrpGpbdhzF2D0eOG9 zOS49g4J0JJS9uY1wzhLRc8u+1a5cY+AwwSXvL9g+KRHJZn46p7albbvxRDr9L/fpRQMgc 9t77PC0F5yQHITWGHCikgslwwCe6SkE= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=AHUiuX3+; spf=pass (imf25.hostedemail.com: domain of lkp@intel.com designates 192.55.52.93 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1682025238; a=rsa-sha256; cv=none; b=gH+Xw/hiUdcRET0rr5CPYQRdE96cdLVg6f2lz42Usrwa9lzLJRxayD4M9wlo9W8zoqPUFS 6oI7SfOieHeXGhfNR+JUI0OjMpYi6Fv9QY87z90DCL+UKlnCfNUuw6b3as8lepVA3jE3H5 u0aNSxPtIciorjYALTicVN4TaW6k24I= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1682025238; x=1713561238; h=date:from:to:cc:subject:message-id:mime-version; bh=NOFEywyzklXgNb/UKIfs+SM5CFIW9NjOItHzJnrzn50=; b=AHUiuX3+zvhJbE44oET8aTNo6z5p4ZuaI/ZMwXzUmQ7b7Bj/9VWJxCgb jWg67rkZ0FRzGBbxFPparJ0LO0N0hfInPpFpeZt9IHV8l/8fbw+Uksv0w 0+IRq7AKn0ptHmlSLc2fRIEbRwrr7cIxH1khrEpbGrMzSPelFI8FB8M1g UsVUc6dbD/0+E/J3k5kRAwK5Bj9x+u2KRZ2ZrGOnhe6GNkOfzrPOgmVcM UFfsIH0yZTao1Zz7AEkvXGrhn+yPycqwX8rX0NTZze/M5qZeO+Ix8Z6LM Rcclij97FOOr5cqBgR3JHcTKmvc3xmQZfWf0CICchreoKU/hxY3ZmrmPz A==; X-IronPort-AV: E=McAfee;i="6600,9927,10686"; a="343341598" X-IronPort-AV: E=Sophos;i="5.99,213,1677571200"; d="scan'208";a="343341598" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Apr 2023 14:13:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10686"; a="1021702904" X-IronPort-AV: E=Sophos;i="5.99,213,1677571200"; d="scan'208";a="1021702904" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by fmsmga005.fm.intel.com with ESMTP; 20 Apr 2023 14:13:54 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1ppbbG-000g6U-0g; Thu, 20 Apr 2023 21:13:54 +0000 Date: Fri, 21 Apr 2023 05:13:29 +0800 From: kernel test robot To: Rob Herring Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List Subject: [linux-next:master 12330/13289] drivers/virt/fsl_hypervisor.c:799:52: error: too many arguments to function call, expected 2, have 3 Message-ID: <202304210552.jAaBFgWm-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 5CC61A0017 X-Stat-Signature: h48eakxenj7bcqhmxwzq3j69bkisg8xq X-Rspam-User: X-HE-Tag: 1682025237-30038 X-HE-Meta: U2FsdGVkX1/FG3nncwlWuebCZGiMtveB4rd3xkpfzmJ4ZzfnizFFgrEm4cgdExPZk6Au9yhn7BbMTkPnh5CSZ033MzKxHMLPZpnPWnd2ZCE/eR8Fa0I0puw/NL/ukZH2Wn2YSKYhEUTNm6Z0aHpaKOaGZHD3onhqALr8oS8Qfn9JDAZBrOsGWRz9Jz7Me3vICCg8jEdm4GPQ6XlxshcY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mzOfY+A9Mpl8Xu8FVRMbkkB8qTwlhrdPCNGfp7IUunSWthKfWLHRkFgLXS19/XcsKn8r2NcB2KZKIbxnzsZ614LkEOxAFeHq0FeJa1bb X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 44bf136283e567b2b62653be7630e7511da41da2 commit: 397fa58b8eda0d9bc8421f5abb02c8a87209e458 [12330/13289] virt: fsl: Use of_property_present() for testing DT property presence config: powerpc-buildonly-randconfig-r004-20230417 (https://download.01.org/0day-ci/archive/20230421/202304210552.jAaBFgWm-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 437b7602e4a998220871de78afcb020b9c14a661) 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 powerpc cross compiling tool for clang build # apt-get install binutils-powerpc-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=397fa58b8eda0d9bc8421f5abb02c8a87209e458 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 397fa58b8eda0d9bc8421f5abb02c8a87209e458 # 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=powerpc olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash drivers/virt/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202304210552.jAaBFgWm-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from drivers/virt/fsl_hypervisor.c:33: In file included from include/linux/pagemap.h:11: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from arch/powerpc/include/asm/hardirq.h:6: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/powerpc/include/asm/io.h:640: arch/powerpc/include/asm/io-defs.h:45:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] DEF_PCI_AC_NORET(insw, (unsigned long p, void *b, unsigned long c), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/io.h:637:3: note: expanded from macro 'DEF_PCI_AC_NORET' __do_##name al; \ ^~~~~~~~~~~~~~ :14:1: note: expanded from here __do_insw ^ arch/powerpc/include/asm/io.h:578:56: note: expanded from macro '__do_insw' #define __do_insw(p, b, n) readsw((PCI_IO_ADDR)_IO_BASE+(p), (b), (n)) ~~~~~~~~~~~~~~~~~~~~~^ In file included from drivers/virt/fsl_hypervisor.c:33: In file included from include/linux/pagemap.h:11: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from arch/powerpc/include/asm/hardirq.h:6: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/powerpc/include/asm/io.h:640: arch/powerpc/include/asm/io-defs.h:47:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/io.h:637:3: note: expanded from macro 'DEF_PCI_AC_NORET' __do_##name al; \ ^~~~~~~~~~~~~~ :16:1: note: expanded from here __do_insl ^ arch/powerpc/include/asm/io.h:579:56: note: expanded from macro '__do_insl' #define __do_insl(p, b, n) readsl((PCI_IO_ADDR)_IO_BASE+(p), (b), (n)) ~~~~~~~~~~~~~~~~~~~~~^ In file included from drivers/virt/fsl_hypervisor.c:33: In file included from include/linux/pagemap.h:11: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from arch/powerpc/include/asm/hardirq.h:6: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/powerpc/include/asm/io.h:640: arch/powerpc/include/asm/io-defs.h:49:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/io.h:637:3: note: expanded from macro 'DEF_PCI_AC_NORET' __do_##name al; \ ^~~~~~~~~~~~~~ :18:1: note: expanded from here __do_outsb ^ arch/powerpc/include/asm/io.h:580:58: note: expanded from macro '__do_outsb' #define __do_outsb(p, b, n) writesb((PCI_IO_ADDR)_IO_BASE+(p),(b),(n)) ~~~~~~~~~~~~~~~~~~~~~^ In file included from drivers/virt/fsl_hypervisor.c:33: In file included from include/linux/pagemap.h:11: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from arch/powerpc/include/asm/hardirq.h:6: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/powerpc/include/asm/io.h:640: arch/powerpc/include/asm/io-defs.h:51:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] DEF_PCI_AC_NORET(outsw, (unsigned long p, const void *b, unsigned long c), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/io.h:637:3: note: expanded from macro 'DEF_PCI_AC_NORET' __do_##name al; \ ^~~~~~~~~~~~~~ :20:1: note: expanded from here __do_outsw ^ arch/powerpc/include/asm/io.h:581:58: note: expanded from macro '__do_outsw' #define __do_outsw(p, b, n) writesw((PCI_IO_ADDR)_IO_BASE+(p),(b),(n)) ~~~~~~~~~~~~~~~~~~~~~^ In file included from drivers/virt/fsl_hypervisor.c:33: In file included from include/linux/pagemap.h:11: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from arch/powerpc/include/asm/hardirq.h:6: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/powerpc/include/asm/io.h:640: arch/powerpc/include/asm/io-defs.h:53:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] DEF_PCI_AC_NORET(outsl, (unsigned long p, const void *b, unsigned long c), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/powerpc/include/asm/io.h:637:3: note: expanded from macro 'DEF_PCI_AC_NORET' __do_##name al; \ ^~~~~~~~~~~~~~ :22:1: note: expanded from here __do_outsl ^ arch/powerpc/include/asm/io.h:582:58: note: expanded from macro '__do_outsl' #define __do_outsl(p, b, n) writesl((PCI_IO_ADDR)_IO_BASE+(p),(b),(n)) ~~~~~~~~~~~~~~~~~~~~~^ >> drivers/virt/fsl_hypervisor.c:799:52: error: too many arguments to function call, expected 2, have 3 ret = of_property_present(node, "fsl,hv-version", NULL); ~~~~~~~~~~~~~~~~~~~ ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ include/linux/of.h:1222:20: note: 'of_property_present' declared here static inline bool of_property_present(const struct device_node *np, const char *propname) ^ 6 warnings and 1 error generated. vim +799 drivers/virt/fsl_hypervisor.c 778 779 /* 780 * Return TRUE if we're running under FSL hypervisor 781 * 782 * This function checks to see if we're running under the Freescale 783 * hypervisor, and returns zero if we're not, or non-zero if we are. 784 * 785 * First, it checks if MSR[GS]==1, which means we're running under some 786 * hypervisor. Then it checks if there is a hypervisor node in the device 787 * tree. Currently, that means there needs to be a node in the root called 788 * "hypervisor" and which has a property named "fsl,hv-version". 789 */ 790 static int has_fsl_hypervisor(void) 791 { 792 struct device_node *node; 793 int ret; 794 795 node = of_find_node_by_path("/hypervisor"); 796 if (!node) 797 return 0; 798 > 799 ret = of_property_present(node, "fsl,hv-version", NULL); 800 801 of_node_put(node); 802 803 return ret; 804 } 805 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests