Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2001926rdb; Sun, 4 Feb 2024 10:11:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IHXWuVVfEeS61yAuhyXzvvtTyr6R5CemQZUuyfncSZZTb8/2FUFJ2m9ikHy4FBoLCsE3tTR X-Received: by 2002:a17:906:53d4:b0:a37:b1b7:89c5 with SMTP id p20-20020a17090653d400b00a37b1b789c5mr636467ejo.63.1707070297237; Sun, 04 Feb 2024 10:11:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707070297; cv=pass; d=google.com; s=arc-20160816; b=KUCFSToJGt4vGT36EwAduZk4pqHMjlK45aNojA4jxlOg1xNibB2Ptp1no8NySjxVCN 2H6uOl+v6CwGYmhrQxuIPNp3m3UHUqcLDcObEG4Fx1lxjw6OOcMkJkHAaTsgYs3NHtgN Ly3jXTDln1lsloP3PuRT2zUtR934P1v67jei0E+Ok+uPynVoekHD11QkuoU0uR3O9TrE icPHRLrvaAuSGdGnRc8wyo+OqhzREJXsLlVOTE0r4UPMK3qkJvORYloqUJmMcouF0XLH 1ikG/jTGsLrS3bKlHCFKC+W0uArZZLeT0bxL2yU5jNTBBMQ0VYzW0iXSSWlMa/B4UnCm e0Cw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature:message-id; bh=Iz4PfovZcdeRAA9dKaW7fvX3NpdAJ0oqEaz5XE4ra+A=; fh=U8ximDOattQ1HYGTJD3APS1wVl2uoOT+Ior/XhWbY8E=; b=Si7MYrYeKLrhGLKN7NOivdnaw81cj1yOZFns840U4jQOm02d9WoV3Eih41iWG+rVIr Tu6fTqnGG+4OMKPWvKrkNpYatMS65aGVqgZy7pFgdZeWqWS03f5pYyed/hKyX6d9vve+ jqR1W1KN4L7odvrTRFlXKs+Qz2v+nwOPrGGE0UOzNe4aOZSF3E4x7Dp565BBX36XrZH6 xzabUU0fOwUlz65Y7XQOZiYQFkbyzNZQUmjYOFfYzGxg7cjjoffxZJ3dQCHa+2q7WON1 /CfSVHelEV5qOnLYRsBSqBFmI52pfQQEDYPzSgDmcE5yCCXRFBFs7XdA7KT1I3/U4wgE yRVg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=XF7Kx1tL; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-51839-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51839-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev X-Forwarded-Encrypted: i=1; AJvYcCVgghVUVymnNBkjzRSinmhz2a6wYB2pklHEQuCtkG6TW/h0I8foENrR/+kFgUp2AUcHxJCnzuIs2rzTYOYXQigy40yApe9LmGheMtt1eg== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id jj23-20020a170907985700b00a329bc32ac7si3080892ejc.956.2024.02.04.10.11.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 10:11:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51839-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=XF7Kx1tL; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-51839-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51839-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 167A41F211E2 for ; Sun, 4 Feb 2024 18:11:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0192824A13; Sun, 4 Feb 2024 18:11:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="XF7Kx1tL" Received: from out-175.mta1.migadu.com (out-175.mta1.migadu.com [95.215.58.175]) (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 30BA8249EF for ; Sun, 4 Feb 2024 18:10:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707070259; cv=none; b=dfw4tbDe+JYMxkRbDDogCOsYo0fdwjexQqoOnvu+gsQz5wF/ET++dopTl3ubcguRIRFrI7hxJMpWNHWpsrysuxBisu+ksFZQ5C8j0O+oeVKLA301d9ewSV3wLxCQ9HgolhSp9vJ5U/ITPpctgnpeHKN8bgbRsSPtVuGuynx1c2I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707070259; c=relaxed/simple; bh=hP0Ll959tT8Te+dyQQNc1DXup/dUvQLfx4r90vM0POQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=iMC7jDObCDloE4rAYYcSBi1K2Gak3QfOwB2tS7RhtOX+MG8vUsE4QmBLsfjFyfkl1lrFirBWOCqn131OTocteQL2NK4Xbr5de9p7XYQXK6FgJI51W8+c8ui0nhQ5F8JWdPIwpcMxO/FIAAHp2MBHO79hVbY2KizXPHSudm8FGho= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=XF7Kx1tL; arc=none smtp.client-ip=95.215.58.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Message-ID: <25615f41-a725-4276-bc0a-a3e7fe47b864@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1707070255; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Iz4PfovZcdeRAA9dKaW7fvX3NpdAJ0oqEaz5XE4ra+A=; b=XF7Kx1tLk0sYZATKNXag1AGwdRKhrtoIPRcN01AKLdUJ+5e2NvgoavK6ZKdlrZMlMx+fdh Jaribgjke2QvFGGBX0t2TSgsXPa5aj0MLh1s0SdGlBfuzABtwYHpEydrI5kWKUnLafn+Eg PRhXrlgM+jGmjBaBjnGfyFg9yug/CRY= Date: Sun, 4 Feb 2024 10:10:45 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH] bpf: merge two CONFIG_BPF entries Content-Language: en-GB To: Masahiro Yamada , Alexei Starovoitov , Daniel Borkmann , John Fastabend , bpf@vger.kernel.org Cc: Andrii Nakryiko , Hao Luo , Jiri Olsa , KP Singh , Martin KaFai Lau , Song Liu , Stanislav Fomichev , linux-kernel@vger.kernel.org References: <20240204075634.32969-1-masahiroy@kernel.org> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Yonghong Song In-Reply-To: <20240204075634.32969-1-masahiroy@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 2/3/24 11:56 PM, Masahiro Yamada wrote: > 'config BPF' exists in both init/Kconfig and kernel/bpf/Kconfig. > > Commit b24abcff918a ("bpf, kconfig: Add consolidated menu entry for bpf > with core options") added the second one to kernel/bpf/Kconfig instead > of moving the existing one. > > Merge them together. > > Signed-off-by: Masahiro Yamada > --- > > init/Kconfig | 5 ----- > kernel/bpf/Kconfig | 1 + > 2 files changed, 1 insertion(+), 5 deletions(-) > > diff --git a/init/Kconfig b/init/Kconfig > index 8d4e836e1b6b..46ccad83a664 100644 > --- a/init/Kconfig > +++ b/init/Kconfig > @@ -1457,11 +1457,6 @@ config SYSCTL_ARCH_UNALIGN_ALLOW > config HAVE_PCSPKR_PLATFORM > bool > > -# interpreter that classic socket filters depend on > -config BPF > - bool > - select CRYPTO_LIB_SHA1 > - > menuconfig EXPERT > bool "Configure standard kernel features (expert users)" > # Unhide debug options, to make the on-by-default options visible > diff --git a/kernel/bpf/Kconfig b/kernel/bpf/Kconfig > index 6a906ff93006..bc25f5098a25 100644 > --- a/kernel/bpf/Kconfig > +++ b/kernel/bpf/Kconfig > @@ -3,6 +3,7 @@ > # BPF interpreter that, for example, classic socket filters depend on. > config BPF > bool > + select CRYPTO_LIB_SHA1 Currently, the kernel/bpf directory is guarded with CONFIG_BPF obj-$(CONFIG_BPF) += bpf/ in kernel/bpf/Makefile. Your patch probably works since there are lots of some other BPF related configurations which requires CONFIG_BPF. But maybe we sould keep 'config BPF' in init/Kconfig and remove 'config BPF' in kernel/bpf/Kconfig. This will be less confusing? > > # Used by archs to tell that they support BPF JIT compiler plus which > # flavour. Only one of the two can be selected for a specific arch since