From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.0 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ECCD5C4320A for ; Tue, 17 Aug 2021 01:01:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CC11760E76 for ; Tue, 17 Aug 2021 01:01:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233290AbhHQBCP (ORCPT ); Mon, 16 Aug 2021 21:02:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233201AbhHQBCN (ORCPT ); Mon, 16 Aug 2021 21:02:13 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD4D2C061764; Mon, 16 Aug 2021 18:01:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description; bh=7KIG9BZVs2qMGhQa9ZnbyoK8lo4X0onCIPio15oFkQc=; b=rEp1jv3hDyDVXeOfsrvLFdRs0c HIlTofKtGKuUo1iV0hV0ibE6/yN3MSwpXdeV7hqnHY8OnkH5VLJRhFfUvmTcZsRTJXTtKVzxXL4uz FnQJZpxffus4UcXzWIp4w0fZiOZWRLuxovNn3wqvp/zStAAdc8BjWyJ689u07RVYdgMeatGEtJeI7 n0q4EBoFbTr37AzTD5C4+aVmh/+RxJx3dNsgF9JsyKY6dTtePjPZsSF8/3L6fobdoW2oJdfKdGEZn SN6B1rHrmLV2vCuDwK44aGsIWUza8bjOE8Dx15Btu2DAt7mcE7ipVg/6lTkwwLevFKOASZfmZrz6q FBCly80w==; Received: from [2601:1c0:6280:3f0::aa0b] by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mFnU4-000f5w-Fq; Tue, 17 Aug 2021 01:01:40 +0000 Subject: Re: [PATCH] Makefile: use -Wno-main in the full kernel tree To: Linus Torvalds Cc: Linux Kernel Mailing List , Steven Rostedt , Daniel Bristot de Oliveira , Masahiro Yamada , Michal Marek , Linux Kbuild mailing list References: <20210813224131.25803-1-rdunlap@infradead.org> From: Randy Dunlap Message-ID: <4eafc072-1837-737f-973a-a4e0c815cebd@infradead.org> Date: Mon, 16 Aug 2021 18:01:39 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/16/21 5:38 PM, Linus Torvalds wrote: > On Mon, Aug 16, 2021 at 2:33 PM Linus Torvalds > wrote: >> >> So the warnings that clang gives with -Wmain seem to be much more reasonable. > > In fact, I can't recreate the warning even with gcc and -Wmain. > > I get the feeling that this was a temporary misake in gcc, and perhaps > only warns in a few very specific versions, and the gcc people already > fixed this long ago. > > Oh well. That sounds likely. We can just ignore this if you had rather go that way. -- ~Randy