Just chiming in to say this is affecting us on 22.04 kernels from
5.15.0-94-generic on. It's causing Veeam's veeamsnap module to not
compile any more.

 /var/lib/dkms/veeamsnap/5.0.2.4567/build/snapimage.c: In function 
‘snapimage_create’:
 /var/lib/dkms/veeamsnap/5.0.2.4567/build/snapimage.c:923:24: error: 
‘GENHD_FL_NO_PART_SCAN’ undeclared (first use in this function); did you mean 
‘GENHD_FL_NO_PART’?
   923 |         disk->flags |= GENHD_FL_NO_PART_SCAN;
       |                        ^~~~~~~~~~~~~~~~~~~~~
       |                        GENHD_FL_NO_PART
 /var/lib/dkms/veeamsnap/5.0.2.4567/build/snapimage.c:923:24: note: each 
undeclared identifier is reported only once for each function it appears in

We have raised with the vendor (Veeam) but also surprised this change
made it into a stable kernel series.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-signed-gcp-5.15 in Ubuntu.
https://bugs.launchpad.net/bugs/2053101

Title:
  Backported rename of GENHD_FL_NO_PART_SCAN to GENHD_FL_NO_PART breaks
  existing modules

Status in linux-signed-gcp-5.15 package in Ubuntu:
  Confirmed

Bug description:
  3rd party kernel modules for Ubuntu 20.04 break due to the recently
  backported change of renaming GENHD_FL_NO_PART_SCAN to
  GENHD_FL_NO_PART

  linux-gcp-5.15-headers-5.15.0-1049 still uses GENHD_FL_NO_PART_SCAN
  which the 3rd party kernel modules use, while linux-
  gcp-5.15-headers-5.15.0-1051 has brought the rename to
  GENHD_FL_NO_PART in. This is a breaking change and should not have
  been backported. The 3rd party modules have been updated for newer
  kernels on 22.04, but can't be updated on 20.04 with this breaking
  change.

  $ grep GENHD_FL_NO_PART 
/usr/src/linux-gcp-5.15-headers-5.15.0-1049/include/linux/genhd.h 
/usr/src/linux-gcp-5.15-headers-5.15.0-1051/include/linux/genhd.h
  /usr/src/linux-gcp-5.15-headers-5.15.0-1049/include/linux/genhd.h: * 
``GENHD_FL_NO_PART_SCAN`` (0x0200): partition scanning is disabled.
  /usr/src/linux-gcp-5.15-headers-5.15.0-1049/include/linux/genhd.h: * 
``GENHD_FL_NO_PART_SCAN``.
  /usr/src/linux-gcp-5.15-headers-5.15.0-1049/include/linux/genhd.h:#define 
GENHD_FL_NO_PART_SCAN                 0x0200
  /usr/src/linux-gcp-5.15-headers-5.15.0-1049/include/linux/genhd.h:            
  !(disk->flags & GENHD_FL_NO_PART_SCAN);

  /usr/src/linux-gcp-5.15-headers-5.15.0-1051/include/linux/genhd.h: * 
``GENHD_FL_NO_PART`` (0x0200): partition support is disabled.
  /usr/src/linux-gcp-5.15-headers-5.15.0-1051/include/linux/genhd.h: * 
``GENHD_FL_NO_PART``.
  /usr/src/linux-gcp-5.15-headers-5.15.0-1051/include/linux/genhd.h:#define 
GENHD_FL_NO_PART                      0x0200
  /usr/src/linux-gcp-5.15-headers-5.15.0-1051/include/linux/genhd.h:      
return disk_max_parts(disk) > 1 && !(disk->flags & GENHD_FL_NO_PART);

  
  $ lsb_release -rd
  Description:    Ubuntu 20.04.6 LTS
  Release:        20.04

  $ apt policy linux-image-5.15.0-1051-gcp
  linux-image-5.15.0-1051-gcp:
    Installed: 5.15.0-1051.59~20.04.1
    Candidate: 5.15.0-1051.59~20.04.1
    Version table:
   *** 5.15.0-1051.59~20.04.1 500
          500 http://australia-southeast1.gce.archive.ubuntu.com/ubuntu 
focal-updates/main amd64 Packages
          500 http://security.ubuntu.com/ubuntu focal-security/main amd64 
Packages
          100 /var/lib/dpkg/status

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: linux-image-5.15.0-1051-gcp 5.15.0-1051.59~20.04.1
  ProcVersionSignature: Ubuntu 5.15.0-1051.59~20.04.1-gcp 5.15.136
  Uname: Linux 5.15.0-1051-gcp x86_64
  ApportVersion: 2.20.11-0ubuntu27.27
  Architecture: amd64
  CasperMD5CheckResult: skip
  Date: Wed Feb 14 12:07:11 2024
  ProcEnviron:
   TERM=screen-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=C.UTF-8
   SHELL=/bin/bash
  SourcePackage: linux-signed-gcp-5.15
  UpgradeStatus: Upgraded to focal on 2023-05-07 (282 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-signed-gcp-5.15/+bug/2053101/+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