Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3028503rwb; Mon, 7 Nov 2022 22:52:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf6jn372Ksrq/tszsjZ+TPubaqboaSB0X19ecBoxnunbZd5MWD5871MY/SAiUMtQUccYzoUB X-Received: by 2002:a17:906:f746:b0:7ae:6e4b:6bff with SMTP id jp6-20020a170906f74600b007ae6e4b6bffmr6772477ejb.46.1667890347787; Mon, 07 Nov 2022 22:52:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1667890347; cv=pass; d=google.com; s=arc-20160816; b=EoTNO6iGx4PrAgtHvN7lOM+Ckpt3l9saEZRUdCv9vduUAR4ty9ebqreQYCaJEVaTBR xmebVuLHjA+gO+/K/+HI1mLgyAD6z8qFazV5V4IBMxOBoiLAXevFBtsWhmX+9M3SBGHZ FxZTzRZLcCXZ5pGBC3ieU8Zeu3F360JH9/6tpiBSyKKMauRo6Pae9X8o0MFZ2jf+FKh3 m3d2ocR07xum+dleOzotodgFJlEBI6y9pKeDqsNHo6HbHuZHxGr2hcgzFj1JO/VAJRav QirGl685x5ntt+ZqV2HUkMk5UXhx1SjnN8ptEJxKwkI2i77giSF+raGj8ptYtugeAIQo sCTQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:to:content-language:subject:user-agent :date:message-id:dkim-signature; bh=yZ/PQ81oczH/qHAp6SO6WPGajotVdGvsI4PxQjF8IYI=; b=Xf45j4JswQ3Sgdx1UlwMKLXvQaIO2qypfz+geUqWgDVXbBah2AfA6MhzeNrDQdJp5P RkCaRQXmTF27opkNDoxcJoMQygQHYWCL9UZv2G96MIX4f4EZ6gTuaia4kUbBJdY6qDQo HeSq8QB9O3MmHV7u+d9VAZOPVBrEz+jkgUwX+BvUFDCbbzY/UxhHp/MfBc/FKYUmB9hb 3jGgJYb2oB1ywbY8ala8rQpUK5NxyeD90c8OdGsqpYaUnA0QyJtcKgiYtGV38gQ41f+D /1OWZPYJ2IS/w+gGJ1dF+cwW5FymlBiqO4fvQaw4c3HE3yzIDuMtBszYbhcVRQHry7CH FUvQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@meta.com header.s=s2048-2021-q4 header.b=ZdkH0ulY; arc=pass (i=1 spf=pass spfdomain=meta.com dkim=pass dkdomain=meta.com dmarc=pass fromdomain=meta.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=REJECT sp=REJECT dis=NONE) header.from=meta.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o16-20020a170906975000b007ae74740f8bsi3778850ejy.386.2022.11.07.22.52.03; Mon, 07 Nov 2022 22:52:27 -0800 (PST) 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=@meta.com header.s=s2048-2021-q4 header.b=ZdkH0ulY; arc=pass (i=1 spf=pass spfdomain=meta.com dkim=pass dkdomain=meta.com dmarc=pass fromdomain=meta.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=REJECT sp=REJECT dis=NONE) header.from=meta.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233412AbiKHGjG (ORCPT + 90 others); Tue, 8 Nov 2022 01:39:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233257AbiKHGjC (ORCPT ); Tue, 8 Nov 2022 01:39:02 -0500 Received: from mx0a-00082601.pphosted.com (mx0a-00082601.pphosted.com [67.231.145.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5A941BE9F; Mon, 7 Nov 2022 22:39:01 -0800 (PST) Received: from pps.filterd (m0148461.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 2A80V3a6008200; Mon, 7 Nov 2022 22:38:37 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=meta.com; h=message-id : date : subject : to : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=s2048-2021-q4; bh=yZ/PQ81oczH/qHAp6SO6WPGajotVdGvsI4PxQjF8IYI=; b=ZdkH0ulYoYz2ZVZ1hwUyKM2VIIfBQbf0r7AJ+OTNBHaktm0duC0QNucqbzQFFPAsZd0g jgvFBPvJf8X8QRSTkiDX9qzcya2+lA6XRCuE4QjWM49P0J639bjnFlXBZUyr7QeJ3exi FAcIqFjRx4SHfEauoXNEeIQNb7FnerMuyTaf7w/NG6Ub4m5+vzakt4A+OKF9b326Z07a HxA+0d2uCvdsyOQH3zJEMXwK5xNJ3x4UU7bi0vq6J2TlOBQXMu/CfnVGdBEt5BFiHv+5 B/ju3sMn6zhiUZ5mR4oxiHkRAoAr9upqy7u80pLDhnJQCidVSwJJCd9iqmfBCDOoBkKd 2Q== Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2102.outbound.protection.outlook.com [104.47.70.102]) by mx0a-00082601.pphosted.com (PPS) with ESMTPS id 3kqcmqsure-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 07 Nov 2022 22:38:36 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C33EBUqIWefs6yYai14eU/8rl6KanHcdu6DPYFK1emnqPHUwi3DktM7qz99jbuphi9aG6mLlfTLxIeyZRw8s1RXirJNPTa4gv5Yk99qqNxWHIlLO7ad6RjFCGkx+GJrO+D04rpWkpAfe9oBlQ00hIs6haLwHXuZi6CBT5SvgrX/eoYdTaWkReER5Np+KA0CY9Yn2jaXhtHoa0fAJ2VMgwM4WoKgEeR8HHdZBPq03O26zw3OQLRiUPi/WpPojpyvd9R6dBvvyNZjxgB4pkvAMCS8B9HKHZUvAWSaluPd8rj37ywaX9ualAJWD3/ta3erv9ZFrzsVBBnkxxHyxw4ie5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=yZ/PQ81oczH/qHAp6SO6WPGajotVdGvsI4PxQjF8IYI=; b=PEWr/nUgetopE5oVB9nPnAK4SrDUVz6JwgbZbIZZwAzXGrUv/jyUYjDdLZ3D42ll5NT3lJtHttCsH6MEAi7CBuXrazQyVQtOlX73Fjw3JJgKi9ZeXUae1F2pUOvxSMOxrf9DYG5GKkXeQqhi0st5MvSqonH4mUqGzoB5soGDdTqmMQYt6kTOvFUg97ClzjvVrYY7aIe/KLTifOQ6NO3v7WGMFyqxTu6fd69aN65XPPjaZt/DZhpR9h3Tu8LY+ISITxNAvquVZuRi0+Tc7Yjcntih3joPporqep8xjn4g0/K6hPCRunR+Uo1m2ZhCjVkXD07hBWzX+O1EFAQyoccn1w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=meta.com; dmarc=pass action=none header.from=meta.com; dkim=pass header.d=meta.com; arc=none Received: from SN6PR1501MB2064.namprd15.prod.outlook.com (2603:10b6:805:d::27) by BN8PR15MB2660.namprd15.prod.outlook.com (2603:10b6:408:c6::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.26; Tue, 8 Nov 2022 06:38:34 +0000 Received: from SN6PR1501MB2064.namprd15.prod.outlook.com ([fe80::1f2:1491:9990:c8e3]) by SN6PR1501MB2064.namprd15.prod.outlook.com ([fe80::1f2:1491:9990:c8e3%4]) with mapi id 15.20.5791.027; Tue, 8 Nov 2022 06:38:34 +0000 Message-ID: <52f848ad-fc12-c360-bb91-c1d9cd14853f@meta.com> Date: Mon, 7 Nov 2022 22:38:31 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [PATCH] selftests/bpf: Fix test_progs compilation failure in 32-bit arch Content-Language: en-US To: Yang Jihong , ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, martin.lau@linux.dev, song@kernel.org, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org, sdf@google.com, haoluo@google.com, jolsa@kernel.org, mykolal@fb.com, shuah@kernel.org, sunyucong@gmail.com, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221108015857.132457-1-yangjihong1@huawei.com> From: Yonghong Song In-Reply-To: <20221108015857.132457-1-yangjihong1@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SJ0PR03CA0087.namprd03.prod.outlook.com (2603:10b6:a03:331::32) To SN6PR1501MB2064.namprd15.prod.outlook.com (2603:10b6:805:d::27) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR1501MB2064:EE_|BN8PR15MB2660:EE_ X-MS-Office365-Filtering-Correlation-Id: b9b06fcf-4efb-4a8a-19ff-08dac153dbed X-FB-Source: Internal X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MOsmtPuoXYf+nX6krFAFMI4NFGQbXY2iZe4rJ81m9N/QnLLKzUH8gJYsrdsQyU0LajFFOSZ7AvvLtcRPJ+H6V8fJP9QYEmuJxua+1E7qLt/7PPIWZ6d6xAoiUam2KGjEee/aSlw9ZFH+UA8/ETTkednygvdBxLBiuHAIfusM/MchOcw/dDKYfxuZAiATeYrpxNimDMhT+QbCHnxjXlFfODwp4YKwOjDsHU1po85cyFq/IW8YzHrwtRB303QFtdN2e1Y6qCnfF9/ZL99krm5Kf/zQgPi5ZlM/y44g/hoK2Rr6NxQseSYxeoD+cqQser/OUSH0uqmDyXoTkBjZxb/AyI2jlTHHRzQn/7v0Egk5BcSGxIatzNaG59kbzlVOlN8rx/vAx4CZN3NzljwP8r8d5H/XJIvFXPGbswXGi5upXt4pI3Pvowo+a5ndD3P6OXebPAar/F7dmdUqOrs+nnEkrx7olv6sk2Ke0kARSoO//5rJykqF9Ag6dE4KKPrWtgCLgyjQVnW6g1RJam9perSxJp9ubc2juGogKtboMXG/eMu1dS6RwvAMARWP/dRaxGaNtrW27mtfaNV2R8xjy1CrbOjlGN5ayqVVZjqw9XbfiQ78XXWTlnyDPXdWD3UNY/FCBweu+5slj6mMchbyIM77FDgubwHPTFI0CqJaLKE75TF50mVz/4HCqNLWhrNIHzYZKTwpy5livzsDyksQWeGnLPgqjSrQW3ALfmsyAZdyMx8gVPK0sEnSO9lXGN1iMvwe2jTlSPEi6yuvMxh8yAU9L4J8Z4qk/EpTw2zhChQf49FGh0m27OCOqM5zdXukxrvM X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR1501MB2064.namprd15.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(136003)(376002)(346002)(396003)(39860400002)(366004)(451199015)(41300700001)(6506007)(36756003)(6666004)(316002)(2906002)(38100700002)(86362001)(921005)(31696002)(6512007)(66946007)(66556008)(478600001)(2616005)(7416002)(4744005)(66476007)(8676002)(5660300002)(6486002)(186003)(53546011)(8936002)(31686004)(45980500001)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-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-8?B?Z0dhZzRpZnZDQ2xmVi9td2J1UEY3TldmdUdKSlJ0SEppamZob2JZbXlmeXB5?= =?utf-8?B?eXhYejFRYmZnSnlCL2U5N3doZ2Y5aE1MTk83NFdPblVISzA5ZCt0VTFhZHdH?= =?utf-8?B?ckRLYzd5eEcvQWVLWUxyejZla28xaW8zL2NnQ0duVmNyZmwwL0FHd1hsVDNC?= =?utf-8?B?NEg2VC8zdXR0THg3SjRobE01MkZmbE0rUXFZS2VnNkppbDlGUWNEaS9xQTQ2?= =?utf-8?B?RVMrV0lRZ3BrTjZnRDdQWTZzV25BRHRmZGdId0ZwVFU4Zlg3Q2h6WVB6RVdM?= =?utf-8?B?OTV5YXFoU1AzQ0p2S1BjREZzbDVySWVVY3BMSEdZOHQ3T3o1cWVlbW5NNXBD?= =?utf-8?B?VTFweGNBbHpydk1VdUlhSGdCcklGRHJUeTcrcUQ2SHhHeU5Eb1R2UXNtZDEv?= =?utf-8?B?ZlE9PQ==?= X-OriginatorOrg: meta.com X-MS-Exchange-CrossTenant-Network-Message-Id: b9b06fcf-4efb-4a8a-19ff-08dac153dbed X-MS-Exchange-CrossTenant-AuthSource: SN6PR1501MB2064.namprd15.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Nov 2022 06:38:34.3791 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: D8SgBSiYPldhZqJZJKAkm9v5+tXabaJb2dBMRzIa6/ky+Z+2JyF87cnzgEYnd/AW X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR15MB2660 X-Proofpoint-GUID: NHgpkUM3xQ5uTHwJSnf785nOl-kTj9Zs X-Proofpoint-ORIG-GUID: NHgpkUM3xQ5uTHwJSnf785nOl-kTj9Zs X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-07_11,2022-11-07_02,2022-06-22_01 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE 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 On 11/7/22 5:58 PM, Yang Jihong wrote: > test_progs fails to be compiled in the 32-bit arch, log is as follows: > > test_progs.c:1013:52: error: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t' {aka 'unsigned int'} [-Werror=format=] > 1013 | sprintf(buf, "MSG_TEST_LOG (cnt: %ld, last: %d)", > | ~~^ > | | > | long int > | %d > 1014 | strlen(msg->test_log.log_buf), > | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > | | > | size_t {aka unsigned int} > > Fix it. > > Fixes: 91b2c0afd00c ("selftests/bpf: Add parallelism to test_progs") > Signed-off-by: Yang Jihong Acked-by: Yonghong Song