Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp25053imm; Tue, 16 Oct 2018 17:08:22 -0700 (PDT) X-Google-Smtp-Source: ACcGV63CPLld4opupz17PNODez7RnMIpUow8xlhNJk1ZnM9t/X33aUGz5YjXlzSHK8xSqhF+GJyA X-Received: by 2002:a63:9809:: with SMTP id q9-v6mr3728463pgd.128.1539734902012; Tue, 16 Oct 2018 17:08:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539734901; cv=none; d=google.com; s=arc-20160816; b=NUzXy60a2OwqDRzI2uttgnv+QpySxZRzdGLuj1Tg8YElHQavWCjN1q+k+pkYsLbb4z ZAAX0a814IrtAo0zvX0heorHXEFNFraAy4pj/Ul0+BCRXsEYe8ShuNTlAh+1wbYDevgS ug+pPE7MaXSfdIucwL1ZZyexIWfBLbeEqLxykLzaCJ8ostCFWTVhXLClxGj3gB+m4uBr 7j7ENQgCvDP7lo0LYmaySzXeGcR9EZKDfqaK5AipJUpmHy6nFHvaQvMHRKWJxFkDXKbt FhRr/AlrPjXiqJ9k0RCfkibrUB1u7KWtwyAxvTMNKJu9oDdlUw5yZ6a2UIakl002d5Cf dvtg== 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=iK7JrRXQ4BzZv59cX0PNNSA+/mYdwzHsLtoaqmIVT+0=; b=WpkGEjTP6LxaRoa+LPt/YVy06hTv8lendiMGY5WWPKiGJn7ybmTokO1yc+mKoSxMfb jlJuhLx31zqBlTSewdppRvx3tVEmuonKF/EsyEE5rwvBxdKk0pNRN6VJmP+SWJuy5QlB v+prsu1L+s+bW/nIdYgfiSHVgEuxtpUrBvekpqX199Zmldi4Rgf2wUSBtwg4dqnymchu wspEVS0TwHsmUQ1oW8wEP3CYQAxy7LDKv3mTGpBHfYK6N0v7kuVflRdwhsAV7rVgXnOG eykzOTkHwv5dR+u5RAA6/Ip7slDw/F2mSPWIIviHJsQaLqmKBQ0225pnGSxFrbdOfj6f s+zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sc7l7THG; 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 r25-v6si16399225pfk.83.2018.10.16.17.08.03; Tue, 16 Oct 2018 17:08:21 -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=sc7l7THG; 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 S1727337AbeJQIAW (ORCPT + 99 others); Wed, 17 Oct 2018 04:00:22 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:35019 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727171AbeJQIAW (ORCPT ); Wed, 17 Oct 2018 04:00:22 -0400 Received: by mail-qt1-f195.google.com with SMTP id d21-v6so15650935qtq.2; Tue, 16 Oct 2018 17:07:29 -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=iK7JrRXQ4BzZv59cX0PNNSA+/mYdwzHsLtoaqmIVT+0=; b=sc7l7THGn0Adn/KdCZ7TCG5pyXcTfZSNmfwX6u7ehLZBVoeTHuvUEGknFMbxbjSRrD LzorrkNxor3sxqgnoFBeNxqsqxMcuSToisIEaM/C5eIDDINLmYEkOvBCm4IPpWKf/3eY C/hRiSzzaOIpZPhBEuAeBSliCo5HyWALyDLxL8bA7kfX2x69ouTkXss6EwtYRP7MboBv 1EWBRttEssjgKnKcdHYGBcc9ziepJufvyZn3wGPlf9tb4vDoXHqVZASXtL8eYpRtZsbu ghjmipE1Q5N75U9K3FJ7k3E66xkxSUS789Al4h0LqSBQCv4Arxj9Nmocov2kHF99afMH bknw== 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=iK7JrRXQ4BzZv59cX0PNNSA+/mYdwzHsLtoaqmIVT+0=; b=nvBeFAU5ZZ84UiGdphAlGDQkxdqfrRUSP3E+gOE/VjcmOZjVy5q37OJgq7aeeRJYSd blCUIxQae5iTVo3UGvva1SLT0xBjW/ioJETzxxYhu2hiHLYd8MDQvfKN4kgS7jUDbjSu +cY6iiFnfWYIHLXCzXPANyfrSmTqGmxtW4wchXCa+Fs0IYA8/A/zRwCpqNjlLVy2EzuZ cVns3hmSkdSZQ4aDMM9HPJ06n0XbyO+Blh3rqsRzMeLtGhaHXokiTRgXBNr4XoUpOkCi sgvuXFwixQp++HwOFPJg07nG3F1YXJ2+jOOTn8Hw6NbQY+CBZvhJE0a5bmsiCkrzdTcl ZgRA== X-Gm-Message-State: ABuFfojPM8Cl1NbXp4BvR6wKVmdd7J5tBziA42/25DYUtVpHnGdGNcNX wAfWl91i/p1sKz/YZvy5ShIL4kdh X-Received: by 2002:ac8:7c6:: with SMTP id m6-v6mr23213726qth.365.1539734849095; Tue, 16 Oct 2018 17:07:29 -0700 (PDT) Received: from WindFlash ([179.159.21.48]) by smtp.gmail.com with ESMTPSA id g127-v6sm10067732qke.59.2018.10.16.17.07.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 16 Oct 2018 17:07:28 -0700 (PDT) Date: Tue, 16 Oct 2018 21:07:22 -0300 From: Leonardo =?utf-8?B?QnLDoXM=?= To: lkcamp@lists.libreplanetbr.org Cc: Matthew Wilcox , Andy Lutomirski , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org, Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org Subject: [PATCH 0/4] Adds -Wshadow=local on KBUILD_HOSTCFLAGS Message-ID: <20181017000722.GA20892@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 This patchset add -Wshadow=local on KBUILD_HOSTCFLAGS and fixes all code that show this warning. The third patch was already submitted, but was not merged yet. I like to think it's part of this patchset, but if it was already merged, please ignore it. Leonardo BrĂ¡s (4): Adds -Wshadow=local on KBUILD_HOSTCFLAGS Renames variable to fix shadow warning. kbuild: Removes unnecessary shadowed local variable and optimize testing. Changes macro usage to avoid shadowing a variable. Makefile | 2 +- arch/x86/entry/vdso/vdso2c.h | 4 ++-- scripts/asn1_compiler.c | 7 +++---- scripts/mod/file2alias.c | 14 ++++++++------ 4 files changed, 14 insertions(+), 13 deletions(-) -- 2.19.1