Skip to contentSkip to conversation

staging: octeon: Move comment to correct location

PATCH In review Cristina Moraru 2 participants 2 messages Oct 4, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: octeon: Move comment to correct location

Remove 'Excess function parameter 'addr' description in 'cvm_oct_set_mac_filter'' kernel-doc warning by moving
the desciption to the correct function: cvm_oct_common_set_mac_address

---
 drivers/staging/octeon/ethernet.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
drivers/staging/octeon/ethernet.c +7 -7
index 7274fda..798aa6c 100644
@@ -364,13 +364,6 @@ static void cvm_oct_common_set_multicast_list(struct net_device *dev)
 	}
 }
 
-/**
- * cvm_oct_common_set_mac_address - set the hardware MAC address for a device
- * @dev:    The device in question.
- * @addr:   Address structure to change it too.
-
- * Returns Zero on success
- */
 static int cvm_oct_set_mac_filter(struct net_device *dev)
 {
 	struct octeon_ethernet *priv = netdev_priv(dev);
@@ -413,6 +406,13 @@ static int cvm_oct_set_mac_filter(struct net_device *dev)
 	return 0;
 }
 
+/**
+ * cvm_oct_common_set_mac_address - set the hardware MAC address for a device
+ * @dev:    The device in question.
+ * @addr:   Address structure to change it too.
+ *
+ * Returns Zero on success
+ */
 static int cvm_oct_common_set_mac_address(struct net_device *dev, void *addr)
 {
 	int r = eth_mac_addr(dev, addr);
Signature · 1 line
1.9.1
#1 lore raw
Quoted 28 lines · Cristina Moraru

Remove 'Excess function parameter 'addr' description in 'cvm_oct_set_mac_filter'' kernel-doc warning by moving
the desciption to the correct function: cvm_oct_common_set_mac_address

---
 drivers/staging/octeon/ethernet.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
drivers/staging/octeon/ethernet.c +0 -7
index 7274fda..798aa6c 100644
@@ -364,13 +364,6 @@ static void cvm_oct_common_set_multicast_list(struct net_device *dev)
 	}
 }
 
-/**
- * cvm_oct_common_set_mac_address - set the hardware MAC address for a device
- * @dev:    The device in question.
- * @addr:   Address structure to change it too.
-
- * Returns Zero on success
- */
 static int cvm_oct_set_mac_filter(struct net_device *dev)
 {
 	struct octeon_ethernet *priv = netdev_priv(dev);

drivers/staging/octeon/ethernet.c static int cvm_oct_set_mac_filter(struct net_device *dev) · line 412

Quoted 7 lines
drivers/staging/octeon/ethernet.c +4 -0
@@ -413,6 +406,13 @@ static int cvm_oct_set_mac_filter(struct net_device *dev)
 	return 0;
 }
 
+/**
+ * cvm_oct_common_set_mac_address - set the hardware MAC address for a device
+ * @dev:    The device in question.
+ * @addr:   Address structure to change it too.

too -> to

I don't think that the address is a structure. It could be helpfu to look at the kerneldoc information for eth_mac_addr, since that takes the same arguments as this function.

julia

Quoted 16 lines
drivers/staging/octeon/ethernet.c +3 -1
+ *
+ * Returns Zero on success
+ */
 static int cvm_oct_common_set_mac_address(struct net_device *dev, void *addr)
 {
 	int r = eth_mac_addr(dev, addr);
--

1.9.1

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1443976340-86703-1-git-send-email-cristina.moraru09%40gmail.com.
For more options, visit https://groups.google.com/d/optout.