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 34BFA42EEC1; Thu, 30 Apr 2026 14:47:21 +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=1777560441; cv=none; b=OXh5x8ncAGrk7nG5MpvuciWXD3uIU3+CBJcHpZPuLl1rR6oMG4lAPDqEMmglOmqvaD1JRE4v+EshiVWRHsr1JdS/Yr1AxG0tYryvQac28s07GiYU59KCNqnRVB1HjDeWyyiOl3kV/S5SJ8hlBHo9XX16+q0N3ZbMaFSgnZG3APk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777560441; c=relaxed/simple; bh=LvG3HOqNu0UzCHGfZ2qRDYFj/RVGrSdjMfxq3VZg+zg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tkv3CeksplCuxx3VXgSPsNHr+vQU0rzCE5UfnCFIcq6ZYXf97iA1PmiSvuqqLi9TDwJH5mLq8ZhG/e1GyVO+cYfSblcRjHCHCVtDU6oJYILW9tM8le2DFrz4+MgDfuI7lyFNJ4wKADhxUhttwizr2fzBk7QLynMUUOOzpPoTIYE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=oPerCAOR; 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="oPerCAOR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 682F3C2BCB3; Thu, 30 Apr 2026 14:47:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1777560441; bh=LvG3HOqNu0UzCHGfZ2qRDYFj/RVGrSdjMfxq3VZg+zg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oPerCAORWZza9j0WOgJpGrUSp1UOirezpHM6qOt17YPK78AD+O5TN8VUnAI7m6ewN wQuwh+su+PsXqhOlLvQf1c9yrsNSLW0uPoTpXVedUXKvWsiGdFNhz634mtZb4G+xTz IqDqrF7Mx10o9Ehrkcl6jj1tm4p4cAQ/P56+OnEHmX2nSLT/Mvo63K4rzcTnkfY6dj yYzfdG+h9C0jx1iXEe54RPJHd9jUF0tS1bcoHJm5fQuzoEOOOhmcTgDWDkzILIgVF6 jehXnZhzCxERFO89myv2cw6DyKiT0+Tcicv7CSPXsR8i3CW3dTv6zn3h7cyYnqE+4L njBniwEYc+gyg== Date: Wed, 29 Apr 2026 18:43:24 +0200 From: Nicolas Schier To: Sasha Levin Cc: 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 Message-ID: Mail-Followup-To: Nicolas Schier , Sasha Levin , 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 References: <20260424165130.2306833-1-sashal@kernel.org> <20260424165130.2306833-2-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260424165130.2306833-2-sashal@kernel.org> On Fri, Apr 24, 2026 at 12:51:21PM -0400, Sasha Levin wrote: ... > diff --git a/kernel/Makefile b/kernel/Makefile > index 6785982013dce..5643151536439 100644 > --- a/kernel/Makefile > +++ b/kernel/Makefile > @@ -59,6 +59,9 @@ obj-y += dma/ > obj-y += entry/ > obj-y += unwind/ > obj-$(CONFIG_MODULES) += module/ > +obj-$(CONFIG_KAPI_SPEC) += api/ > +# Ensure api/ is always cleaned even when CONFIG_KAPI_SPEC is not set > +obj- += api/ > > obj-$(CONFIG_KCMP) += kcmp.o ... > 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. -- Nicolas