Re: [PATCH] instmem/gk20a: do not use non-portable dma_to_phys()

From: Alexandre Courbot
Date: Wed Nov 11 2015 - 02:19:36 EST


On Wed, Nov 11, 2015 at 3:52 PM, Guenter Roeck <linux@xxxxxxxxxxxx> wrote:
> On 11/10/2015 10:27 PM, Alexandre Courbot wrote:
>>
>> On Wed, Nov 11, 2015 at 7:41 AM, Andrew Morton
>> <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
>>>
>>> On Tue, 10 Nov 2015 14:10:47 +0900 Alexandre Courbot
>>> <acourbot@xxxxxxxxxx> wrote:
>>>
>>>> dma_to_phys() is not guaranteed to be available on all platforms and
>>>> should not be used outside of arch/. Replace it with what it is expected
>>>> to do in our case: simply cast the DMA handle to a physical address.
>>>
>>>
>>> mainline i386 allmodconfig is now busted.
>>
>>
>> How? I just managed to build it both with and without this patch (note
>> that this is not to dispute the uglyness of this patch).
>>
>
> Good for you. For me, it is
>
> ERROR: "dma_to_phys" [drivers/gpu/drm/nouveau/nouveau.ko] undefined!
>
> as recorded in
>
> http://server.roeck-us.net:8010/builders/hwmon-i386-master/builds/338/steps/buildcommand/logs/stdio
> http://server.roeck-us.net:8010/builders/hwmon-i386-master/builds/339/steps/buildcommand/logs/stdio

Not sure what I did to avoid this - anyway, the call to this function
is going away.
--
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/