From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: [PATCH 2/2] Netfilter: Accounting rework: ct_extend + 64bit counters (v3) Date: Wed, 02 Jul 2008 15:07:40 +0200 Message-ID: <486B7D9C.4070501@trash.net> References: <485a3c49.C0A/tC0/U7AaZp3V%ole@ans.pl> <486114E9.9000809@trash.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: netfilter-devel@vger.kernel.org To: Krzysztof Oledzki Return-path: Received: from stinky.trash.net ([213.144.137.162]:37037 "EHLO stinky.trash.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753448AbYGBNHl (ORCPT ); Wed, 2 Jul 2008 09:07:41 -0400 In-Reply-To: Sender: netfilter-devel-owner@vger.kernel.org List-ID: Krzysztof Oledzki wrote: > > > On Tue, 24 Jun 2008, Krzysztof Oledzki wrote: > > > >>>> +static unsigned int nf_ct_acct __read_mostly = NF_CT_ACCT_DEFAULT; >>> >>> Perhaps this should be bool instead? >> >> Yep. > > It seems that it has to stay as unsigned int - if I change it to bool I > get: > net/netfilter/nf_conntrack_acct.c: In function '__check_acct': > net/netfilter/nf_conntrack_acct.c:27: warning: return from incompatible > pointer type You also need to use the proper module_param type.