NVIDIA kernel module don't compile after Ubuntu15.04 update - build/nv.c:1809:29: error: ‘struct file’ has no member named ‘f_dentry’

Bug #1472893 reported by bugproxy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-346 (Ubuntu)
New
Undecided
Unassigned

Bug Description

== Comment: #0 - Christoph Hagleitner <email address hidden> - 2015-07-08 08:54:28 ==
---Problem Description---
After an upgrade of Ubuntu 15.04, the re-compile of the nvidia kernel modules failed (likely due to a missing struct f_dentry) failed ... the log is attached

Contact Information = Christoph Hagleitner, <email address hidden>

---uname output---
Linux julier 3.19.0-22-generic #22-Ubuntu SMP Tue Jun 16 17:15:17 UTC 2015 ppc64le ppc64le ppc64le GNU/Linux

---Additional Hardware Info---
NVIDIA K40 accelerator cards

Machine Type = Power8 S824

---Debugger---
A debugger is not configured

---Steps to Reproduce---
 Install older version of Ubuntu 15.04, then install the cuda 7.0 drivers and then run "apt-get dist-upgrade ...).

Stack trace output:
 no

Oops output:
 no

System Dump Info:
  The system is not configured to capture a system dump.

*Additional Instructions for Christoph Hagleitner, <email address hidden>:
-Attach sysctl -a output output to the bug.

== Comment: #1 - Christoph Hagleitner <email address hidden> - 2015-07-08 08:55:39 ==

== Comment: #2 - SANDHYA VENUGOPALA <email address hidden> - 2015-07-09 00:59:00 ==
For the build problem -
var/lib/dkms/nvidia-346/346.29/build/nv.c
/var/lib/dkms/nvidia-346/346.29/build/nv.c: In function ?nvidia_unlocked_ioctl?:
/var/lib/dkms/nvidia-346/346.29/build/nv.c:1809:29: error: ?struct file? has no member named ?f_dentry?
     return nvidia_ioctl(file->f_dentry->d_inode, file, cmd, i_arg);
                             ^
scripts/Makefile.build:257: recipe for target '/var/lib/dkms/nvidia-346/346.29/build/nv.o' failed
make[2]: *** [/var/lib/dkms/nvidia-346/346.29/build/nv.o] Error 1

NVIDIA will need to update the driver to match the kernel change.

Perhaps they could make use of the file_inode() helper introduced by kernel commit 496ad9aa8ef448058e36ca7a787c61f2e63f0f54

Source is provided for nv.c, so you could work around by making the change locally.

Revision history for this message
bugproxy (bugproxy) wrote : build-log for the NVIDIA kernel module

Default Comment by Bridge

tags: added: architecture-ppc64le bugnameltc-127391 severity-critical targetmilestone-inin1504
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1472893/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
affects: ubuntu → nvidia-graphics-drivers-346 (Ubuntu)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 1409190, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

Revision history for this message
bugproxy (bugproxy) wrote : Output of sysctl -a command

------- Comment on attachment From <email address hidden> 2015-07-10 08:21 EDT-------

added on request

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.