Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2968188rdh; Wed, 27 Sep 2023 20:30:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF/JFhdIV9wsGQV7JvGntjsWRYWZVjPgVbIUhKo6icQILzXhmWQbbqMoL1/Vf/itC8+2m7o X-Received: by 2002:a17:90b:1a85:b0:278:fe18:b7dc with SMTP id ng5-20020a17090b1a8500b00278fe18b7dcmr47347pjb.31.1695871827272; Wed, 27 Sep 2023 20:30:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695871827; cv=none; d=google.com; s=arc-20160816; b=gj52eG7rze1pUFfQYujp+Y/SNf/Ih/jgj9cfjlJFGa4V0vql/mJbMsIaGDL21+53MC 8Idz1L+95cNFiyfLKk65kXauToUeqRCCAznN2+uvsEh5JwzUTnLjaXgcvA/M3t1hhn2a dcckl0b2/Xl3y6xxz2SE1rOx4C4ScafLMiZ0AR6LqqwFdk6QxXDiNx85tH3xlaRpxvXc eOfein4GRwzqCbCpoL2eDCX+RsR44puAYX4XLCF2VKdVTFR72PBelq1dwDTtoKbKUive R/wXQcSnaBUR86vbc68ACeDmxdWJDptYGlaYyeFOUiPHuT+5A0s1tQ6XVBSKa6bLh6+H OHfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:references:in-reply-to:user-agent:subject:cc:to:from :date:dkim-signature:dkim-filter; bh=HXgJLMzftVenTX7snv+76PmkqXCNjUpaVfDOYZ0nsrw=; fh=CB9JqHnrzPfTudMsVrJVdXm9PSfaC1B16+c9aKAcVxc=; b=ELxf5UQQ6J/kLh/qCuJbw1xUJlb6PIh6O2XhgtvsOcfbKxs/tUVFvcTsBhF4qbnaBl JTCFe5PJWMdJgrkfCmlYS+v4lJZ6fzmZkMrQAFr4H9iTv3Zu2vFiZocNMfpL+0fKrQpo nUDS1An3pSVzOR8FbaN9qy6qSu15CSEMeIoWofy73vqCLdSNSQ5zMEfw6/MuneSQKngI ZxwhbkIrZ0WEsminBjBCvr/M6qvG7SpfDap++4axAAnqKQKcUHg/HmtZq1vCdWH7cPXp KrH9FU0BJoL5XSpKKSzWWkpsGeLRm0+NLuj6YowLttkFWqjlcfz4nSbWb1zSk89NQ6Yz 7Qpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zytor.com header.s=2023091101 header.b=WOtK88Ds; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id pg1-20020a17090b1e0100b00262f7dccaecsi18942612pjb.170.2023.09.27.20.30.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 20:30:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@zytor.com header.s=2023091101 header.b=WOtK88Ds; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id B4F3680A1667; Wed, 27 Sep 2023 16:06:00 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229554AbjI0XFu (ORCPT + 99 others); Wed, 27 Sep 2023 19:05:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbjI0XFt (ORCPT ); Wed, 27 Sep 2023 19:05:49 -0400 Received: from mail.zytor.com (unknown [IPv6:2607:7c80:54:3::138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E771BF for ; Wed, 27 Sep 2023 16:05:48 -0700 (PDT) Received: from [127.0.0.1] ([98.35.210.218]) (authenticated bits=0) by mail.zytor.com (8.17.1/8.17.1) with ESMTPSA id 38RN562E2996730 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Wed, 27 Sep 2023 16:05:07 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 38RN562E2996730 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2023091101; t=1695855907; bh=HXgJLMzftVenTX7snv+76PmkqXCNjUpaVfDOYZ0nsrw=; h=Date:From:To:CC:Subject:In-Reply-To:References:From; b=WOtK88Ds78WFSPQRu9p/Pkq2Igt/O18DjyosGJH4gksKyxg0Ub4XVL7lIeRccXKZB r0E/Xt6OPSj89VibpiJ2SgYt2VOy5+9S+i2NKio7B7BnM2qW0mNPvkSouuJe+OU8ty HV3woems6JYjuBgezlCtg7Wf97rGzjBzWhEfzti/gBboZKinKGOfw8hF8iuRElJ3IR zO4xEi6PsoLWnIgIwc/8dHuRrhrpf4rjUPzIyxt6s+ORKAcNSI2K2LCT9tOL0qFf+5 Of3wZN0rLHYD44XOtC77P8pXUp1HyVgISyr5IsffqbsSTxheAKg/rmiHirOreK2fv/ g2HfsBOm0OwOA== Date: Wed, 27 Sep 2023 16:05:04 -0700 From: "H. Peter Anvin" To: Alexey Dobriyan , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen CC: x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86: compile boot code with -std=gnu11 too User-Agent: K-9 Mail for Android In-Reply-To: <2058761e-12a4-4b2f-9690-3c3c1c9902a5@p183> References: <2058761e-12a4-4b2f-9690-3c3c1c9902a5@p183> Message-ID: <6580AF56-86B2-4C2B-BC28-8100ADE1C345@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 27 Sep 2023 16:06:01 -0700 (PDT) On September 27, 2023 8:42:11 AM PDT, Alexey Dobriyan wrote: >Use -std=3Dgnu11 for consistency with main kernel code=2E > >It doesn't seem to change anything in vmlinux=2E > >Signed-off-by: Alexey Dobriyan >--- > > arch/x86/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >--- a/arch/x86/Makefile >+++ b/arch/x86/Makefile >@@ -43,7 +43,7 @@ endif >=20 > # How to compile the 16-bit code=2E Note we always compile for -march= =3Di386; > # that way we can complain to the user if the CPU is insufficient=2E >-REALMODE_CFLAGS :=3D -m16 -g -Os -DDISABLE_BRANCH_PROFILING -D__DISABLE_= EXPORTS \ >+REALMODE_CFLAGS :=3D -std=3Dgnu11 -m16 -g -Os -DDISABLE_BRANCH_PROFILING= -D__DISABLE_EXPORTS \ > -Wall -Wstrict-prototypes -march=3Di386 -mregparm=3D3 \ > -fno-strict-aliasing -fomit-frame-pointer -fno-pic \ > -mno-mmx -mno-sse $(call cc-option,-fcf-protection=3Dnone) Acked-by: H=2E Peter Anvin (Intel)