Re: [resend2 PATCH] DMA: remove unused support for MEMSET operations
From: Kevin Hilman
Date: Fri Jun 28 2013 - 18:07:10 EST
Bartlomiej Zolnierkiewicz <b.zolnierkie@xxxxxxxxxxx> writes:
> Hi,
>
> On Friday, June 28, 2013 09:37:36 AM Olof Johansson wrote:
>> Bartlomiej,
>>
>> Did you build test on the platforms you changed? You broke dove_defconfig:
>>
>> In file included from /home/olof/work/next/include/linux/skbuff.h:31:0,
>> from /home/olof/work/next/include/linux/if_ether.h:23,
>> from /home/olof/work/next/include/net/dsa.h:14,
>> from /home/olof/work/next/arch/arm/plat-orion/common.c:21:
>> /home/olof/work/next/arch/arm/plat-orion/common.c: In function
>> 'orion_xor1_init':
>> /home/olof/work/next/arch/arm/plat-orion/common.c:737:14: error:
>> 'DMA_MEMSET' undeclared (first use in this function)
>> dma_cap_set(DMA_MEMSET, orion_xor1_channels_data[1].cap_mask);
>> ^
>> /home/olof/work/next/include/linux/dmaengine.h:862:46: note: in
>> definition of macro 'dma_cap_set'
>> #define dma_cap_set(tx, mask) __dma_cap_set((tx), &(mask))
>> ^
>> /home/olof/work/next/arch/arm/plat-orion/common.c:737:14: note: each
>> undeclared identifier is reported only once for each function it
>> appears in
>> dma_cap_set(DMA_MEMSET, orion_xor1_channels_data[1].cap_mask);
>> ^
>> /home/olof/work/next/include/linux/dmaengine.h:862:46: note: in
>> definition of macro 'dma_cap_set'
>> #define dma_cap_set(tx, mask) __dma_cap_set((tx), &(mask))
>>
>>
>> This would also have been found by a "git grep DMA_MEMSET" across the tree.
>>
>> Andrew, this is coming really late before the merge window, I think it
>> makes sense to hold off to 3.12 if it can't be done without trivial
>> regressions. :(
>
> Sorry for that. This is an old patch that I ported to current kernels.
> I fixed rejects and verified that it compiles for cases that hit rejects
> but unfortunately I forgot to check for new code related to DMA_MEMSET
> functionality. Fortunately it seems that the problematic places are in
> plat-orion/common.c and mv_xor.c. They are fixed in the attached patch.
I just verified that v2 builds now on ARM dove_defconfig and
kirkwood_defconfig (those were 2 that I noticed were broken by this
change.)
Hopefully Andrew can pick up v2.
Thanks,
Kevin
--
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/