Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1242374imm; Wed, 17 Oct 2018 16:14:19 -0700 (PDT) X-Google-Smtp-Source: ACcGV61tJF1Vj0v7W1l07bEWHof5sQjoJWirw4ezfjEXPq3Nx8HqoOXMsyxCiP/8cu+VdldIazTy X-Received: by 2002:a17:902:6f16:: with SMTP id w22-v6mr28288960plk.309.1539818059638; Wed, 17 Oct 2018 16:14:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539818059; cv=none; d=google.com; s=arc-20160816; b=xSj8hDI4kcGWsu3yT3kQv8GYK4CgmB61VYJSfbnxf3tggtMIB0MB/cy/tbTJHtBvgI Nzi0uREahUGv3MCnbfd0aRiLicKWrGSU5225hnnSAlItJ6cNoBV7YZJuSwfFa5i61Rvw iImJfQDq6Fv5YAtU03RXp6P7fVRwRG/mU5lxWl7xhB7FSA3Mctq0NiCaoLO5yXTr6RV3 aEk0xqEvwJc1DZTJ5wLr7OY5b/fD5X6qThT14Qrdz/DaR3xKOAiEC3e37ecdFHa81b4/ WQqrTZdcm4e+5p8tH0EvXKQlE1JiG64ypbgqsntFHm3lGFNX7FdWejS5z5X7f/EBOfMB nJyw== 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=Tmwi8qU5cqppcj4YsIKa0J0Z+sU/QwA7XgHI33VIUBQ=; b=fzIm3dz7j1FpaYagqMegZWUYQ6n4hIoweH9KUcZy5wB6TZ97dfsmYSx40lSoJjKNdB ajvFy+AzTK+v/zjyts17FPt0gjtlRfTYlXGPJnD1hFbHelwEPK3Cjnk1HpWsoVzN8Ks8 1/Z4bcv0E1Ij/JczBXeDLpwKG+XRgYjvFp9vh05hKYM+0QCG6O6w8tRbJTN78geTNw8F vSK9pO9tRjR9cs3mBaHMwuxCRdX1YTS2Rf8Xn7iaO6JE3M0xN4lXw1bmoJjKu1MMIlnH eOKe0ViRV1AQentPOe9D4lLJmHrWaGKmnbmi63cxvUx9omaPybae3ukmh+9U47YvYO4+ Xq1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZEcRcpjS; 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.14.04; Wed, 17 Oct 2018 16:14:19 -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=ZEcRcpjS; 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 S1727655AbeJRHKx (ORCPT + 99 others); Thu, 18 Oct 2018 03:10:53 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:38005 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727246AbeJRHKw (ORCPT ); Thu, 18 Oct 2018 03:10:52 -0400 Received: by mail-oi1-f196.google.com with SMTP id u197-v6so22492578oif.5; Wed, 17 Oct 2018 16:12:54 -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=Tmwi8qU5cqppcj4YsIKa0J0Z+sU/QwA7XgHI33VIUBQ=; b=ZEcRcpjSJF+g9rdVRwSx1+rjs++0ZYJPi0GU6/TnW8OMsKo/W7GVxlC2H57SlniE1d Od9WPQqyz/XgjokCNlDTmM0H2M7/JSRDVlWuUhbPze5o+VsBsXs7IN/vzhYESyRonlJV wTfmk4TizoMyFuHOzAX7L16qib6MARdNoijNA2YAoS0a4WB/rJP9MmCcUbRf5Rs7aU3/ m27iAnPGcNiWnH3HJoFgYOQzewp/N+0nL15o6vsUal5BIIdICQNTtMdffZBydyQbzUHT +RugrnqJZNPFaox10I5pmjigfezIkUDavO5dUTCpn9k07PC5iknko1Eb3tmEMWlZ6z2m 4TPA== 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=Tmwi8qU5cqppcj4YsIKa0J0Z+sU/QwA7XgHI33VIUBQ=; b=dcnsXbB/Mi9SRKh6+GYrEASHKmdbVtNs8Fx7bzxlB+p3GyEFzsWjkfevpyGpruCkv+ PWOpXSmQPVckA6p0TT2y7W2d+52C3GQ7lZck2NS16Gb0Oz9KVKhWAgRw4yFFRX7uSYMR 1swBAlfxaQS3HgtyGx/Q/7YsoBGVZRar6C4VBl8G57N6M12Zult91e96ZD2gU/9cyTU7 BzDVLvGeGQnuJIV3l/FLp7VdXRERsNQgRv0fdnvA5WbTTojPiFExGFk/4aBHWaqg6pIM ySwVYpk9/NqscDpvnH/wyPT/cvzM4nJSW+ECThcglXvAVSiKSCDpjGIamSSNiZANep3T Ooug== X-Gm-Message-State: ABuFfohcnT35/T6Oe7J87TTY5Z6713alWR0+IYODn5PXMpL6VGVsVcE5 +8RsNAt5n4LT8SqeyLyikn4KElv4DrsMbytcK/8= X-Received: by 2002:aca:ac0e:: with SMTP id v14-v6mr15495445oie.1.1539817974184; Wed, 17 Oct 2018 16:12:54 -0700 (PDT) MIME-Version: 1.0 References: <20181017000834.GA21330@WindFlash> <20181017060151.GA1105@gmail.com> In-Reply-To: <20181017060151.GA1105@gmail.com> From: Leonardo Bras Date: Wed, 17 Oct 2018 20:12:39 -0300 Message-ID: Subject: Re: [PATCH 2/4] Renames variable to fix shadow warning. To: mingo@kernel.org 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 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 Thanks Ingo, On Wed, Oct 17, 2018 at 3:01 AM 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/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 =3D raw_addr + GET_LE(&symtab_hdr->sh_offse= t) + > > GET_LE(&symtab_hdr->sh_entsize) * i; > > - const char *name =3D raw_addr + GET_LE(&strtab_hdr->sh_of= fset) + > > + const char *name2 =3D raw_addr + GET_LE(&strtab_hdr->sh_o= ffset) + > > 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 ... > It's changed! This change will be available on v2. > Thanks, > > Ingo Regards, Leonardo