Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp2879625rwo; Mon, 24 Jul 2023 02:47:09 -0700 (PDT) X-Google-Smtp-Source: APBJJlHt3BgPirAwQzBJj+KxsU5Afla78/N431FJoM5t1gcHDQZWV/4y1toLjjVPiqwBKfq7IoJW X-Received: by 2002:a05:6402:799:b0:521:8777:b00d with SMTP id d25-20020a056402079900b005218777b00dmr6697411edy.15.1690192028961; Mon, 24 Jul 2023 02:47:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690192028; cv=none; d=google.com; s=arc-20160816; b=g24INL6xlzbHw0AXsNgTGNf/2O0SqqTVJFYGRp+DnYm39mwVRmrDtnEL2+j1aC/Jia 9AkYKOXMn4yrOkPCieJSjAnInWGrQyy0hyiU8WRhPUd9VD6lQH+GynD7NjjPHNGP73gV KgE6tsoNyQ1heFkkJAAEYf85CxPkCgUrQsJn9NnowwCB7sKAH2CUad2huF/xGviX+l+V CxPMJ5w89Vs8FQP6Hpc6nSRwXOQLBTvYtsg47nm3jy8nRkprVtuOTJOvIf3ti3/sHf6S +tlk1WNnfCQUIdmOvrWlZDnZkLjoUBVX9z6pDL/mSNqXhGXjz0bcB+Uz1d38vR5IrWg2 /ZOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=p4Sho1LQGznbazRnTaP8mjq5LwOU+7tOBSQDELTgigQ=; fh=5daTAJJZ/MBaGvZ8f8qCLRtMfYTtUmV9UlQvjqa2TkM=; b=o6AUi9mAEha5K6aoAwdBT9fe8/oMv4wjKqDwW6+kqTT1JHJFBET5qk41qFoQ7rkEJF AoC5bDIUSfKoKpexkBft2mUF7mTpuSp2ilu8E+dz21nQTDFYcjcgXItg+BHnXQ1bXfl8 V8sQzh3yTwnnFxD+8x+GX4dpFCJAPhQRlRy3a8HF56maForYt3287J96Bx09i0H6pZ+h swXSxnFUSr/8mQIdHrO0hTBmO/FbXzmseKOY2/pIc2c4MjWOoRrwL5DTTV3L02KIjwPd sDAAg6+ePneqYrSYhGbjp+619FJEQHkcXTv/VAzZJOCl1313X0GVFsMqd/uF3hqfQrEK QNZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=g1QXd654; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d5-20020a50fb05000000b0051e0fa08e8csi6016204edq.284.2023.07.24.02.46.44; Mon, 24 Jul 2023 02:47:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=g1QXd654; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232098AbjGXJBK (ORCPT + 99 others); Mon, 24 Jul 2023 05:01:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232091AbjGXJAw (ORCPT ); Mon, 24 Jul 2023 05:00:52 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BB4F10C7 for ; Mon, 24 Jul 2023 02:00:51 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 35A7360FF8 for ; Mon, 24 Jul 2023 09:00:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 40843C433C7; Mon, 24 Jul 2023 09:00:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690189249; bh=zu3C9iFBll2v0WdGfx7jp6XrySSQzyIf+EHmsquer/E=; h=From:To:Cc:Subject:Date:From; b=g1QXd6543W4mZPZh8Ciqd/276N+0FLtV6KrVWBsvENZ5/lWRnL7GyYBjaxxxIvuV7 xUkmoGHWVIbkH32urpyamGJOkI8coIorpIXeU2LENsMT3TbKsuBJnEgZA0Z3s1G1ho aUTWUTqiUJGE3YG4ZnjCmKsub9sqXvi5Dc5TpV95yv0iTJpccNntJ3IfkWL7UUEq4s /R9b+WL95ehxHAyU3GfTgn3II4GPUm13fZoh+uxiyKDv/Okaw4gd26NC+6a0FTficH LhBqB9bcfdN6u3jppDtGBalA/3t5vXaktF/rcKbwyYGm3V3SbbbeeqFJJMb5IRU6Tj LBhiLhFBNp99g== From: Ilia Lin To: steffen.klassert@secunet.com, herbert@gondor.apana.org.au, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, jeffrey.t.kirsher@intel.com Subject: [PATCH] xfrm: kconfig: Fix XFRM_OFFLOAD dependency on XFRM Date: Mon, 24 Jul 2023 12:00:44 +0300 Message-Id: <20230724090044.2668064-1-ilia.lin@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If XFRM_OFFLOAD is configured, but XFRM is not, it will cause compilation error on include xfrm.h: C 05:56:39 In file included from /src/linux/kernel_platform/msm-kernel/net/core/sock.c:127: C 05:56:39 /src/linux/kernel_platform/msm-kernel/include/net/xfrm.h:1932:30: error: no member named 'xfrm' in 'struct dst_entry' C 05:56:39 struct xfrm_state *x = dst->xfrm; C 05:56:39 ~~~ ^ Making the XFRM_OFFLOAD select the XFRM. Fixes: 48e01e001da31 ("ixgbe/ixgbevf: fix XFRM_ALGO dependency") Reported-by: Ilia Lin Signed-off-by: Ilia Lin --- net/xfrm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/net/xfrm/Kconfig b/net/xfrm/Kconfig index 3adf31a83a79a..3fc2c1bcb5bbe 100644 --- a/net/xfrm/Kconfig +++ b/net/xfrm/Kconfig @@ -10,6 +10,7 @@ config XFRM config XFRM_OFFLOAD bool + select XFRM config XFRM_ALGO tristate -- 2.25.1