All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gao feng <gaofeng@cn.fujitsu.com>
To: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: Fengguang Wu <fengguang.wu@intel.com>,
	Stephen Rothwell <sfr@canb.auug.org.au>,
	kbuild-all@01.org,
	Netfilter Development Mailing list
	<netfilter-devel@vger.kernel.org>
Subject: Re: net/netfilter/nf_log.c:373:38: error: 'struct netns_nf' has no member named 'proc_netfilter'
Date: Mon, 06 May 2013 11:19:49 +0800	[thread overview]
Message-ID: <51872155.6060605@cn.fujitsu.com> (raw)
In-Reply-To: <20130430180118.GA28315@localhost>

On 05/01/2013 02:01 AM, Pablo Neira Ayuso wrote:
> On Tue, Apr 30, 2013 at 10:05:52PM +0800, Fengguang Wu wrote:
>> > 
>> > FYI, kernel build failed on
>> > 
>> > tree:   git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next master
>> > head:   d7c35d45ce991ae01b6008abef120173fc9c3814
>> > commit: dba554cc481ab6582202dd954f927e7657ee453a Merge remote-tracking branch 'net-next/master'
>> > date:   5 hours ago
>> > config: i386-randconfig-r05-0429 (attached as .config)
>> > 
>> > All error/warnings:
>> > 
>> >    In file included from net/netfilter/nf_log.c:4:0:
>> >    include/linux/proc_fs.h:58:20: error: redefinition of 'proc_set_size'
>> >    include/linux/proc_fs.h:51:20: note: previous definition of 'proc_set_size' was here
>> >    include/linux/proc_fs.h: In function 'proc_net_mkdir':
>> >    include/linux/proc_fs.h:69:2: error: implicit declaration of function 'proc_mkdir_data' [-Werror=implicit-function-declaration]
>> >    include/linux/proc_fs.h:69:2: warning: return makes pointer from integer without a cast [enabled by default]
>> >    net/netfilter/nf_log.c: In function 'nf_log_net_init':
>>>> > >> net/netfilter/nf_log.c:373:38: error: 'struct netns_nf' has no member named 'proc_netfilter'
>> >    net/netfilter/nf_log.c: In function 'nf_log_net_exit':
>>>> > >> net/netfilter/nf_log.c:381:37: error: 'struct netns_nf' has no member named 'proc_netfilter'
>> >    cc1: some warnings being treated as errors
> I have attached a patch to resolve the issue. Thanks.
> 
> 
> 0001-netfilter-fix-compilation-without-CONFIG_PROC_FS.patch
> 
> 
>>From 4c5f54174742db8227ef117c78710a45b25368ce Mon Sep 17 00:00:00 2001
> From: Pablo Neira Ayuso <pablo@netfilter.org>
> Date: Tue, 30 Apr 2013 19:50:54 +0200
> Subject: [PATCH] netfilter: nf_{log,queue}: fix compilation without CONFIG_PROC_FS
> 
> This patch fixes the following compilation error:
> 
> net/netfilter/nf_log.c:373:38: error: 'struct netns_nf' has no member named 'proc_netfilter'
> 
> if procfs is not set.
> 
> The netns support for nf_log, nfnetlink_log and nfnetlink_queue_core
> requires CONFIG_PROC_FS in the removal path of their respective
> /proc interface since net->nf.proc_netfilter is undefined in that
> case.
> 
> Reported-by: Fengguang Wu <fengguang.wu@intel.com>
> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
> ---

Looks good to me, thanks for your report and fix.

Acked-by: Gao feng <gaofeng@cn.fujitsu.com>

      reply	other threads:[~2013-05-06  3:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <517f72cc.fRNNPd+CdJx0ePvu%fengguang.wu@intel.com>
     [not found] ` <20130430140552.GA8837@localhost>
     [not found]   ` <20130430175951.GA28292@localhost>
2013-04-30 18:01     ` net/netfilter/nf_log.c:373:38: error: 'struct netns_nf' has no member named 'proc_netfilter' Pablo Neira Ayuso
2013-05-06  3:19       ` Gao feng [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51872155.6060605@cn.fujitsu.com \
    --to=gaofeng@cn.fujitsu.com \
    --cc=fengguang.wu@intel.com \
    --cc=kbuild-all@01.org \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=pablo@netfilter.org \
    --cc=sfr@canb.auug.org.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.