* [PATCH net-next 0/5] Trivial patches
@ 2013-03-08 19:07 Stephen Hemminger
2013-03-08 19:07 ` [PATCH net-next 1/5] bna: fix declaration mismatch Stephen Hemminger
` (5 more replies)
0 siblings, 6 replies; 9+ messages in thread
From: Stephen Hemminger @ 2013-03-08 19:07 UTC (permalink / raw)
To: David Miller; +Cc: netdev
These are trivial patches to fix some sparse warnings.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH net-next 1/5] bna: fix declaration mismatch
2013-03-08 19:07 [PATCH net-next 0/5] Trivial patches Stephen Hemminger
@ 2013-03-08 19:07 ` Stephen Hemminger
2013-03-08 19:30 ` Rasesh Mody
2013-03-08 19:07 ` [PATCH net-next 2/5] Supject: phy: make local function static Stephen Hemminger
` (4 subsequent siblings)
5 siblings, 1 reply; 9+ messages in thread
From: Stephen Hemminger @ 2013-03-08 19:07 UTC (permalink / raw)
To: David Miller, Rasesh Mody; +Cc: netdev, Stephen Hemminger
[-- Attachment #1: bna-mismatch.patch --]
[-- Type: text/plain, Size: 815 bytes --]
The function is declared to take u32 but definition uses enum.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
--- a/drivers/net/ethernet/brocade/bna/bfa_ioc.c 2013-03-08 10:33:19.142142147 -0800
+++ b/drivers/net/ethernet/brocade/bna/bfa_ioc.c 2013-03-08 10:33:21.534142211 -0800
@@ -76,7 +76,7 @@ static void bfa_ioc_pf_disabled(struct b
static void bfa_ioc_pf_failed(struct bfa_ioc *ioc);
static void bfa_ioc_pf_hwfailed(struct bfa_ioc *ioc);
static void bfa_ioc_pf_fwmismatch(struct bfa_ioc *ioc);
-static void bfa_ioc_boot(struct bfa_ioc *ioc, u32 boot_type,
+static void bfa_ioc_boot(struct bfa_ioc *ioc, enum bfi_fwboot_type boot_type,
u32 boot_param);
static u32 bfa_ioc_smem_pgnum(struct bfa_ioc *ioc, u32 fmaddr);
static void bfa_ioc_get_adapter_serial_num(struct bfa_ioc *ioc,
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH net-next 2/5] Supject: phy: make local function static
2013-03-08 19:07 [PATCH net-next 0/5] Trivial patches Stephen Hemminger
2013-03-08 19:07 ` [PATCH net-next 1/5] bna: fix declaration mismatch Stephen Hemminger
@ 2013-03-08 19:07 ` Stephen Hemminger
2013-03-08 19:07 ` [PATCH net-next 3/5] phy: vitesse make vsc824x_add_skew static Stephen Hemminger
` (3 subsequent siblings)
5 siblings, 0 replies; 9+ messages in thread
From: Stephen Hemminger @ 2013-03-08 19:07 UTC (permalink / raw)
To: David Miller; +Cc: netdev, Stephen Hemminger
[-- Attachment #1: phy-local.patch --]
[-- Type: text/plain, Size: 408 bytes --]
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
--- a/drivers/net/phy/lxt.c 2013-03-08 10:33:17.950142115 -0800
+++ b/drivers/net/phy/lxt.c 2013-03-08 10:33:22.210142229 -0800
@@ -159,7 +159,7 @@ static int lxt973a2_update_link(struct p
return 0;
}
-int lxt973a2_read_status(struct phy_device *phydev)
+static int lxt973a2_read_status(struct phy_device *phydev)
{
int adv;
int err;
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH net-next 3/5] phy: vitesse make vsc824x_add_skew static
2013-03-08 19:07 [PATCH net-next 0/5] Trivial patches Stephen Hemminger
2013-03-08 19:07 ` [PATCH net-next 1/5] bna: fix declaration mismatch Stephen Hemminger
2013-03-08 19:07 ` [PATCH net-next 2/5] Supject: phy: make local function static Stephen Hemminger
@ 2013-03-08 19:07 ` Stephen Hemminger
2013-03-08 19:07 ` [PATCH net-next 4/5] team: make local function static Stephen Hemminger
` (2 subsequent siblings)
5 siblings, 0 replies; 9+ messages in thread
From: Stephen Hemminger @ 2013-03-08 19:07 UTC (permalink / raw)
To: David Miller; +Cc: netdev, Stephen Hemminger
[-- Attachment #1: vitesse-local.patch --]
[-- Type: text/plain, Size: 710 bytes --]
Function is only used in this file, should be static and not
an exported symbol.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
--- a/drivers/net/phy/vitesse.c 2013-03-08 10:33:16.126142066 -0800
+++ b/drivers/net/phy/vitesse.c 2013-03-08 10:33:22.818142246 -0800
@@ -61,7 +61,7 @@ MODULE_DESCRIPTION("Vitesse PHY driver")
MODULE_AUTHOR("Kriston Carson");
MODULE_LICENSE("GPL");
-int vsc824x_add_skew(struct phy_device *phydev)
+static int vsc824x_add_skew(struct phy_device *phydev)
{
int err;
int extcon;
@@ -81,7 +81,6 @@ int vsc824x_add_skew(struct phy_device *
return err;
}
-EXPORT_SYMBOL(vsc824x_add_skew);
static int vsc824x_config_init(struct phy_device *phydev)
{
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH net-next 4/5] team: make local function static
2013-03-08 19:07 [PATCH net-next 0/5] Trivial patches Stephen Hemminger
` (2 preceding siblings ...)
2013-03-08 19:07 ` [PATCH net-next 3/5] phy: vitesse make vsc824x_add_skew static Stephen Hemminger
@ 2013-03-08 19:07 ` Stephen Hemminger
2013-03-09 12:07 ` Jiri Pirko
2013-03-08 19:07 ` [PATCH net-next 5/5] dcb: fix sparse warnings Stephen Hemminger
2013-03-09 21:10 ` [PATCH net-next 0/5] Trivial patches David Miller
5 siblings, 1 reply; 9+ messages in thread
From: Stephen Hemminger @ 2013-03-08 19:07 UTC (permalink / raw)
To: David Miller, Jiri Pirko; +Cc: netdev, Stephen Hemminger
[-- Attachment #1: team-static.patch --]
[-- Type: text/plain, Size: 576 bytes --]
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
--- a/drivers/net/team/team.c 2013-03-06 15:30:50.195924953 -0800
+++ b/drivers/net/team/team.c 2013-03-08 10:34:45.446144458 -0800
@@ -503,9 +503,9 @@ static bool team_dummy_transmit(struct t
return false;
}
-rx_handler_result_t team_dummy_receive(struct team *team,
- struct team_port *port,
- struct sk_buff *skb)
+static rx_handler_result_t team_dummy_receive(struct team *team,
+ struct team_port *port,
+ struct sk_buff *skb)
{
return RX_HANDLER_ANOTHER;
}
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH net-next 5/5] dcb: fix sparse warnings
2013-03-08 19:07 [PATCH net-next 0/5] Trivial patches Stephen Hemminger
` (3 preceding siblings ...)
2013-03-08 19:07 ` [PATCH net-next 4/5] team: make local function static Stephen Hemminger
@ 2013-03-08 19:07 ` Stephen Hemminger
2013-03-09 21:10 ` [PATCH net-next 0/5] Trivial patches David Miller
5 siblings, 0 replies; 9+ messages in thread
From: Stephen Hemminger @ 2013-03-08 19:07 UTC (permalink / raw)
To: David Miller; +Cc: netdev, Stephen Hemminger
[-- Attachment #1: dcb-sparse.patch --]
[-- Type: text/plain, Size: 454 bytes --]
Add header with function definitions to quiet warnings and avoid future errors.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
--- a/net/dcb/dcbevent.c 2012-12-07 15:06:43.291665973 -0800
+++ b/net/dcb/dcbevent.c 2013-03-08 10:36:52.394147858 -0800
@@ -20,6 +20,7 @@
#include <linux/rtnetlink.h>
#include <linux/notifier.h>
#include <linux/export.h>
+#include <net/dcbevent.h>
static ATOMIC_NOTIFIER_HEAD(dcbevent_notif_chain);
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: [PATCH net-next 1/5] bna: fix declaration mismatch
2013-03-08 19:07 ` [PATCH net-next 1/5] bna: fix declaration mismatch Stephen Hemminger
@ 2013-03-08 19:30 ` Rasesh Mody
0 siblings, 0 replies; 9+ messages in thread
From: Rasesh Mody @ 2013-03-08 19:30 UTC (permalink / raw)
To: Stephen Hemminger, David Miller; +Cc: netdev@vger.kernel.org, Stephen Hemminger
>From: Stephen Hemminger [mailto:shemminger@vyatta.com]
>Sent: Friday, March 08, 2013 11:08 AM
>
>The function is declared to take u32 but definition uses enum.
>
>Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
You are right, thanks Stephen!
Acked-by: Rasesh Mody <rmody@brocade.com>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH net-next 4/5] team: make local function static
2013-03-08 19:07 ` [PATCH net-next 4/5] team: make local function static Stephen Hemminger
@ 2013-03-09 12:07 ` Jiri Pirko
0 siblings, 0 replies; 9+ messages in thread
From: Jiri Pirko @ 2013-03-09 12:07 UTC (permalink / raw)
To: Stephen Hemminger; +Cc: David Miller, netdev, Stephen Hemminger
Fri, Mar 08, 2013 at 08:07:43PM CET, shemminger@vyatta.com wrote:
>Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
>
>
>--- a/drivers/net/team/team.c 2013-03-06 15:30:50.195924953 -0800
>+++ b/drivers/net/team/team.c 2013-03-08 10:34:45.446144458 -0800
>@@ -503,9 +503,9 @@ static bool team_dummy_transmit(struct t
> return false;
> }
>
>-rx_handler_result_t team_dummy_receive(struct team *team,
>- struct team_port *port,
>- struct sk_buff *skb)
>+static rx_handler_result_t team_dummy_receive(struct team *team,
>+ struct team_port *port,
>+ struct sk_buff *skb)
> {
> return RX_HANDLER_ANOTHER;
> }
>
>
Acked-by: Jiri Pirko <jiri@resnulli.us>
Thanks Stephen.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH net-next 0/5] Trivial patches
2013-03-08 19:07 [PATCH net-next 0/5] Trivial patches Stephen Hemminger
` (4 preceding siblings ...)
2013-03-08 19:07 ` [PATCH net-next 5/5] dcb: fix sparse warnings Stephen Hemminger
@ 2013-03-09 21:10 ` David Miller
5 siblings, 0 replies; 9+ messages in thread
From: David Miller @ 2013-03-09 21:10 UTC (permalink / raw)
To: shemminger; +Cc: netdev
From: Stephen Hemminger <shemminger@vyatta.com>
Date: Fri, 08 Mar 2013 11:07:39 -0800
> These are trivial patches to fix some sparse warnings.
Series applied, thanks Stephen.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2013-03-09 21:10 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-08 19:07 [PATCH net-next 0/5] Trivial patches Stephen Hemminger
2013-03-08 19:07 ` [PATCH net-next 1/5] bna: fix declaration mismatch Stephen Hemminger
2013-03-08 19:30 ` Rasesh Mody
2013-03-08 19:07 ` [PATCH net-next 2/5] Supject: phy: make local function static Stephen Hemminger
2013-03-08 19:07 ` [PATCH net-next 3/5] phy: vitesse make vsc824x_add_skew static Stephen Hemminger
2013-03-08 19:07 ` [PATCH net-next 4/5] team: make local function static Stephen Hemminger
2013-03-09 12:07 ` Jiri Pirko
2013-03-08 19:07 ` [PATCH net-next 5/5] dcb: fix sparse warnings Stephen Hemminger
2013-03-09 21:10 ` [PATCH net-next 0/5] Trivial patches David Miller
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).