lkml.org 
[lkml]   [2005]   [Mar]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [2.6 patch] OSS gameport fixes
On Wed, 9 Mar 2005 12:32:17 +0100, Adrian Bunk <bunk@stusta.de> wrote:
> This patch adds dummy gameport_register_port, gameport_unregister_port
> and gameport_set_phys functions to gameport.h for the case when a driver
> can't use gameport.
>
> This fixes the compilation of some OSS drivers with GAMEPORT=n without
> the need to #if inside every single driver.
>
> This patch also removes the non-working and now obsolete SOUND_GAMEPORT.
>
> This patch is also an alternative solution for ALSA drivers with similar
> problems (but #if's inside the drivers might have the advantage of
> saving some more bytes of gameport is not available).
>
> The only user-visible change is that for GAMEPORT=m the affected OSS
> drivers are now allowed to be built statically (but they won't have
> gameport support).
>

Hi Adrian,

I have somewhat mixed feeling about the patch. Some solutions is
definitely needed but I don't like allocating memory that will never
be used. I think I would perfer #ifdefing gameport support is OSS
modules, _if_ #ifdefs are out of line and not in the middle of code
path.

I'll let Vojtech decide which way he wants to go - he could probably
apply the patch and then we could convert drivers one by one and kill
the stubs later.

--
Dmitry
-
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/

\
 
 \ /
  Last update: 2005-03-22 14:11    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site