[PATCH 2/3] IXP4xx: Fix DMA masks.

Krzysztof Halasa khc at pm.waw.pl
Mon Mar 24 16:30:35 EDT 2014


Simon Kågström <simon.kagstrom at netinsight.net> writes:

> I would simply remove the #ifdef CONFIG_PCI statements: dev_is_pci(dev)
> should return false at compile time if CONFIG_PCI is not set, and then
> I'd trust the compiler to simply remove all dead code.

This will be the same with these #ifdefs. I can imagine someone using
other compiler or e.g. -O0, and without the #ifdefs the link would fail
due to unavailability of DMA bouncer.
-- 
Krzysztof Halasa



More information about the linux-arm-kernel mailing list