From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: passt.top; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=IzkjjiFy; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by passt.top (Postfix) with ESMTP id DACA85A004E for ; Wed, 27 Nov 2024 12:15:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1732706157; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hcURLtflxhQWmJmd3e+FgTAAcgH5b+ucO51kNHEf5CU=; b=IzkjjiFyWLRlrSh+rPW/2v9WU1YDyha9fNKHxAsg0xfOSu2EfjSZ3tB2OBVF0vCCRK2+Dz GDrCbwObp9jNBffk7pfNiB3p63HfMT21k4AOvfUqly8cR47l+JM0zrGFw7t5uxO5eIJmH4 +mX2eTgv5jx9zB6KOnV/k8OHj5pejys= Received: from mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-401-Amsjc69xPWmus1xrprW6tg-1; Wed, 27 Nov 2024 06:15:54 -0500 X-MC-Unique: Amsjc69xPWmus1xrprW6tg-1 X-Mimecast-MFC-AGG-ID: Amsjc69xPWmus1xrprW6tg Received: from mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 72DBB1955EE8 for ; Wed, 27 Nov 2024 11:15:53 +0000 (UTC) Received: from lenovo-t14s.redhat.com (unknown [10.39.193.108]) by mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 86EC61956086; Wed, 27 Nov 2024 11:15:52 +0000 (UTC) From: Laurent Vivier To: passt-dev@passt.top Subject: [PATCH] Fix build on 32bit target Date: Wed, 27 Nov 2024 12:15:51 +0100 Message-ID: <20241127111551.3617675-1-lvivier@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.15 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: 3QrcqOZeOCGyiQfhEhDIboph_u7Xz7EiPULoqzSXA_c_1732706153 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Message-ID-Hash: TKIWDPLNAJ5OLTUMAHJ5E6PYNGTG53C2 X-Message-ID-Hash: TKIWDPLNAJ5OLTUMAHJ5E6PYNGTG53C2 X-MailFrom: lvivier@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Laurent Vivier X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Rml4IHRoZSBmb2xsb3dpbmcgZXJyb3JzIHdoZW4gYnVpbHQgd2l0aCBDRkxBR1M9Ii1tMzIgLVVf X0FWWDJfXyI6DQoNCnBhY2tldC5jOjU3OjIzOiB3YXJuaW5nOiBmb3JtYXQg4oCYJWx14oCZIGV4 cGVjdHMgYXJndW1lbnQgb2YgdHlwZSDigJhsb25nIHVuc2lnbmVkIGludOKAmSwgYnV0IGFyZ3Vt ZW50IDUgaGFzIHR5cGUg4oCYc2l6ZV904oCZIHtha2Eg4oCYdW5zaWduZWQgaW504oCZfSBbLVdm b3JtYXQ9XQ0KICAgNTcgfCAgICAgICAgICAgICAgICAgdHJhY2UoInBhY2tldCBvZmZzZXQgcGx1 cyBsZW5ndGggJWx1IGZyb20gc2l6ZSAlbHUsICINCiAgIDU4IHwgICAgICAgICAgICAgICAgICAg ICAgICIlczolaSIsIHN0YXJ0IC0gcC0+YnVmICsgbGVuICsgb2Zmc2V0LA0KICAgICAgfCAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgfn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn4N CiAgICAgIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgIHwNCiAgICAgIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgIHNpemVfdCB7YWthIHVuc2lnbmVkIGludH0NCg0KcGFja2V0LmM6NTc6MjM6IHdh cm5pbmc6IGZvcm1hdCDigJglbHXigJkgZXhwZWN0cyBhcmd1bWVudCBvZiB0eXBlIOKAmGxvbmcg dW5zaWduZWQgaW504oCZLCBidXQgYXJndW1lbnQgNiBoYXMgdHlwZSDigJhzaXplX3TigJkge2Fr YSDigJh1bnNpZ25lZCBpbnTigJl9IFstV2Zvcm1hdD1dDQogICA1NyB8ICAgICAgICAgICAgICAg ICB0cmFjZSgicGFja2V0IG9mZnNldCBwbHVzIGxlbmd0aCAlbHUgZnJvbSBzaXplICVsdSwgIg0K ICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgXn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+ fn5+fn5+fn5+fn5+fn5+fn5+fn4NCiAgIDU4IHwgICAgICAgICAgICAgICAgICAgICAgICIlczol aSIsIHN0YXJ0IC0gcC0+YnVmICsgbGVuICsgb2Zmc2V0LA0KICAgNTkgfCAgICAgICAgICAgICAg ICAgICAgICAgcC0+YnVmX3NpemUsIGZ1bmMsIGxpbmUpOw0KICAgICAgfCAgICAgICAgICAgICAg ICAgICAgICAgfn5+fn5+fn5+fn4NCiAgICAgIHwgICAgICAgICAgICAgICAgICAgICAgICB8DQog ICAgICB8ICAgICAgICAgICAgICAgICAgICAgICAgc2l6ZV90IHtha2EgdW5zaWduZWQgaW50fQ0K DQp2aG9zdF91c2VyLmM6MTM5OjMyOiB3YXJuaW5nOiBjYXN0IHRvIHBvaW50ZXIgZnJvbSBpbnRl Z2VyIG9mIGRpZmZlcmVudCBzaXplIFstV2ludC10by1wb2ludGVyLWNhc3RdDQogIDEzOSB8ICAg ICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAodm9pZCAqKShxZW11X2FkZHIgLSByLT5xdmEg KyByLT5tbWFwX2FkZHIgKw0KICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg Xg0KDQp2aG9zdF91c2VyLmM6NDM5OjMyOiB3YXJuaW5nOiBjYXN0IHRvIHBvaW50ZXIgZnJvbSBp bnRlZ2VyIG9mIGRpZmZlcmVudCBzaXplIFstV2ludC10by1wb2ludGVyLWNhc3RdDQogIDQzOSB8 ICAgICAgICAgICAgICAgICAgICAgICAgIG11bm1hcCgodm9pZCAqKXItPm1tYXBfYWRkciwgci0+ c2l6ZSArIHItPm1tYXBfb2Zmc2V0KTsNCiAgICAgIHwgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgIF4NCg0Kdmhvc3RfdXNlci5jOjkwMDozMjogd2FybmluZzogY2FzdCB0byBwb2ludGVy IGZyb20gaW50ZWdlciBvZiBkaWZmZXJlbnQgc2l6ZSBbLVdpbnQtdG8tcG9pbnRlci1jYXN0XQ0K ICA5MDAgfCAgICAgICAgICAgICAgICAgICAgICAgICBtdW5tYXAoKHZvaWQgKilyLT5tbWFwX2Fk ZHIsIHItPnNpemUgKyByLT5tbWFwX29mZnNldCk7DQogICAgICB8ICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICBeDQoNCnZpcnRpby5jOjExMTozMjogd2FybmluZzogY2FzdCB0byBwb2lu dGVyIGZyb20gaW50ZWdlciBvZiBkaWZmZXJlbnQgc2l6ZSBbLVdpbnQtdG8tcG9pbnRlci1jYXN0 XQ0KICAxMTEgfCAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gKHZvaWQgKikoZ3Vlc3Rf YWRkciAtIHItPmdwYSArIHItPm1tYXBfYWRkciArDQogICAgICB8ICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICBeDQoNCnZ1X2NvbW1vbi5jOjM3OjI3OiB3YXJuaW5nOiBjYXN0IHRvIHBv aW50ZXIgZnJvbSBpbnRlZ2VyIG9mIGRpZmZlcmVudCBzaXplIFstV2ludC10by1wb2ludGVyLWNh c3RdDQogICAzNyB8ICAgICAgICAgICAgICAgICBjaGFyICptID0gKGNoYXIgKilkZXZfcmVnaW9u LT5tbWFwX2FkZHI7DQogICAgICB8ICAgICAgICAgICAgICAgICAgICAgICAgICAgXg0KDQpTaWdu ZWQtb2ZmLWJ5OiBMYXVyZW50IFZpdmllciA8bHZpdmllckByZWRoYXQuY29tPg0KLS0tDQogcGFj a2V0LmMgICAgIHwgIDIgKy0NCiB2aG9zdF91c2VyLmMgfCAxMSArKysrKysrLS0tLQ0KIHZpcnRp by5jICAgICB8ICA1ICsrKy0tDQogdnVfY29tbW9uLmMgIHwgIDIgKy0NCiA0IGZpbGVzIGNoYW5n ZWQsIDEyIGluc2VydGlvbnMoKyksIDggZGVsZXRpb25zKC0pDQoNCmRpZmYgLS1naXQgYS9wYWNr ZXQuYyBiL3BhY2tldC5jDQppbmRleCBlNWE3OGQwNzkyMzEuLjAzYTExZTZhYzRkOSAxMDA2NDQN Ci0tLSBhL3BhY2tldC5jDQorKysgYi9wYWNrZXQuYw0KQEAgLTU0LDcgKzU0LDcgQEAgc3RhdGlj IGludCBwYWNrZXRfY2hlY2tfcmFuZ2UoY29uc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