Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1244407imm; Wed, 17 Oct 2018 16:17:04 -0700 (PDT) X-Google-Smtp-Source: ACcGV62VWsiWTEd72HvmN9njg8+z6tR+191AADVImWzcnah59k/k0BpFjsSB1pwQk3+8kFNNbVcs X-Received: by 2002:a62:c2c1:: with SMTP id w62-v6mr27982552pfk.35.1539818224421; Wed, 17 Oct 2018 16:17:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539818224; cv=none; d=google.com; s=arc-20160816; b=UEt71XxK26BF45VOKv9x3Y7g6r57/SM4NaGrXcfTiJRnQmZsTt1n7ULZfWcTH+29qj Vsf0NT2ch7ZxQTMzhrkPx9b359MUCrMhwlTxfAgkrBROufdKS6vOH74Dx2ZC9uOmVN+w HwHM7MZ0cXeMjgEVMd9AhxKTEqLy939Pnmcz6wG8SIHYYT8/4Nmj85CtvMb2XzQMO6ZA lXCvD+W9uyxAxuTkzAQxPuEo1dIdc1ppM1z2mBT4bVcHLT41tYiKR3NqhtJuUkYEjhc7 HPT14F0xq0bEN3btr2iCgikJToMODQQVYsTjLtyNvXENCtEa+zi+LVfGdSSCs5g3b2mT 9+XA== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=pwuBYpPORalsYGLaBcqAoK/4jYhOO4G8Wlc7dwprejI=; b=bl0kz6C3fKSq3nsEgoZtd0DglZiBDzrqgC422A4uPY4bMQNMlz4LrFv6hJ3b1KyKNW MuV8f+EfPGPKi1jobwn3Midfsg2IwF9mgHG2CfQhDOIKuqYskOzaOV3zA2paxIH5j3yO 3X0ullJeLmwJFTplGU3CQzubINmrU8NVQwHu633DUZtqUuGKyjvwKLdgdSdH+sjxbiDz AVDtXuYW8JHKhPWpjLPjSEYJOlZ6H+uqN7uA9c4XJMTmvEHTM4SPjOTUCyCoyn3X8eyV Q4miKwF/LrkRz7MP2s3GM/3YgBvVhHoeMvOZvIi3dEcQdjB+ntcQ+aNNF+zQn0ckaqrH qisQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jKMdH3qd; 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 o5-v6si19112000pgk.300.2018.10.17.16.16.48; Wed, 17 Oct 2018 16:17:04 -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=jKMdH3qd; 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 S1727243AbeJRHO0 (ORCPT + 99 others); Thu, 18 Oct 2018 03:14:26 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:33012 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726644AbeJRHOZ (ORCPT ); Thu, 18 Oct 2018 03:14:25 -0400 Received: by mail-ot1-f68.google.com with SMTP id q50so27992472otd.0; Wed, 17 Oct 2018 16:16:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=pwuBYpPORalsYGLaBcqAoK/4jYhOO4G8Wlc7dwprejI=; b=jKMdH3qdQPGUSXrjwN74WUTUBtx7Rr/SRsbEccpZumsxknWE9CSVJugn1hNSCEH2rZ omlLFlWcWExgq0ONMB2ThE324MGViwBZCWmUSpBohhQx+W9Hbf5rPxQTak9Ph+lgKWNM lnA4OB2fOx/CZDQndhYwuromVcbw6dydv43v2yevGqJdk9UqEAtc/tSj50Gugo043u74 wTbWj+r0ldhB9mAZurOg6WddcIESHPolrDMCBWiSpCj/Oxhf0mbtoPkKHj+DW11uOkPe zMrgBIDvHHfD8E/cMqiXfImuHdNkd9TevAb523nA5D7ygCcNz2lcjpdD9APnQmJzjo0z c2EA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=pwuBYpPORalsYGLaBcqAoK/4jYhOO4G8Wlc7dwprejI=; b=l4j9LVhWZADZuz5wW+WnBK4M/ubwc9uJXbosOpn8OEuyQFEE261zGe6ceswc+N/NxL F7hECV2teFQGtAVXLbVRIbBpeiKrIXDNj+N90zRaIkC1iboJ4GahvQF9UlrDskIYFEv+ uUvNY4QqdoPCCq4MsForyuUkvMpHTCWga8Mw8VezXmXDPC6zXZe8nJElnknjNPap6sZo r/ZmwxhXp2f4i3dJ/lPeOQ8Gd9CkPrt5LDaaVQa2PFBIGsAduuIa5b9NGrHX13VIvUxw c0/u1Gah1lVDM6ZGgk9yh0f8Ro74HkYMhtJzyUPJVD1b7sfpPElmGD1L/4svpsxaYATF 6VzA== X-Gm-Message-State: ABuFfogzcFDFn2MNzFHwtoH9SV2dkrt45aT8Rw9Ay6Y226iY501I3hDS O9YIJPAmuhuts1s9UrAoxGNVSobNe0IF/JBhEBk= X-Received: by 2002:a9d:2568:: with SMTP id j37mr18928115otd.263.1539818186263; Wed, 17 Oct 2018 16:16:26 -0700 (PDT) MIME-Version: 1.0 References: <20181017000834.GA21330@WindFlash> <20181017060151.GA1105@gmail.com> In-Reply-To: From: Leonardo Bras Date: Wed, 17 Oct 2018 20:16:14 -0300 Message-ID: Subject: Re: [PATCH 2/4] Renames variable to fix shadow warning. To: Andy Lutomirski Cc: mingo@kernel.org, lkcamp@lists.libreplanetbr.org, Matthew Wilcox , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org, Masahiro Yamada , Michal Marek , linux-kernel , linux-kbuild@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Andy, Thanks for the suggestion. I renamed them as suggested and it will be available on v2. Regards, Leonardo On Wed, Oct 17, 2018 at 2:54 PM Andy Lutomirski wrote: > > On Tue, Oct 16, 2018 at 11:01 PM Ingo Molnar wrote: > > > > > > * Leonardo Br=C3=A1s wrote: > > > > > Renames the char variable to avoid shadowing a variable previously > > > declared on this function. > > > > > > Signed-off-by: Leonardo Br=C3=A1s > > > --- > > > 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/vdso2= c.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 r= aw_len, > > > int k; > > > ELF(Sym) *sym =3D raw_addr + GET_LE(&symtab_hdr->sh_off= set) + > > > GET_LE(&symtab_hdr->sh_entsize) * i; > > > - const char *name =3D raw_addr + GET_LE(&strtab_hdr->sh_= offset) + > > > + const char *name2 =3D raw_addr + GET_LE(&strtab_hdr->sh= _offset) + > > > GET_LE(&sym->st_name); > > > > > > for (k =3D 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 ... > > > > Maybe image_name and sym_name? > > --Andy