Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp2872619ima; Mon, 22 Oct 2018 18:14:31 -0700 (PDT) X-Google-Smtp-Source: ACcGV62nxCOKvSEnAgzHh45xxwPQU/9WlGscEqsKSewk9KyxKNmhuzbIUpOuPLHQ9YUQiJL99SlF X-Received: by 2002:a17:902:20c9:: with SMTP id v9-v6mr46876056plg.156.1540257271481; Mon, 22 Oct 2018 18:14:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540257271; cv=none; d=google.com; s=arc-20160816; b=xK/IZlLhoVjomRdyg1E1jGaB6qZdaMx4oJaKpD+GCU8O06ASCDs8inIkzMverqls4t mM9ky3ewPc+h0JksjGCgSH0fY8WZR0LxDf1C95RJ4goeTKps3wKepl8AdAPOkGFqWr64 S397eE+2VObtRD/oXvsgoEeozKPaU86cczS1hTTkJP/BJHMl80Sly7rKeYEKqmHfbe// l6pQyC6ogM4cY4I13iPDRVPH3t6VLg0UBJtyjuOxp4QJK4Tyn0JwFt/s4upURH0N5BaB dXfrTlf+KMAhTPowRZC4LnfUHFtcuAFscy/+57FGDOyzayZPcpYJeaiS0J266FZ7ooAL iPpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=nwrxgX3lNu2TKShW1CrJs6kp/ovq+BHPlDc2ztaN5AI=; b=jYgjVob5JWSFaPbzxsIr302UrMFL/e/+9UmG/E4LMhZFjKA6n7/vSve7Q30qEFunJH 9yoJJz59FaXJA6RTklcdK4Amj0rIcBOYlj/VQ3zMONmRnXZ8RzooJWiYHhi5pKuSGuMA 8d3xK+tnGP99sB7rFPpjHp/WQq9f+xpaFIJjCfCDgDF2yQ3Lqkev7CrQOwU6IMZUrip/ Q3cgyZNKVPenT4qRnOtmK5glHfaFgnTSaTQEUEgUHp/R6mjS79PsYi9QObB9ZxWTResp xRgXtnFNOml8GeVRTmLEEGqJ2xscGSLno6sXrxgZ6IOvGlZ3p6bH5Kpq4xvLBvOYoPyu wRTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MYYo5xcX; 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 w23-v6si16599216pga.258.2018.10.22.18.14.15; Mon, 22 Oct 2018 18:14:31 -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=MYYo5xcX; 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 S1727783AbeJWJev (ORCPT + 99 others); Tue, 23 Oct 2018 05:34:51 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:40551 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725883AbeJWJev (ORCPT ); Tue, 23 Oct 2018 05:34:51 -0400 Received: by mail-qt1-f193.google.com with SMTP id z9-v6so8480321qto.7; Mon, 22 Oct 2018 18:13:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:user-agent; bh=nwrxgX3lNu2TKShW1CrJs6kp/ovq+BHPlDc2ztaN5AI=; b=MYYo5xcXVL7cABSJ2WHv+pInsUOnmwT6tgk7V6m6gP4dHrxGIpzdnm16s0BrJyuz32 ekX5OZ4tw9wd44ttK0nR7xit2SIL3gwbKfkoXntE4ErGP0yO4pNH8NFbiYJY4hFSUzWK KbTf5RN+o9kyOQuFJksjM8SA9Rc4jLD29d20w0RMUpqwTNYpk06ToJRny7XMEInzdNrA G4XpAMqKc9dFX1h/xk3IGHvi0rW47/hBQ3w9ts90kuhqa16IDm/9YAxefuJrza4w2lTW 4cGMMSdPEcwKv0WIctQIBAXE/SUoKEq+V63VV0dCBajEdMqBWSxU/BOTwHSIQ4Ju/ePa CluQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:user-agent; bh=nwrxgX3lNu2TKShW1CrJs6kp/ovq+BHPlDc2ztaN5AI=; b=hKMDhypLiRHOWlglUKrawx8Ojbe3nc9GgTCFNZ8x81MvQIu4EyWNZYPYFr4eJJK+J1 qBb6TWahZpNZBaRX0u5JHIPEw+Y9DvYgyBLszVB6UjhJRBR+/CoIPoHpO4kuvygfZcG5 HbCc6TTROIjOi+750ahWgs3aofYYmKQ2TIDAvIMSHAyzBqJJSg3UtoJjlf+/QOb0jdfY eA4GY/fQ4VP23N0ZWz6OaDKGVsppP/2XyuJ7Ic9Dktj3gWL/qBL6y9zLIb8k9/6rUH3e 2ODoSveIWms5L2G2RbU2FOJNsHl31nibdeS4xCA/gWg4a1oKMkJsYeYW3vfXU9FndB3H BwBA== X-Gm-Message-State: ABuFfohINQdzmV41z7TcnJOpOCls4TFPhaxfZDQVIwEksPr7mOe4JxUt v2W6q5wQf8mQ2kDGrr82hsw= X-Received: by 2002:aed:2f01:: with SMTP id l1-v6mr45397580qtd.71.1540257230860; Mon, 22 Oct 2018 18:13:50 -0700 (PDT) Received: from WindFlash ([179.159.21.48]) by smtp.gmail.com with ESMTPSA id j6-v6sm22856111qtb.25.2018.10.22.18.13.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Oct 2018 18:13:50 -0700 (PDT) Date: Mon, 22 Oct 2018 22:13:44 -0300 From: Leonardo =?utf-8?B?QnLDoXM=?= To: lkcamp@lists.libreplanetbr.org Cc: Borislav Petkov , David.Laight@aculab.com, Andy Lutomirski , Ingo Molnar , helen@koikeco.de, Masahiro Yamada , Michal Marek , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/5] Adds -Wshadow on KBUILD_HOSTCFLAGS Message-ID: <20181023011344.GA6836@WindFlash> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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 Changes in v2: 1- Makefile change is the last, so there is no extra warnings on building intermediate commits. 2- Replaced -Wshadow=local with -Wshadow 3- Created macro to accept variable name instead of changing logic in file2alias.c 4- Drops if/else logic change in asn1_compiler.c 5- Renames variables to meaningful names in vdso2c.h - The previous logic in file2alias.c will be available on a separated patch Leonardo BrĂ¡s (5): x86/vdso: Renames variable to fix shadow warning. kbuild: Removes unnecessary shadowed local variable. Creates macro to avoid variable shadowing modpost: Changes parameter name to avoid shadowing. Adds -Wshadow on KBUILD_HOSTCFLAGS Makefile | 2 +- arch/x86/entry/vdso/vdso2c.h | 13 +++++++------ scripts/asn1_compiler.c | 2 +- scripts/mod/file2alias.c | 24 +++++++++++++++++------- scripts/mod/modpost.c | 4 ++-- 5 files changed, 28 insertions(+), 17 deletions(-) -- 2.19.1