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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CB93AC52D6F for ; Wed, 21 Aug 2024 18:09:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=mYT/7ZeB8oiLEwcKg0Hkbfd81S80JnJ/DuE/aMG7iLM=; b=oUGMPLQ1vp4jvpEVIATBREDHN9 IbqyMxoLrdwlsZqOJq+a+ZdmlaUP8Qcv7+Zm+EuyPfn7XORNDMGSMTu9V5ME08U4FP/YaO3TXUCZA PiX2etU/SA+aS7w/ij2fYc2QZ7fADc29HlhQt3Hlm64Yc+fm6FjJwj5MqQ0vGrliFjNyutewKidMs 19WZhVKPsORhWuNvURivKkQ079GpdWtaU6Iyoey9eA+qNJ7M9lWd1uh8xNe2a2P498KgUHdWxp76b XsyV+ww0HaaE4v7tDhK9QfuDLwlB6VPBToH1Jq/6FqSdo1YB1LGKqj53byeYSF/p7oWUz+NBbXN+5 dF0ImIgw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sgpmB-0000000A1CY-0RP3; Wed, 21 Aug 2024 18:09:43 +0000 Received: from mgamail.intel.com ([192.198.163.8]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sgplP-0000000A10k-3U6g; Wed, 21 Aug 2024 18:08:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1724263736; x=1755799736; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=/Gi8iWabs4ywesTqUytFjU5VLWGq7rK1B8LWGnTuEeE=; b=Im5nrjoarIt4XZdXbKyM6XKkYoWO5DCnbhdfFQRZMgq6zx3FTJO57sxA WPxmr1JkgHSSkTIOV6H4wc6joemQlW9uF2Wm9x3bdjA8nusrIyNlQDj+z SoyRR0qXj4X4tmfa/IcCAFgUeJZhV+Z/UaSBj+D33v0fUUS8aT0Txu8+Y IdbxV0JPh1M8fWI2HjU0PVTrTvzPDxK90IsRspkWE1FetIB/PKXqay0b/ R5tD/yEVyV6rFncknLATWJ92Y8V61qP/2dPTzFXcwIv7xO2Y536z044ie MQdn832Qi/vTvq9hr1wbwYoMwF8Oo043W3/rpvoSqu7UoVOTcvXi+NiWz w==; X-CSE-ConnectionGUID: Z3ia/M3uRmCW31d7vqDLTQ== X-CSE-MsgGUID: LeNFFqoWRViUmEdRmuLTLA== X-IronPort-AV: E=McAfee;i="6700,10204,11171"; a="40155093" X-IronPort-AV: E=Sophos;i="6.10,164,1719903600"; d="scan'208";a="40155093" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Aug 2024 10:57:59 -0700 X-CSE-ConnectionGUID: 6mXNKCatQ/SxV8fNv/rOyQ== X-CSE-MsgGUID: FJVZXk0iRJ2t2K1mrYqp9A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,164,1719903600"; d="scan'208";a="61027135" Received: from lkp-server01.sh.intel.com (HELO 9a732dc145d3) ([10.239.97.150]) by orviesa010.jf.intel.com with ESMTP; 21 Aug 2024 10:57:52 -0700 Received: from kbuild by 9a732dc145d3 with local (Exim 4.96) (envelope-from ) id 1sgpaf-000Bl6-2a; Wed, 21 Aug 2024 17:57:49 +0000 Date: Thu, 22 Aug 2024 01:56:56 +0800 From: kernel test robot To: Andrea della Porta , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Broadcom internal kernel review list , Linus Walleij , Catalin Marinas , Will Deacon , Derek Kiernan , Dragan Cvetic , Arnd Bergmann , Greg Kroah-Hartman , Nicolas Ferre , Claudiu Beznea , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Saravana Kannan , Bjorn Helgaas , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, netdev@vger.kernel.org Subject: Re: [PATCH 08/11] misc: rp1: RaspberryPi RP1 misc driver Message-ID: <202408220150.bmFMT5Bk-lkp@intel.com> References: <5954e4dccc0e158cf434d2c281ad57120538409b.1724159867.git.andrea.porta@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5954e4dccc0e158cf434d2c281ad57120538409b.1724159867.git.andrea.porta@suse.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240821_110855_911883_8D910A36 X-CRM114-Status: GOOD ( 15.92 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Andrea, kernel test robot noticed the following build warnings: [auto build test WARNING on clk/clk-next] [also build test WARNING on robh/for-next char-misc/char-misc-testing char-misc/char-misc-next char-misc/char-misc-linus linus/master v6.11-rc4 next-20240821] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Andrea-della-Porta/dt-bindings-clock-Add-RaspberryPi-RP1-clock-bindings/20240821-023901 base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next patch link: https://lore.kernel.org/r/5954e4dccc0e158cf434d2c281ad57120538409b.1724159867.git.andrea.porta%40suse.com patch subject: [PATCH 08/11] misc: rp1: RaspberryPi RP1 misc driver config: mips-allyesconfig (https://download.01.org/0day-ci/archive/20240822/202408220150.bmFMT5Bk-lkp@intel.com/config) compiler: mips-linux-gcc (GCC) 14.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240822/202408220150.bmFMT5Bk-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/202408220150.bmFMT5Bk-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from include/linux/device.h:15, from include/linux/pci.h:37, from drivers/misc/rp1/rp1-pci.c:18: drivers/misc/rp1/rp1-pci.c: In function 'dump_bar': >> drivers/misc/rp1/rp1-pci.c:75:18: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type 'resource_size_t' {aka 'unsigned int'} [-Wformat=] 75 | "bar%d len 0x%llx, start 0x%llx, end 0x%llx, flags, 0x%lx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/dev_printk.h:110:30: note: in definition of macro 'dev_printk_index_wrap' 110 | _p_func(dev, fmt, ##__VA_ARGS__); \ | ^~~ include/linux/dev_printk.h:160:58: note: in expansion of macro 'dev_fmt' 160 | dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~ drivers/misc/rp1/rp1-pci.c:74:9: note: in expansion of macro 'dev_info' 74 | dev_info(&pdev->dev, | ^~~~~~~~ drivers/misc/rp1/rp1-pci.c:75:34: note: format string is defined here 75 | "bar%d len 0x%llx, start 0x%llx, end 0x%llx, flags, 0x%lx\n", | ~~~^ | | | long long unsigned int | %x drivers/misc/rp1/rp1-pci.c:75:18: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 5 has type 'resource_size_t' {aka 'unsigned int'} [-Wformat=] 75 | "bar%d len 0x%llx, start 0x%llx, end 0x%llx, flags, 0x%lx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/dev_printk.h:110:30: note: in definition of macro 'dev_printk_index_wrap' 110 | _p_func(dev, fmt, ##__VA_ARGS__); \ | ^~~ include/linux/dev_printk.h:160:58: note: in expansion of macro 'dev_fmt' 160 | dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~ drivers/misc/rp1/rp1-pci.c:74:9: note: in expansion of macro 'dev_info' 74 | dev_info(&pdev->dev, | ^~~~~~~~ drivers/misc/rp1/rp1-pci.c:75:48: note: format string is defined here 75 | "bar%d len 0x%llx, start 0x%llx, end 0x%llx, flags, 0x%lx\n", | ~~~^ | | | long long unsigned int | %x drivers/misc/rp1/rp1-pci.c:75:18: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 6 has type 'resource_size_t' {aka 'unsigned int'} [-Wformat=] 75 | "bar%d len 0x%llx, start 0x%llx, end 0x%llx, flags, 0x%lx\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/dev_printk.h:110:30: note: in definition of macro 'dev_printk_index_wrap' 110 | _p_func(dev, fmt, ##__VA_ARGS__); \ | ^~~ include/linux/dev_printk.h:160:58: note: in expansion of macro 'dev_fmt' 160 | dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~ drivers/misc/rp1/rp1-pci.c:74:9: note: in expansion of macro 'dev_info' 74 | dev_info(&pdev->dev, | ^~~~~~~~ drivers/misc/rp1/rp1-pci.c:75:60: note: format string is defined here 75 | "bar%d len 0x%llx, start 0x%llx, end 0x%llx, flags, 0x%lx\n", | ~~~^ | | | long long unsigned int | %x vim +75 drivers/misc/rp1/rp1-pci.c > 18 #include 19 #include 20 #include 21 22 #include 23 24 #define RP1_B0_CHIP_ID 0x10001927 25 #define RP1_C0_CHIP_ID 0x20001927 26 27 #define RP1_PLATFORM_ASIC BIT(1) 28 #define RP1_PLATFORM_FPGA BIT(0) 29 30 #define RP1_DRIVER_NAME "rp1" 31 32 #define RP1_ACTUAL_IRQS RP1_INT_END 33 #define RP1_IRQS RP1_ACTUAL_IRQS 34 #define RP1_HW_IRQ_MASK GENMASK(5, 0) 35 36 #define RP1_SYSCLK_RATE 200000000 37 #define RP1_SYSCLK_FPGA_RATE 60000000 38 39 enum { 40 SYSINFO_CHIP_ID_OFFSET = 0, 41 SYSINFO_PLATFORM_OFFSET = 4, 42 }; 43 44 #define REG_SET 0x800 45 #define REG_CLR 0xc00 46 47 /* MSIX CFG registers start at 0x8 */ 48 #define MSIX_CFG(x) (0x8 + (4 * (x))) 49 50 #define MSIX_CFG_IACK_EN BIT(3) 51 #define MSIX_CFG_IACK BIT(2) 52 #define MSIX_CFG_TEST BIT(1) 53 #define MSIX_CFG_ENABLE BIT(0) 54 55 #define INTSTATL 0x108 56 #define INTSTATH 0x10c 57 58 extern char __dtbo_rp1_pci_begin[]; 59 extern char __dtbo_rp1_pci_end[]; 60 61 struct rp1_dev { 62 struct pci_dev *pdev; 63 struct device *dev; 64 struct clk *sys_clk; 65 struct irq_domain *domain; 66 struct irq_data *pcie_irqds[64]; 67 void __iomem *bar1; 68 int ovcs_id; 69 bool level_triggered_irq[RP1_ACTUAL_IRQS]; 70 }; 71 72 static void dump_bar(struct pci_dev *pdev, unsigned int bar) 73 { 74 dev_info(&pdev->dev, > 75 "bar%d len 0x%llx, start 0x%llx, end 0x%llx, flags, 0x%lx\n", 76 bar, 77 pci_resource_len(pdev, bar), 78 pci_resource_start(pdev, bar), 79 pci_resource_end(pdev, bar), 80 pci_resource_flags(pdev, bar)); 81 } 82 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki