DPDK patches and discussions
 help / color / mirror / Atom feed
From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
To: Olivier Matz <olivier.matz@6wind.com>, "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] [memnic PATCH] pmd: fix attributes
Date: Thu, 30 Jan 2014 11:37:54 +0000	[thread overview]
Message-ID: <7F861DC0615E0C47A872E6F3C5FCDDBD0102D0D4@BPXM14GP.gisp.nec.co.jp> (raw)
In-Reply-To: <1390579140-23841-1-git-send-email-olivier.matz@6wind.com>

> Subject: [dpdk-dev] [memnic PATCH] pmd: fix attributes
> 
> Add missing "const" and remove useless "rte_unused" attributes.

Good catch. Looks fine to me.

thanks,
Hiroshi

> 
> Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
> ---
>  pmd/pmd_memnic.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/pmd/pmd_memnic.c b/pmd/pmd_memnic.c
> index d16eb0d..bc01746 100644
> --- a/pmd/pmd_memnic.c
> +++ b/pmd/pmd_memnic.c
> @@ -57,7 +57,7 @@ struct memnic_adapter {
>  	struct ether_addr mac_addr;
>  };
> 
> -static inline struct memnic_adapter *get_adapter(struct rte_eth_dev *dev)
> +static inline struct memnic_adapter *get_adapter(const struct rte_eth_dev *dev)
>  {
>  	return (struct memnic_adapter *)(dev->data->dev_private);
>  }
> @@ -67,7 +67,7 @@ struct memnic_queue {
>  	uint8_t port_id;
>  };
> 
> -static struct memnic_queue *memnic_queue_alloc(struct rte_eth_dev *dev,
> +static struct memnic_queue *memnic_queue_alloc(const struct rte_eth_dev *dev,
>  					       int tx, uint16_t id)
>  {
>  	struct memnic_adapter *adapter = get_adapter(dev);
> @@ -119,7 +119,7 @@ static void memnic_dev_stop(struct rte_eth_dev *dev)
>  	return;
>  }
> 
> -static void memnic_dev_infos_get(__rte_unused struct rte_eth_dev *dev,
> +static void memnic_dev_infos_get(struct rte_eth_dev *dev,
>  				 struct rte_eth_dev_info *dev_info)
>  {
>  	dev_info->driver_name = dev->driver->pci_drv.name;
> --
> 1.8.4.rc3

  reply	other threads:[~2014-01-30 11:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-24 15:59 Olivier Matz
2014-01-30 11:37 ` Hiroshi Shimamoto [this message]
2014-02-04 13:05   ` Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7F861DC0615E0C47A872E6F3C5FCDDBD0102D0D4@BPXM14GP.gisp.nec.co.jp \
    --to=h-shimamoto@ct.jp.nec.com \
    --cc=dev@dpdk.org \
    --cc=olivier.matz@6wind.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).