In sys/dev/pci/radeon/radeon_kms.c:505
The *fbnode* variable is defined for sparc64 and macppc, this is
is a redefine on sparc64, as it is already defined at
sys/arch/sparc64/include/fbvar.h:71
fbnode is an OFW artifact for the default framebuffer pci device.
This variable is global on sparc64 and referenced extensively in
the tree as a global variable. macppc doesn't have an equivalent
header, although it is still global so leave the define for that
platform.
Tested on sparc64 with sun blade 100 and xvr-100
diff 57f95c2e462c430cf6aaccbcafd3f24106e89e55
5fbcee9a5968b225053e9e1b0363430e36326626
blob - d72d2ce7c6613036a0a10767c4d1d50a8fa026cf
blob + 94f38e8769827e9c649147689a9ca6f889d1464f
--- sys/dev/pci/drm/radeon/radeon_kms.c
+++ sys/dev/pci/drm/radeon/radeon_kms.c
@@ -501,7 +501,7 @@ radeondrm_attach_kms(struct device *parent, struct dev
pcireg_t addr, mask;
int s;
-#if defined(__sparc64__) || defined(__macppc__)
+#if defined(__macppc__)
extern int fbnode;
#endif
--
Ted Bullock <[email protected]>