Skip to contentSkip to conversation

b44 compile error on !PCI

DISCUSSION Meelis Roos 2 participants 3 messages Aug 2, 2007 – Aug 5, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Tryng to compile todays git on SBus-only Sparc64 (Ultra 1), no PCI. b44 is selectable but fails to compile:

CC [M] drivers/net/b44.o
drivers/net/b44.c: In function 'b44_sync_dma_desc_for_device':
drivers/net/b44.c:134: error: implicit declaration of function 'dma_sync_single_range_for_device' drivers/net/b44.c: In function 'b44_sync_dma_desc_for_cpu':
drivers/net/b44.c:144: error: implicit declaration of function 'dma_sync_single_range_for_cpu'

Signature · 1 line
Meelis Roos ([email protected])
#1 lore raw
Quoted 8 lines · Meelis Roos

Tryng to compile todays git on SBus-only Sparc64 (Ultra 1), no PCI. b44 is selectable but fails to compile:

CC [M] drivers/net/b44.o
drivers/net/b44.c: In function 'b44_sync_dma_desc_for_device':
drivers/net/b44.c:134: error: implicit declaration of function 'dma_sync_single_range_for_device' drivers/net/b44.c: In function 'b44_sync_dma_desc_for_cpu':
drivers/net/b44.c:144: error: implicit declaration of function 'dma_sync_single_range_for_cpu'

Are you sure this is related to !PCI ?
If I grep include/asm-sparc64/dma-mapping.h I don't find dma_sync_single_range_for_*
So I'd rather call this a bug in the arch code of sparc64.

#2 lore raw
Quoted 10 lines
Quoted 5 lines

CC [M] drivers/net/b44.o
drivers/net/b44.c: In function 'b44_sync_dma_desc_for_device':
drivers/net/b44.c:134: error: implicit declaration of function 'dma_sync_single_range_for_device' drivers/net/b44.c: In function 'b44_sync_dma_desc_for_cpu':
drivers/net/b44.c:144: error: implicit declaration of function 'dma_sync_single_range_for_cpu'

Are you sure this is related to !PCI ?
If I grep include/asm-sparc64/dma-mapping.h I don't find dma_sync_single_range_for_*
So I'd rather call this a bug in the arch code of sparc64.

Yes, now that Dave Miller added these functions to sparc64, b44 compiles fine.

Signature · 1 line
Meelis Roos ([email protected])