Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp944318rdb; Fri, 17 Nov 2023 18:52:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IEE73P9+HqEnvg3ubYjhChARw6xs6p58t09WoyfPypYAVQT1W1Tt89ULBW34Kt9ISg2VVaI X-Received: by 2002:a05:6358:720d:b0:16b:f8f5:e20 with SMTP id h13-20020a056358720d00b0016bf8f50e20mr1316278rwa.30.1700275945887; Fri, 17 Nov 2023 18:52:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700275945; cv=none; d=google.com; s=arc-20160816; b=AER/9nTa1xCK5fxSGo8VV2KBCBuMU0ym1D06i+mvnwXe5bxHxQGTM3gQpfboaYktpP Nd09YK+KAHEtbZsJr3ANR7BI7LsQIt9R4rR+DJ3YQfyexTE7uFNiZe3oVTUra7Qjfcgr m65jGrhLjSmCzO2na8epNEBq4VNjj/JLYP0rNQ4UxgsP5n8X9dXwPVs5p4RmsqUCkiXM V32CMKFOpNI9SVuT/ptFRayQ1PR9gp6Hbr6Yj/ws/jocjpsIZlhFspq0OraTAD0B0OEm dmN6R/A3cIl32SO7Hn0E0CgEeoeSVWjvWI2TOADokoXoEmB5FQUKu4VIxcNjlps60qds 9yWg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=WbMspTuyF/1iH+Oas7Zuyq8VC+UiTy3J++p9EDjElSk=; fh=DIzfUWfj21RIAI8ibHhNFjdiKeApGT6CviQ22JnUOaM=; b=GccXcjH0zbf6WjBNZDfpCzadBRHFy5C8IrrVUx1lrEA/KAh54htoQ840aspIB5Kh7+ O89MToS2WNqfTXIUdzvgC/RqD++lvcItlD301Rz9GwwixndSD8YIkXoYEKiYILjnwrAi lRc5KAe4ZET7gyX1f5rvPTkBvV9YEtB/Lsk/XV9sOvsWYyvThHb7FjRoKZ0Uypngf1J+ SrpcNLLkhS2SL0yetKwJ29GhnDe9FZzKeohxLyU+dChnhVx/Ax6C9ccSGcI61A+LaZB+ ETqrzcRaHt6G8hqr3Rlkd1AbncAmtlse2Jglz9X+ELpmf/ZEbNbANCbzHfdVB4Arc1ci LcBA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id s9-20020a656449000000b0057745d87b50si3152977pgv.139.2023.11.17.18.52.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 18:52:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 8FBF6804C23B; Fri, 17 Nov 2023 18:52:01 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232769AbjKRCvv (ORCPT + 99 others); Fri, 17 Nov 2023 21:51:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229994AbjKRCvu (ORCPT ); Fri, 17 Nov 2023 21:51:50 -0500 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 058C1D6A; Fri, 17 Nov 2023 18:51:42 -0800 (PST) Received: from kwepemm000003.china.huawei.com (unknown [172.30.72.53]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4SXJ9Y32bmz1P8FM; Sat, 18 Nov 2023 10:48:17 +0800 (CST) Received: from ubuntu2204.huawei.com (10.67.174.22) by kwepemm000003.china.huawei.com (7.193.23.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Sat, 18 Nov 2023 10:51:40 +0800 From: Yang Jihong To: , , , , , , , , , , , , CC: Subject: [PATCH 1/3] perf kwork: Fix a build error on 32-bit Date: Sat, 18 Nov 2023 02:48:56 +0000 Message-ID: <20231118024858.1567039-2-yangjihong1@huawei.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231118024858.1567039-1-yangjihong1@huawei.com> References: <20231118024858.1567039-1-yangjihong1@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.174.22] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemm000003.china.huawei.com (7.193.23.66) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 17 Nov 2023 18:52:01 -0800 (PST) lkft reported a build error for 32-bit system: builtin-kwork.c: In function 'top_print_work': builtin-kwork.c:1646:28: error: format '%ld' expects argument of type 'long int', but argument 3 has type 'u64' {aka 'long long unsigned int'} [-Werror=format=] 1646 | ret += printf(" %*ld ", PRINT_PID_WIDTH, work->id); | ~~~^ ~~~~~~~~ | | | | long int u64 {aka long long unsigned int} | %*lld cc1: all warnings being treated as errors make[3]: *** [/builds/linux/tools/build/Makefile.build:106: /home/tuxbuild/.cache/tuxmake/builds/1/build/builtin-kwork.o] Error 1 Fix it. Fixes: 55c40e505234 ("perf kwork top: Introduce new top utility") Reported-by: Linux Kernel Functional Testing Signed-off-by: Yang Jihong --- tools/perf/builtin-kwork.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/builtin-kwork.c b/tools/perf/builtin-kwork.c index f007a9b27065..0092b9b39611 100644 --- a/tools/perf/builtin-kwork.c +++ b/tools/perf/builtin-kwork.c @@ -1643,7 +1643,7 @@ static int top_print_work(struct perf_kwork *kwork __maybe_unused, struct kwork_ /* * pid */ - ret += printf(" %*ld ", PRINT_PID_WIDTH, work->id); + ret += printf(" %*" PRIu64 " ", PRINT_PID_WIDTH, work->id); /* * tgid -- 2.34.1