Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753369Ab0AYVck (ORCPT ); Mon, 25 Jan 2010 16:32:40 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751876Ab0AYVcj (ORCPT ); Mon, 25 Jan 2010 16:32:39 -0500 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:49012 "EHLO sunset.davemloft.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751852Ab0AYVcj (ORCPT ); Mon, 25 Jan 2010 16:32:39 -0500 Date: Mon, 25 Jan 2010 13:32:47 -0800 (PST) Message-Id: <20100125.133247.212571046.davem@davemloft.net> To: tj@kernel.org Cc: linux-kernel@vger.kernel.org, axboe@kernel.dk, rusty@rustcorp.com.au, akpm@linux-foundation.org, ebiederm@xmission.com, tytso@mit.edu, Trond.Myklebust@netapp.com, aelder@sgi.com, hch@infradead.org, viro@zeniv.linux.org.uk, netdev@vger.kernel.org, x86@kernel.org, mingo@redhat.com, fweisbec@gmail.com, dan.j.williams@intel.com, borislav.petkov@amd.com, ying.huang@intel.com, lenb@kernel.org, neilb@suse.de, cl@linux-foundation.org, kaber@trash.net, acme@ghostprotocols.net, vladislav.yasevich@hp.com Subject: Re: [PATCH 3/8] percpu: add __percpu sparse annotations to net From: David Miller In-Reply-To: <1264432935-10453-4-git-send-email-tj@kernel.org> References: <1264432935-10453-1-git-send-email-tj@kernel.org> <1264432935-10453-4-git-send-email-tj@kernel.org> X-Mailer: Mew version 6.3 on Emacs 23.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 989 Lines: 23 From: Tejun Heo Date: Tue, 26 Jan 2010 00:22:10 +0900 > Add __percpu sparse annotations to net. > > These annotations are to make sparse consider percpu variables to be > in a different address space and warn if accessed without going > through percpu accessors. This patch doesn't affect normal builds. > > The macro and type tricks around snmp stats make things a bit > interesting. DEFINE/DECLARE_SNMP_STAT() macros mark the target field > as __percpu and SNMP_UPD_PO_STATS() macro is updated accordingly. All > snmp_mib_*() users which used to cast the argument to (void **) are > updated to cast it to (void __percpu **). > > Signed-off-by: Tejun Heo Acked-by: David S. Miller -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/