Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4831722ybl; Wed, 22 Jan 2020 05:33:28 -0800 (PST) X-Google-Smtp-Source: APXvYqxYr+hW0pEY/0mBr1QJmch38o9OywI+ckgP9HcgU7zNAaEIgkCTeg+WcAYnwUMesTyt7TeG X-Received: by 2002:a54:4715:: with SMTP id k21mr6894367oik.163.1579700008024; Wed, 22 Jan 2020 05:33:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579700008; cv=none; d=google.com; s=arc-20160816; b=irbQJWyKyd5hNGculFLDlzLvOkkEkiTXLqgToFhLZhvLmSXwO0/b9+j74Ye5/8jDvJ lt/kTqBP4Rxx1C6NUVcJEK0o4jNXdACSqadHpFZdIuPrsAkjhxLccNSR3W2M4Bt+qyUb mhSpZeyIGtR7B++15Z0/d5y3/JizJnwIUn8aLaeqhFvl9mS5ODi+f535L6zjC8YOsfN6 6qzzLPKta/41YaxK3lne7vqMVyk/xN/V+mKy0jTg8eZQskjrzOKvIAKJeNJNvE3ue4wN r60le44gMm6FaqbM3tnmjX69ACJN4CRCY5M2FLoJWMxXtGwLtzV+yL7SEo7fo75f+CgP 8bIg== 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:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=i2Hm25XoLN10Fte/y1TEUQWBribDF7v8YyythILs0as=; b=I3Qeri3Vj+FukjZUoGmPZ7g5uqFu8Pv6DculWf1DxN0wxGv2Lst2ZJirxJE1ffvn+f ZWoc5gH+UzuhaqslQU5iQ9u+5TwJYWGMpIitj20e5mmfe+N9JEK8wriGXM225x8wYRLC ttf1ociQCO6HLPfklRNPXcY04tQwOR6Q9wI14RpcNGFlcNO5M3jVun9cvcaZ7N2vsF6c iBbKhgn3p6mxkr0iLywbW2UzySZT9b/4D4H+Drw5Sz60YyJeVqA81IdYzGglbWpztPO4 v1FoF+I2bYjMW6qUDJ0RpRUr9HTF1SEA1pgn4j5pCBAeljo7HltsqdBbo42BD5WV9vhp 2tOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1MhbL4+1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s68si22550648oih.275.2020.01.22.05.33.12; Wed, 22 Jan 2020 05:33:28 -0800 (PST) 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=@kernel.org header.s=default header.b=1MhbL4+1; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730472AbgAVNWN (ORCPT + 99 others); Wed, 22 Jan 2020 08:22:13 -0500 Received: from mail.kernel.org ([198.145.29.99]:39588 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726219AbgAVNWK (ORCPT ); Wed, 22 Jan 2020 08:22:10 -0500 Received: from localhost (unknown [84.241.205.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0B3922467B; Wed, 22 Jan 2020 13:22:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579699329; bh=BBQi5io6JHy/ODYO57lusvam0tlkm6fTswXwRhVaoH0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1MhbL4+111HPxDgsG/XqXmXP/B6AIyf4rQd3S3Bbb6d65iBddz2GOsTOvlW8YnuJ2 qKlLRoKxNc/QlfrO6SI0pYpr2/JzdVU3h0H5j+COFR3mzoCu3s2Yu/b7BXQL0q6ai2 C9LvQQc4rmw9h7l+Cbncw4vG0i+n1QMC2dqCo3tE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yuya Fujita , Jiri Olsa , Peter Zijlstra , Arnaldo Carvalho de Melo Subject: [PATCH 5.4 075/222] perf hists: Fix variable names inconsistency in hists__for_each() macro Date: Wed, 22 Jan 2020 10:27:41 +0100 Message-Id: <20200122092839.088051491@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200122092833.339495161@linuxfoundation.org> References: <20200122092833.339495161@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yuya Fujita commit 55347ec340af401437680fd0e88df6739a967f9f upstream. Variable names are inconsistent in hists__for_each macro(). Due to this inconsistency, the macro replaces its second argument with "fmt" regardless of its original name. So far it works because only "fmt" is passed to the second argument. However, this behavior is not expected and should be fixed. Fixes: f0786af536bb ("perf hists: Introduce hists__for_each_format macro") Fixes: aa6f50af822a ("perf hists: Introduce hists__for_each_sort_list macro") Signed-off-by: Yuya Fujita Acked-by: Jiri Olsa Cc: Peter Zijlstra Link: http://lore.kernel.org/lkml/OSAPR01MB1588E1C47AC22043175DE1B2E8520@OSAPR01MB1588.jpnprd01.prod.outlook.com Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Greg Kroah-Hartman --- tools/perf/util/hist.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/tools/perf/util/hist.h +++ b/tools/perf/util/hist.h @@ -339,10 +339,10 @@ static inline void perf_hpp__prepend_sor list_for_each_entry_safe(format, tmp, &(_list)->sorts, sort_list) #define hists__for_each_format(hists, format) \ - perf_hpp_list__for_each_format((hists)->hpp_list, fmt) + perf_hpp_list__for_each_format((hists)->hpp_list, format) #define hists__for_each_sort_list(hists, format) \ - perf_hpp_list__for_each_sort_list((hists)->hpp_list, fmt) + perf_hpp_list__for_each_sort_list((hists)->hpp_list, format) extern struct perf_hpp_fmt perf_hpp__format[];