Skip to contentSkip to conversation

drivers/video/nvidia/ compile error with PPC_OF=y, FB_OF=n

DISCUSSION Adrian Bunk 2 participants 2 messages Nov 12, 2005 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

I got the following compile error in 2.6.14-mm2 that seems to come from Linus' tree:

<-- snip -->

...
CC [M] drivers/video/nvidia/nv_of.o
drivers/video/nvidia/nv_of.c:33: error: redefinition of 'nvidia_probe_of_connector' drivers/video/nvidia/nv_proto.h:51: error: previous definition of 'nvidia_probe_of_connector' was here make[3]: *** [drivers/video/nvidia/nv_of.o] Error 1

<-- snip -->

The problem is that nv_proto.h thinks nv_of.o is only built with CONFIG_FB_OF=y, but it's actually built when CONFIG_PPC_OF=y.

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed
#1 lore raw
Quoted 11 lines · Adrian Bunk

I got the following compile error in 2.6.14-mm2 that seems to come from Linus' tree:

<-- snip -->

...
CC [M] drivers/video/nvidia/nv_of.o
drivers/video/nvidia/nv_of.c:33: error: redefinition of 'nvidia_probe_of_connector' drivers/video/nvidia/nv_proto.h:51: error: previous definition of 'nvidia_probe_of_connector' was here make[3]: *** [drivers/video/nvidia/nv_of.o] Error 1

Yes, akpm already made a fix for this.

Tony