Public bug reported:

Building this package against the unstable kernel with clang I hit the
following build failure:

<DKMSDIR>>/build/nvidia/390.132/build/common/inc/nv-linux.h: In function 
‘nv_ioremap_nocache’:
<<DKMSDIR>>/build/nvidia/390.132/build/common/inc/nv-linux.h:556:17: error: 
implicit declaration of function ‘ioremap_nocache’; did you mean 
‘ioremap_cache’? [-Werror=implicit-function-declaration]
  556 |     void *ptr = ioremap_nocache(phys, size);
      |                 ^~~~~~~~~~~~~~~
      |                 ioremap_cache

Building the same dkms package with gcc this works fine. I think clang
is being more pedantic about the missing declaration for
ioremap_nocache()

** Affects: nvidia-graphics-drivers-390 (Ubuntu)
     Importance: Medium
         Status: New

** Changed in: nvidia-graphics-drivers-390 (Ubuntu)
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to nvidia-graphics-drivers-390 in Ubuntu.
https://bugs.launchpad.net/bugs/1869395

Title:
  build failure when building with clang

Status in nvidia-graphics-drivers-390 package in Ubuntu:
  New

Bug description:
  Building this package against the unstable kernel with clang I hit the
  following build failure:

  <DKMSDIR>>/build/nvidia/390.132/build/common/inc/nv-linux.h: In function 
‘nv_ioremap_nocache’:
  <<DKMSDIR>>/build/nvidia/390.132/build/common/inc/nv-linux.h:556:17: error: 
implicit declaration of function ‘ioremap_nocache’; did you mean 
‘ioremap_cache’? [-Werror=implicit-function-declaration]
    556 |     void *ptr = ioremap_nocache(phys, size);
        |                 ^~~~~~~~~~~~~~~
        |                 ioremap_cache

  Building the same dkms package with gcc this works fine. I think clang
  is being more pedantic about the missing declaration for
  ioremap_nocache()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-390/+bug/1869395/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to