Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp821559pxb; Wed, 6 Apr 2022 00:44:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAHIU8aBxcgs23oCXNLRP3vF6322x5yZAfvR7UADRlFGP5FDX4WMLBdUz+rz8shVujOJ3j X-Received: by 2002:aa7:9e0d:0:b0:4fd:ad26:ec01 with SMTP id y13-20020aa79e0d000000b004fdad26ec01mr7628487pfq.66.1649231088379; Wed, 06 Apr 2022 00:44:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649231088; cv=none; d=google.com; s=arc-20160816; b=pJDG4ur8ok6iNZaJxTq/l4kwX7v0oCBouZEIxYPhaSFUDLCDs/BP5JFdgVmUTACRPT mNjxhC4PpygfxRIJq8QGhLumoFfm2GfPhQjYhABV3wlOol19jzAetgIsCsDEZ3IFCnar 9RDQ0YkE0haL8iG1cLGElVuPnWTiHXud3ufYAkdaQHLOutwsjnFIx3mgJQjkTerXJ12r kSi0Ww+YX4k8P1ODnXV6E2eOT8NzXaBxduKZIpg1QtyPP0yOo0LC6aFsZNhahpu+Plo1 NcKDwWjzgFsH9QbOUiwj4ZBA1tgUK3M7H8cTIqHz0V1j6jBYPe0Aab/ybXMZfOQjKYEg NReg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=B2EgNkitraT7E/l1buUvF6lQgpmhqebgGZyB0NyxcgM=; b=KrR/Dk+7R6ZxylEIeP4LzmFp5LUsLIUuysXxKsXCRiDJw52ZKQTEUiq7GZZkhg/MOG 72yvkBIeU4V2799wgEHYeh19828nt7Hih73C2J6Pf3ZLCCDuFVYg6tOWqt2FwPdS1jcD oWBz79DgwfhWgWh4WS0ZWcZI/g4UneeIU/ycGVBkYxsSjbDedhaDF91QyNC484aSQsXn vnE505EbUNXCsMLYGHbg3x45diiJFR3O1H76WGtiCPokU/ui5LDb7xTIvUksD3LTsGNf e8/sycVNNt6r3ntEpc6h7/Hj13ybe4DQxnuPTAvfyx70L3Oxzcw3OvE2w/i1pYJ9oJ7x PjGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=j3iWOsqI; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id v5-20020a634645000000b003989e2b01f1si15349761pgk.137.2022.04.06.00.44.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 00:44:48 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=j3iWOsqI; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 93D5D35FCCC; Wed, 6 Apr 2022 00:13:24 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1589164AbiDFASw (ORCPT + 99 others); Tue, 5 Apr 2022 20:18:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348996AbiDEJsx (ORCPT ); Tue, 5 Apr 2022 05:48:53 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 109CEBF48; Tue, 5 Apr 2022 02:38:53 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A350061368; Tue, 5 Apr 2022 09:38:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B68C0C385A2; Tue, 5 Apr 2022 09:38:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649151532; bh=MmVuj5Jn6/ljtQM0iFKEIkI664NTWqPKVGArAgH7kyc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j3iWOsqIqb6dfVDJzdl22HyJadXe4wnla98C/2Q5t93HOghS1OAUTrPxWoATqiUie qgoPrwmifecG+YMjEhblFc4Zs3AlBcVnicVqEstpvFSMm4VsAN4DrcSauOPCQ8nz5t NR4a3o+++RPC+E/MEygOHzs8ZntztsAgF31uri5o= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andrii Nakryiko , Daniel Borkmann , Sasha Levin Subject: [PATCH 5.15 448/913] libbpf: Fix compilation warning due to mismatched printf format Date: Tue, 5 Apr 2022 09:25:10 +0200 Message-Id: <20220405070353.276881997@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,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 From: Andrii Nakryiko [ Upstream commit dc37dc617fabfb1c3a16d49f5d8cc20e9e3608ca ] On ppc64le architecture __s64 is long int and requires %ld. Cast to ssize_t and use %zd to avoid architecture-specific specifiers. Fixes: 4172843ed4a3 ("libbpf: Fix signedness bug in btf_dump_array_data()") Signed-off-by: Andrii Nakryiko Signed-off-by: Daniel Borkmann Link: https://lore.kernel.org/bpf/20220209063909.1268319-1-andrii@kernel.org Signed-off-by: Sasha Levin --- tools/lib/bpf/btf_dump.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/lib/bpf/btf_dump.c b/tools/lib/bpf/btf_dump.c index c1182dd94677..463447a071d6 100644 --- a/tools/lib/bpf/btf_dump.c +++ b/tools/lib/bpf/btf_dump.c @@ -1837,7 +1837,8 @@ static int btf_dump_array_data(struct btf_dump *d, elem_type = skip_mods_and_typedefs(d->btf, elem_type_id, NULL); elem_size = btf__resolve_size(d->btf, elem_type_id); if (elem_size <= 0) { - pr_warn("unexpected elem size %lld for array type [%u]\n", elem_size, id); + pr_warn("unexpected elem size %zd for array type [%u]\n", + (ssize_t)elem_size, id); return -EINVAL; } -- 2.34.1