#
# .build_defs
# Generated automatically by configure - do not modify (unless
# you know what you're doing!)
#

# Version of Linux kernel used.
UTS_RELEASE=3.10.0-693.11.1.el7.x86_64
UTS_RELEASE_1=3
UTS_RELEASE_2=10
UTS_RELEASE_3=0-693.11.1.el7.x86_64
MODEXT=.ko

# SYSROOT sets the prefix for the install directory for the kernel module.
SYSROOT=

# At some point in the development of the 2.6.x Linux kernel line, the
# 'struct class_simple' was removed in favour of 'struct class'
# We detect the existence of the old-style 'class_simple'.
EXTRA_CFLAGS += -DUSE_CLASS_SIMPLE=0

# At some point in the development of the 2.6.x Linux kernel line, the
# 'device_create' function gained a 'drvdata' parameter.
# We detect the existence of this parameter.
EXTRA_CFLAGS += -DDEVICE_CREATE_DRVDATA=1

# At some point in the development of the 2.6.x Linux kernel line, the
# function io_remap_pfn_range() appeared, which obsoleted the function
# io_remap_page_range(). We detect the existence of io_remap_pfn_range()
# and use it if present.
EXTRA_CFLAGS += -DUSE_IO_REMAP_PFN_RANGE=1

# As of kernel 2.6.23, kmem_cache_create has 5 parameters. Prior
# to that, it had 6. We detect the number of parameters.
EXTRA_CFLAGS += -DKMEM_CACHE_CREATE_5=1

# As of kernel 2.6.19, kmem_cache_destroy has return type void. Prior
# to that, it had return type int. We detect the return type.
EXTRA_CFLAGS += -DKMEM_CACHE_DESTROY_INT=1

# At some point in the 2.6.x kernel line, the 'pin' member was added
# to struct pci_dev. We detect whether the 'pin' member is present in
# struct pci_dev in the kernel header files we are compiling for.
EXTRA_CFLAGS += -DSTRUCT_PCI_DEV_HAS_PIN=0

# At some point in the 2.6.x kernel line, the 'resource_size_t'
# type was added. We detect whether the 'resource_size_t' type
# is defined in the kernel header files we are compiling for.
EXTRA_CFLAGS += -DHAS_RESOURCE_SIZE_T=1

# At some point in the 2.6.x kernel line, the 'uintptr_t' type was
# added. We detect whether the 'uintptr_t' type is defined in the
# kernel header files we are compiling for.
EXTRA_CFLAGS += -DHAS_UINTPTR_T=1

# At some point in the 2.6.x kernel line, the 'no_page' handler
# for VMA operations was changed to pass in a pointer to 'struct
# vm_fault. We detect what kind of 'no_page' handler declaration
# is required for the kernel we are compiling for.
EXTRA_CFLAGS += -DNO_PAGE_STRUCT_VM_FAULT=1

# Certain Redhat Linux kernels (eg. 2.4.20-18.8) incorporate 2.6.x
# functionality, such as a modified prototype for remap_page_range()
# that requires an extra parameter
EXTRA_CFLAGS += -DREMAP_PAGE_RANGE_WITH_VMA_ARG=1

