Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-33465

4.16.0.ec6 driver-toolkit build kernel module failed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • None
    • 4.16
    • Driver Toolkit
    • None
    • No
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      Succeed to build kernel module in 4.14. But failed in 4.16.z
      
      error message:  
      
      BLK_MQ_HEADER
      BLK_DEV_MAX_SEGMENTS
      SOCKET_HAS_NET_IN_CREATE
      BIO_BI_BDEV
      BIO_BI_STATUS
      BLK_QUEUE_FLAG_FUNCS
      WAIT_QUEUE_ENTRY_T
      HAS_MQ_ALLOC_DESTROY
      HAS_SCSI_REQUEST
      HAS_SCSI_REQ
      HAS_SCSI_CMND
      HAS_SCSI_IOCTL
      HAS_BIO_ALLOC_WITH_DEVICE
      HAS_MQ_REQUEST
      HAS_ADD_DISK_RETVAL
      HAS_DISK_LIVE_IN_BLKDEV
      HAS_BLK_OPS_WITH_BLK_MODE_T
        CC [M]  /tmp/PowerFlex_driver_build_8FzIDG/ini/./linux/api/api_main.o
        CC [M]  /tmp/PowerFlex_driver_build_8FzIDG/ini/./linux/api/api_mos.o
      In file included from /tmp/PowerFlex_driver_build_8FzIDG/ini/./linux/api/api_mos.c:10:
      /tmp/PowerFlex_driver_build_8FzIDG/ini/./linux/api/api_priv.h:15:38: error: size of array '__C_ASSERT__' is negative
         15 | #define STATIC_ASSERT(e) extern char __C_ASSERT__[(e)?1:-1] __attribute__((unused))
            |                                      ^~~~~~~~~~~~
      /tmp/PowerFlex_driver_build_8FzIDG/ini/./linux/api/api_mos.c:284:1: note: in expansion of macro 'STATIC_ASSERT'
        284 | STATIC_ASSERT(sizeof(ApiSpinLock) >= sizeof(spinlock_t));
            | ^~~~~~~~~~~~~
      make[1]: *** [scripts/Makefile.build:299: /tmp/PowerFlex_driver_build_8FzIDG/ini/./linux/api/api_mos.o] Error 1
      make: *** [Makefile:1934: /tmp/PowerFlex_driver_build_8FzIDG/ini] Error 2
      make: Leaving directory '/usr/src/kernels/5.14.0-427.el9.x86_64+rt'

      Version-Release number of selected component (if applicable):

      oc adm release info quay.io/openshift-release-dev/ocp-release:4.16.0-ec.6-x86_64 --image-for=driver-toolkit quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:49eea43841b80ab9aeaedc9e0ae873ea263f862aed9b29c557ad07a89d50643c

              ybettan@redhat.com Yoni Bettan
              woyeah5 Chengjie Wang (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: