From patchwork Mon Feb 13 15:40:45 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Dumazet X-Patchwork-Id: 140919 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.180.67]) by ozlabs.org (Postfix) with ESMTP id CA50FB6FC9 for ; Tue, 14 Feb 2012 02:40:51 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756891Ab2BMPkt (ORCPT ); Mon, 13 Feb 2012 10:40:49 -0500 Received: from mail-ww0-f44.google.com ([74.125.82.44]:64712 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754007Ab2BMPkt (ORCPT ); Mon, 13 Feb 2012 10:40:49 -0500 Received: by wgbdt10 with SMTP id dt10so5017711wgb.1 for ; Mon, 13 Feb 2012 07:40:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:subject:from:to:cc:date:content-type:x-mailer :content-transfer-encoding:mime-version; bh=9RDRrrJGTVaAANeDDdhNYLmODMUqs4UfOjlp8N/GX2U=; b=M+p1So4/lzXD/cA+1QTcnlKD6PkP+68u0DaBSu0lQhzTx/06iRhLL+LvlYwFpYB7Wv WNrF+Vx4sYnSAicythd/UMDFPfhvrILmHFDEY2qqSBZ2+S2J3A7rxqTodPv8ijpOZWmK /RW4ZNPd5IGVl8R+QycMJJrTrrNi4eBajwCtc= Received: by 10.180.92.71 with SMTP id ck7mr31718313wib.3.1329147648070; Mon, 13 Feb 2012 07:40:48 -0800 (PST) Received: from [10.150.51.210] (gw0.net.jmsp.net. [212.23.165.14]) by mx.google.com with ESMTPS id q2sm22287002wiy.7.2012.02.13.07.40.46 (version=SSLv3 cipher=OTHER); Mon, 13 Feb 2012 07:40:47 -0800 (PST) Message-ID: <1329147645.2494.17.camel@edumazet-HP-Compaq-6005-Pro-SFF-PC> Subject: [PATCH net-next] net_sched: sch_plug: plug_qdisc_ops is static From: Eric Dumazet To: David Miller Cc: netdev Date: Mon, 13 Feb 2012 16:40:45 +0100 X-Mailer: Evolution 3.2.2- Mime-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org net/sched/sch_plug.c:211:18: warning: symbol 'plug_qdisc_ops' was not declared. Should it be static? Signed-off-by: Eric Dumazet --- net/sched/sch_plug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 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/net/sched/sch_plug.c b/net/sched/sch_plug.c index ba7b737..89f8fcf 100644 --- a/net/sched/sch_plug.c +++ b/net/sched/sch_plug.c @@ -208,7 +208,7 @@ static int plug_change(struct Qdisc *sch, struct nlattr *opt) return 0; } -struct Qdisc_ops plug_qdisc_ops = { +static struct Qdisc_ops plug_qdisc_ops __read_mostly = { .id = "plug", .priv_size = sizeof(struct plug_sched_data), .enqueue = plug_enqueue,