From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755597AbaHZVdc (ORCPT ); Tue, 26 Aug 2014 17:33:32 -0400 Received: from qmta06.emeryville.ca.mail.comcast.net ([76.96.30.56]:34087 "EHLO qmta06.emeryville.ca.mail.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754560AbaHZVdb (ORCPT ); Tue, 26 Aug 2014 17:33:31 -0400 Date: Tue, 26 Aug 2014 16:33:28 -0500 (CDT) From: Christoph Lameter X-X-Sender: cl@gentwo.org To: Tejun Heo cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org, Fengguang Wu , Rusty Russell , Motohiro Kosaki , Mike Travis Subject: Re: percpu: Define this_cpu_cpumask_var_t_ptr In-Reply-To: Message-ID: References: <20140821222212.GA7996@mtj.dyndns.org> <20140822164051.GB15713@mtj.dyndns.org> <20140823171416.GG13540@mtj.dyndns.org> Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 23 Aug 2014, Christoph Lameter wrote: > On Sat, 23 Aug 2014, Tejun Heo wrote: > > > Hello, Christoph. > > > > On Fri, Aug 22, 2014 at 12:43:25PM -0500, Christoph Lameter wrote: > > > It wont accept the wrong type since the this_cpu_* functions will do type > > > checking. > > > > It should only accept cpumask_var_t but the macro version accepts > > anything that this_cpu_*() can handle. > > Ah, Ok. Ok I tried to change it to an inline function. The problem is the cpumask.h is included very early. this_cpu ops require functionality that is not available at that point. I think it cannot be more than a macro unless we define it elsewhere. Regarding naming: this_cpu_ptr_cpumask_var() is ok?