From patchwork Thu Sep 28 08:16:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 145918 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp3199054vqu; Thu, 28 Sep 2023 03:09:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFJJG3Gxa5I2VOel+aDAUNNlgc+ePR5eik18FEbbeBO9gGCWGKI/95k/LkPdiju6NHgNgTz X-Received: by 2002:a25:ad4d:0:b0:d84:852a:8473 with SMTP id l13-20020a25ad4d000000b00d84852a8473mr634100ybe.40.1695895787075; Thu, 28 Sep 2023 03:09:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695895787; cv=none; d=google.com; s=arc-20160816; b=JKnXbYDl0t39/mFDGKQBvRBE8Kapc9fWeYR8+EaTl7eYqj29QTubOtszFo56aS3gv+ VxWhg6dgvW+lQU/BFx30gLXSCugOpZC9qsmLQsgEcsL91vJlcUZ4nrfYEYdQXsqOo1n5 d1WXSzg/uH3bPUw2bhjIYXrdOMVtMHN9+Myv7V+ngZQOsecYDBR6mxKL9o/QsVhmHtEb EXhRfQ5+kuxpS+Riv1U+3dlIvHukedJMLQxwpRwFsnAII9V4eVZkwdIzmb+XKIEYis7m cDSzoL0dyNU8+LG98BDnzDd+MzQA+0+kLgfQxGoQ4Bxy9fVAwGCsVSFpai675NYr3oPs DF8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=C0StuuUvChvgWlQD+lOagXYdDLAMj9WWMQTI2JI1PDU=; fh=/84L8n2DthOX5P06yPQX+fvx5AhJDP1Nf2paL8OrS6I=; b=A5sKUxizqkWSHc1ccgrKgTCEOr7Uc4DGCRTZi1wwg3tLo9QXpOHrkbKUmguYQqtO4Q KepzS2GSF0cMPk04KR1XFoCHUj7C0allPOxx8FiBWled2fdDKuO8ccadmqJHjjlQ2zO3 JIECpTtrmzSZCci2+ejDd0mDjjga4BFH0Z52d1p+pUKFWYpfDJO15n9KZkpPfjwqLXYe lncQrYMlaxApr97Aaisp+srCUnaO9FAjlgh7NWJoobTEZsyeGItHUO81oBXLxAcMFpgK sDpqU4GtRRV3FZwJee25oTrhW3Iv0Vj1RX11EI1eIBewOnlTP81X7suYmYUl4djOExzd PTsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=k7aCSQ0k; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=aQEFGGI1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id k62-20020a638441000000b00578afb3123bsi19199437pgd.700.2023.09.28.03.09.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 03:09:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=k7aCSQ0k; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=aQEFGGI1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 8C73282CBA67; Thu, 28 Sep 2023 01:17:04 -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 S231215AbjI1IQz (ORCPT + 20 others); Thu, 28 Sep 2023 04:16:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229539AbjI1IQr (ORCPT ); Thu, 28 Sep 2023 04:16:47 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D44B198; Thu, 28 Sep 2023 01:16:45 -0700 (PDT) Date: Thu, 28 Sep 2023 08:16:43 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1695889004; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=C0StuuUvChvgWlQD+lOagXYdDLAMj9WWMQTI2JI1PDU=; b=k7aCSQ0kZYZwseKsFYAPIrCEqhKdcNc8rW8/JgL/b3rPwoWkE3U8/LFEO3D/So2qyYlpMp DxvnBYV5gsxG+1P2JDrdmrDF6br+Sdcnvr03fDs1MS8zZSiI1ka9YPBFcqRMfdSAV50B9g Q9U6O5qLSdsbemXXQ3poKFg0Qeb+P/9twyd4LfvTw+iYjyo4MUmaP3TAXdQBPBgGjfF6cy 1tleD2T/QM+R0FoRF8us4W/fLs8uKw6A6Jd3aLR7/C8X/yQHQOYa55rn8QLQI+5Tbtuu4w drt0u8W7RIox0KogKkXFPex1EZsWiSSvLngVJZ7OK2LBVIUJe2WSxtUxYIxS3w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1695889004; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=C0StuuUvChvgWlQD+lOagXYdDLAMj9WWMQTI2JI1PDU=; b=aQEFGGI1rVM3Aey3RhTzUeQxdWuoF0t/ZU347KwSwkC9yMCdL3xfCL7Upo0U4P3VQSCtfr ZV9j1PSCXzDMfVBA== From: "tip-bot2 for Alexey Dobriyan" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/boot] x86/boot: Compile boot code with -std=gnu11 too Cc: Alexey Dobriyan , Ingo Molnar , "H. Peter Anvin (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <2058761e-12a4-4b2f-9690-3c3c1c9902a5@p183> References: <2058761e-12a4-4b2f-9690-3c3c1c9902a5@p183> MIME-Version: 1.0 Message-ID: <169588900363.27769.15241050401538537889.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, 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]); Thu, 28 Sep 2023 01:17:04 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778275621264828656 X-GMAIL-MSGID: 1778275621264828656 The following commit has been merged into the x86/boot branch of tip: Commit-ID: b3bee1e7c3f2b1b77182302c7b2131c804175870 Gitweb: https://git.kernel.org/tip/b3bee1e7c3f2b1b77182302c7b2131c804175870 Author: Alexey Dobriyan AuthorDate: Wed, 27 Sep 2023 18:42:11 +03:00 Committer: Ingo Molnar CommitterDate: Thu, 28 Sep 2023 10:11:27 +02:00 x86/boot: Compile boot code with -std=gnu11 too Use -std=gnu11 for consistency with main kernel code. It doesn't seem to change anything in vmlinux. Signed-off-by: Alexey Dobriyan Signed-off-by: Ingo Molnar Acked-by: H. Peter Anvin (Intel) Link: https://lore.kernel.org/r/2058761e-12a4-4b2f-9690-3c3c1c9902a5@p183 --- arch/x86/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/Makefile b/arch/x86/Makefile index 5bfe5ca..776331f 100644 --- 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)