Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1083838pxk; Fri, 25 Sep 2020 05:58:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5C6euO9EnZQ7rbWB2ggPisctrrn+RuOgykQHNoaC2Ybbo1OQOpI2IZaQUafBDpZ3Afh0B X-Received: by 2002:a17:906:3495:: with SMTP id g21mr2477106ejb.121.1601038685843; Fri, 25 Sep 2020 05:58:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601038685; cv=none; d=google.com; s=arc-20160816; b=Q45pN27x7lLZ5Ynz1JDuBhEgrVnKplBw5efBhp+45vdCfQQZtOxvFDD5joEdAaIxga 2os9f5G0f5n1sXvdJJ/1bttOXiLDiLpHC/b1snWsl2fyIuP72u96MOgDqEXxzjXb71TC hyRxTZq/7BMw0fDaNz17HEDBXUIYyJ/urIXNqCZmYLXs0KuHiNfJ5tJoxswK+Vv2F5fV 9ijWpK/e4dCykvaKZiJQEKo/33m2FovKmgjK4Y5zLOb5pv7/iqUcVaS7FI+DJIu40rkb kj2DDI02onF0+N054vbbsd2iFsn90Y3VrLYDEfmdxnHiRwWhARg87WStP0Jp2vL7DzSn 7vAw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=QblYjK5N64FcicSaFtDaBnd4qwtr38+5UWpvn3l1dWg=; b=l1UOFZ4rmy32MHK1secvxiCmikA4C82v/ZoO78B9qFhUC0SPF98pw+IvA6eIHUt9Bq 3eepFIg0Ku8kCG8l3GF3Ku1YIxfOtmuQbZuVbLXqvziDX9wzQHxzyvjI/QGxxdSvtjnF 7vqBbHihPbX1dgzl4EACYsvcPMq/fgqEKl/XsPIbKZ7pppP4FkuYhEjxRdG8NfouwptA 9IUGSxhk9qvOdpqS+Y48S+D+9zbaGhboBli+y9b2huXGfDjn7ASVK9RgzNXvpyEzDwt+ FHOJjhLQrNW0kID5FaRzEVbx6ZWNMDU6rZ3TIOVjYGAonTTYbWPiyjhwZYJFqE6RyLbK HHRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=f4vpMcgg; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ci12si1774794ejc.448.2020.09.25.05.57.42; Fri, 25 Sep 2020 05:58:05 -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; dkim=pass header.i=@kernel.org header.s=default header.b=f4vpMcgg; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729641AbgIYMzF (ORCPT + 99 others); Fri, 25 Sep 2020 08:55:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:34226 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729635AbgIYMzB (ORCPT ); Fri, 25 Sep 2020 08:55:01 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4AC8321741; Fri, 25 Sep 2020 12:55:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601038500; bh=uRBqL4UMxaM/h/T1q8XpgguM/2SBpklTv/zEIpHhygs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f4vpMcggj9Sel+tcWP7qDj3nG31t/B/Sy/MvYzEWBVHx87J5mMohek3wrpGh0AgdF EU1XLih30YkVBTCUIU9QOTP7UzD6ZcA2CGNSw8lqfIkAa3dcYGW9p6H9IzADpqhaFO 2Te674KnKym05Jxj5WluV81UJE026dD8nKjmZOE4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Necip Fazil Yildiran , "David S. Miller" Subject: [PATCH 4.19 12/37] net: ipv6: fix kconfig dependency warning for IPV6_SEG6_HMAC Date: Fri, 25 Sep 2020 14:48:40 +0200 Message-Id: <20200925124722.778441569@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200925124720.972208530@linuxfoundation.org> References: <20200925124720.972208530@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Necip Fazil Yildiran [ Upstream commit db7cd91a4be15e1485d6b58c6afc8761c59c4efb ] When IPV6_SEG6_HMAC is enabled and CRYPTO is disabled, it results in the following Kbuild warning: WARNING: unmet direct dependencies detected for CRYPTO_HMAC Depends on [n]: CRYPTO [=n] Selected by [y]: - IPV6_SEG6_HMAC [=y] && NET [=y] && INET [=y] && IPV6 [=y] WARNING: unmet direct dependencies detected for CRYPTO_SHA1 Depends on [n]: CRYPTO [=n] Selected by [y]: - IPV6_SEG6_HMAC [=y] && NET [=y] && INET [=y] && IPV6 [=y] WARNING: unmet direct dependencies detected for CRYPTO_SHA256 Depends on [n]: CRYPTO [=n] Selected by [y]: - IPV6_SEG6_HMAC [=y] && NET [=y] && INET [=y] && IPV6 [=y] The reason is that IPV6_SEG6_HMAC selects CRYPTO_HMAC, CRYPTO_SHA1, and CRYPTO_SHA256 without depending on or selecting CRYPTO while those configs are subordinate to CRYPTO. Honor the kconfig menu hierarchy to remove kconfig dependency warnings. Fixes: bf355b8d2c30 ("ipv6: sr: add core files for SR HMAC support") Signed-off-by: Necip Fazil Yildiran Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/ipv6/Kconfig | 1 + 1 file changed, 1 insertion(+) --- a/net/ipv6/Kconfig +++ b/net/ipv6/Kconfig @@ -321,6 +321,7 @@ config IPV6_SEG6_LWTUNNEL config IPV6_SEG6_HMAC bool "IPv6: Segment Routing HMAC support" depends on IPV6 + select CRYPTO select CRYPTO_HMAC select CRYPTO_SHA1 select CRYPTO_SHA256