Received: by 2002:a4f:b056:0:0:0:0:0 with SMTP id m22csp2661187ivi; Tue, 15 Sep 2020 16:00:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgHEr6xJC8UBJjFfL/V55G1KMmNLUmw9hzRp4nsyDepRTZIukexY1DVdLxxThNPhmJCVl+ X-Received: by 2002:a17:906:f157:: with SMTP id gw23mr22193797ejb.325.1600210841599; Tue, 15 Sep 2020 16:00:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600210841; cv=none; d=google.com; s=arc-20160816; b=xvlYyXm6R2e9NNI8SvJqF03ZsC7WFAZLMfiAEs7QOnDux0/6NL72DF8J00sPoAgRi9 RWzZj9Tac2HcGabl5QPe4O89E53vm/PsB/quzcFDsa3OOR08ko8imKmG8z547ACrlBho TcdoJ+b8kTvN4zXI7vPokReepeahmqB0R3KxTixHm9bmKAaRuQvwQTrbzeTaGY8lOZIu 80BbiLTXipkjHd9J4u1E0M+CvRo0PHruzCmQ2bfcXNH38KO+hmCw3DCKGWLv0woOpaZg g8lNOC6xKLpmwW5098z5D3mxQuTdv7GmiZQc6DMLdGa45bZT+3APfqb+gHnhgu14GCbT zOVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=Rvss1R9g/mnnZ6+cTfzd7Z5fWnUHDEhOfFzP9n58bug=; b=hK1+NdFoI9+blpxzxQZS64pZWzdUrWfJbK5jABn51GShrWGIl3+D8FW53fficPurwZ tmDm6MCTiQzoBDsDBp3kkqLdbyuJAT0aDOfTv9BGJG2sqWeyUEOmUb3MoJ+TIu0TEPzr OuR+dQtTwDR6sYUFbyk2nwVtm2hz0zwXFRgGYUItIdMntfeIgnXj6f1kqfAF076GbLVQ /was71J3I4TA9u7rq2M3TwdPeR5G8J468LX3CrL9XVA/D8fDrn4szFxAEOtU3Wq1QdmQ GZcBTbvPvZCp9M2b/qEZtZsyEF1hp0MqMF9HYPaaU19D1GpOUJqc+6g27MAQuGJPHkXR 391A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r26si11279771eja.484.2020.09.15.16.00.18; Tue, 15 Sep 2020 16:00:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727290AbgIOW7l (ORCPT + 99 others); Tue, 15 Sep 2020 18:59:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727474AbgIOW7T (ORCPT ); Tue, 15 Sep 2020 18:59:19 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAC6CC06174A; Tue, 15 Sep 2020 15:59:18 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id C70C713B635E9; Tue, 15 Sep 2020 15:42:30 -0700 (PDT) Date: Tue, 15 Sep 2020 15:59:17 -0700 (PDT) Message-Id: <20200915.155917.2106978581769780446.davem@davemloft.net> To: geert+renesas@glider.be Cc: ayush.sawal@chelsio.com, vinay.yadav@chelsio.com, rohitm@chelsio.com, kuba@kernel.org, arnd@arndb.de, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] chelsio/chtls: Re-add dependencies on CHELSIO_T4 to fix modular CHELSIO_T4 From: David Miller In-Reply-To: <20200915093551.29368-1-geert+renesas@glider.be> References: <20200915093551.29368-1-geert+renesas@glider.be> X-Mailer: Mew version 6.8 on Emacs 27.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [2620:137:e000::1:9]); Tue, 15 Sep 2020 15:42:31 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Geert Uytterhoeven Date: Tue, 15 Sep 2020 11:35:51 +0200 > As CHELSIO_INLINE_CRYPTO is bool, and CHELSIO_T4 is tristate, the > dependency of CHELSIO_INLINE_CRYPTO on CHELSIO_T4 is not sufficient to > protect CRYPTO_DEV_CHELSIO_TLS and CHELSIO_IPSEC_INLINE. The latter two > are also tristate, hence if CHELSIO_T4=n, they cannot be builtin, as > that would lead to link failures like: > > drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_main.c:259: undefined reference to `cxgb4_port_viid' > > and > > drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/chcr_ipsec.c:752: undefined reference to `cxgb4_reclaim_completed_tx' > > Fix this by re-adding dependencies on CHELSIO_T4 to tristate symbols. > The dependency of CHELSIO_INLINE_CRYPTO on CHELSIO_T4 is kept to avoid > asking the user. > > Fixes: 6bd860ac1c2a0ec2 ("chelsio/chtls: CHELSIO_INLINE_CRYPTO should depend on CHELSIO_T4") > Reported-by: kernel test robot > Signed-off-by: Geert Uytterhoeven Applied, thank you.