From patchwork Wed Oct 24 04:03:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leonardo Bras X-Patchwork-Id: 10654139 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 6F14F13BF for ; Wed, 24 Oct 2018 04:04:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 543D229DB8 for ; Wed, 24 Oct 2018 04:04:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 43BC829DC8; Wed, 24 Oct 2018 04:04:04 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,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 D82B629DB8 for ; Wed, 24 Oct 2018 04:04:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726082AbeJXMaV (ORCPT ); Wed, 24 Oct 2018 08:30:21 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:44471 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725996AbeJXMaU (ORCPT ); Wed, 24 Oct 2018 08:30:20 -0400 Received: by mail-qt1-f193.google.com with SMTP id b14-v6so3786321qtr.11; Tue, 23 Oct 2018 21:04:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=bhX8KOvlS7Fej6I2quLrqxEO3r5o2agNCXzVwB9o43A=; b=dvUVYCRW20lH9KB599qCaqBJY8GV879Zv4pXOrAKT1gwOnTQtZcPzAags2eZ1unDYA pXE4vLCqbP1XtISc8q0urwkBwhRrsXpOcQQWUGN/LlLBMHiF4CV+7I462sK3zWaSUXgY bCZLtIjvOIepRljPeof1WgmiLzpRguarLch7joanJjyezKWPyD7FaZK/T7lOJGchvEjt 9ovIPsKIy2q5YD3DeInCyg/+ha5yQX37mOJqdt/THGwsPYWoJUUuOAIMDngfgDN9aRyn nSuUUwRX91VRQnK13Sn++lU87eYMd48gIHMKF/br9sMYLA4QrIFHkSha3pW6+r6PBKGC 32+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=bhX8KOvlS7Fej6I2quLrqxEO3r5o2agNCXzVwB9o43A=; b=AUaOavp2znpFKYX5E4c3EZGLiBfH9kzrtDtIopdMlpEGd1+0Xrr2DgbuHvONoHTh0k 6khp7cS0qduI+yZxObO344SAA2ebpwH8MU9I2Vve9DfrWfqjU5JsA9jTdbeV5q4QG0tF YEsEPFP6RVAhWNXlYg/DgMr419rXhAOctn65AYzrnp4gMNTrlSjSWYxmPXtYd3oso14K 7NKeCLXgUd/39cKLopHzxEdWoUVqUGj+zRBDNwBjMJ3/ubtbsJNmb6cesnvwy+8ksAbs u9IpsiR6Abtx3FrcTXZpva9achI3SroDg5XVdLcHT6FMj5XfZEhCWNyRrWRJLpyMEWG7 pU9A== X-Gm-Message-State: AGRZ1gJD7H/T508nzaDhDLQYpkY4ceY+LFTJYp/8jLZmfAM++MgG4nxB Be4vkGDLVQ8+Ggfo9TWLUek= X-Google-Smtp-Source: AJdET5cgtOKmKoACIz+QVsIAphH2B7db6UV4BG2w9QZ3pPSjmNMdA4V8b7yRyVAQTyhvYHFUM0dhQA== X-Received: by 2002:aed:30a2:: with SMTP id 31-v6mr899085qtf.127.1540353842320; Tue, 23 Oct 2018 21:04:02 -0700 (PDT) Received: from localhost.localdomain ([179.159.21.48]) by smtp.gmail.com with ESMTPSA id e195-v6sm3229126qka.2.2018.10.23.21.03.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Oct 2018 21:04:01 -0700 (PDT) From: Leonardo Bras To: lkcamp@lists.libreplanetbr.org Cc: Leonardo Bras , 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 v3 0/5] Adds -Wshadow on KBUILD_HOSTCFLAGS and fix warnings Date: Wed, 24 Oct 2018 01:03:49 -0300 Message-Id: <20181024040354.24879-1-leobras.c@gmail.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 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 on KBUILD_HOSTCFLAGS and fixes all code that show this warning. Changes in v3: - Better Cover letter - Better commit message for patch 1/5. - Fixes what should change on patch 3/5 - Removes accent of my second name (better for searching at lkml.org) v2: https://lkml.org/lkml/2018/10/23/151 v1: https://lkml.org/lkml/2018/10/17/169 Leonardo Bras (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 | 19 +++++++++++++++---- scripts/mod/modpost.c | 4 ++-- 5 files changed, 26 insertions(+), 14 deletions(-)