From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Fastabend Subject: Re: [net-next PATCH] net: netprio_cgroup: make net_prio_subsys static Date: Fri, 09 Dec 2011 08:31:59 -0800 Message-ID: <4EE237FF.20409@intel.com> References: <20111208051717.20236.41881.stgit@jf-dev1-dcblab> <20111208114555.GA1246@hmsreliant.think-freely.org> <20111208.195339.152346047030004418.davem@davemloft.net> <1323446704.2336.20.camel@edumazet-HP-Compaq-6005-Pro-SFF-PC> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: David Miller , "nhorman@tuxdriver.com" , "netdev@vger.kernel.org" To: Eric Dumazet Return-path: Received: from mga01.intel.com ([192.55.52.88]:65242 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750780Ab1LIQcR (ORCPT ); Fri, 9 Dec 2011 11:32:17 -0500 In-Reply-To: <1323446704.2336.20.camel@edumazet-HP-Compaq-6005-Pro-SFF-PC> Sender: netdev-owner@vger.kernel.org List-ID: On 12/9/2011 8:05 AM, Eric Dumazet wrote: > Le jeudi 08 d=C3=A9cembre 2011 =C3=A0 19:53 -0500, David Miller a =C3= =A9crit : >> From: Neil Horman >> Date: Thu, 8 Dec 2011 06:45:55 -0500 >> >>> On Wed, Dec 07, 2011 at 09:17:17PM -0800, John Fastabend wrote: >>>> net_prio_subsys can be made static this removes the sparse >>>> warning it was throwing. >>>> >>>> Signed-off-by: John Fastabend >> ... >>> Acked-by: Neil Horman >> >> Applied. >> -- >=20 > But it trivialy breaks the build ? Or am I mistaken ? >=20 Dang. No your right. When its not built as a module it breaks. Sorry I'll revert it. >=20 > $ grep CONFIG_NETPRIO_CGROUP .config > CONFIG_NETPRIO_CGROUP=3Dy >=20 > $ make net/core/netprio_cgroup.o > CC net/core/netprio_cgroup.o > net/core/netprio_cgroup.c:31:29: error: static declaration of =E2=80=98= net_prio_subsys=E2=80=99 follows non-static declaration > include/linux/cgroup_subsys.h:71:1: note: previous declaration of =E2= =80=98net_prio_subsys=E2=80=99 was here > make[1]: *** [net/core/netprio_cgroup.o] Error 1 > make: *** [net/core/netprio_cgroup.o] Error 2 >=20 >=20 >=20