Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757464Ab3GYSuR (ORCPT ); Thu, 25 Jul 2013 14:50:17 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:38309 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756683Ab3GYSuN (ORCPT ); Thu, 25 Jul 2013 14:50:13 -0400 Message-ID: <51F17360.90802@ti.com> Date: Thu, 25 Jul 2013 14:50:08 -0400 From: Tom Rini Organization: Texas Instruments User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: KOSAKI Motohiro CC: , , Jianpeng Ma , Rusty Russell , Lai Jiangshan , Yasuaki Ishimatsu , Wen Congyang , Jiang Liu , KOSAKI Motohiro , Minchan Kim , Mel Gorman , David Rientjes , Yinghai Lu , Greg KH Subject: Re: [PATCH] numa: Mark __node_set as __always_inline References: <1374754489-4559-1-git-send-email-trini@ti.com> <51F169A7.7030307@gmail.com> In-Reply-To: <51F169A7.7030307@gmail.com> X-Enigmail-Version: 1.5.1 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 Content-Length: 1954 Lines: 48 On 07/25/2013 02:08 PM, KOSAKI Motohiro wrote: > (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. Done, v2 submitted. -- Tom -- 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/