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 325FE30E835; Thu, 12 Mar 2026 08:16:17 +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=1773303378; cv=none; b=d00VLe3sFxVD+DufQatoI8pOrir24Zp0K+ITZl/+W474HhPr9smey3AkXTsf0vdVw5zGHF7f4PKWPjIN+icxENu6tP373qvtr4kzjytODmwzvlUTAMWR1j28g5ZhFg6JyBNiNsy2kfD/ZBYzvVX/ePPBMCDLyu6+NflUFDulmYw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773303378; c=relaxed/simple; bh=vAfNuBSEgknJnz8ahAr2u3bH4UaM+5PBVU85Cj2jm1o=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=gtj3vzpWjDoqkWAU6VpOBGEJ3UZ6KB0QbvMJrUz/85v+F55lLXHdmf2xFpdXhBegmN5zkicoUQToQC3OgwvxwniwHJO3XCNYPmKK1bacxD826btvGJuAc9ylsFThwoChOAaBTeUF+nMMtQedlWVsGcdspqhUABytm/m5sk+tewo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=h9cMuSRM; 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="h9cMuSRM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52898C4CEF7; Thu, 12 Mar 2026 08:16:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1773303377; bh=vAfNuBSEgknJnz8ahAr2u3bH4UaM+5PBVU85Cj2jm1o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=h9cMuSRMhk9JWaC5EM4NRdgXXRPEhFsKELYHd4F4dXJHo5ougJiAzxVmj/zPpuIUJ +mlx3/qjo6/CgYoVMszcl9hwaDj/PuNhAKZ2Sr03/CiivFEmUYC+ZRLIU9HSLC63r3 EY8CpFNOSK7QBA/GMpEN+LJvvDTDsUw6DAQQqw7B+s9wtUwyAat8lhCDhWXvAbCx8K 63Kfdqutduq9ctWOz2IdDsqMby+lDgCxQmpni98a/QS2zAKeowhVUmi7A/Er7JPCfH CdKmOqhdIDI+5OYoR5v0W/+JqxCFKur+dYvq4PZ4fpos5b4rxlKB2wN2SB59+0uo3r UWkgPFt4SLKLA== Date: Thu, 12 Mar 2026 01:16:13 -0700 From: Nathan Chancellor To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: Arnd Bergmann , Nicolas Schier , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, David Howells Subject: Re: [PATCH RFC 0/5] kbuild: uapi: also test UAPI headers against C++ compilers Message-ID: <20260312081613.GB3161678@ax162> References: <20260308-kbuild-uapi-c-v1-0-86aae09a7f1d@weissschuh.net> Precedence: bulk X-Mailing-List: linux-kbuild@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20260308-kbuild-uapi-c-v1-0-86aae09a7f1d@weissschuh.net> On Sun, Mar 08, 2026 at 10:24:00PM +0100, Thomas Weißschuh wrote: > C++ language requirements differ from those of C. > > Also test the headers against C++ compilers to make sure no errors > creep in accidentally. > > There was a previous attempt by David Howells[0], but today with the > existing UAPI testing infrastructure the implementation is a bit nicer. > This series does not derive from David's, as I found it only after > writing my patches. > > [0] https://lore.kernel.org/lkml/nycvar.YFH.7.76.1809052120510.24932@n3.vanv.qr/ > > This depends on my other series "kbuild: uapi: remove usage of toolchain > headers", which is currently in kbuild-next-unstable. > > Signed-off-by: Thomas Weißschuh > --- > Thomas Weißschuh (5): > kbuild: uapi: move some compiler arguments out of the command definition > kbuild: uapi: move all include path flags together > kbuild: uapi: handle UML in architecture-specific exclusion lists > kbuild: uapi: provide a C++ compatible dummy definition of NULL > kbuild: uapi: also test UAPI headers against C++ compilers Aside from my comment on patch 5, this seems reasonable to me. Reviewed-by: Nathan Chancellor Cheers, Nathan