From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753749AbdBJTGn (ORCPT ); Fri, 10 Feb 2017 14:06:43 -0500 Received: from prod-mail-xrelay06.akamai.com ([96.6.114.98]:42987 "EHLO prod-mail-xrelay06.akamai.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752439AbdBJTGP (ORCPT ); Fri, 10 Feb 2017 14:06:15 -0500 Subject: Re: [PATCH] jump_label: don't export section tags To: "Michael S. Tsirkin" , linux-kernel@vger.kernel.org References: <1486747774-16505-1-git-send-email-mst@redhat.com> Cc: Peter Zijlstra , Steven Rostedt , Borislav Petkov , Andrew Morton , Linus Torvalds , Thomas Gleixner , Mel Gorman , Ingo Molnar From: Jason Baron Message-ID: <49d7b075-082b-0a60-405e-e7ff7565ed0d@akamai.com> Date: Fri, 10 Feb 2017 14:05:36 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <1486747774-16505-1-git-send-email-mst@redhat.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/10/2017 12:29 PM, Michael S. Tsirkin wrote: > These are supplied by the linker and only used by jump_label.c. > This trivial patch moves them out of jump_label.h. > > Cc: Jason Baron > Cc: Peter Zijlstra > Cc: Steven Rostedt > Cc: Borislav Petkov > Cc: Andrew Morton > Cc: Linus Torvalds > Cc: Thomas Gleixner > Cc: Mel Gorman > Cc: Ingo Molnar > Signed-off-by: Michael S. Tsirkin > --- > include/linux/jump_label.h | 3 --- > kernel/jump_label.c | 4 ++++ > 2 files changed, 4 insertions(+), 3 deletions(-) > > diff --git a/include/linux/jump_label.h b/include/linux/jump_label.h > index 48ed83f..21701da 100644 > --- a/include/linux/jump_label.h > +++ b/include/linux/jump_label.h > @@ -132,9 +132,6 @@ static __always_inline bool static_key_true(struct static_key *key) > return !arch_static_branch(key, true); > } > > -extern const struct jump_entry __start___jump_table[]; > -extern const struct jump_entry __stop___jump_table[]; > - > extern void jump_label_init(void); > extern void jump_label_lock(void); > extern void jump_label_unlock(void); hmmm - looks this was on top of your previous patch? Otherwise, looks good to me. Thanks, -Jason > diff --git a/kernel/jump_label.c b/kernel/jump_label.c > index a9b8cf5..6eaa84c 100644 > --- a/kernel/jump_label.c > +++ b/kernel/jump_label.c > @@ -18,6 +18,10 @@ > > #ifdef HAVE_JUMP_LABEL > > +/* Supplied by a linker script */ > +extern struct jump_entry __start___jump_table[]; > +extern struct jump_entry __stop___jump_table[]; > + > /* mutex to protect coming/going of the the jump_label table */ > static DEFINE_MUTEX(jump_label_mutex); > >