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 79EA6290DBB; Tue, 5 May 2026 07:46:16 +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=1777967176; cv=none; b=NfEpI5VPibF/OE/1n/66WMDfo7fkmnCu/0prxEKkFPF8gLt0BqdzOaW5R4mz9zKLQX2Wo9Dz8KvZUUiSxawERQWxWO6H/AWpZP9ynpUqKJqBWKmkB0XQJhCL1C0+hZMPMxICr5r5XsLzfSrX12b8WJORpib9jRbioRiCQguaEVg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777967176; c=relaxed/simple; bh=PuRAhq5SiXiqc76UbhOEtTuhVUy+QUHdrAQ6+om8jQ4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type:Content-Disposition; b=aAgkKhke+gpqFtZ82Zb6LJKVP2Cl9cKl5979YvEC3yURxZNPH81BSgawzAJYcUeiWTfvEHgtyxSQwXa97oWdwhhGUbxftTg7a33LufSVB5AbV2kEQj/oCPOL+cvaCKMjI7g4cVYcL8yGqSoH1HIUXhkYWNW4tSNv9abHNw0t6JU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nYENH4ut; 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="nYENH4ut" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3C35AC2BCC7; Tue, 5 May 2026 07:46:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1777967175; bh=PuRAhq5SiXiqc76UbhOEtTuhVUy+QUHdrAQ6+om8jQ4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nYENH4utBGU9HCP3WrpxkAdRRWjG5Exc2YJm6RQVhGs0R5MiJXHwlkQrzT+/yGDgS JJ/Ihea9J/vhNqPRgPeEZVAf9hTbuA+ymECadkAqfgKn+ZqYGea9P39NPPTzktJrkK mssSOCcO88HHObwUwWk7+26kETY7HcZmdzIyPJ/Wk7ZyFS/OKg5S37l7BOewB8r97G CSFtRh4JJvZgpmPQJQOA+Ix/6kLzD/6KLrrP/pwZpq0H4T34OEpDZV5bjVLklO62Lh zy4mNXODfCV39N/qwUs5MwUCAvHt1DkDZhaK7CyhYNUecFDSQnq0Xlrvh/UTjo+J8h U8LUzTAzNxkGw== 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:41 -0400 Message-ID: <20260505074545.430334-2-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> <177726106581.2478607.12645653803520391071.b4-review@b4> 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:32:16PM +0200, Nicolas Schier wrote: > On Sun, Apr 26, 2026 at 11:37:45PM -0400, Nathan Chancellor wrote: > > On Fri, 24 Apr 2026 12:51:21 -0400, Sasha Levin wrote: > > > diff --git a/kernel/Makefile b/kernel/Makefile > > > [...] > > > +obj-$(CONFIG_KAPI_SPEC) += api/ > > > +# Ensure api/ is always cleaned even when CONFIG_KAPI_SPEC is not set > > > +obj- += api/ > > > > If $(CONFIG_KAPI_SPEC) is not set, shouldn't > > > > obj-$(CONFIG_KAPI_SPEC) += api/ > > > > evaluate to > > > > obj- += api/ > > > > anyways? Why the duplication? This is the only place in the kernel where > > this would be needed? > > yes, this is definitely not needed, as obj- is always evaluated during > 'make clean', cp. scripts/Makefile.clean [1]. > > Kind regards > Nicolas > > [1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/scripts/Makefile.clean?h=v7.1-rc1#n30 Thanks for the pointer! The redundant "obj- += api/" and the accompanying comment are dropped in v4. -- Thanks, Sasha