From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A64A7A00C4; Fri, 30 Sep 2022 10:38:36 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 520EE40E5A; Fri, 30 Sep 2022 10:38:36 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id BFFBD40684 for ; Fri, 30 Sep 2022 10:38:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1664527115; 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: in-reply-to:in-reply-to:references:references; bh=cIlOm0uhqncjch3Ci6ZREkGN2Jjuf11vQuDwaHpWWaQ=; b=Kq7TMTQk2BtadOwBh+EgN3UkbkpBuRksFMPum0jm2cqHbdZfbQi+CPuyBYRLuI6KQQRlXw ATsWqJ2pNO9cE+QdCFGeakcv0iKkR+n6Rb+bTu+t4QEk9VkPiClfMOzSHM3Lv5K13uewA/ 1NtkX54GxDG50UIHtKzVvrCjrIiTD/8= Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-298-Xjpk58ZnNK2OIlMHDBNhXQ-1; Fri, 30 Sep 2022 04:38:32 -0400 X-MC-Unique: Xjpk58ZnNK2OIlMHDBNhXQ-1 Received: by mail-pl1-f200.google.com with SMTP id z7-20020a170903018700b0017835863686so2840432plg.11 for ; Fri, 30 Sep 2022 01:38:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date; bh=cIlOm0uhqncjch3Ci6ZREkGN2Jjuf11vQuDwaHpWWaQ=; b=6K2AwtpIo+7cpEHsI3Z84COu4DhY49iT+W/GYDfj7269RD0nIKBn1/flpdRG8kxW1g bRyYqYja5gPmxlSm5fRh3AaOxv25r7keqouq0DHeOqJjEl0WBv90HZYmvjGJAlBASzT6 Oy90uqZvGJxprj53eStfQCTseXOzB0mQE6D94xDEICqNYJcImyMfyzeWAYpxGrXgFvSZ 3J2ZR6BH250I+F5kpZcfzHL61S9VHXZASZNVbJ2Q5akArXeY/0GKX2yIisjITjEn5q1c 5QEMhiXfCTjP74YKuz7pIS397aXSTSV+W9FfItWsSX5IQtjKTmMLy46c9Pltd6sv33mw 2c5g== X-Gm-Message-State: ACrzQf1Kf57TwTpO6iBPJvIVV53tNuVwWGqgZPWO4yBzlmOp0LU1h0bL Ih0H/enT3uj8fS9bejDk7h4/jk+v83rXraP3NErqRFJTWyDrVFfS9WXV9Fn9TenItRvonlKr9LX 1PRLHR+p2I3u/Smg3Niw= X-Received: by 2002:a17:90b:1c8e:b0:205:783b:fe32 with SMTP id oo14-20020a17090b1c8e00b00205783bfe32mr21338226pjb.39.1664527110930; Fri, 30 Sep 2022 01:38:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7gFj8mqt1oACXyNC1b23qJgmJdGPDwh7kSm7ssTCMEk45atxB//7kj9K6GiR2oTqZZ1/6GDa58e6SPATJsrDg= X-Received: by 2002:a17:90b:1c8e:b0:205:783b:fe32 with SMTP id oo14-20020a17090b1c8e00b00205783bfe32mr21338198pjb.39.1664527110560; Fri, 30 Sep 2022 01:38:30 -0700 (PDT) MIME-Version: 1.0 References: <20220921142830.71272-1-mb@smartsharesystems.com> <20220922114413.106291-1-mb@smartsharesystems.com> In-Reply-To: From: David Marchand Date: Fri, 30 Sep 2022 10:38:18 +0200 Message-ID: Subject: Re: [PATCH v2] eal: Pointer alignment check improvements To: =?UTF-8?Q?Morten_Br=C3=B8rup?= Cc: thomas@monjalon.net, dev@dpdk.org, Bruce Richardson X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Fri, Sep 23, 2022 at 10:25 AM Bruce Richardson wrote: > On Thu, Sep 22, 2022 at 01:44:13PM +0200, Morten Br=C3=B8rup wrote: > > Checking a const pointer for alignment would emit a warning about the > > const qualifier being discarded. > > > > No need to calculate the aligned pointer; just check the last bits of t= he > > pointer. > > > > Signed-off-by: Morten Br=C3=B8rup > Acked-by: Bruce Richardson Applied, thanks. --=20 David Marchand