All of lore.kernel.org
 help / color / mirror / Atom feed
* [sparc32] [3/3] sun4d prom_adjust_ranges extern
@ 2004-12-22  5:38 Tom 'spot' Callaway
  2004-12-22 17:41 ` William Lee Irwin III
  0 siblings, 1 reply; 2+ messages in thread
From: Tom 'spot' Callaway @ 2004-12-22  5:38 UTC (permalink / raw)
  To: sparclinux

[-- Attachment #1: Type: text/plain, Size: 603 bytes --]

Chris Newport and Thomas Bogendoerfer's sun4d patch adds a
prom_adjust_ranges call to drivers/sbus/sbus.c, but no extern for the
function, so we get this warning:

drivers/sbus/sbus.c: In function `sbus_bus_ranges_init':
drivers/sbus/sbus.c:243: warning: implicit declaration of function
`prom_adjust_ranges'

Adding the extern makes the warning go away.

Signed-off-by: Tom 'spot' Callaway <tcallawa@redhat.com>

~spot
---
Tom "spot" Callaway <tcallawa(a)redhat*com> LCA, RHCE 
Red Hat Sales Engineer || Aurora Linux Project Leader

"If you are going through hell, keep going."
- Sir Winston Churchill

[-- Attachment #2: linux-2.6.9-sun4d-prom_adjust_ranges.patch --]
[-- Type: text/x-patch, Size: 531 bytes --]

--- linux-2.6.9/drivers/sbus/sbus.c.BAD	2004-12-21 23:13:04.166603659 -0500
+++ linux-2.6.9/drivers/sbus/sbus.c	2004-12-21 23:12:57.749579195 -0500
@@ -219,6 +219,9 @@ static void __init sbus_do_child_sibling
  */
 /* added back sun4d patch from Thomas Bogendoerfer - should be OK (crn) */
 
+extern void prom_adjust_ranges(struct linux_prom_ranges *ranges1, int nranges1,
+			       struct linux_prom_ranges *ranges2, int nranges2);
+
 static void __init sbus_bus_ranges_init(int parent_node, struct sbus_bus *sbus)
 {
 	int len;

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

end of thread, other threads:[~2004-12-22 17:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-22  5:38 [sparc32] [3/3] sun4d prom_adjust_ranges extern Tom 'spot' Callaway
2004-12-22 17:41 ` William Lee Irwin III

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.