-
Notifications
You must be signed in to change notification settings - Fork 79
Build warning on RHEL 8.10 #141
Copy link
Copy link
Open
Description
I got this build warning building on a RHEL 8.10 system:
./config.sh
grep: /lib/modules/4.18.0-553.16.1.el8_10.x86_64/build/include/linux/device/bus.h: No such file or directory
make -C /lib/modules/4.18.0-553.16.1.el8_10.x86_64/build M=/opt/vtl.source/mhvtl/kernel modules
make[1]: Entering directory '/usr/src/kernels/4.18.0-553.16.1.el8_10.x86_64'
CC [M] /opt/vtl.source/mhvtl/kernel/mhvtl.o
/opt/vtl.source/mhvtl/kernel/mhvtl.c: In function ‘mhvtl_driver_probe’:
/opt/vtl.source/mhvtl/kernel/mhvtl.c:1452:25: warning: passing argument 1 of ‘scsi_host_alloc’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
hpnt = scsi_host_alloc(&mhvtl_driver_template, sizeof(*mhvtl_hba));
^~~~~~~~~~~~~~~~~~~~~~
In file included from /opt/vtl.source/mhvtl/kernel/mhvtl.c:62:
./include/scsi/scsi_host.h:795:26: note: expected ‘struct scsi_host_template *’ but argument is of type ‘const struct scsi_host_template *’
extern struct Scsi_Host *scsi_host_alloc(struct scsi_host_template *, int);
^~~~~~~~~~~~~~~
Building modules, stage 2.
MODPOST 1 modules
CC /opt/vtl.source/mhvtl/kernel/mhvtl.mod.o
LD [M] /opt/vtl.source/mhvtl/kernel/mhvtl.ko
make[1]: Leaving directory '/usr/src/kernels/4.18.0-553.16.1.el8_10.x86_64'
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels