From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755437AbaHZXE7 (ORCPT ); Tue, 26 Aug 2014 19:04:59 -0400 Received: from qmta11.emeryville.ca.mail.comcast.net ([76.96.27.211]:44098 "EHLO qmta11.emeryville.ca.mail.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750938AbaHZXE6 (ORCPT ); Tue, 26 Aug 2014 19:04:58 -0400 Date: Tue, 26 Aug 2014 18:04:55 -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: <20140826213735.GS31659@mtj.dyndns.org> Message-ID: References: <20140821222212.GA7996@mtj.dyndns.org> <20140822164051.GB15713@mtj.dyndns.org> <20140823171416.GG13540@mtj.dyndns.org> <20140826213735.GS31659@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 Tue, 26 Aug 2014, Tejun Heo wrote: > Ugh.... include hell. :( Does putting the accessors in percpu.h make > any difference? Given the tricky nature of cpumask_var_t, I think > type checking can be pretty useful. Then its going to be difficult to find. This is related to the cpumark_var_t handling and should be defined close to where it is introduced and discussed. > > > Regarding naming: > > > > this_cpu_ptr_cpumask_var() > > > > is ok? > > Wouldn't this_cpu_cpumask_var_ptr() be a bit more natural? Ok.