Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp141643imm; Tue, 16 Oct 2018 19:57:44 -0700 (PDT) X-Google-Smtp-Source: ACcGV6079UkXv1hbS42PFuGONDvrkfvWr8MurWszwiR47a4JLbq8Nyj51t+iYHagRMz/RCZZQnGV X-Received: by 2002:a17:902:e01:: with SMTP id 1-v6mr19289977plw.207.1539745064178; Tue, 16 Oct 2018 19:57:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539745064; cv=none; d=google.com; s=arc-20160816; b=zYK9EgjezjsOfximHDI8Jub3wTy2uQ2RB4Hexy3qGF4rtpbeoypCtFipOb7COK6pbW Iyq6tacOlhIsxDyZZVIaSCL0tuWmfjKrs/Whw58gsjuCjMDb+Xzu+GQaI2EDjkjiEw4J sq6JDmrI+unQsU/BpSBLS68deXeT10JCxVbMsRCjujAADBVYI/9VlxlPAuDUpw5vzaWe OXv8Jo8L2Oq8cc6Ho2cVwlnzAZchoMpP0vWQi95TdIIuhFOj7+2LcCSWBpfMhmMLnnB7 VqMmrX39tJeGTv+10PMPwCS91nJgfLP7DH72ewp8hhF7QQSlBZN7k8GdDA/7F/iRJceS Hvyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=m5IUGdii/M9sXi5C4halVokt26M1fUvRyuOCoFTvlbA=; b=ZrJ5cIcX57BAKUL7BtXN1xoMgrZrPtWjUeGnC9I0Snz5duh49f6XdOM0R1O9/kx604 ivv3beYGW5bAbIPDbPS6sOT13JL5m47MpWVHokEiFb2CNsTxLhNJ02bn0FjpJ9wFqQrd OVNgT6xqS4eLHwNl3WYtPugr3s1CTqHvvSKz9HCqctWWel+mgD/rcVq4ODA/1HR+h7MI JCjnadv27C8WzfLuMa8G60nKhhDPz6ZUbXiQaP0yoNnJgq5IBh5cY8Iilj62NjPV5dZ8 lB+d0NTwzJNLdfZCrRaxP3QEb4XndrJxFJ5sEF23EgIniaFzgxD7c0IUT9MNAl0fXlU8 VKdA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 94-v6si16841956pla.11.2018.10.16.19.57.26; Tue, 16 Oct 2018 19:57:44 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727332AbeJQKuc (ORCPT + 99 others); Wed, 17 Oct 2018 06:50:32 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:39024 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727208AbeJQKuc (ORCPT ); Wed, 17 Oct 2018 06:50:32 -0400 Received: by mail-qk1-f195.google.com with SMTP id q5-v6so15592383qki.6; Tue, 16 Oct 2018 19:57:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=m5IUGdii/M9sXi5C4halVokt26M1fUvRyuOCoFTvlbA=; b=JCdpO8K5IWwwJ0J+vdq84dSFhRWs5taGPHyE6PWUhRjpvJS9yrDpdRASVn1eDEctFy 9cGt7XhTCv3fJVwMYduA+Pq1mOABMbpZc234DB2c71F6VWoAYpMYx7l1ioPAK7leh62k kAbtuCzCt7hBLWLHN2tBuqdrWApZUzzmJDa8VWN53kFd1j8tvYtVzipC+vk0ODKrzZpo jfaVyinzs8aX8cCoFrtAgmW4JITAto7GXy5gWKuqh0Z/txlrZL8o/t2dHdltyqQqwa53 A0SO7LlxoynCzQk/0+Ib9gRzLImYfQo7K0zaNqozVbKqYUkpnTQ9nEYyrcn9ri5mvaMy FmpA== X-Gm-Message-State: ABuFfoj/LynZumHRAzLy+gKPaWI/ub5o9fJcwU+cCPkZNAWNbXfgZRly zpdPR+5iK7UvzvIyPlaKe4A= X-Received: by 2002:a37:3b05:: with SMTP id i5-v6mr22077114qka.172.1539745022880; Tue, 16 Oct 2018 19:57:02 -0700 (PDT) Received: from ?IPv6:2804:431:9718:6346:661:e081:23ef:66b? ([2804:431:9718:6346:661:e081:23ef:66b]) by smtp.gmail.com with ESMTPSA id o185-v6sm9186232qke.34.2018.10.16.19.56.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Oct 2018 19:57:01 -0700 (PDT) Subject: Re: [Lkcamp] [PATCH 2/4] Renames variable to fix shadow warning. To: =?UTF-8?Q?Leonardo_Br=c3=a1s?= , lkcamp@lists.libreplanetbr.org Cc: x86@kernel.org, linux-kbuild@vger.kernel.org, Matthew Wilcox , linux-kernel@vger.kernel.org, Masahiro Yamada , Ingo Molnar , Borislav Petkov , Andy Lutomirski , "H. Peter Anvin" , Michal Marek , Thomas Gleixner References: <20181017000834.GA21330@WindFlash> From: Helen Koike Message-ID: Date: Tue, 16 Oct 2018 23:56:56 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <20181017000834.GA21330@WindFlash> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Leonardo, Thanks for the patch, just some small comments below. Please, check previous log messages with git log arch/x86/entry/vdso/vdso2c.h, you will see that most patches had the prefix "x86/vdso:" in the commit message. On 10/16/18 9:08 PM, Leonardo Brás wrote: > Renames the char variable to avoid shadowing a variable previously > declared on this function. > > Signed-off-by: Leonardo Brás > --- > arch/x86/entry/vdso/vdso2c.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/x86/entry/vdso/vdso2c.h b/arch/x86/entry/vdso/vdso2c.h > index fa847a620f40..9466998d0f28 100644 > --- a/arch/x86/entry/vdso/vdso2c.h > +++ b/arch/x86/entry/vdso/vdso2c.h > @@ -93,11 +93,11 @@ static void BITSFUNC(go)(void *raw_addr, size_t raw_len, > int k; > ELF(Sym) *sym = raw_addr + GET_LE(&symtab_hdr->sh_offset) + > GET_LE(&symtab_hdr->sh_entsize) * i; > - const char *name = raw_addr + GET_LE(&strtab_hdr->sh_offset) + > + const char *name2 = raw_addr + GET_LE(&strtab_hdr->sh_offset) + > GET_LE(&sym->st_name); Could you please use a more meaningful name instead of name2 please? I believe sym_name should be fine. > > for (k = 0; k < NSYMS; k++) { > - if (!strcmp(name, required_syms[k].name)) { > + if (!strcmp(name2, required_syms[k].name)) { > if (syms[k]) { > fail("duplicate symbol %s\n", > required_syms[k].name); > Regards Helen