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 015363EAC8F; Tue, 5 May 2026 07:46:25 +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=1777967186; cv=none; b=tw3YUSGarc6ia4xvrXuCVQfjb7dKc6UbYSIqWIK/Rb2ccaXm3QlekV00+RE/NVCe4BbyERDBcVAouohs85C8vexvXHPRmovSZY1PXJOpuoCHKjAtkoCCHJFGJahx98L99YgXvsuwWaRrhgf4P/V4C+Xhyh1DqFAlahOe5eoei/Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777967186; c=relaxed/simple; bh=Dh359CCAET/Dcf0kc0xq9hC4/ZKbmHpQLlb9PuI5lg8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type:Content-Disposition; b=UW7tC33gx6GmQuIaFNuHgsD7O4Yj3wdI0FfuWQu9BeAZRl+Wpe4dNLRdXSbFG2Ka+CixLmeS0OPqTXaUA+NNMb9PF03AE9NTfwIOzYL61cr1PKcK0gFbRzu+FJc3POQI9PFMQ3Mj2j6/sXE8/QGyzaqYH/ZW/Ozl9QdieCfWz78= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=c10hnoyS; 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="c10hnoyS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D808CC2BCF6; Tue, 5 May 2026 07:46:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1777967183; bh=Dh359CCAET/Dcf0kc0xq9hC4/ZKbmHpQLlb9PuI5lg8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=c10hnoySGjXxg3K9jTCfXe36MtvXSuPY8p2hY0x8zqPFF2DVOKojeXKe2hPTmwnST +PF7EocxGIO0LiCTow7sE20lTO4M9c/AVg2rNT5g60dk7Iu0iiZS8YFMwefjtCkBMl xeCY16xt09o5C7RYRB+XUMALe4CVGoOVYuf5giGaXdclBkUwyGKylWvgy+iIGcRT6z TEjHSureW/sH2SZFGQst8Ks9A/cpgqoxdqtIKtJqAyNjK6rUPlVbho9tFPpHkjQfFq pW/vjdt7ZbcEjx59zOuRDkimUl8/Uzz+rACGzMulDw/luV+49RVvbySvK8WZv9Q+fU zmHudV1sT79fw== From: Sasha Levin To: Nicolas Schier Cc: Sasha Levin , Nathan Chancellor , linux-api@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-kselftest@vger.kernel.org, workflows@vger.kernel.org, tools@kernel.org, x86@kernel.org, Thomas Gleixner , "Paul E . McKenney" , Greg Kroah-Hartman , Jonathan Corbet , Dmitry Vyukov , Randy Dunlap , Cyril Hrubis , Kees Cook , Jake Edge , David Laight , Askar Safin , Gabriele Paoloni , Mauro Carvalho Chehab , Christian Brauner , Alexander Viro , Andrew Morton , Masahiro Yamada , Shuah Khan , Ingo Molnar , Arnd Bergmann Subject: Re: [PATCH v3 1/9] kernel/api: introduce kernel API specification framework Date: Tue, 5 May 2026 03:45:42 -0400 Message-ID: <20260505074545.430334-3-sashal@kernel.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: References: <20260424165130.2306833-1-sashal@kernel.org> <20260424165130.2306833-2-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 8bit On Wed, Apr 29, 2026 at 06:43:24PM +0200, Nicolas Schier wrote: > On Fri, Apr 24, 2026 at 12:51:21PM -0400, Sasha Levin wrote: > > diff --git a/kernel/api/Makefile b/kernel/api/Makefile > > new file mode 100644 > > index 0000000000000..c0a13fc590e4a > > --- /dev/null > > +++ b/kernel/api/Makefile > > @@ -0,0 +1,14 @@ > > +# SPDX-License-Identifier: GPL-2.0 > > +# > > +# Makefile for the Kernel API Specification Framework > > +# > > + > > +# Core API specification framework > > +obj-$(CONFIG_KAPI_SPEC) += kernel_api_spec.o > > Bike-shedding: I'd use 'obj-y' here, to state clearly that > kernel_api_spec.c is the core part in the kernel/api/ subdir. If > CONFIG_KAPI_SPEC is unset, the subfir will not be entered at all. Agreed, switched to "obj-y" in v4. The subdir gate moves up to kernel/Makefile and the entry inside kernel/api/Makefile becomes unconditional. The other two entries (KAPI_SPEC_DEBUGFS, KAPI_KUNIT_TEST) keep their own conditional guards since they are optional sub-features. -- Thanks, Sasha