Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1467761 > unrolled thread
| Started by | Nicholas Mc Guire <hofrat@osadl.org> |
|---|---|
| First post | 2016-08-22 18:00 +0200 |
| Last post | 2016-08-24 02:00 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH V2] liquidio: declare liquidio_set_rxcsum_command static Nicholas Mc Guire <hofrat@osadl.org> - 2016-08-22 18:00 +0200
Re: [PATCH V2] liquidio: declare liquidio_set_rxcsum_command static David Miller <davem@davemloft.net> - 2016-08-24 02:00 +0200
| From | Nicholas Mc Guire <hofrat@osadl.org> |
|---|---|
| Date | 2016-08-22 18:00 +0200 |
| Subject | [PATCH V2] liquidio: declare liquidio_set_rxcsum_command static |
| Message-ID | <s8ZNM-8cV-23@gated-at.bofh.it> |
liquidio_set_rxcsum_command is a local function only, no need to expose
it outside of lio_main.c so declare it static and make sparse happy.
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
---
V2: forgot to fix up the checkpatch.pl warnings...
Detected by sparse:
CHECK drivers/net/ethernet/cavium/liquidio/lio_main.c
drivers/net/ethernet/cavium/liquidio/lio_main.c:3193:5: warning: symbol
'liquidio_set_rxcsum_command' was not declared. Should it be static?
Patch was compile tested with: x86_64_defconfig + CONFIG_LIQUIDIO=m
Patch is against 4.8.0-rc2 (localversion-next is -next-20160822)
drivers/net/ethernet/cavium/liquidio/lio_main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/cavium/liquidio/lio_main.c b/drivers/net/ethernet/cavium/liquidio/lio_main.c
index 20d6942..f659a95 100644
--- a/drivers/net/ethernet/cavium/liquidio/lio_main.c
+++ b/drivers/net/ethernet/cavium/liquidio/lio_main.c
@@ -3190,8 +3190,8 @@ static int liquidio_vlan_rx_kill_vid(struct net_device *netdev,
* OCTNET_CMD_RXCSUM_DISABLE
* @returns SUCCESS or FAILURE
*/
-int liquidio_set_rxcsum_command(struct net_device *netdev, int command,
- u8 rx_cmd)
+static int liquidio_set_rxcsum_command(struct net_device *netdev, int command,
+ u8 rx_cmd)
{
struct lio *lio = GET_LIO(netdev);
struct octeon_device *oct = lio->oct_dev;
--
2.1.4
[toc] | [next] | [standalone]
| From | David Miller <davem@davemloft.net> |
|---|---|
| Date | 2016-08-24 02:00 +0200 |
| Message-ID | <s9tLQ-2xb-11@gated-at.bofh.it> |
| In reply to | #1467761 |
From: Nicholas Mc Guire <hofrat@osadl.org> Date: Mon, 22 Aug 2016 17:52:00 +0200 > liquidio_set_rxcsum_command is a local function only, no need to expose > it outside of lio_main.c so declare it static and make sparse happy. > > Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org> Applied.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web