On 03/ 4/18 01:00 PM, Alan Coopersmith wrote:
> Alternatively, you could remove the #ifdef XSERVER_PLATFORM_BUS around the
> #include "xf86platformBus.h" since that header defines XF86_PDEV_SERVER_FD
> before checking #ifdef XSERVER_PLATFORM_BUS itself.

Sorry, spoke too soon - alternative doesn't work either:

driver.c: In function ‘probe_hw’:
driver.c:246:14: error: implicit declaration of function
‘xf86_platform_device_odev_attributes’; did you mean
‘xf86platformAddGPUDevices’? [-Werror=implicit-function-declaration]
         fd = xf86_platform_device_odev_attributes(platform_dev)->fd;
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
              xf86platformAddGPUDevices
driver.c:246:14: warning: nested extern declaration of
‘xf86_platform_device_odev_attributes’ [-Wnested-externs]
driver.c:246:64: error: invalid type argument of ‘->’ (have ‘int’)
         fd = xf86_platform_device_odev_attributes(platform_dev)->fd;
                                                                ^~

-- 
        -Alan Coopersmith-               [email protected]
         Oracle Solaris Engineering - https://blogs.oracle.com/alanc
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to