From patchwork Mon Dec 22 19:15:54 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hannes Eder X-Patchwork-Id: 15275 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id A5254DDE19 for ; Tue, 23 Dec 2008 06:16:29 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754155AbYLVTQG (ORCPT ); Mon, 22 Dec 2008 14:16:06 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754964AbYLVTQD (ORCPT ); Mon, 22 Dec 2008 14:16:03 -0500 Received: from mail-bw0-f21.google.com ([209.85.218.21]:50184 "EHLO mail-bw0-f21.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754981AbYLVTQA (ORCPT ); Mon, 22 Dec 2008 14:16:00 -0500 Received: by mail-bw0-f21.google.com with SMTP id 14so8597306bwz.13 for ; Mon, 22 Dec 2008 11:15:58 -0800 (PST) Received: by 10.103.52.7 with SMTP id e7mr2426838muk.115.1229973358228; Mon, 22 Dec 2008 11:15:58 -0800 (PST) Received: from vmbox.hanneseder.net (chello080109038207.17.14.tuwien.teleweb.at [80.109.38.207]) by mx.google.com with ESMTPS id j6sm28756533mue.41.2008.12.22.11.15.55 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 22 Dec 2008 11:15:57 -0800 (PST) Received: by vmbox.hanneseder.net (sSMTP sendmail emulation); Mon, 22 Dec 2008 20:15:54 +0100 Subject: [PATCH 07/27] drivers/net/bonding: fix sparse warnings: move decls to header file To: netdev@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Date: Mon, 22 Dec 2008 20:15:54 +0100 Message-ID: <20081222191554.11807.66734.stgit@vmbox.hanneseder.net> In-Reply-To: <20081222191259.11807.53190.stgit@vmbox.hanneseder.net> References: <20081222191259.11807.53190.stgit@vmbox.hanneseder.net> User-Agent: StGit/0.14.3.292.gb975 MIME-Version: 1.0 From: Hannes Eder Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Fix this sparse warnings: drivers/net/bonding/bond_main.c:104:20: warning: symbol 'bonding_defaults' was not declared. Should it be static? drivers/net/bonding/bond_main.c:204:22: warning: symbol 'ad_select_tbl' was not declared. Should it be static? drivers/net/bonding/bond_sysfs.c:60:21: warning: symbol 'bonding_rwsem' was not declared. Should it be static? Signed-off-by: Hannes Eder --- drivers/net/bonding/bond_main.c | 1 - drivers/net/bonding/bond_sysfs.c | 3 --- drivers/net/bonding/bonding.h | 5 +++++ 3 files changed, 5 insertions(+), 4 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index a34c186..460c2ca 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c @@ -154,7 +154,6 @@ LIST_HEAD(bond_dev_list); static struct proc_dir_entry *bond_proc_dir = NULL; #endif -extern struct rw_semaphore bonding_rwsem; static __be32 arp_target[BOND_MAX_ARP_TARGETS] = { 0, } ; static int arp_ip_count = 0; static int bond_mode = BOND_MODE_ROUNDROBIN; diff --git a/drivers/net/bonding/bond_sysfs.c b/drivers/net/bonding/bond_sysfs.c index 1860f81..18cf478 100644 --- a/drivers/net/bonding/bond_sysfs.c +++ b/drivers/net/bonding/bond_sysfs.c @@ -43,9 +43,6 @@ /*---------------------------- Declarations -------------------------------*/ -extern struct bond_params bonding_defaults; -extern struct bond_parm_tbl ad_select_tbl[]; - static int expected_refcount = -1; /*--------------------------- Data Structures -----------------------------*/ diff --git a/drivers/net/bonding/bonding.h b/drivers/net/bonding/bonding.h index 31ae5b5..ca849d2 100644 --- a/drivers/net/bonding/bonding.h +++ b/drivers/net/bonding/bonding.h @@ -350,6 +350,11 @@ extern const struct bond_parm_tbl bond_mode_tbl[]; extern const struct bond_parm_tbl xmit_hashtype_tbl[]; extern const struct bond_parm_tbl arp_validate_tbl[]; extern const struct bond_parm_tbl fail_over_mac_tbl[]; +extern struct bond_params bonding_defaults; +extern struct bond_parm_tbl ad_select_tbl[]; + +/* exported from bond_sysfs.c */ +extern struct rw_semaphore bonding_rwsem; #if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) void bond_send_unsolicited_na(struct bonding *bond);