Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1309489imm; Wed, 17 Oct 2018 17:47:53 -0700 (PDT) X-Google-Smtp-Source: ACcGV61IB7ODdnv5imt3y+reul9hs7VMBRwMvEQSQKQEaPkYTO7j5voLZQRJA7hcsBqj8asqkX+6 X-Received: by 2002:a17:902:2f41:: with SMTP id s59-v6mr18598350plb.277.1539823673892; Wed, 17 Oct 2018 17:47:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539823673; cv=none; d=google.com; s=arc-20160816; b=okysLouQ85/zYHd4yDpIHNywF9c14uo+1BKu5WBfxjBCwW5ZlsMiIcqTkEF/4tqLR/ xy+QkWqEsWSBOFS6PT2VAq6A989erdkWqbfwqgK28pVA00VA+uiWUmC6hCxMykCTr9oU SwiZol11SC9HKG5iuYaEIUps7t1F2ksNUeFfsRjypPK64rXRZg0OKS9b5N6zTqC8MTq5 zsiD1+wx5XOD9F6q74r4gU9TmUZrs+1+Sp19U3hJROtQ1sQi3waSylg/PxbJRfuofiby BAS2WcQQirzJEM39dbC3JcwND8WVuM29canWc0V5yUSNgVxacDJdGOxPXsy3/YnuBUYp eqpQ== 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; bh=+pVNULNmaIPdhGLb418dkGShvlwgSldpOtquYxd0t40=; b=RXjsbSkulZ06vpWcigMnOFNEsefCHXJC0zTK1KCODplPqpZ6P8OLAGbuuL8nsJB0EB IAwV2wht4dK4YW09nNN7Mrk4gnSIqDVhQGSfyb7d69iOXsJBPc26JZqXyjjDZ4n2rOtf H4BnThyNxrYaqiBM+5FCqUn8eMnjdEmkYQKI1SemEg0GaiTtV3Pz3iY9mm0X053Tn5pY oe8CTXCnZ2c5FBxD51bK+z7BmhGdES5vy92Uy1dDdsrpKP4fnOZZp5Ssj58mS+YVpvER Ky6AjkQ/5NkHW4dqbPx/61twNZiR5BUJ3/KPWVD0tGE6DnxcWlP4IRPs9LuTmadUap54 8zgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Qt/MNWrV"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i25-v6si20304003pgi.426.2018.10.17.17.47.37; Wed, 17 Oct 2018 17:47:53 -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=@gmail.com header.s=20161025 header.b="Qt/MNWrV"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727328AbeJRIjW (ORCPT + 99 others); Thu, 18 Oct 2018 04:39:22 -0400 Received: from mail-ot1-f42.google.com ([209.85.210.42]:42577 "EHLO mail-ot1-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726644AbeJRIjW (ORCPT ); Thu, 18 Oct 2018 04:39:22 -0400 Received: by mail-ot1-f42.google.com with SMTP id c23so26321998otl.9; Wed, 17 Oct 2018 17:41:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+pVNULNmaIPdhGLb418dkGShvlwgSldpOtquYxd0t40=; b=Qt/MNWrVz5d0Aqz6od4IrPOGnkRf73kWFZOp1iJfLwXNZEIxN6fhf4L8Yxg7JkA0Eb M90NxKGKFARvEY3tCpaPndOotEACYYuo/csdm7lo0riXxgkRlTmXeoRENaL4AH4kJZO8 TVoqOwvhOojUTyj77F/tR+1e+Ooy5kcRcaYmRsr11vptnlGlLzklf42oBbP5ThbqdUpt Sl9CGuldtbNur50keOp8iq0V/tEplma32MyUwabZdEJE3cfoqQDuNzkqMrupMcbM6fXR XODw7yAekX2iGJEOtZK5Y7wbGTuZyJoPmPMVMaWRQuG2IRv0WzGE7piuz4sH5xZKW0Rr 0TJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+pVNULNmaIPdhGLb418dkGShvlwgSldpOtquYxd0t40=; b=Qs5CdSTVDZMpvurGnbFf/m0U18nUSVmB6tPuRZpglFdAgHH4j9UcLsdvKW5VKVkIJC 8dsfoCntI8XIEtiaFrUeXMYOGfkIU/Kp0s5OTsvaLeSy4r8DMMS8wgIaY6iWFZO/SBWL haSHOqEA7js9akNn7IQuXEqVyFm9I+icgK3m8/VGhY8uhFTmidl7HNxoSK+T86jcAVuW oreYaGr/TPPjSoYielRaDMsmiZA5MSdXRB3fmiV0864whMy34JaaN2GrYardXCsexQqp 5zKRDTKyKjmu7hmXq0x0OwPdzX6KV977VWJtesSkTTzsJn2gFiSsVtlYs5sLeZKsbhNP 3rnA== X-Gm-Message-State: ABuFfojkFUDMSO+M1Oz+0JcTP+Ksr8EWIThYOSgNF6D+mDtcxlukk19O WRULjjhBhXsp/yrBtJLrmlMK0cPab00RCr24/tI= X-Received: by 2002:a9d:948:: with SMTP id 66mr18529453otp.178.1539823264828; Wed, 17 Oct 2018 17:41:04 -0700 (PDT) MIME-Version: 1.0 References: <20181017000809.GA21292@WindFlash> <20181017081115.GA22535@zn.tnic> <20181017083126.GB22535@zn.tnic> In-Reply-To: <20181017083126.GB22535@zn.tnic> From: Leonardo Bras Date: Wed, 17 Oct 2018 21:40:53 -0300 Message-ID: Subject: Re: [PATCH 1/4] Adds -Wshadow=local on KBUILD_HOSTCFLAGS To: Borislav Petkov Cc: Masahiro Yamada , lkcamp@lists.libreplanetbr.org, Matthew Wilcox , Andy Lutomirski , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Michal Marek , linux-kernel , linux-kbuild@vger.kernel.org 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 Hello Boris, > Next question: why not -Wshadow simply? Good question. I can change it to -Wshadow and fix stuff for v2. > > Also, -Wshadow for the target compiler is an extra warning (W=2). Why is > it enabled by default here? The idea was to put it as default and fix all the shadowing warnings. What do you think? I am open to suggestions. Thank you, Leonardo Bras > -- > Regards/Gruss, > Boris. > > Good mailing practices for 400: avoid top-posting and trim the reply.