Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2851061rdh; Wed, 27 Sep 2023 15:04:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHjCnTDrq44zmHjHAOuQmdrNRihY6Gh/Jg8Awwu66aapahR+YYrqszBpr6eFC7YTz1W/Oh1 X-Received: by 2002:a05:6358:7f1b:b0:143:55e2:ce82 with SMTP id p27-20020a0563587f1b00b0014355e2ce82mr3231846rwn.3.1695852251934; Wed, 27 Sep 2023 15:04:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695852251; cv=none; d=google.com; s=arc-20160816; b=qllPc2wiYA+E+tMHlHUWtjoNIVGSlTPc0WjFnpgFuBNtOfzk0TO4TsQV6W0TMNE/lg ZXTiJcvneltfpI/DudTvimZxAXOzY06OENeD0RWsPnk9PnrAJYpUA7h+N+EUWJh4ekDs nve+KCWMLstDXSu1W40UTo8NNJZWwQ9n6V1k2Eh7Uhll2fIfsgsjSzvWEE9UwDy2YZD/ P44dYixuLin1EQew0c91hUwewSwXDpPrFea5kEqiP/l99e3ymqns1r0Xr7tuKlSF1izn 6YvsOKGpCTjETi2l15/fuMdRJieqzu0fEk+q92rt4EH15xDbYUdarW/4oI6hoxghWi2w IOww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=HJX6uCAXlp8YiM1mzBPWE9EjoeKjHDxFPb16xjkTeog=; fh=ZrpRqqQEWD67iVW9RDqSXW22fXf7Xw9gRkBIdQUQBQE=; b=BDFmpEvItuSvzQ1rhwvi9Lv/ao6FZehw6OJxIhpQYhltRXVnCD/SKQOdL+Nrwrfon9 gNQ0YG8/S5bpRfw54g0bphTi2Q+oAQZagjuDP2rsxVlk57bDiTPBzC5qKmcIXknHwqYP K7/cH5iVkrf/+GjXAZvR+NrWIXcE8v9GtbWq35UBxCaRTo84ENUKlNRuDJcBYVq7EXbh Vqtjvur+fXaNOqhvNn0bVswIXspV7nBQW7Xuk2XdBOjyGi7pgKhvitd08eK0ICiGCIFQ TU56n1onyBx0lkUdIF1gk8mB1s6apuSPthtcuxAN9HVNuJ9pF3djO38AaRx4djoXyqyt AKSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=cUjZXIRx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id l9-20020a655609000000b0057760853706si17279171pgs.578.2023.09.27.15.04.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 15:04:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=cUjZXIRx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 3E1C9812282C; Wed, 27 Sep 2023 08:52:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232546AbjI0Pwm (ORCPT + 99 others); Wed, 27 Sep 2023 11:52:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232824AbjI0Pw1 (ORCPT ); Wed, 27 Sep 2023 11:52:27 -0400 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A718A5C2 for ; Wed, 27 Sep 2023 08:42:16 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-9b27bc8b65eso874677966b.0 for ; Wed, 27 Sep 2023 08:42:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695829335; x=1696434135; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=HJX6uCAXlp8YiM1mzBPWE9EjoeKjHDxFPb16xjkTeog=; b=cUjZXIRxlhtznyDonZLSGZt1auu34ENgNaschCAaOMCKn3W18JgMpGvoFRSGILJP5j eAzxyZQQ3kR13RCl/4uREa0WWzinngzFCVRCy16jJzA3RT1zCQALYmi502bElgSuKRG2 Mm7UzcGQhwjUsfrPUcRuksrvOn/6RJEq5iNz9U83Vfe8Cq0OtRHm3yiN4umDEkE+Zmva uDgubAO+j7XMTnAuwnwfChW1s/OMgf9SgwCPWKtcbhJftdxuIxpmvP7EwQRAdIq7jdso +y4uAmUhj6X29MXI7c2S9dk/9gyCjzYmpOwdCQK4aBK+5MxYJQK6PiC4+71rdldjsuxT VpNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695829335; x=1696434135; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HJX6uCAXlp8YiM1mzBPWE9EjoeKjHDxFPb16xjkTeog=; b=k2Nif8gFt9pCr6dHJamHesk+wLiYEmcSUd7fn3vhfRxzG1DMuoJDlE483f3o0o3CHX 7Z+tLLpTFuy3uOAJr6dztWJWUYiGuK8mr69KHS/RueOLXL5uePeD0atRACmiYsNnyPyM jexl0ZJkI/r8UhdFXt9QbSTihN+Z66CLZGXzUmhmpu5jaJRvlTe9Af9zI6hQxULApMGI oMHtgBMBc+BGoJneCyCBjb/Xls2DsQUtl4Rfa5UXIslMGKb4Z56poylbOz8aDVHwNXvo MZStG389YViUzOOart1yGfP8w2rjeg4rmpdEyUralQvJ8US62fTNYD20RPdxm7Ript7m YAnQ== X-Gm-Message-State: AOJu0Yy2qQXLq1cEIqx7tH3fOHHRLIfpYZ0c3IzPNV3wIOXJP4PfE+9u 6Ixt69fIAIAOGB8We3cJ9KYUS9w7AQ== X-Received: by 2002:a17:907:788d:b0:9a5:a701:2b90 with SMTP id ku13-20020a170907788d00b009a5a7012b90mr2078170ejc.40.1695829334449; Wed, 27 Sep 2023 08:42:14 -0700 (PDT) Received: from p183 ([46.53.250.251]) by smtp.gmail.com with ESMTPSA id cb8-20020a170906a44800b00988dbbd1f7esm9411126ejb.213.2023.09.27.08.42.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 08:42:13 -0700 (PDT) Date: Wed, 27 Sep 2023 18:42:11 +0300 From: Alexey Dobriyan To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen Cc: x86@kernel.org, "H. Peter Anvin" , linux-kernel@vger.kernel.org Subject: [PATCH] x86: compile boot code with -std=gnu11 too Message-ID: <2058761e-12a4-4b2f-9690-3c3c1c9902a5@p183> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email 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 (pete.vger.email [0.0.0.0]); Wed, 27 Sep 2023 08:52:51 -0700 (PDT) Use -std=gnu11 for consistency with main kernel code. It doesn't seem to change anything in vmlinux. 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 # How to compile the 16-bit code. Note we always compile for -march=i386; # that way we can complain to the user if the CPU is insufficient. -REALMODE_CFLAGS := -m16 -g -Os -DDISABLE_BRANCH_PROFILING -D__DISABLE_EXPORTS \ +REALMODE_CFLAGS := -std=gnu11 -m16 -g -Os -DDISABLE_BRANCH_PROFILING -D__DISABLE_EXPORTS \ -Wall -Wstrict-prototypes -march=i386 -mregparm=3 \ -fno-strict-aliasing -fomit-frame-pointer -fno-pic \ -mno-mmx -mno-sse $(call cc-option,-fcf-protection=none)