From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752614AbdJLAPu (ORCPT ); Wed, 11 Oct 2017 20:15:50 -0400 Received: from icp-osb-irony-out6.external.iinet.net.au ([203.59.1.106]:32443 "EHLO icp-osb-irony-out6.external.iinet.net.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752011AbdJLAPq (ORCPT ); Wed, 11 Oct 2017 20:15:46 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2B+AAB1s95Z/zXSMGcNURkBAQEBAQEBA?= =?us-ascii?q?QEBAQcBAQEBAYVUg3qaDAEBAQEBAQaBK5YvghKFRQKFIBYBAgEBAQEBAQGGMQE?= =?us-ascii?q?BAQMjVhALDQsCAiYCAlcGAQwGAgEBihOpNmuCJyKLGgEBAQEBAQEDAQEBAQEBI?= =?us-ascii?q?oEOgh+DEIJdgn+IGIJhBaE8AaBhhxdIllQmBIE7MiEIKgiFYxyBeWSJTQEBAQ?= X-IPAS-Result: =?us-ascii?q?A2B+AAB1s95Z/zXSMGcNURkBAQEBAQEBAQEBAQcBAQEBAYV?= =?us-ascii?q?Ug3qaDAEBAQEBAQaBK5YvghKFRQKFIBYBAgEBAQEBAQGGMQEBAQMjVhALDQsCA?= =?us-ascii?q?iYCAlcGAQwGAgEBihOpNmuCJyKLGgEBAQEBAQEDAQEBAQEBIoEOgh+DEIJdgn+?= =?us-ascii?q?IGIJhBaE8AaBhhxdIllQmBIE7MiEIKgiFYxyBeWSJTQEBAQ?= X-IronPort-AV: E=Sophos;i="5.43,363,1503331200"; d="scan'208";a="11228134" Subject: Re: [PATCH] m68k: pull mach_beep in setup.c To: Alexandre Belloni , Geert Uytterhoeven Cc: linux-m68k@vger.kernel.org, linux-kernel@vger.kernel.org References: <20170928094452.4863-1-alexandre.belloni@free-electrons.com> From: Greg Ungerer Message-ID: <1cccc612-b2de-1ecb-db86-d22200961aae@linux-m68k.org> Date: Thu, 12 Oct 2017 10:15:41 +1000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20170928094452.4863-1-alexandre.belloni@free-electrons.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alexandre, On 28/09/17 19:44, Alexandre Belloni wrote: > It is possible to select INPUT_M68K_BEEP in a nommu configuration. This > results in the following link error: > > drivers/input/misc/m68kspkr.o: In function `m68kspkr_event': > m68kspkr.c:(.text+0x3a): undefined reference to `mach_beep' > m68kspkr.c:(.text+0x5e): undefined reference to `mach_beep' > m68kspkr.c:(.text+0x78): undefined reference to `mach_beep' > drivers/input/misc/m68kspkr.o: In function `m68kspkr_init': > m68kspkr.c:(.init.text+0x4): undefined reference to `mach_beep' > > Pull the mach_beep definition in setup.c to avoid it. > > Signed-off-by: Alexandre Belloni I plan on applying this to the m68knommu git tree (for-next) branch in the very near future. Geert: no objections? Regards Greg > --- > > I didn't merge both files because I don't have any way to test the result. > > arch/m68k/kernel/setup.c | 5 +++++ > arch/m68k/kernel/setup_mm.c | 4 ---- > 2 files changed, 5 insertions(+), 4 deletions(-) > > diff --git a/arch/m68k/kernel/setup.c b/arch/m68k/kernel/setup.c > index 4bf129f1d2e2..81cadb55b2a2 100644 > --- a/arch/m68k/kernel/setup.c > +++ b/arch/m68k/kernel/setup.c > @@ -3,3 +3,8 @@ > #else > #include "setup_no.c" > #endif > + > +#if IS_ENABLED(CONFIG_INPUT_M68K_BEEP) > +void (*mach_beep)(unsigned int, unsigned int); > +EXPORT_SYMBOL(mach_beep); > +#endif > diff --git a/arch/m68k/kernel/setup_mm.c b/arch/m68k/kernel/setup_mm.c > index 7a2c21212820..ac5c9ee9bbf9 100644 > --- a/arch/m68k/kernel/setup_mm.c > +++ b/arch/m68k/kernel/setup_mm.c > @@ -105,10 +105,6 @@ EXPORT_SYMBOL(mach_heartbeat); > #ifdef CONFIG_M68K_L2_CACHE > void (*mach_l2_flush) (int); > #endif > -#if IS_ENABLED(CONFIG_INPUT_M68K_BEEP) > -void (*mach_beep)(unsigned int, unsigned int); > -EXPORT_SYMBOL(mach_beep); > -#endif > #if defined(CONFIG_ISA) && defined(MULTI_ISA) > int isa_type; > int isa_sex; >