Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2655647imm; Thu, 18 Oct 2018 19:43:07 -0700 (PDT) X-Google-Smtp-Source: ACcGV60oLM6/iG1hEh2OAXcIgR3LFiPdF+iPE0rSuuLrEOM8KhhKI/QEWY0VOH1qs7GJ/52SnhfT X-Received: by 2002:a63:ac02:: with SMTP id v2-v6mr30807503pge.414.1539916987179; Thu, 18 Oct 2018 19:43:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539916987; cv=none; d=google.com; s=arc-20160816; b=Dlu9hm7DkNVAmpphdveRhpUDLcnqvc4+x5bOO6DD6iyBuanajmy5xPu/iiZzGfVWSa wg4yfNINI83LY0P28B5i70Z7h8YW1z4lGg5d0xBVR3/xCf81P1A1rdhTEzm1V1OgRDdW 7KlXB2L4hSw4F8JhfoiBXGr8Iv1M4zMSeXdATeW73oS2T2Q7KnLeWnLv4lvupZGFzdod jl7V2n6bHN5OWvf4cxmhmzSkRwaX/2qqYD+7x6KA/IGGB+5vF5UMEjYZto+4oYjm9a5i /aM7lkd7dQAttLPFFi/gH1+ZM/CpIoMbZGdeP/fpoFXP2oy3WCQuuFxEqwzM/LSEDbv3 Dzrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=RZR8C5Ssbmf1f+TZriYgPVcFQt5aZvhOnMDJa7+4MWo=; b=D6n1Lhep0WHrx202HhfdVfiqFSTEzpjxsjktNetDxfjbazoYafYYinDsx/p5ECFNYo 5VlfK4Ca2AM5uE4PAEkoHyzzw8SgmPJQtRRsapVGKqOhe6DQ2jdG84CxMpFN8RfVQSHJ 2L7J5IWYX95J35+aJiHmS3qo2iCIiXY3edARm1QH7nl5seWsEQMpaM3tjVU51a/v3dqd p/rUm4rQSisgG6hEf/C3Mm5nW2pN3QGi8ikFT7ymdXNZxP7vdMRzv4v7hh1lRIf1DhyM yhwdYMYyBKwWJMgNKtiyB0RMjaT7KwjL/y/clrRS52B/3NUDHyZUcDmm0aG7bqh2gbfP wFJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="EjLsBP2/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c189-v6si5867992pfa.106.2018.10.18.19.42.47; Thu, 18 Oct 2018 19:43:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="EjLsBP2/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727033AbeJSKq0 (ORCPT + 99 others); Fri, 19 Oct 2018 06:46:26 -0400 Received: from conssluserg-05.nifty.com ([210.131.2.90]:32540 "EHLO conssluserg-05.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726747AbeJSKq0 (ORCPT ); Fri, 19 Oct 2018 06:46:26 -0400 Received: from mail-vs1-f52.google.com (mail-vs1-f52.google.com [209.85.217.52]) (authenticated) by conssluserg-05.nifty.com with ESMTP id w9J2g7bL003522; Fri, 19 Oct 2018 11:42:08 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com w9J2g7bL003522 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1539916928; bh=RZR8C5Ssbmf1f+TZriYgPVcFQt5aZvhOnMDJa7+4MWo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=EjLsBP2/LUMHbSwRo5UICGDIhlvjjqBctIWOBdB5D8m/idjKdZbaGnRx3zUd+lySY sFlVeQf7Av9p+gF9ojY02atH/AAxRd7MYcGEXzaT3UXmBW1oSYd/m+q+cl6Tf0mpfS u783Nvn5q+rQFeN4DoYi+dkfsgomAGM7zqtQHhVy9X7tcuDLTt47q+qGq9UBApNwdE uQJLiziFfRbLKWnh65nvtcYHSQ1j/DL6NPqj+go++IFk0c5EDXTeyveE7kzkb/GCPJ Y+LL2iO/1AFNNfF0GN8A4hm13VhHgcD5j/8TxBXjIl9vRi7KHcz/Prb9VL1cBesSsv NBlXJCAhdexBQ== X-Nifty-SrcIP: [209.85.217.52] Received: by mail-vs1-f52.google.com with SMTP id g201so24388092vsd.12; Thu, 18 Oct 2018 19:42:08 -0700 (PDT) X-Gm-Message-State: ABuFfohQeb9wA2M9C3TqweOEcKz6GkRtOlaG+krjuqcyv6zyCDW7SH0R /dBaKu4odFabS7Uw97yi7qgQYG/mDYliofLwf14= X-Received: by 2002:a67:5fc7:: with SMTP id t190mr13800721vsb.155.1539916927299; Thu, 18 Oct 2018 19:42:07 -0700 (PDT) MIME-Version: 1.0 References: <20181017000809.GA21292@WindFlash> <20181017081115.GA22535@zn.tnic> <20181017083126.GB22535@zn.tnic> <20181018091606.GA20831@zn.tnic> <20181018165057.GH20831@zn.tnic> In-Reply-To: <20181018165057.GH20831@zn.tnic> From: Masahiro Yamada Date: Fri, 19 Oct 2018 11:41:31 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/4] Adds -Wshadow=local on KBUILD_HOSTCFLAGS To: Borislav Petkov Cc: =?UTF-8?Q?Leonardo_Br=C3=A1s?= , lkcamp@lists.libreplanetbr.org, Matthew Wilcox , Andy Lutomirski , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , X86 ML , Michal Marek , Linux Kernel Mailing List , Linux Kbuild mailing list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 19, 2018 at 1:53 AM Borislav Petkov wrote: > > On Fri, Oct 19, 2018 at 01:39:21AM +0900, Masahiro Yamada wrote: > > It is not realistic to enable this warning option by default. > > I believe the question is whether to enable that warning by default in > KBUILD_HOSTCFLAGS. Enabling it by default for the target kernel is of > course, too noisy. That's why it is hidden behind W=2 there. Sorry, I misunderstood the question. The difference about the noisiness between CC and HOSTCC is just comes from the amount of source code. Adding -Wshadow to KBUILD_HOSTCFLAGS emits another warning in Kconfig. Of course, it is easy to fix. But, I just started to think this option is a kind of harsh... -- Best Regards Masahiro Yamada