From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760217AbYGCNuS (ORCPT ); Thu, 3 Jul 2008 09:50:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755259AbYGCNuE (ORCPT ); Thu, 3 Jul 2008 09:50:04 -0400 Received: from fallback.mail.elte.hu ([157.181.151.13]:56494 "EHLO fallback.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753950AbYGCNuD (ORCPT ); Thu, 3 Jul 2008 09:50:03 -0400 Date: Thu, 3 Jul 2008 11:01:00 +0200 From: Ingo Molnar To: Vegard Nossum Cc: Mike Travis , "akpm@linux-foundation.org" , mm-commits@vger.kernel.org, Yinghai Lu , LKML Subject: Re: [PATCH 1/1] x86: Add check for node passed to node_to_cpumask V3 Message-ID: <20080703090100.GA10872@elte.hu> References: <200806090918.m599Ib0G012837@imap1.linux-foundation.org> <19f34abd0806090420r4100241cgb4b828441de3b102@mail.gmail.com> <20080609113547.GA1534@elte.hu> <484D54F2.4070603@sgi.com> <20080626113229.GB29619@elte.hu> <4863C334.2090007@sgi.com> <486452CC.8050502@sgi.com> <48651EF5.5090808@sgi.com> <20080703084401.GB7873@elte.hu> <19f34abd0807030155x22b0033dj780830bad840216f@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <19f34abd0807030155x22b0033dj780830bad840216f@mail.gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.3 -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Vegard Nossum wrote: > On Thu, Jul 3, 2008 at 10:44 AM, Ingo Molnar wrote: > > > > * Mike Travis wrote: > > > >> Subject: [PATCH 1/1] x86: Add check for node passed to node_to_cpumask V3 > >> > >> * When CONFIG_DEBUG_PER_CPU_MAPS is set, the node passed to > >> node_to_cpumask and node_to_cpumask_ptr should be validated. > >> If invalid, then a dump_stack is performed and a zero cpumask > >> is returned. > >> > >> Based on "Fri Jun 27 10:06:06 PDT 2008" tip/master... ;-) > >> > >> Signed-off-by: Mike Travis > >> --- > >> V2: Slightly different version to remove a compiler warning. > >> V3: Redone to reflect moving setup.c -> setup_percpu.c > > > > applied to tip/x86/unify-setup - thanks Mike. > > > > Vegard, can i add your Acked-by too? > > To be honest, I'd prefer that the function returns a const pointer. > Mike and I have both reviewed all callers independently and concluded > that there is no problem in doing this, and that, in fact, this is the > correct way to deal with it. > > So if Mike submits a V4 with this const return type, or another patch > on top of this one, I'll ack it :-) ok, i'll wait for v4 :) (v3 is applied already so Mike please send a delta to v3.) Ingo