From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757985Ab3GYSIf (ORCPT ); Thu, 25 Jul 2013 14:08:35 -0400 Received: from mail-yh0-f47.google.com ([209.85.213.47]:43981 "EHLO mail-yh0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757862Ab3GYSIV (ORCPT ); Thu, 25 Jul 2013 14:08:21 -0400 Message-ID: <51F169A7.7030307@gmail.com> Date: Thu, 25 Jul 2013 14:08:39 -0400 From: KOSAKI Motohiro User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: Tom Rini CC: linux-kernel@vger.kernel.org, x86@kernel.org, Jianpeng Ma , Rusty Russell , Lai Jiangshan , Yasuaki Ishimatsu , Wen Congyang , Jiang Liu , KOSAKI Motohiro , Minchan Kim , Mel Gorman , David Rientjes , Yinghai Lu , Greg KH , kosaki.motohiro@gmail.com Subject: Re: [PATCH] numa: Mark __node_set as __always_inline References: <1374754489-4559-1-git-send-email-trini@ti.com> In-Reply-To: <1374754489-4559-1-git-send-email-trini@ti.com> Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org (7/25/13 8:14 AM), Tom Rini wrote: > It is posible for some compilers to decide that __node_set does not need > to be made turned into an inline function. When the compiler does this > on an __init function calling it on __initdata we get a section mismatch > warning now. > > Reported-by: Paul Bolle > Cc: Jianpeng Ma > Cc: Rusty Russell > Cc: Lai Jiangshan > Cc: Yasuaki Ishimatsu > Cc: Wen Congyang > Cc: Jiang Liu > Cc: KOSAKI Motohiro > Cc: Minchan Kim > Cc: Mel Gorman > Cc: David Rientjes > Cc: Yinghai Lu > Cc: Greg KH > Signed-off-by: Tom Rini > --- > include/linux/nodemask.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/linux/nodemask.h b/include/linux/nodemask.h > index 4e2cbfa..10d0fd9 100644 > --- a/include/linux/nodemask.h > +++ b/include/linux/nodemask.h > @@ -99,7 +99,7 @@ typedef struct { DECLARE_BITMAP(bits, MAX_NUMNODES); } nodemask_t; > extern nodemask_t _unused_nodemask_arg_; > > #define node_set(node, dst) __node_set((node), &(dst)) > -static inline void __node_set(int node, volatile nodemask_t *dstp) > +static __always_inline void __node_set(int node, volatile nodemask_t *dstp) The change looks ok. But, this code doesn't tell us why you changed. Please write down proper comments here. > { > set_bit(node, dstp->bits); > } >