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 686A0A0A0C; Fri, 2 Jul 2021 15:07:50 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 158EC41353; Fri, 2 Jul 2021 15:07:50 +0200 (CEST) Received: from shelob.oktetlabs.ru (shelob.oktetlabs.ru [91.220.146.113]) by mails.dpdk.org (Postfix) with ESMTP id 02DA640686 for ; Fri, 2 Jul 2021 15:07:48 +0200 (CEST) Received: from [192.168.38.17] (aros.oktetlabs.ru [192.168.38.17]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by shelob.oktetlabs.ru (Postfix) with ESMTPSA id 8005C7F52A; Fri, 2 Jul 2021 16:07:48 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 shelob.oktetlabs.ru 8005C7F52A DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=oktetlabs.ru; s=default; t=1625231268; bh=qZcYHsZUH3anLZfDtSlDYAKis4pKeFhWPFYQkFzUrdA=; h=Subject:To:References:From:Date:In-Reply-To; b=b6B6WeaPY/btzQur7w7+DrSdziLb4HMekYek60HhJZF/2E0s06J0/XW9e2Ok65Ogm Q4LpFw8Buomv7vUagbDqgidWKn7V+OaG0dPQj9TbkXSFxbzBZYEY4jjl+SuWN/wrv1 +fzx46eZ/ng8gpQynhMb34rWcSXFN3aZvGX26LN4= To: Jiawen Wu , dev@dpdk.org References: <20210617110005.4132926-1-jiawenwu@trustnetic.com> <20210617110005.4132926-2-jiawenwu@trustnetic.com> From: Andrew Rybchenko Organization: OKTET Labs Message-ID: <6f16fa58-5f1f-d27a-4550-6d79634123c1@oktetlabs.ru> Date: Fri, 2 Jul 2021 16:07:48 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210617110005.4132926-2-jiawenwu@trustnetic.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v6 01/19] net/ngbe: add build and doc infrastructure 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 Sender: "dev" On 6/17/21 1:59 PM, Jiawen Wu wrote: > Adding bare minimum PMD library and doc build infrastructure > and claim the maintainership for ngbe PMD. > > Signed-off-by: Jiawen Wu Just one nit below. [snip] > diff --git a/drivers/net/ngbe/ngbe_ethdev.c b/drivers/net/ngbe/ngbe_ethdev.c > new file mode 100644 > index 0000000000..f8e19066de > --- /dev/null > +++ b/drivers/net/ngbe/ngbe_ethdev.c > @@ -0,0 +1,29 @@ > +/* SPDX-License-Identifier: BSD-3-Clause > + * Copyright(c) 2018-2020 Beijing WangXun Technology Co., Ltd. > + * Copyright(c) 2010-2017 Intel Corporation > + */ > + > +#include > +#include > +#include > + > +static int > +eth_ngbe_pci_probe(struct rte_pci_driver *pci_drv __rte_unused, > + struct rte_pci_device *pci_dev) > +{ > + RTE_SET_USED(pci_dev); > + return -EINVAL; > +} > + > +static int eth_ngbe_pci_remove(struct rte_pci_device *pci_dev) > +{ > + RTE_SET_USED(pci_dev); > + return -EINVAL; > +} Why is different style of unused suppression is used above: __rte_unused vs RTE_SET_USED'? [snip]