Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp18197758rwd; Tue, 27 Jun 2023 13:10:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7an1VW1d07oEUk+MYCfVv6N0Faup5ZrxnpAP4oB+oivRQGz+ehqj/ySxXyktOaD7bMBhpx X-Received: by 2002:a17:907:271c:b0:992:872:76d4 with SMTP id w28-20020a170907271c00b00992087276d4mr2444401ejk.17.1687896655348; Tue, 27 Jun 2023 13:10:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687896655; cv=none; d=google.com; s=arc-20160816; b=pkyb2lQIrjWSWHaDC+wZIjDQzDeF7wzRExwAoHZfgANZJ5+JDchNraQcJpdC6aE0jj i+bS10KYnOJUIzvfsRXja1euA5oh+2eIhQ6h+8Rw8WGzIKRpdHYn1AUxc8iU5e2MTjCw W1z4DkKpuKWSDIOwUmjj5RmRdhTZJBYBbPn41V9U8aJwnN1j8a3xl8FSnhXgYbYArXSA X5oBhuCwjzjlosP1yhWCCXMTc7yjTuJ8lkLrhKDQvxq4LwBu/WQdugsnObQMvcFjs0Tw hXaTo6BfWmTAYIXLPmc28pyhQAfF8Or4EAjf/+r9sfPGjEaYhU85hYdrunLll50lo974 iLVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=2aplIATvFU6c9h4cixVC9vinlfSL8YYOXzfQ4imH62E=; fh=4Kgt7kDtVrIXe4cKNywMQAY7jLnutXL9uOkaTa5MrMg=; b=D90ET3q5sPXbrbbcDxWql8Kx8cAERtoX6QNE1lhZ9I2Irn+sqTnfOoSvP08LooHYgQ 8Sl9fpQlDKc54shwHp+g4qhxpM+3jMn8AT3Yo3z9szryKMmHQQ1xbtUEurkOt2b+8PYN +tMbMyA8R52xUu/KROLIohNFXPQUWbwMnB34q+dq2Q1E+oiBHqm9BREHG+rYTsXKWH9v onFuXKLJ9XdvgsRPZdRmHOfJlwXULiJG7Id+IxeoN6wvESQwvhHDv6HRgvk+xD2y/tgI gijAMHSIVVpR4M3EXYRzxtGQsL368Xcp7JDPJ+Rp4LyTPhsTOCmeyXDU2huE93uwEWic 1kkw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hk11-20020a170906c9cb00b009873df7f75asi4998769ejb.31.2023.06.27.13.10.30; Tue, 27 Jun 2023 13:10:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230082AbjF0Tev convert rfc822-to-8bit (ORCPT + 99 others); Tue, 27 Jun 2023 15:34:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbjF0Teu (ORCPT ); Tue, 27 Jun 2023 15:34:50 -0400 Received: from mail-yb1-f178.google.com (mail-yb1-f178.google.com [209.85.219.178]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F00019B5; Tue, 27 Jun 2023 12:34:49 -0700 (PDT) Received: by mail-yb1-f178.google.com with SMTP id 3f1490d57ef6-c14476f8401so3842115276.3; Tue, 27 Jun 2023 12:34:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687894488; x=1690486488; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AUsQmSReCxHkqKT7OuIdKRpzJJXqb1I9oXjZYPaKNpA=; b=ZEX3MlV3BKNOk/buTtHYYkFVR+iBVPWL46ZidpLg4C1W7/ZR1FGRZYmThJGtaAKdMQ nXAeHGYTe2Hp6c3RxoySn32UKFdCS3G/x2beHxYnZP0SFHfQg/w2iTHl5qjm8wR1gMGY gGCf65eV3lDEQI5YcpsX8EkGUMv36YL7DQBNh1wJHU0Z0f2fTWXCmD753eVhCfjlgiYt p+IjysV5FO3QrFNY0LjO4bnRSs4fupC4DBbMEzGkejJ51hRXB3Ab2jvHWJ1sJIgcLuVD eptsDYbrdybruenfPRU3/dJjkkWjuNYOzALUObOmt4iYFZ/bRPQc6YpUUqlz4XWQTzeP iE7A== X-Gm-Message-State: AC+VfDycy0hGVgyofq167YrY7SPUo+rqVBiGD+yDupzbn2uSJ+ARy/IW dIVEugLH+CbRSV1T2Ma7BUazU5x0sJpFmmHrnEE= X-Received: by 2002:a25:37d7:0:b0:c0b:7483:5cf0 with SMTP id e206-20020a2537d7000000b00c0b74835cf0mr12439210yba.65.1687894488592; Tue, 27 Jun 2023 12:34:48 -0700 (PDT) MIME-Version: 1.0 References: <20230627063257.549005-1-namhyung@kernel.org> In-Reply-To: From: Namhyung Kim Date: Tue, 27 Jun 2023 12:34:37 -0700 Message-ID: Subject: Re: [PATCH] perf test: Fix a compile error on pe-file-parsing.c To: Ian Rogers Cc: Arnaldo Carvalho de Melo , Jiri Olsa , Adrian Hunter , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 27, 2023 at 7:56 AM Ian Rogers wrote: > > On Mon, Jun 26, 2023 at 11:33 PM Namhyung Kim wrote: > > > > The dso__find_symbol_by_name() should be have idx pointer argument. > > Found during the build-test. > > > > $ make build-test > > ... > > CC /tmp/tmp.6JwPK1xbWG/tests/pe-file-parsing.o > > tests/pe-file-parsing.c: In function ‘run_dir’: > > tests/pe-file-parsing.c:64:15: error: too few arguments to function ‘dso__find_symbol_by_name’ > > 64 | sym = dso__find_symbol_by_name(dso, "main"); > > | ^~~~~~~~~~~~~~~~~~~~~~~~ > > In file included from tests/pe-file-parsing.c:16: > > /usr/local/google/home/namhyung/project/linux/tools/perf/util/symbol.h:135:16: note: declared here > > 135 | struct symbol *dso__find_symbol_by_name(struct dso *dso, const char *name, size_t *idx); > > | ^~~~~~~~~~~~~~~~~~~~~~~~ > > > > Fixes: 259dce914e93 ("perf symbol: Remove symbol_name_rb_node") > > Signed-off-by: Namhyung Kim > > Acked-by: Ian Rogers Applied to perf-tools-next, thanks!