From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 79B8B1E766F; Fri, 13 Dec 2024 18:38:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734115116; cv=none; b=hLqyMj6wNwKzVYdBwzJ2BsLLFMg4hn4oQAPPu/9i0EmxKbvNrymdBh1VPSNGly8t3tCEBsUoIgwoICHBjOmyREJ6eBdQ77GX5Y0/gDeDo4jwuOic1qSZLX7gkEndXJf+A2p8qwUn8cGMa0GN3MExrNVfagZ1EeKzWIkHTydc1R0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734115116; c=relaxed/simple; bh=YdECUCP8bMmugbey+xGVES8PchuBNXXBe8V0WAOZO0A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=hN9q7YsoPka80NJ3KKhv1YkhuBPQJHZv6kHMES3aUvvIKK9Qly332rhrllyqzFyjcUHZx/++nsOHNUBU9zk/4erPq49wfsz9gQF5k4djM20m6VhDGc5XmYm4B13Tu10u+dtFmdHoC2RWPS7F9UppSRh0uvtDj35FSCdScMGMBwo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tlRdTqV9; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tlRdTqV9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BF145C4CED0; Fri, 13 Dec 2024 18:38:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1734115116; bh=YdECUCP8bMmugbey+xGVES8PchuBNXXBe8V0WAOZO0A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tlRdTqV9/LphXPkvitkNcwFMu9IVGpcuch0dH35aqqVfpvHXShBm7qzccI0a1M+AB JmY1S8lMazrzBy0L1YSl3lkxEFvL9OOCPK68AtKDAfhAMA6/b3PVw7WQ+DFZmfJGbE ROIy0s9DeSk4t/++8VD9jCyOf7wWnA7+3hb5LCUxRd+r4vbx+NmCBaM9/cPTIhJ1I/ 1jJvgjxJmh5Kjm952P2xU/ByDJkz4+9EJ0srjlZqNx5rM+z+g0r6dnY0Ogc95FOTYD 7NjnbHUT/MqXZgeMq2wCDU2G2VYHLq5Tte3lNX2YohHSv2Y55Mgx5NymkPQhiOmMaI R7csttpti9Ueg== Date: Fri, 13 Dec 2024 18:38:30 +0000 From: Simon Horman To: Arnd Bergmann Cc: Sunil Goutham , Geetha sowjanya , Subbaraya Sundeep , hariprasad , Bharat Bhushan , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Arnd Bergmann , Zhipeng Lu , Dipendra Khadka , Ratheesh Kannoth , Sai Krishna , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] octeontx2-af: fix build regression without CONFIG_DCB Message-ID: <20241213183830.GD561418@kernel.org> References: <20241213083228.2645757-1-arnd@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20241213083228.2645757-1-arnd@kernel.org> On Fri, Dec 13, 2024 at 09:32:18AM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > When DCB is disabled, the pfc_en struct member cannot be accessed: > > drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c: In function 'otx2_is_pfc_enabled': > drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c:22:48: error: 'struct otx2_nic' has no member named 'pfc_en' > 22 | return IS_ENABLED(CONFIG_DCB) && !!pfvf->pfc_en; > | ^~ > drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c: In function 'otx2_nix_config_bp': > drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c:1755:33: error: 'IEEE_8021QAZ_MAX_TCS' undeclared (first use in this function) > 1755 | req->chan_cnt = IEEE_8021QAZ_MAX_TCS; > | ^~~~~~~~~~~~~~~~~~~~ > > Move the member out of the #ifdef block to avoid putting back another > check in the source file and add the missing include file unconditionally. > > Fixes: a7ef63dbd588 ("octeontx2-af: Disable backpressure between CPT and NIX") > Signed-off-by: Arnd Bergmann Reviewed-by: Simon Horman I think a nice follow-up would be to move pfc_en so there is no/less unused space around it.