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 9FB0BA0540; Fri, 2 Dec 2022 21:02:29 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4DD3040687; Fri, 2 Dec 2022 21:02:29 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 033DA400D6 for ; Fri, 2 Dec 2022 21:02:27 +0100 (CET) Received: by linux.microsoft.com (Postfix, from userid 1086) id 46F0320B83C2; Fri, 2 Dec 2022 12:02:27 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 46F0320B83C2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1670011347; bh=AWzlNR1VOn01vtjZZ8smpX1lWAHjlDmcqe8/w5/DD9U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IPIwos6Y4VqxRWO+gYkoeDm9Sx8v7WfDhSmvPDjAq7ID4OLK33CyObsWxY403YmIB FkBbFznO01OjaF1+EWrZygddu46b3BI66EHdKWh4vc9o9MHYaCcwkhAqaJ2Y720MhY FLEMXZ8l2ftKmqhV2q8bC76/pcJrIQ++xhzINAfQ= Date: Fri, 2 Dec 2022 12:02:27 -0800 From: Tyler Retzlaff To: Morten =?iso-8859-1?Q?Br=F8rup?= Cc: dev@dpdk.org, ruifeng.wang@arm.com, zhoumin@loongson.cn, drc@linux.vnet.ibm.com, kda@semihalf.com, bruce.richardson@intel.com, konstantin.v.ananyev@yandex.ru Subject: Re: [PATCH] eal: add nonnull and access function attributes Message-ID: <20221202200227.GB28809@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> References: <20221202153432.131023-1-mb@smartsharesystems.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221202153432.131023-1-mb@smartsharesystems.com> User-Agent: Mutt/1.5.21 (2010-09-15) 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, Dec 02, 2022 at 04:34:32PM +0100, Morten Brørup wrote: > Add "nonnull" function attribute to help the compiler detect a NULL > pointer being passed to a function not accepting NULL pointers as an > argument at build time. > > Add "access" function attribute to tell the optimizer how a function > accesses its pointer arguments. > > Add these attributes to the rte_memcpy() function, as the first in > hopefully many to come. > > Signed-off-by: Morten Brørup > --- thanks for providing the non-gcc expansion to empty. Acked-by: Tyler Retzlaff