qla2x00t: Fix build against kernel versions before v4.14

git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7568 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2018-11-01 04:28:46 +00:00
parent d983ab3638
commit 57533dcd0c
2 changed files with 12 additions and 2 deletions

View File

@@ -22,10 +22,14 @@ SHELL=/bin/bash
KMOD := $(shell pwd)/kernel
SCST_INC_DIR := $(shell if [ -e "$$PWD/../scst" ]; \
then echo "$$PWD/../scst/include"; \
else echo "$(DESTDIR)$(PREFIX)/include/scst"; fi)
enable-Wextra = $(shell uname_r="$$(uname -r)"; if [ "$${uname_r%.el5}" = "$${uname_r}" ]; then echo "$(1)"; fi)
EXTRA_CFLAGS += $(call enable-Wextra,-Wextra -Wno-unused-parameter \
-Wno-missing-field-initializers)
-Wno-missing-field-initializers) -I$(SCST_INC_DIR)
ifneq ($(CONFIG_SCSI_QLA2XXX_TARGET),)
EXTRA_CFLAGS += -DCONFIG_SCSI_QLA2XXX_TARGET=$(CONFIG_SCSI_QLA2XXX_TARGET)
@@ -57,7 +61,7 @@ qla2xxx_scst-objs := qla_os.o qla_init.o qla_mbx.o qla_iocb.o qla_isr.o qla_gs.o
else
all:
$(MAKE) -C $(KDIR) SUBDIRS=$(shell pwd) BUILD_INI=m
$(MAKE) -C $(KDIR) SUBDIRS=$(shell pwd) BUILD_INI=m EXTRA_CFLAGS="$(EXTRA_CFLAGS)"
install: all
$(MAKE) -C $(KDIR) SUBDIRS=$(shell pwd) BUILD_INI=m \

View File

@@ -5,6 +5,12 @@
* See LICENSE.qla2xxx for copyright and licensing details.
*/
#ifdef INSIDE_KERNEL_TREE
#include <scst/backport.h> /* timer_setup() */
#else
#include <backport.h>
#endif
/*
* qla2x00_debounce_register
* Debounce register.