public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* PATCH - gameport_{,un}register_port must be static when inline
@ 2001-10-04  4:19 Neil Brown
  2001-10-04  4:31 ` Keith Owens
  0 siblings, 1 reply; 8+ messages in thread
From: Neil Brown @ 2001-10-04  4:19 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel


Linus,
 2.4.11-pre2 wont compile with some combinations of sound card drivers
 if CONFIG_INPUT_GAMEPORT is not defined, as every driver than include
 gameport.h causes "gameport_register_port" to be defined as a symbol
 and there is a conflict.

 This patch makes the relevant inline functions "static" to avoid this
 problem.

NeilBrown


--- ./include/linux/gameport.h	2001/10/04 02:45:24	1.1
+++ ./include/linux/gameport.h	2001/10/04 03:51:09	1.2
@@ -74,8 +74,8 @@
 void gameport_register_port(struct gameport *gameport);
 void gameport_unregister_port(struct gameport *gameport);
 #else
-void __inline__ gameport_register_port(struct gameport *gameport) { return; }
-void __inline__ gameport_unregister_port(struct gameport *gameport) { return; }
+static void __inline__ gameport_register_port(struct gameport *gameport) { return; }
+static void __inline__ gameport_unregister_port(struct gameport *gameport) { return; }
 #endif
 
 void gameport_register_device(struct gameport_dev *dev);

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2001-10-04 20:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-04  4:19 PATCH - gameport_{,un}register_port must be static when inline Neil Brown
2001-10-04  4:31 ` Keith Owens
2001-10-04  5:04   ` Neil Brown
2001-10-04  5:10     ` Keith Owens
2001-10-04  5:32       ` Neil Brown
2001-10-04 12:50         ` Keith Owens
2001-10-04  5:30     ` Keith Owens
2001-10-04 20:41   ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox