Re: [PATCH] SSB: make it depend on PCI

From: Mike Frysinger
Date: Thu Nov 06 2008 - 06:33:29 EST


On Thu, Nov 6, 2008 at 06:29, Johannes Berg wrote:
> On Thu, 2008-11-06 at 06:26 -0500, Mike Frysinger wrote:
>> On Thu, Nov 6, 2008 at 06:22, Johannes Berg wrote:
>> > On Thu, 2008-11-06 at 06:15 -0500, Mike Frysinger wrote:
>> >> while that may be the intent, it doesnt work today.
>> >>
>> >> drivers/ssb/main.c always includes linux/ssb/ssb.h
>> >>
>> >> linux/ssb/ssb.h always calls pci_dma_* functions
>> >>
>> >> arches that do not support PCI fail to build:
>> >> CC drivers/ssb/main.o
>> >> In file included from drivers/ssb/ssb_private.h:5,
>> >> from drivers/ssb/main.c:12:
>> >> include/linux/ssb/ssb.h: In function 'ssb_dma_mapping_error':
>> >> include/linux/ssb/ssb.h:430: error: implicit declaration of function 'pci_dma_mapping_error'
>> >> include/linux/ssb/ssb.h: In function 'ssb_dma_sync_single_for_cpu':
>> >> include/linux/ssb/ssb.h:475: error: implicit declaration of function 'pci_dma_sync_single_for_cpu'
>> >> include/linux/ssb/ssb.h: In function 'ssb_dma_sync_single_for_device':
>> >> include/linux/ssb/ssb.h:493: error: implicit declaration of function 'pci_dma_sync_single_for_device'
>> >> include/linux/ssb/ssb.h: In function 'ssb_dma_sync_single_range_for_cpu':
>> >> include/linux/ssb/ssb.h:517: error: implicit declaration of function 'dma_sync_single_range_for_cpu'
>> >> include/linux/ssb/ssb.h: In function 'ssb_dma_sync_single_range_for_device':
>> >> include/linux/ssb/ssb.h:538: error: implicit declaration of function 'dma_sync_single_range_for_device'
>> >> drivers/ssb/main.c: In function 'ssb_dma_set_mask':
>> >> drivers/ssb/main.c:1183: error: implicit declaration of function 'dma_set_mask'
>> >
>> >
>> > That seems odd, shouldn't at least the dma_sync_* functions and
>> > dma_set_mask be supported?
>>
>> i'm highlighting the pci-specific functions. the common dma functions
>> missing are not a ssb problem, so ignore those ;).
>
> Alright, but even then you'll fail build if you enable SSB ;)

right ... but they're certainly nothing for you to worry about

> I guess we
> need ifdefs or mandate that non-PCI architectures have dummy stubs (like
> other architectures have in the !CONFIG_PCI case), but Michael's the SSB
> expert.

OK. regarding the patch, if we drop the "&& PCI" part, i think the
rest should get merged ... having empty menus in kconfig is annoying.
agreed ? i can send out another one ...
-mike
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/