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 lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (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 A935CC4332F for ; Tue, 31 Oct 2023 17:14:56 +0000 (UTC) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=MJHc0FcO; dkim-atps=neutral Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4SKcFq1RTKz3cVb for ; Wed, 1 Nov 2023 04:14:55 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=MJHc0FcO; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=2604:1380:40e1:4800::1; helo=sin.source.kernel.org; envelope-from=helgaas@kernel.org; receiver=lists.ozlabs.org) Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4SKcDt2ndbz2yDS for ; Wed, 1 Nov 2023 04:14:06 +1100 (AEDT) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 8ABFCCE0B3A; Tue, 31 Oct 2023 17:14:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED629C433C7; Tue, 31 Oct 2023 17:14:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698772444; bh=npFSndHToZSvaMoEZZSmm7GPiJg3OA3ptZH/j0wep38=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=MJHc0FcODghJfmml4Q6bMCK8IwpbGLNIR7t+p1e6pVaz9jou8tZG7YAaDuxbuyN0B vcCLYsu+qUKw6P70bdmfQkxCoNs3yX4qlMyPbflAI5Lls0y8g6/42kzkkN3GEqmb08 dUEzOAA5V+Wp2ERmQNyLr+zw1c1mzjw6bNmEPll+opnfPPnXQ4zlGn3aNNfQVJ7suW 2FVr//Yl77jJUUEAxRM5uN5Ow6tALVhlNciXwwYTXfhxCzM5PNgkxuBOmXdOBrxyok 4oQYdLcBG0NGL7XgTbP/SxANDXwFKD6Ya3SbDvrk1M5btfMLYj+A9cyjAxyypGMgYT h/QUfaOsQzyBA== Date: Tue, 31 Oct 2023 12:14:01 -0500 From: Bjorn Helgaas To: Nick Desaulniers Subject: Re: [pci:controller/xilinx-xdma] BUILD REGRESSION 8d786149d78c7784144c7179e25134b6530b714b Message-ID: <20231031171401.GA17989@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Arnd Bergmann , kernel test robot , linux-pci@vger.kernel.org, Nathan Chancellor , linuxppc-dev@lists.ozlabs.org, Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Tue, Oct 31, 2023 at 09:59:29AM -0700, Nick Desaulniers wrote: > On Tue, Oct 31, 2023 at 7:56 AM Bjorn Helgaas wrote: > > On Sat, Oct 28, 2023 at 08:22:54PM +0800, kernel test robot wrote: > > > tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git controller/xilinx-xdma > > > branch HEAD: 8d786149d78c7784144c7179e25134b6530b714b PCI: xilinx-xdma: Add Xilinx XDMA Root Port driver > > > > > > Error/Warning ids grouped by kconfigs: > > > > > > clang_recent_errors > > > `-- powerpc-pmac32_defconfig > > > |-- arch-powerpc-sysdev-grackle.c:error:unused-function-grackle_set_stg-Werror-Wunused-function > > > |-- arch-powerpc-xmon-xmon.c:error:unused-function-get_output_lock-Werror-Wunused-function > > > `-- arch-powerpc-xmon-xmon.c:error:unused-function-release_output_lock-Werror-Wunused-function > > > > This report is close to useless. It doesn't show the complete error > > message, it doesn't show how to reproduce the issue, and the pci -next > > branch (including controller/xilinx-xdma) doesn't reference any of > > these functions: > > > > $ git grep -E "grackle_set_stg|get_output_lock|release_output_lock" | cat > > arch/powerpc/sysdev/grackle.c:static inline void grackle_set_stg(struct pci_controller* bp, int enable) > > arch/powerpc/sysdev/grackle.c: grackle_set_stg(hose, 1); > > arch/powerpc/xmon/xmon.c:static void get_output_lock(void) > > arch/powerpc/xmon/xmon.c:static void release_output_lock(void) > > arch/powerpc/xmon/xmon.c:static inline void get_output_lock(void) {} > > arch/powerpc/xmon/xmon.c:static inline void release_output_lock(void) {} > > arch/powerpc/xmon/xmon.c: get_output_lock(); > > arch/powerpc/xmon/xmon.c: release_output_lock(); > > arch/powerpc/xmon/xmon.c: get_output_lock(); > > arch/powerpc/xmon/xmon.c: release_output_lock(); > > arch/powerpc/xmon/xmon.c: get_output_lock(); > > arch/powerpc/xmon/xmon.c: release_output_lock(); > > arch/powerpc/xmon/xmon.c: get_output_lock(); > > arch/powerpc/xmon/xmon.c: release_output_lock(); > > > > That said, the unused functions do look legit: > > > > grackle_set_stg() is a static function and the only call is under > > "#if 0". > > Time to remove it then? Or is it a bug that it's not called? > Otherwise the definition should be behind the same preprocessor guards > as the caller. Same for the below. I don't really care whether we keep the warning or not. My real complaint is that the 0-day report fingered pci/controller/xilinx-xdma, which is completely unrelated, which is a waste of time. > > Same with get_output_lock() and release_output_lock(): they're static > > and always defined in xmon.c, but only called if either CONFIG_SMP or > > CONFIG_DEBUG_FS. > > > > But they're certainly not related to controller/xilinx-xdma, so I'm > > going to ignore them. > > > > Bjorn > > > > P.S. Nathan & Nick, I cc'd you because of this earlier report that > > also mentioned grackle_set_stg(): > > https://lore.kernel.org/lkml/202308121120.u2d3YPVt-lkp@intel.com/ > > > > -- > Thanks, > ~Nick Desaulniers