** Description changed:

+ [SRU Justification]
+ 
+ [Impact]
+ 
+ Failed to compile intel-ipu7-dkms against v6.12 kernels.
+ 
+ [Fix]
+ 
+ A few Ubuntu sauced changes. Also being upstreamed in:
+ * https://github.com/intel/ipu7-drivers/pull/16
+ 
+ [Test Case]
+ 
+ So far there is no official v6.12 kernel available, but one may install 
experimental linux-unstable/plucky kernels from 
https://launchpad.net/~canonical-hwe-team/+archive/ubuntu/experimental-unstable.
 With that install intel-ipu7-dkms from -proposed pocket, and issue:
+ ```
+ $ sudo dkms install ipu7-drivers/0~git202409300310.526ed27f-0ubuntu1 -k 
$(uname -r)
+ $ sudo dkms status
+ ```
+ The installation should complete successfully.
+ 
+ [Where problems could occur]
+ 
+ While this is an initial port to v6.12, there might be changes that
+ doesn't reflect in the API changes.
+ 
+ [Other Info]
+ 
+ Only necessary for when with the potential chance to be compiled against
+ v6.12 kernels. Nominate for plucky and oracular for
+ ipu7-drivers/oracular may compile against linux-hwe-6.XX/noble then.
+ 
+ ========== original bug report ==========
+ 
  
/var/lib/dkms/ipu7-drivers/0~git202407090310.f40d5a70-0ubuntu2/build/drivers/media/i2c/ov02c10.c:4:10:
 fatal error: asm/unaligned.h: No such file or directory
-     4 | #include <asm/unaligned.h>
-       |          ^~~~~~~~~~~~~~~~~
+     4 | #include <asm/unaligned.h>
+       |          ^~~~~~~~~~~~~~~~~
  compilation terminated.
  make[4]: *** [scripts/Makefile.build:229: 
/var/lib/dkms/ipu7-drivers/0~git202407090310.f40d5a70-0ubuntu2/build/drivers/media/i2c/ov02c10.o]
 Error 1
  
  
/var/lib/dkms/ipu7-drivers/0~git202407090310.f40d5a70-0ubuntu2/build/drivers/media/pci/intel/ipu7/ipu7.c:
 In function 'ipu7_pci_probe':
  
/var/lib/dkms/ipu7-drivers/0~git202407090310.f40d5a70-0ubuntu2/build/drivers/media/pci/intel/ipu7/ipu7.c:1832:13:
 error: void value not ignored as it ought to be
-  1832 |         ret = dma_set_max_seg_size(dev, UINT_MAX);
-       |             ^
+  1832 |         ret = dma_set_max_seg_size(dev, UINT_MAX);
+       |             ^
  make[4]: *** [scripts/Makefile.build:229: 
/var/lib/dkms/ipu7-drivers/0~git202407090310.f40d5a70-0ubuntu2/build/drivers/media/pci/intel/ipu7/ipu7.o]
 Error 1
- 
  
  Related commits:
  * v6.12-rc1 commit 334304ac2baca ("dma-mapping: don't return errors from 
dma_set_max_seg_size")
  * v6.12-rc2 commit 5f60d5f6bbc12 ("move asm/unaligned.h to linux/unaligned.h")

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2083997

Title:
  Failed to build against linux-6.12, multiple errors

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ipu7-drivers/+bug/2083997/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to