Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1950887rdd; Thu, 11 Jan 2024 14:41:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IF3LuT748qFgF7UZwF5bIaJIPYdwUp3ErjO5p5CXRJIQhCve23hje/lWzDGG7iz19r5YzIM X-Received: by 2002:a92:d64a:0:b0:35f:ec54:2157 with SMTP id x10-20020a92d64a000000b0035fec542157mr71215ilp.69.1705012885798; Thu, 11 Jan 2024 14:41:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705012885; cv=none; d=google.com; s=arc-20160816; b=IWonT62TH22pV0mhXh9Wy4sxFN98/njX07asLAuH6xpXBf+dV3RglYVf3/yArhbbv2 U4byYXUJlWMdn3a82MNgUEHJK4CgGKkfbymZHe7qtA7VCanbUWrOCZPaGD6VGj9psz1I LOtepK9Mg3DMWxB+187i9fkWlyd5H0sXMfOIOp4vbgHifHoMBfwUts83LhXYq/HNzytP ayJy+kFfKm7Oopd0lHIy+MpEs8/1yAW6plyzEMoLDj9QtT6CfbnsyBCxtg8x8L48uZaI mCOiGG3xkt6DNhLNJQUHrjN5ybqSyCS0tMjgR+7ejxOGkyAV43cPf/0PovuWeM10WsLG v85Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=eokh9Q4JjSI//owb751z+SxibpQvIRH5MtuFhYZF/Qk=; fh=d2lKNKmSjJu7wtoJiQIHmtRmFkMH7J6JMRV+lK/2PvY=; b=MujDKb+QwXmoIKP3LfzkoSnLuy69QteQ5HzZPSj0RveOcEdCfg1cd6b2r1l7KwSOxk ITqssgDUHTuz70qpklIuh7BlOlTFBR2DOEI36OJxbFsKt+G5U9i2hqHfbQT46eddLQSQ sH/KJ3lXktKo3l8RKwSslRuODXKtAA3MWRqeD4kZdsMqTWo3t85XbIq5s5g7noYlFex0 Djb0Ooo+4OD4UgO0ShCcDz4f5GYfSBrCIMRFF2j4mlP0GVJSq4MKpHTrevFEm90cf8wJ FdD/0xozIBYlkLZfJdWp+4WKRRgXqzqPheBTEE7sKOcrUcYLRabLfTLa7aJYEaUHPP6r 8YSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OfvTIE3Y; spf=pass (google.com: domain of linux-kernel+bounces-24111-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24111-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id bz8-20020a056a02060800b005b7ce261d0dsi2224084pgb.402.2024.01.11.14.41.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 14:41:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24111-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OfvTIE3Y; spf=pass (google.com: domain of linux-kernel+bounces-24111-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24111-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 6F7312892CA for ; Thu, 11 Jan 2024 22:41:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 67DE614262; Thu, 11 Jan 2024 22:41:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OfvTIE3Y" 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 70880FBF8; Thu, 11 Jan 2024 22:41:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8E2ECC433F1; Thu, 11 Jan 2024 22:41:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705012870; bh=+WwJWrlRns8EY2E9CLCbBROU9LT8j8Mr6e6ahvyEWOU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OfvTIE3YPZ6MdksK4thbEF0gX4EYWItfgro+p6au+ae/0L1Rn5KPQUey1MO2mF7sb 912wFQwxWJt6Eqz5rquvRdwVK23gOw+mZN3QMJzBuw9omsgfklBLL4ldqAI5eFHiMf UwH3kwKHmW649e28JAQ6P8MeeoY5YOS78K9x583/YWF7UJuVj+KZu6omk0vxfKcOhP NdiX663P8dwv8VefWE36YU8/vmf1Hpt79kYUnhnu0IyL1nEAxmLnqQ0zgq6NMjjG59 7vahCIA30Sn0UeqmjWeNnB4C048bpJkLlXFQL2KrAO5l8ShyZvKdAqNwDxW80aGjE4 KMyE7A/fIix6w== Date: Thu, 11 Jan 2024 15:41:08 -0700 From: Nathan Chancellor To: Thomas Zimmermann Cc: kernel test robot , ardb@kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, bhelgaas@google.com, arnd@arndb.de, zohar@linux.ibm.com, dmitry.kasatkin@gmail.com, paul@paul-moore.com, jmorris@namei.org, serge@hallyn.com, javierm@redhat.com, llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-arch@vger.kernel.org, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org Subject: Re: [PATCH v4 2/4] arch/x86: Move internal setup_data structures into setup_data.h Message-ID: <20240111224108.GA227186@dev-arch.thelio-3990X> References: <20240108095903.8427-3-tzimmermann@suse.de> <202401090800.UOBEKB3W-lkp@intel.com> <20240109175814.GA5981@dev-arch.thelio-3990X> <1fd1a3ca-edeb-4bf6-a12d-a8087a180d36@suse.de> 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: <1fd1a3ca-edeb-4bf6-a12d-a8087a180d36@suse.de> On Thu, Jan 11, 2024 at 10:50:43AM +0100, Thomas Zimmermann wrote: > Hi > > Am 09.01.24 um 18:58 schrieb Nathan Chancellor: > > On Tue, Jan 09, 2024 at 08:28:59AM +0800, kernel test robot wrote: > > > Hi Thomas, > > > > > > kernel test robot noticed the following build warnings: > > > > > > [auto build test WARNING on tip/x86/core] > > > [also build test WARNING on efi/next tip/master tip/auto-latest linus/master v6.7 next-20240108] > > > [If your patch is applied to the wrong git tree, kindly drop us a note. > > > And when submitting patch, we suggest to use '--base' as documented in > > > https://git-scm.com/docs/git-format-patch#_base_tree_information] > > > > > > url: https://github.com/intel-lab-lkp/linux/commits/Thomas-Zimmermann/arch-x86-Move-UAPI-setup-structures-into-setup_data-h/20240108-180158 > > > base: tip/x86/core > > > patch link: https://lore.kernel.org/r/20240108095903.8427-3-tzimmermann%40suse.de > > > patch subject: [PATCH v4 2/4] arch/x86: Move internal setup_data structures into setup_data.h > > > config: x86_64-rhel-8.3-bpf (https://download.01.org/0day-ci/archive/20240109/202401090800.UOBEKB3W-lkp@intel.com/config) > > > compiler: ClangBuiltLinux clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18) > > > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240109/202401090800.UOBEKB3W-lkp@intel.com/reproduce) > > > > > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > > > the same patch/commit), kindly add following tags > > > | Reported-by: kernel test robot > > > | Closes: https://lore.kernel.org/oe-kbuild-all/202401090800.UOBEKB3W-lkp@intel.com/ > > > > > > All warnings (new ones prefixed by >>): > > > > > > In file included from arch/x86/realmode/rm/wakemain.c:3: > > > In file included from arch/x86/boot/boot.h:24: > > > In file included from arch/x86/include/asm/setup.h:10: > > > In file included from arch/x86/include/asm/page_types.h:7: > > > In file included from include/linux/mem_encrypt.h:17: > > > In file included from arch/x86/include/asm/mem_encrypt.h:18: > > > In file included from arch/x86/include/uapi/asm/bootparam.h:5: > > > > > arch/x86/include/asm/setup_data.h:10:20: warning: field 'data' with variable sized type 'struct setup_data' not at the end of a struct or class is a GNU extension [-Wgnu-variable-sized-type-not-at-end] > > > 10 | struct setup_data data; > > > | ^ > > > 1 warning generated. > > > > I think this warning is expected. This structure is now included in the > > realmode part of arch/x86, which has its own set of build flags, > > including -Wall, which includes -Wgnu on clang. The kernel obviously > > uses GNU extensions and states this clearly with '-std=gnu11', so > > -Wno-gnu is unconditionally added to KBUILD_CFLAGS for clang. It seems > > that same treatment is needed for REALMODE_CFLAGS, which also matches > > arch/x86/boot/compressed/Makefile, see commit 6c3b56b19730 ("x86/boot: > > Disable Clang warnings about GNU extensions"): > > > > diff --git a/arch/x86/Makefile b/arch/x86/Makefile > > index 1a068de12a56..24076db59783 100644 > > --- a/arch/x86/Makefile > > +++ b/arch/x86/Makefile > > @@ -53,6 +53,9 @@ REALMODE_CFLAGS += -fno-stack-protector > > REALMODE_CFLAGS += -Wno-address-of-packed-member > > REALMODE_CFLAGS += $(cc_stack_align4) > > REALMODE_CFLAGS += $(CLANG_FLAGS) > > +ifdef CONFIG_CC_IS_CLANG > > +REALMODE_CFLAGS += -Wno-gnu > > +endif > > Thanks. Shall I include this change in the patchset? Yes, I think so to keep the build clean. > Best regards > Thomas > > > export REALMODE_CFLAGS > > # BITS is used as extension for files which are available in a 32 bit > > -- > Thomas Zimmermann > Graphics Driver Developer > SUSE Software Solutions Germany GmbH > Frankenstrasse 146, 90461 Nuernberg, Germany > GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman > HRB 36809 (AG Nuernberg)