Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp26713imm; Tue, 16 Oct 2018 17:10:28 -0700 (PDT) X-Google-Smtp-Source: ACcGV60uJ7rmi13/CvHPhcT3LpkDhMyd33S9NtscP9VjvCw/KlM3e+6/VXmt6+c+vWAy3jnZZ2KF X-Received: by 2002:a63:1806:: with SMTP id y6-v6mr22642279pgl.187.1539735028872; Tue, 16 Oct 2018 17:10:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539735028; cv=none; d=google.com; s=arc-20160816; b=y8vs6maa3HlYlUrQzQXqCSkRGhMYtlW81QyK/1MR2LsMoWQB/UNu0X/0AJKNHkLxq0 jXxqw3PDS40ZGfXAh4kNrDTHWV7JHCXJ5AAEWKEqlOMmLhu551uHbCMu0xw9+UakO+gt q1AWvlS9/qyqWpv0R6zQKMkypbksp4ZqZkxdbEePF/ytA24h/pvRmWLcQBPuCbiXX9Zo XVddmu44R5rL64Bm/kcO7nEwVTBhVkKyXgwVak0Tjetw7x1lNJU67DmGbc+3ej1mkpoM xagfcjytGBqSnl02RhBjlQ9wmjR0YeCDou9OssV2t+gVTgex4VL2wVQ9lO+JuPbh4GYg r3/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=5Q7vGbq961nf2LzoNGlaXLvNyGpktZKrKB9yXgUHndA=; b=d2Ka4A0O58pZX/SnL2q3Edg+EUumP8xMeKZH7MIlBZz8sWnTI5BEk9WV9f1OquJebU Z2Jj6acH3K7y0/OL5XrnZpWdZbFPVySQipJ4l//buDuL9PF0gRTKZt6bSr192Vr/iJjT 8T3DxyjBOq+VJe26Ck6faUaSiG295UOXiROISC6oAKWQpDLoEKm56VycmhvOtoH3ld3l me5EDfees1BrndqgkAEFAWrdLvOuZF0ZluHX9GBYdzCJgBTZUagu7fCkeANDqt/IGW2n vABCNFGlD3r+ErF8PpI7YhtZxki5x5gl33Pio9HTSRuPp4WVCFzFIdUNp7J0CkOHG+QX OxNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EX1hVOn4; 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 r25-v6si16399225pfk.83.2018.10.16.17.10.02; Tue, 16 Oct 2018 17:10:28 -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=EX1hVOn4; 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 S1727492AbeJQIBe (ORCPT + 99 others); Wed, 17 Oct 2018 04:01:34 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:37533 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727171AbeJQIBd (ORCPT ); Wed, 17 Oct 2018 04:01:33 -0400 Received: by mail-qt1-f193.google.com with SMTP id d14-v6so28025369qto.4; Tue, 16 Oct 2018 17:08:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:user-agent; bh=5Q7vGbq961nf2LzoNGlaXLvNyGpktZKrKB9yXgUHndA=; b=EX1hVOn4JuhoKatY4YuCpVLGjN10GHqFZfUCvMSMiGNIuTAA00xiU+efKD7cxPices zFM/hSypQZYAfKES6M2qX+Ss4vwa3K5AyDeSMZWXxcTqV3Z77ChVW783hjcG7i82Ly5O SrlpF7ShP5sjz8BRG4Ry/cGXLWwBcN+KhUAOnPaEqlcyvje20Cu9dDs8ljsaK5SUOt9B 8q195Gn8ZjL/YVw6GAgm0IJMsZAmfazbrstT0DdsmFrFSH+m8kfs5VOhgnpf6UAua25z AKquM1ZT/1tF50i6caYMNbTxGoWiwR+9f70HesWNyaFupGGTX2ggW/84UiJTTTgW99OZ 0VMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:user-agent; bh=5Q7vGbq961nf2LzoNGlaXLvNyGpktZKrKB9yXgUHndA=; b=hD/1rVPsD07UMbbnH5eMFusMCIF4CTQ+i4qeR2Fs1D3qB5BZbuOiNXq5SAva+2py8D B6hlInB67WSIa2dphKGa2JUDRGcyiH0Lin+mOBwZUdKw9REO4da0YBJOkrCOwNGozv+w x1qcn7lPv/l6mMMMatoXIPLi5yNMknWGVbQSlWfiwcJbmhe/YGN3OolMKyuOb+L/fk+5 K+kNcYtMP952wp43CsosdPr6cIteDUa0xRxLwVlgjvrXZ6pIEm5S5m6DKg/7PUpv5J2W UoizqJIje99SbGeINi90NsBnGE1bErShJ7kr70lmItMW4DAWTxBC52P260bEwLsDG32z LrZw== X-Gm-Message-State: ABuFfoigRA4Fkpz+5qW7Bn3WuauHjLaD9b7+d+AhCz9jrcnXXqQGmCET 4Qe0dk4SdYLDU2ig8DSkxps= X-Received: by 2002:ac8:4790:: with SMTP id k16-v6mr23183700qtq.253.1539734920249; Tue, 16 Oct 2018 17:08:40 -0700 (PDT) Received: from WindFlash ([179.159.21.48]) by smtp.gmail.com with ESMTPSA id o50-v6sm11689672qtj.41.2018.10.16.17.08.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 16 Oct 2018 17:08:39 -0700 (PDT) Date: Tue, 16 Oct 2018 21:08:34 -0300 From: Leonardo =?utf-8?B?QnLDoXM=?= To: lkcamp@lists.libreplanetbr.org Cc: Matthew Wilcox , Andy Lutomirski , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org, Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org Subject: [PATCH 2/4] Renames variable to fix shadow warning. Message-ID: <20181017000834.GA21330@WindFlash> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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); -- 2.19.1