Public bug reported:

[Impact]

The following build error is reported when building this module with the
new linux-hwe-5.11:

dm-writeboost-metadata.c:984:9: warning: parameter names (without types) in 
function declaration
  984 |  struct superblock_record_device uninitialized_var(record);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~
dm-writeboost-metadata.c:985:32: error: ‘record’ undeclared (first use in this 
function); did you mean ‘record_id’?
  985 |  err = read_superblock_record(&record, wb);
      |                                ^~~~~~
      |                                record_id

[Test plan]

$ sudo apt install dm-writeboost-dkms

Build error in reported in the build log.

[Fix]

Fix by applying the following upstream commits (from
https://github.com/akiradeveloper/dm-writeboost) to properly support the
5.11 kernel:

 32fc003 - Fix Linux 5.9 build: remove uninitialized_var() usage
 d89ea5c - blkdev_issue_flush: discard unused memory allocation flags

[Where problems could occur]

Potential build breakage with some really old kernels.

** Affects: dm-writeboost (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  [Impact]
  
  The following build error is reported when building this module with the
  new linux-hwe-5.11.
+ 
+ dm-writeboost-metadata.c:984:9: warning: parameter names (without types) in 
function declaration
+   984 |  struct superblock_record_device uninitialized_var(record);
+       |         ^~~~~~~~~~~~~~~~~~~~~~~~
+ dm-writeboost-metadata.c:985:32: error: ‘record’ undeclared (first use in 
this function); did you mean ‘record_id’?
+   985 |  err = read_superblock_record(&record, wb);
+       |                                ^~~~~~
+       |                                record_id
  
  [Test plan]
  
  $ sudo apt install dm-writeboost-dkms
  
  Build error in reported in the build log.
  
  [Fix]
  
  Fix by applying the following upstream commits (from
  https://github.com/akiradeveloper/dm-writeboost) to properly support the
  5.11 kernel:
  
-  32fc003 - Fix Linux 5.9 build: remove uninitialized_var() usage
-  d89ea5c - blkdev_issue_flush: discard unused memory allocation flags
+  32fc003 - Fix Linux 5.9 build: remove uninitialized_var() usage
+  d89ea5c - blkdev_issue_flush: discard unused memory allocation flags
  
  [Where problems could occur]
  
  Potential build breakage with some really old kernels.

** Description changed:

  [Impact]
  
  The following build error is reported when building this module with the
- new linux-hwe-5.11.
+ new linux-hwe-5.11:
  
  dm-writeboost-metadata.c:984:9: warning: parameter names (without types) in 
function declaration
-   984 |  struct superblock_record_device uninitialized_var(record);
-       |         ^~~~~~~~~~~~~~~~~~~~~~~~
+   984 |  struct superblock_record_device uninitialized_var(record);
+       |         ^~~~~~~~~~~~~~~~~~~~~~~~
  dm-writeboost-metadata.c:985:32: error: ‘record’ undeclared (first use in 
this function); did you mean ‘record_id’?
-   985 |  err = read_superblock_record(&record, wb);
-       |                                ^~~~~~
-       |                                record_id
+   985 |  err = read_superblock_record(&record, wb);
+       |                                ^~~~~~
+       |                                record_id
  
  [Test plan]
  
  $ sudo apt install dm-writeboost-dkms
  
  Build error in reported in the build log.
  
  [Fix]
  
  Fix by applying the following upstream commits (from
  https://github.com/akiradeveloper/dm-writeboost) to properly support the
  5.11 kernel:
  
   32fc003 - Fix Linux 5.9 build: remove uninitialized_var() usage
   d89ea5c - blkdev_issue_flush: discard unused memory allocation flags
  
  [Where problems could occur]
  
  Potential build breakage with some really old kernels.

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

Title:
  dm-writeboost dkms: build failure with linux-hwe-5.11

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dm-writeboost/+bug/1932257/+subscriptions

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

Reply via email to