From patchwork Wed Oct 17 00:07:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Leonardo Bras X-Patchwork-Id: 10644455 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4487913B0 for ; Wed, 17 Oct 2018 00:07:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2B50E2868C for ; Wed, 17 Oct 2018 00:07:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1EBD3289E1; Wed, 17 Oct 2018 00:07:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,FROM_EXCESS_BASE64,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C94872868C for ; Wed, 17 Oct 2018 00:07:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727191AbeJQIAW (ORCPT ); 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-Google-Smtp-Source: ACcGV63QGOYF2i8Ea+47dPZKHG56Qya4fj/oDzcdit3TkkxLTCIeHKpgeD0XRQyOmNd4O9B+e0hdLQ== 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-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-)