lkml.org 
[lkml]   [2015]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] instmem/gk20a: do not use non-portable dma_to_phys()
On Wed, Nov 11, 2015 at 3:52 PM, Guenter Roeck <linux@roeck-us.net> wrote:
> On 11/10/2015 10:27 PM, Alexandre Courbot wrote:
>>
>> On Wed, Nov 11, 2015 at 7:41 AM, Andrew Morton
>> <akpm@linux-foundation.org> wrote:
>>>
>>> On Tue, 10 Nov 2015 14:10:47 +0900 Alexandre Courbot
>>> <acourbot@nvidia.com> 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.


\
 
 \ /
  Last update: 2015-11-11 09:01    [W:0.036 / U:0.580 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site