Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933412AbcDENr3 (ORCPT ); Tue, 5 Apr 2016 09:47:29 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:34400 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933396AbcDENr0 (ORCPT ); Tue, 5 Apr 2016 09:47:26 -0400 Subject: Re: [PATCH] perf config: Fix build with older toolchain. To: Arnaldo Carvalho de Melo References: <1459807659-9020-1-git-send-email-vlee@freedesktop.org> <57034C03.2030603@gmail.com> <20160405133819.GB5945@kernel.org> Cc: Vinson Lee , Peter Zijlstra , Ingo Molnar , Alexander Shishkin , Jiri Olsa , Josh Poimboeuf , Alexei Starovoitov , Wang Nan , linux-kernel@vger.kernel.org From: Taeung Song Message-ID: <5703C1E9.8070000@gmail.com> Date: Tue, 5 Apr 2016 22:47:21 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <20160405133819.GB5945@kernel.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 834 Lines: 26 Hi, Arnaldo On 04/05/2016 10:38 PM, Arnaldo Carvalho de Melo wrote: > Em Tue, Apr 05, 2016 at 02:24:19PM +0900, Taeung Song escreveu: >> On 04/05/2016 07:07 AM, Vinson Lee wrote: >>> if (!strcmp(var, "buildid.dir")) { >>> - const char *dirname = perf_config_dirname(var, value); >>> + const char *v = perf_config_dirname(var, value); >> >> Why you use 'v' variable name ? >> >> 'v' variable name was used in set_buildid_dir(), too. >> But I send a patch renaming 'v' to 'home' because 'home' is more readable. >> 37194f4 ("perf config: Rename 'v' to 'home' in set_buildid_dir()") >> https://lkml.org/lkml/2016/3/27/98 >> >> IMHO, I like using 'dir' instead of 'v'. > > Whatever, I'm switching this to 'dir', but don't pay _that_ much > attention to variables that have such a narrow scope... > OK, I got it! :) Thanks, Taeung