From patchwork Wed Sep 27 15:42:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Dobriyan X-Patchwork-Id: 145578 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp2881674vqu; Wed, 27 Sep 2023 13:24:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHIK/bmwsjulEv7mKM1JrhkbyzyI7Z+wbFL7sSz+pURP0hUTrzGfwrYsXdZmc8ASjXHMm2V X-Received: by 2002:a0d:d40a:0:b0:586:9c7a:d9ec with SMTP id w10-20020a0dd40a000000b005869c7ad9ecmr3667294ywd.9.1695846240528; Wed, 27 Sep 2023 13:24:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695846240; cv=none; d=google.com; s=arc-20160816; b=Ek8Ug5bNk4uesCpdXn/yoFOAgquy0pM+1QmC27R+X/K5EBA3Bi8NpoxARifB8xc2TG aIy4uzNqkgVWlnQaIwKU8WZ8Rf9X47bdjVqze16amvr7SVMecDVe8LvWy0dVFt8lSism dGlKiRzwgic953OMhSiO6ZLjPetfo5qsT+TMzt7STLVmDpNdk1JRxRJf89YDuf7JLwDe 4rZUIWfSCDOczby9Zv1+n/vSsIInClqo0iDz0tcpQBwWEOnZN6mdPVhttMGnDkGIFiZk +PKQviG5GQwhJS3+z2QyjbvtNDAW+mQS2D2hO6fT7E9o05rfTJicUt8hpwoNMu97z72Z m7eg== 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:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id v190-20020a6389c7000000b0054fd947f66dsi16804414pgd.210.2023.09.27.13.24.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 13:24:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; 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:1 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 morse.vger.email (Postfix) with ESMTP id DF52580D7F76; Wed, 27 Sep 2023 08:53:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232632AbjI0Pwn (ORCPT + 19 others); Wed, 27 Sep 2023 11:52:43 -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-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 morse.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 (morse.vger.email [0.0.0.0]); Wed, 27 Sep 2023 08:53:02 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778223667608638945 X-GMAIL-MSGID: 1778223667608638945 Use -std=gnu11 for consistency with main kernel code. It doesn't seem to change anything in vmlinux. Signed-off-by: Alexey Dobriyan Acked-by: H. Peter Anvin (Intel) --- 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)