From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Gortmaker Subject: Re: [PATCH] m68k/atari: EtherNEC - rewrite to use mainstream ne.c Date: Fri, 9 Mar 2012 08:32:41 -0500 Message-ID: <4F5A0679.1020604@windriver.com> References: <1327085843-6980-1-git-send-email-geert@linux-m68k.org> <4F4B2BB6.900@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: Received: from mail1.windriver.com ([147.11.146.13]:52927 "EHLO mail1.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756148Ab2CINcu (ORCPT ); Fri, 9 Mar 2012 08:32:50 -0500 In-Reply-To: Sender: linux-m68k-owner@vger.kernel.org List-Id: linux-m68k@vger.kernel.org To: Geert Uytterhoeven Cc: Michael Schmitz , linux-m68k@vger.kernel.org, netdev@vger.kernel.org On 12-03-09 01:35 AM, Geert Uytterhoeven wrote: > On Fri, Mar 9, 2012 at 04:11, Paul Gortmaker > wrote: >>> diff --git a/drivers/net/ethernet/8390/ne.c b/drivers/net/ethernet/8390/ne.c >>> index f92ea2a..28b8781 100644 >>> --- a/drivers/net/ethernet/8390/ne.c >>> +++ b/drivers/net/ethernet/8390/ne.c >>> @@ -55,6 +55,9 @@ static const char version2[] = >>> >>> #include >>> #include >>> +#if IS_ENABLED(CONFIG_ATARI_ETHERNEC) >>> +#include >>> +#endif >> >> Do you really need the #if here? Should be avoidable. > > exists on m68k only, and is not included by any header in > arch/m68k/include/. This kind of arch specific stuff still shouldn't need to bubble right up to the driver level I'd think a driver should be able to include and have whatever arch specific goo like this be present. So maybe this kind of magic should be in arch/m68k/include/asm/irq* instead of here? And on re-reading the comments in the other part of the patch, i.e. "...emulates the card interrupt via a timer" --perhaps the driver should be just fixed to support generic netpoll, instead of adding an arch specific thing that amounts to netpoll. Then anyone can attempt to limp along and use one of these ancient relics w/o IRQ. Paul. -- > > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds