[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20150817.122548.203456335027850542.davem@davemloft.net>
Date: Mon, 17 Aug 2015 12:25:48 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: liguozhu@...ilicon.com
Cc: robh+dt@...nel.org, pawel.moll@....com, mark.rutland@....com,
ijc+devicetree@...lion.org.uk, galak@...eaurora.org,
catalin.marinas@....com, will.deacon@....com,
Yisen.Zhuang@...wei.com, paul.gortmaker@...driver.com,
dingtianhong@...wei.com, zhangfei.gao@...aro.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, netdev@...r.kernel.org,
linuxarm@...wei.com, salil.mehta@...wei.com,
huangdaode@...ilicon.com, liguozhu@...wei.com
Subject: Re: [PATCH 2/5] net: add Hisilicon Network Subsystem hnae
framework support
From: Kenneth Lee <liguozhu@...ilicon.com>
Date: Fri, 14 Aug 2015 18:30:19 +0800
> diff --git a/drivers/net/ethernet/hisilicon/hns/hnae.c b/drivers/net/ethernet/hisilicon/hns/hnae.c
> new file mode 100644
> index 0000000..fd09768
> --- /dev/null
> +++ b/drivers/net/ethernet/hisilicon/hns/hnae.c
...
> +static inline void hnae_list_add(spinlock_t *lock, struct list_head *node,
> + struct list_head *head)
> +{
> + unsigned long flags;
> +
> + spin_lock_irqsave(lock, flags);
> + list_add_tail_rcu(node, head);
> + spin_unlock_irqrestore(lock, flags);
> +}
Do not declare functions 'inline' in foo.c files, let the compiler decide
on it's own.
This applies to your entire patch series.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists