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 C92CBC6FD1F for ; Tue, 2 Apr 2024 23:59:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Si4EbQ85pt83o1ZleutLTMRO/FiflzJPvJHdwYCFMrg=; b=uwLhdPIePXuB6y P3XITKtFjYOlOwYPPGm9EQRPW6JzHmGcwnER3gagOizaOCzdBVue+J0OuuuQ43ImYHPQKu97VuTJJ SNFYbfM2M4g5cR7gYe5dgvq4RHqpNKfbyxLG4uf8MHzbSoUIc/d0/zmBdEP41p8MU4j1xnQgU5lcg BV7R/C4+LDiqL/2mXr11x9U8khOj6BgXqoRn9a7OHZ6IkD7TgfkxDFA6bySwg2FXorY1ekQgoD95K 2tdb1SKKBGQmWkBUxBbCtlMPkmOAhaIbxhlxEEld2xmCqMKBQdlNxxR4N3awcrF9AZMYqRJ/8nq2l zR+5DoMeWqDSILoyV6/A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rro1n-0000000DGd6-0hBK; Tue, 02 Apr 2024 23:58:55 +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 1rro1k-0000000DGb3-1DBs for linux-arm-kernel@lists.infradead.org; Tue, 02 Apr 2024 23:58:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712102332; x=1743638332; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=AiuyQ6KpY5OwIl/kOANr37LCmsygVJ4gTNLbVO+SnCQ=; b=GSgE6d2b4WpVQr/H4SOQKvT/BN7pU8ImJMUCkg6ROu+oKDAWoOiDU6wF ver1c94fPFGl8PsHBu+ePJZfJ7V1C5vBIziZn8mqQ8b6cE7DzRwIgXFwQ pmM2NnNlCxLo6QYtNgzVatI3AJsIfkQbwRXNz+ahqP1O9kFxGCjbiuY28 N8qO3TKPNZPLRDzjnqlL4HgbEtwbki1+AGdfqx/fpkSsyYvLnOU+7hRje PobrMFPR2/5Z2rE9suEf9948qRkDbzpYgLKwp/oieYu2p77Ra68ViPmem N5PIC6A6ai01d8h5n/lXcoggX11qEFJsl7UaHhGnwZrsW93EXmRVJVJij w==; X-CSE-ConnectionGUID: KwXddNu8RKisjzFBOqpuJQ== X-CSE-MsgGUID: TxusxAIZRnKIFkM/+s32DQ== X-IronPort-AV: E=McAfee;i="6600,9927,11032"; a="24800366" X-IronPort-AV: E=Sophos;i="6.07,176,1708416000"; d="scan'208";a="24800366" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Apr 2024 16:58:46 -0700 X-CSE-ConnectionGUID: /0rSqutbSYGezZVceapNnQ== X-CSE-MsgGUID: lJpG4qfoR8CBvsXJYGdm2g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,176,1708416000"; d="scan'208";a="18058838" Received: from lkp-server02.sh.intel.com (HELO 90ee3aa53dbd) ([10.239.97.151]) by orviesa010.jf.intel.com with ESMTP; 02 Apr 2024 16:58:43 -0700 Received: from kbuild by 90ee3aa53dbd with local (Exim 4.96) (envelope-from ) id 1rro1Y-0001dt-1Y; Tue, 02 Apr 2024 23:58:40 +0000 Date: Wed, 3 Apr 2024 07:58:05 +0800 From: kernel test robot To: Dawei Li , will@kernel.org, mark.rutland@arm.com Cc: oe-kbuild-all@lists.linux.dev, xueshuai@linux.alibaba.com, renyu.zj@linux.alibaba.com, yangyicong@hisilicon.com, jonathan.cameron@huawei.com, andersson@kernel.org, konrad.dybcio@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Dawei Li Subject: Re: [PATCH 4/9] perf/arm_dsu: Avoid explicit cpumask var allocation from stack Message-ID: <202404030702.vL5Ep98R-lkp@intel.com> References: <20240402105610.1695644-5-dawei.li@shingroup.cn> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240402105610.1695644-5-dawei.li@shingroup.cn> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240402_165852_385622_B03D3473 X-CRM114-Status: GOOD ( 13.18 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Dawei, kernel test robot noticed the following build errors: [auto build test ERROR on soc/for-next] [also build test ERROR on linus/master v6.9-rc2 next-20240402] [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/Dawei-Li/perf-alibaba_uncore_drw-Avoid-explicit-cpumask-var-allocation-from-stack/20240402-192244 base: https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git for-next patch link: https://lore.kernel.org/r/20240402105610.1695644-5-dawei.li%40shingroup.cn patch subject: [PATCH 4/9] perf/arm_dsu: Avoid explicit cpumask var allocation from stack config: arm64-defconfig (https://download.01.org/0day-ci/archive/20240403/202404030702.vL5Ep98R-lkp@intel.com/config) compiler: aarch64-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240403/202404030702.vL5Ep98R-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/202404030702.vL5Ep98R-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/perf/arm_dsu_pmu.c: In function 'dsu_pmu_get_online_cpu_any_but': >> drivers/perf/arm_dsu_pmu.c:243:31: error: passing argument 1 of 'cpumask_any_but' from incompatible pointer type [-Werror=incompatible-pointer-types] 243 | ret = cpumask_any_but(&online_supported, cpu); | ^~~~~~~~~~~~~~~~~ | | | struct cpumask (*)[1] In file included from arch/arm64/include/asm/cpufeature.h:26, from arch/arm64/include/asm/ptrace.h:11, from arch/arm64/include/asm/irqflags.h:10, from include/linux/irqflags.h:18, from include/linux/spinlock.h:59, from include/linux/mmzone.h:8, from include/linux/gfp.h:7, from include/linux/slab.h:16, from include/linux/resource_ext.h:11, from include/linux/acpi.h:13, from drivers/perf/arm_dsu_pmu.c:14: include/linux/cpumask.h:379:52: note: expected 'const struct cpumask *' but argument is of type 'struct cpumask (*)[1]' 379 | unsigned int cpumask_any_but(const struct cpumask *mask, unsigned int cpu) | ~~~~~~~~~~~~~~~~~~~~~~^~~~ cc1: some warnings being treated as errors vim +/cpumask_any_but +243 drivers/perf/arm_dsu_pmu.c 232 233 static unsigned int dsu_pmu_get_online_cpu_any_but(struct dsu_pmu *dsu_pmu, int cpu) 234 { 235 cpumask_var_t online_supported; 236 unsigned int ret; 237 238 if (!alloc_cpumask_var(&online_supported, GFP_KERNEL)) 239 return -ENOMEM; 240 241 cpumask_and(online_supported, 242 &dsu_pmu->associated_cpus, cpu_online_mask); > 243 ret = cpumask_any_but(&online_supported, cpu); 244 245 free_cpumask_var(online_supported); 246 247 return ret; 248 } 249 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel