From patchwork Tue Mar 1 07:58:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiaomeng Tong X-Patchwork-Id: 12764274 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id BD7BDC433F5 for ; Tue, 1 Mar 2022 07:58:58 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 48D0F8D0003; Tue, 1 Mar 2022 02:58:58 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 415598D0001; Tue, 1 Mar 2022 02:58:58 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2B5A08D0003; Tue, 1 Mar 2022 02:58:58 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.26]) by kanga.kvack.org (Postfix) with ESMTP id 1D8FA8D0001 for ; Tue, 1 Mar 2022 02:58:58 -0500 (EST) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id D83C323DB5 for ; Tue, 1 Mar 2022 07:58:57 +0000 (UTC) X-FDA: 79195066314.02.90ABF18 Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) by imf19.hostedemail.com (Postfix) with ESMTP id 696791A0009 for ; Tue, 1 Mar 2022 07:58:57 +0000 (UTC) Received: by mail-pf1-f178.google.com with SMTP id d187so13460737pfa.10 for ; Mon, 28 Feb 2022 23:58:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=A25GcqUFVN2qz3QO76ICHSNj41DHlj4ABgVqzMafhNg=; b=hVlBBk7cs3/dXDPXoxjOjlK9Y2BjNWryWa8KLFqkxMZ5ftNCcm0uTY3qgZ7j31jVdE NhAaG15pa6YHcqJrKGZ4lLVFaxxfcvKBBdFIiwMikx65WVALF2ZyVQ+KTVRaghMfTH0I p5g2esJOzzR3Yr587LNne8gGAKIjHfiX75OEHWXutMQKgC2pkNRDzvcLsmu7YRDSwyNt J5eed6MBS7KSGP0xLrSgVRfq8sjHu8/Z0Zr+42wZRfwZZLWen1ndY0pLNyxau4KukI7u OUORMosGY7bR8f0Hq3ApDq+5m6lWzaZIUan654q+W/RtAwKEhkenqXGM81YkqYfiFq30 jOvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=A25GcqUFVN2qz3QO76ICHSNj41DHlj4ABgVqzMafhNg=; b=wRurKqPEf5Zb8Gs+KVh0NaVjFbozIoO4C5D9cFZzd9H97agmntkCgUAKSnhseAhtYW IBdRkchWL3FdyJgpJCZyKYamOcS8IuMfN846ZhaZnlNnzcl3YE3VysCqrwkosrEfMpCp KbVdB3MUs6DmKBzkIw7BVnFxDTh5WNl7fxaw6tF/oz6QNmHdGFcRk56RSwhO9ZDqX/RM RNelJUMTY9fyBJ0N++EGo3kK5BM51gnbiqfq7nhU75q8yLt+ZjqVHK1R8sW/csCqgqQA cDz65quiSS8KaDdc/RgQ+HEP0fewW3XDlD0BEvTNKu6mGN4tkQn0hmJcda2FdLqlf0Dq soTg== X-Gm-Message-State: AOAM531oy+vwPJ/+W9j618hRHvVmqs1uzYhSCkomoaQS4rIw+Vh5nfal G35tgjgXByHWjTtNq/84ji8= X-Google-Smtp-Source: ABdhPJwz/5TAUp9XKAqJDu66ccB4TZTOrvlYbd+foqA41ACOpsKAIWqQCfWfUYS1KUrpFS2b84vyqA== X-Received: by 2002:a05:6a00:2286:b0:4e1:285:5715 with SMTP id f6-20020a056a00228600b004e102855715mr26166424pfe.37.1646121536489; Mon, 28 Feb 2022 23:58:56 -0800 (PST) Received: from ubuntu.huawei.com ([119.3.119.18]) by smtp.googlemail.com with ESMTPSA id o12-20020a17090aac0c00b001b9e5286c90sm1662745pjq.0.2022.02.28.23.58.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 23:58:56 -0800 (PST) From: Xiaomeng Tong To: torvalds@linux-foundation.org Cc: arnd@arndb.de, jakobkoschel@gmail.com, linux-kernel@vger.kernel.org, gregkh@linuxfoundation.org, keescook@chromium.org, jannh@google.com, linux-kbuild@vger.kernel.org, linux-mm@kvack.org, netdev@vger.kernel.org, Xiaomeng Tong Subject: [PATCH 1/6] Kbuild: compile kernel with gnu11 std Date: Tue, 1 Mar 2022 15:58:34 +0800 Message-Id: <20220301075839.4156-2-xiam0nd.tong@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220301075839.4156-1-xiam0nd.tong@gmail.com> References: <20220301075839.4156-1-xiam0nd.tong@gmail.com> X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 696791A0009 X-Stat-Signature: 3j8m8whiiuwm8wzam57apbbfzww9xt6j Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=hVlBBk7c; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf19.hostedemail.com: domain of xiam0nd.tong@gmail.com designates 209.85.210.178 as permitted sender) smtp.mailfrom=xiam0nd.tong@gmail.com X-HE-Tag: 1646121537-572614 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: This patch is suggested by linus[1], there may be some corner cases which should be considered before merge, and is just for prove PATCH 2. [1]: https://lore.kernel.org/all/CAHk-=wh97QY9fEQUK6zMVQwaQ_JWDvR=R+TxQ_0OYrMHQ+egvQ@mail.gmail.com/ Signed-off-by: Xiaomeng Tong Reported-by: kernel test robot --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 289ce2be8..84a96ae3c 100644 --- a/Makefile +++ b/Makefile @@ -515,7 +515,7 @@ KBUILD_CFLAGS := -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs \ -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE \ -Werror=implicit-function-declaration -Werror=implicit-int \ -Werror=return-type -Wno-format-security \ - -std=gnu89 + -std=gnu11 -Wno-shift-negative-value KBUILD_CPPFLAGS := -D__KERNEL__ KBUILD_AFLAGS_KERNEL := KBUILD_CFLAGS_KERNEL :=