Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1539097imm; Wed, 17 Oct 2018 23:16:40 -0700 (PDT) X-Google-Smtp-Source: ACcGV61IdIvty+/OlMnYGcvrIUpCDSw6YvEXz8QFhrw4cwIUvmKPUOnG2xuWp/KmXlbC1VI1KTyt X-Received: by 2002:a63:6086:: with SMTP id u128-v6mr5115831pgb.323.1539843400548; Wed, 17 Oct 2018 23:16:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539843400; cv=none; d=google.com; s=arc-20160816; b=E+6oNrTgJjBHjJcCB8Fec9P+DvUfPIKBoD/OKihSPN5qKVMPhoTuGIo/Dn2wYz39BZ Kjn8cv8DnOhJarLd+5dO0nA7RavpUvPIiUlTyTpXR6dtS7249uXNtHZHYLgBOGG6+X3E sdC+Nx1/f6YiYgMlndabIexG920hLExPmeZmlsMSvovOU6YeWcMInuj2sDlZ33ELOLVD +PnfQE3nPYIUPt+n2ihZh6mrV/ZtWWCLyDI88tcKywuPlwdA6xzdpU+nRXNnujYq3bvl CgfG7MrNDLHE45rM5MpT53sIruDNtznIaii2NFmGn7K0ZwqRPcqX/FWA4y5rXRfnt+Wr GlNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hi5S1cE1lZbguBgiKYdwGUeUdS6bx4RZBEkcJQl2eY0=; b=VFXFVrfgjTOzMFzGKE3i2F0b1jctNBA+jNV572somF7ZHcyKdlQ1T1/4p+PhL/DwEE J3QjVmzcJwn/eHkQjPwZCNjH7BZwS1iwdbZgrwcc0RQVVDxmE4VJ5eAdoAdnknm+/s7Z wAfPqsqQF4r471Eu3sc/3jQAWQOj/C59Dy3dSP/f1aQ/cJOQ1Df3OCDBBDzL9KCcKytc UdfCojmIdc94CMa5TPne+MdR4kwX/gW7lzp6Ep+c5iIbIRxSLLt3+RMimi3ouXl0rquW 8rn7SVAw4xKbwRN+V9VqjcvvP6/dTkfSggoHC0epNLBNFngjd//IRiKK38/aom+AtBpL VoAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=hBDfOMSU; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e26-v6si19814438pgb.161.2018.10.17.23.16.24; Wed, 17 Oct 2018 23:16:40 -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=fail header.i=@gmail.com header.s=20161025 header.b=hBDfOMSU; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727453AbeJRNqk (ORCPT + 99 others); Thu, 18 Oct 2018 09:46:40 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:35383 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727331AbeJRNqk (ORCPT ); Thu, 18 Oct 2018 09:46:40 -0400 Received: by mail-wm1-f68.google.com with SMTP id e187-v6so4429105wmf.0; Wed, 17 Oct 2018 22:47:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=hi5S1cE1lZbguBgiKYdwGUeUdS6bx4RZBEkcJQl2eY0=; b=hBDfOMSUaYPQYkI0Y558EFMWzuYlNVYR42HmmIzy4eP5T3fljyjjWeQuj0GgNHfwvG SB5CEhn9tOHGSf/3RA0mMbn9STW5uX02rdC0br9VgfX5SkyJ8MlPuzFs5BcPF57P6SYi 7nltwk8zuv+ewP7TUhLwHF1O7AbEmmJDOBMMArBTSk6bCemZJvbgjFw3XWU2NJNdhSgh WTXfDRvJ8VjSaZJRTYzETs2ySm2AYo2M77bh55F/bD/k3RG3UloXuVTUGk/ul77jV6iI 71w8nVhFHoH+Nj2+reKL8FD9oYP89dIzLzFncS3se32W9IXbj53wK20Cbtmm7I7Fxt/5 SK6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=hi5S1cE1lZbguBgiKYdwGUeUdS6bx4RZBEkcJQl2eY0=; b=QwbFKk7DHTPX8L/nfjetTydOHNq4uwqWX1/eUI3hio+GsXfrGBSEQ/Axs15WRZn5d5 A+uwq3mC9t2/Ci63H/5EowuDNMdOkhgg0IIZZes10+R+mIX43lA2a38mri14sUifsx0C w/jcgevZJtpC3VeXJQGuo05WSLz765k2Lr3ANOsr80BUxFQU8nUeVufpyVhsmH/LBP9C dc10iP5U2kIipqv2LrCdWvLR5/LYsWaSy98WFJBBItmhl0LUZ244beNrAzrsrwB736pa h5xLPJjbX7LSUUfaxC7Js7pDOSXDDJDVkgWXr1zSlhGm/uwyaLwXudgufdAxIM/OuMbz mQAA== X-Gm-Message-State: ABuFfohcOHCTEoO4fyukbrvaZM3AXet+8hXaG9nDIffqqZmsNyUgKuSE Q05cFsjuzaJtaRYu5WuFVXU= X-Received: by 2002:a1c:9d43:: with SMTP id g64-v6mr5591986wme.26.1539841641298; Wed, 17 Oct 2018 22:47:21 -0700 (PDT) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id u5-v6sm20610519wru.16.2018.10.17.22.47.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 17 Oct 2018 22:47:20 -0700 (PDT) Date: Thu, 18 Oct 2018 07:47:18 +0200 From: Ingo Molnar To: Leonardo Bras Cc: lkcamp@lists.libreplanetbr.org, Matthew Wilcox , Andy Lutomirski , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org, Masahiro Yamada , Michal Marek , linux-kernel , linux-kbuild@vger.kernel.org Subject: Re: [PATCH 2/4] Renames variable to fix shadow warning. Message-ID: <20181018054718.GB62071@gmail.com> References: <20181017000834.GA21330@WindFlash> <20181017060151.GA1105@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Leonardo Bras wrote: > Thanks Ingo, > On Wed, Oct 17, 2018 at 3:01 AM Ingo Molnar wrote: > > > > > > * 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); > > > > > > 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); > > > > NAK. > > > > Please read and understand the code and rename both variables to > > meaningful names, not just a mindless name/name2 ... > > > > It's changed! This change will be available on v2. Thanks! Ingo