Skip to content

Commit

Permalink
px-fastpath makefile cleanup - clean disable
Browse files Browse the repository at this point in the history
Signed-off-by: Lakshmi Narasimhan Sundararajan <[email protected]>
  • Loading branch information
Lakshmi Narasimhan Sundararajan committed Mar 12, 2021
1 parent 525a5ee commit 2d040d0
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions Makefile.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
px-objs = pxd.o dev.o iov_iter.o px_version.o
px-objs = pxd.o dev.o iov_iter.o px_version.o pxd_fastpath_stub.o
obj-m = px.o

KBUILD_CPPFLAGS := -D__KERNEL__
Expand Down Expand Up @@ -81,26 +81,26 @@ ifeq ($(shell echo "$(CHK_KVER)" | grep -Eq '.*\.el8.*\.x86_64'; echo $$?),0)
PXDEFINES += -D__PX_BLKMQ__ -D__EL8__
endif

## fastpath specific checks
ifeq ($(call verlater,${kmajor},${fp_major}),0)
PXDEFINES += -D__PX_FASTPATH__
px-objs += pxd_fastpath_stub.o
$(info Kernel fast path enabled, current kernel version $(CHK_KVER) need minimum $(FPATH_MINKVER))
else
ifeq ($(call versame,${kmajor},${fp_major}),0)
ifeq ($(call versameorlater,${kminor},${fp_minor}),0)
PXDEFINES += -D__PX_FASTPATH__
px-objs += pxd_fastpath_stub.o
$(info Kernel fast path enabled, current kernel version $(CHK_KVER) need minimum $(FPATH_MINKVER))
else
px-objs += pxd_fastpath_stub.o
$(warning Kernel fast path disabled, current kernel version $(CHK_KVER) need minimum $(FPATH_MINKVER))
endif
else
px-objs += pxd_fastpath_stub.o
$(warning Kernel fast path disabled, current kernel version $(CHK_KVER) need minimum $(FPATH_MINKVER))
endif
endif
## fastpath specific checks -- disabled
# ifeq ($(call verlater,${kmajor},${fp_major}),0)
# PXDEFINES += -D__PX_FASTPATH__
# px-objs += pxd_fastpath.o
# $(info Kernel fast path enabled, current kernel version $(CHK_KVER) need minimum $(FPATH_MINKVER))
# else
# ifeq ($(call versame,${kmajor},${fp_major}),0)
# ifeq ($(call versameorlater,${kminor},${fp_minor}),0)
# PXDEFINES += -D__PX_FASTPATH__
# px-objs += pxd_fastpath.o
# $(info Kernel fast path enabled, current kernel version $(CHK_KVER) need minimum $(FPATH_MINKVER))
# else
# px-objs += pxd_fastpath_stub.o
# $(warning Kernel fast path disabled, current kernel version $(CHK_KVER) need minimum $(FPATH_MINKVER))
# endif
# else
# px-objs += pxd_fastpath_stub.o
# $(warning Kernel fast path disabled, current kernel version $(CHK_KVER) need minimum $(FPATH_MINKVER))
# endif
# endif


ifdef KERNELOTHER
Expand Down

0 comments on commit 2d040d0

Please sign in to comment.