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 08E91A0A0C; Mon, 5 Jul 2021 10:54:34 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E01954068C; Mon, 5 Jul 2021 10:54:33 +0200 (CEST) Received: from shelob.oktetlabs.ru (shelob.oktetlabs.ru [91.220.146.113]) by mails.dpdk.org (Postfix) with ESMTP id D19A74003C for ; Mon, 5 Jul 2021 10:54:32 +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 5DED47F528; Mon, 5 Jul 2021 11:54:32 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 shelob.oktetlabs.ru 5DED47F528 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=oktetlabs.ru; s=default; t=1625475272; bh=BK8lEVV/q0MKxAj5U7hnU9jsq1Mbn7aIxHqTe2Rpsfw=; h=Subject:To:References:From:Date:In-Reply-To; b=RlEHTdWqmYtvGM5AOLEzzk2eVT8YqA+IRyeBZQplEgbhe+GthtkfFfKa6bBym7qWJ P2BrvUAitJnaazyeXp2FY2L8QI7tqrL8NYl50ocEy2ApFZCoDa4kkOgCIBwemVnbl4 sWTcgZBemRsazfuwPxhsTmpBr/ntnXzhAAp7yuP0= To: Jiawen Wu , dev@dpdk.org References: <20210617110005.4132926-1-jiawenwu@trustnetic.com> <20210617110005.4132926-2-jiawenwu@trustnetic.com> <6f16fa58-5f1f-d27a-4550-6d79634123c1@oktetlabs.ru> <00a301d77148$d81d1e90$88575bb0$@trustnetic.com> From: Andrew Rybchenko Organization: OKTET Labs Message-ID: <0b40d4e3-76f6-a66c-06f5-82683b6414eb@oktetlabs.ru> Date: Mon, 5 Jul 2021 11:54:32 +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: <00a301d77148$d81d1e90$88575bb0$@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 7/5/21 5:52 AM, Jiawen Wu wrote: > On July 2, 2021 9:08 PM, Andrew Rybchenko wrote: >> 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] > > I guess, 'pci_drv' will not be used in future implement the probe function. > So I just gave '__rte_unused' when I separated the patches. > Does this have to be corrected? You never know. So, it is better to be consistent. Yes, please.