From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751280AbaDABJL (ORCPT ); Mon, 31 Mar 2014 21:09:11 -0400 Received: from mga11.intel.com ([192.55.52.93]:4230 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750996AbaDABJH (ORCPT ); Mon, 31 Mar 2014 21:09:07 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,769,1389772800"; d="scan'208";a="511478269" Date: Mon, 31 Mar 2014 18:09:01 -0700 From: Andi Kleen To: Linus Torvalds Cc: "H. Peter Anvin" , Gleb Natapov , Peter Anvin , hubicka@ucw.cz, Linux Kernel Mailing List , Ingo Molnar , Paolo Bonzini , Jaroslav Kysela , Peter Zijlstra , Steven Rostedt , Rusty Russell , Thomas Gleixner Subject: Re: [GIT PULL] x86 LTO changes for v3.15 Message-ID: <20140401010901.GJ32556@tassilo.jf.intel.com> References: <201403312105.s2VL5AqX010173@terminus.zytor.com> <20140331230347.GH32556@tassilo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > - don't do the __visible as part of asmlinkage, because it really is > conceptually wrong Ok. > > - add the visible to the SYSCALL_DEFINEx() macros I think SYSCALL_DEFINE actually doesn't need it, as the syscall tables are visible in C. Only the syscall table itself needs to be visible. > and after that I strongly suspect that there will be only a handful of > cases left that are called from assembly language and that aren't > system calls. Things like "printk()" and friends that are really > special. They'd need a few manual "__visible" annotations. Ok. I think it's more than a handful though. I'll cook up a patch. > See above: I can pretty much guarantee that you should *not* need do > any crazy automated sweeps. Because you shouldn't need "__visible" at > the declarations in the header files, only at the definition of the > function, right? Yes that's right. -Andi