Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp382291imm; Wed, 17 Oct 2018 01:33:58 -0700 (PDT) X-Google-Smtp-Source: ACcGV62yRkQIKRxFoi0ANRecBo8MdfwU+LAsbIz3ndyowFohQXuO6RhTOHDyfYecAtKu0H0kkCNQ X-Received: by 2002:a17:902:74c1:: with SMTP id f1-v6mr13146655plt.99.1539765238445; Wed, 17 Oct 2018 01:33:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539765238; cv=none; d=google.com; s=arc-20160816; b=XBOVzSRxNeDA+z9OLwIIi3NKqjjCI33WmtL5MqcN3gFl8PbakEUg8tBomME/ChFQYH Ly76nwPpnmiBKIzmB6GvE5dfC5jzymSfpKdda1vYTPREYhJXSETnwYCIyYFl0uwSiaKg 54gcZO9QolDqcsXCmZX9OMUDSw6CGrMWZte6/jVr+2KKDBkkAHzFgZHpNQYYfSCXiHqx 1iHt9/vO1o0+36QRrCfVutRuiJxTXiQJ61V6cKuRG/XI517VxHKNmJUdoY9wG652PC8V ItNobo5pkYYiJ+kppiiMUhgO9LGXtg191GWHwz4ApBrWm+56mywT0yfovm7aI4E/zizU k9Fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=TaYxZqz6lW3QiF9ICO6giX6mHriqoVXWIfkLhN49heA=; b=Fuv+LJZxjOOBRB3BaT+C7AyJcEmv/36DEG40NkmV2oKhi5AnVzuSOQgl/hfPtgCoFr JSeO8tVkn0vpfUnbPObA/sZSoIEyr51QDR2RE9MuWgfJBEmke4/ZHxmjAse0NzBpY2RC iqKMmMrHT5+thQnw6zREbnjmt8NSmIMVQ+HUTMEKqATdKdrtAVtMk0eQbEvcqk5AD34O XYrUCKoBHNMugAlvL6MI/WQcznyCP6MoV3vPtjE4XkUelqQ2T4pg4j0Aijbd3PKAhBNd dW14d+0VC5FGHEvzQW81nsOILC+8LyJGfBmNs1KvgU5Szdi0elKRTuZollTI0bptr0hb kYlw== ARC-Authentication-Results: i=1; mx.google.com; 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 e4-v6si17257910pfa.274.2018.10.17.01.33.42; Wed, 17 Oct 2018 01:33:58 -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; 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 S1727219AbeJQQ0a (ORCPT + 99 others); Wed, 17 Oct 2018 12:26:30 -0400 Received: from mail.skyhub.de ([5.9.137.197]:40200 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726994AbeJQQ0a (ORCPT ); Wed, 17 Oct 2018 12:26:30 -0400 X-Virus-Scanned: Nedap ESD1 at mail.skyhub.de Received: from mail.skyhub.de ([127.0.0.1]) by localhost (blast.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Kw1q_WYL5mlW; Wed, 17 Oct 2018 10:31:35 +0200 (CEST) Received: from zn.tnic (p200300EC2BC91B00329C23FFFEA6A903.dip0.t-ipconnect.de [IPv6:2003:ec:2bc9:1b00:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 5D9261EC0319; Wed, 17 Oct 2018 10:31:35 +0200 (CEST) Date: Wed, 17 Oct 2018 10:31:26 +0200 From: Borislav Petkov To: Masahiro Yamada Cc: Leonardo =?utf-8?B?QnLDoXM=?= , lkcamp@lists.libreplanetbr.org, willy6545@gmail.com, Andy Lutomirski , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , X86 ML , Michal Marek , Linux Kernel Mailing List , Linux Kbuild mailing list Subject: Re: [PATCH 1/4] Adds -Wshadow=local on KBUILD_HOSTCFLAGS Message-ID: <20181017083126.GB22535@zn.tnic> References: <20181017000809.GA21292@WindFlash> <20181017081115.GA22535@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 17, 2018 at 05:21:01PM +0900, Masahiro Yamada wrote: > scripts/Makefile.extrawarn provides options for the target compiler (CC), > whereas this patch adds -Wshadow=local for the host compiler (HOSTCC). Aha, this wants to fix shadowing for the host tools, ok. Next question: why not -Wshadow simply? Also, -Wshadow for the target compiler is an extra warning (W=2). Why is it enabled by default here? -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.