Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp681740pxb; Tue, 5 Apr 2022 18:34:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzLRpcZRbZMmmhMEL5X3Ti7SEa+AmKVyXKvpTS7DptpcaxThIxnDFb4r/AqjgC8fCr+v5M X-Received: by 2002:a65:604b:0:b0:398:ebeb:ad8f with SMTP id a11-20020a65604b000000b00398ebebad8fmr5269203pgp.89.1649208871023; Tue, 05 Apr 2022 18:34:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649208871; cv=none; d=google.com; s=arc-20160816; b=qKU6AoAoAXHqjwb/AuJEL5aYET29L4O87Y01hXO/i/UDodit+cbDD4FpuEKJlaP1zf KM1A3G7JtTooNpcSaOf1pT/X1Gvsm5QzgoK4HQnupsonPF4nEMYPbSlHZo+7bP/VATvT S8BvIvNL6Qg2bv/GNF1tb+tYKY7DQ272vhef2dPje+dcaSOfacvXxc2qOw5xjDj2etrY CQoQ5vY1LAQxYLEOBYsZJdiBCfF+R3DZgDPVsUAHZ+IDPxRYjqq6JC/uqBwoixGcC0BM 2LqJ0MeDZpxmxCDDd7wfr5kqmBjvPvL9A6aYH+w9jKEKLhEp7VoQ/r0Sa0onig172gMI yt4A== 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=fdGCnseej2rp35PJewQUm3pH3SvY96mCF3+dXCVXln4=; b=ufPKK3YvcrZmgLNst08ebOlXzrFaf6HedqH67hmraDMh/r2QkHEtuhAo8fSmNrgRyQ ePJ1jxujXRNosVkDKLYyqs36vElJTWthJmeH4lsoCvDUM/AYBNuCmY9CioYSMhxbjMMJ z6PwjV47lybPz4hmIqmX/ISbdq05pvbplfTlIiCnzi92Ja0mSW/EMcvExhNRQ4ApMnEh kCuF7iKNDi4cuffNj9otPO0IfMAzDEtLe4Vsb/hkT7gxzOef7tXJs99A8gULvDbWtOZn PDIQG+eFnoNG03OII7bXeu3/5y2J2Y6cilxBbxijM5Pt/5/MvRQtPvhIBRLNmMOEYlbA 2SbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=A1ur3vva; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x5-20020a637c05000000b003816043f062si14219668pgc.599.2022.04.05.18.34.17; Tue, 05 Apr 2022 18:34:31 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=A1ur3vva; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385410AbiDEMc6 (ORCPT + 99 others); Tue, 5 Apr 2022 08:32:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234876AbiDEJA4 (ORCPT ); Tue, 5 Apr 2022 05:00:56 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8844227B2E; Tue, 5 Apr 2022 01:53:41 -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 ams.source.kernel.org (Postfix) with ESMTPS id 40982B81A0C; Tue, 5 Apr 2022 08:53:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83307C385A0; Tue, 5 Apr 2022 08:53:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649148818; bh=JaKivd1E8T/qQbTOsMZOvw28xfh/ei1qq7W2qiEEdDc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A1ur3vvaHksw6/NP02t9ZqxrU/9fZOi42M8P9DPnkLuEuCPCwPNHgvl6CSj3+EosX P4LTGtWP50+kZpriTvjHDeg+b+yiOKOGivua4opfzgG2X/QZZs011qq9XpXBMUVe0J 35DDWSQO/tV5Re62b1Bpct1a93hAnC9apmMFJ9jc= 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.16 0492/1017] libbpf: Fix compilation warning due to mismatched printf format Date: Tue, 5 Apr 2022 09:23:25 +0200 Message-Id: <20220405070408.903681151@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@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=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 700dfd362c4a..f2ab392a0e34 100644 --- a/tools/lib/bpf/btf_dump.c +++ b/tools/lib/bpf/btf_dump.c @@ -1847,7 +1847,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