Page MenuHomeFreeBSD

D24137.diff
No OneTemporary

D24137.diff

Index: head/sys/conf/kmod.mk
===================================================================
--- head/sys/conf/kmod.mk
+++ head/sys/conf/kmod.mk
@@ -94,6 +94,16 @@
WERROR?= -Werror
.endif
+LINUXKPI_GENSRCS+= \
+ bus_if.h \
+ device_if.h \
+ pci_if.h \
+ pci_iov_if.h \
+ vnode_if.h \
+ usb_if.h \
+ opt_usb.h \
+ opt_stack.h
+
CFLAGS+= ${WERROR}
CFLAGS+= -D_KERNEL
CFLAGS+= -DKLD_MODULE
Index: head/sys/modules/cxgbe/iw_cxgbe/Makefile
===================================================================
--- head/sys/modules/cxgbe/iw_cxgbe/Makefile
+++ head/sys/modules/cxgbe/iw_cxgbe/Makefile
@@ -4,24 +4,17 @@
.PATH: ${CXGBE}/iw_cxgbe
KMOD= iw_cxgbe
-SRCS= bus_if.h
SRCS+= cm.c
SRCS+= cq.c
SRCS+= device.c
-SRCS+= device_if.h
SRCS+= ev.c
SRCS+= id_table.c
SRCS+= mem.c
-SRCS+= opt_inet.h
-SRCS+= opt_ktr.h
-SRCS+= opt_ofed.h
-SRCS+= opt_sched.h
-SRCS+= pci_if.h
-SRCS+= pcib_if.h
SRCS+= provider.c
SRCS+= qp.c
SRCS+= resource.c
-SRCS+= vnode_if.h
+SRCS+= ${LINUXKPI_GENSRCS}
+SRCS+= opt_inet.h opt_inet6.h opt_ktr.h opt_ofed.h opt_sched.h
CFLAGS+= -I${CXGBE} -I${SRCTOP}/sys/ofed/include -DLINUX_TYPES_DEFINED
CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi
Index: head/sys/modules/ibcore/Makefile
===================================================================
--- head/sys/modules/ibcore/Makefile
+++ head/sys/modules/ibcore/Makefile
@@ -2,8 +2,7 @@
.PATH: ${SRCTOP}/sys/ofed/drivers/infiniband/core
KMOD= ibcore
-SRCS= vnode_if.h device_if.h bus_if.h pci_if.h pci_iov_if.h \
- opt_inet.h opt_inet6.h \
+SRCS= \
ib_addr.c \
ib_agent.c \
ib_cache.c \
@@ -32,6 +31,8 @@
ib_uverbs_main.c \
ib_uverbs_marshall.c \
ib_verbs.c
+SRCS+= ${LINUXKPI_GENSRCS}
+SRCS+= opt_inet.h opt_inet6.h
CFLAGS+= -I${SRCTOP}/sys/ofed/include
CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi
Index: head/sys/modules/ipoib/Makefile
===================================================================
--- head/sys/modules/ipoib/Makefile
+++ head/sys/modules/ipoib/Makefile
@@ -2,10 +2,10 @@
.PATH: ${SRCTOP}/sys/ofed/drivers/infiniband/ulp/ipoib
KMOD= ipoib
-SRCS= device_if.h bus_if.h vnode_if.h pci_if.h \
- opt_inet.h opt_inet6.h opt_ofed.h \
- ipoib_cm.c ipoib_ib.c ipoib_main.c \
+SRCS= ipoib_cm.c ipoib_ib.c ipoib_main.c \
ipoib_multicast.c ipoib_verbs.c
+SRCS+= ${LINUXKPI_GENSRCS}
+SRCS+= opt_inet.h opt_inet6.h opt_ofed.h
CFLAGS+= -I${SRCTOP}/sys/ofed/drivers/infiniband/ulp/ipoib
CFLAGS+= -I${SRCTOP}/sys/ofed/include
Index: head/sys/modules/iser/Makefile
===================================================================
--- head/sys/modules/iser/Makefile
+++ head/sys/modules/iser/Makefile
@@ -11,13 +11,9 @@
SRCS+= iser_initiator.c
SRCS+= iser_memory.c
SRCS+= iser_verbs.c
-SRCS+= vnode_if.h
-SRCS+= opt_inet.h
-SRCS+= opt_inet6.h
-SRCS+= opt_cam.h
-SRCS+= bus_if.h
-SRCS+= device_if.h
-SRCS+= icl_conn_if.h
+
+SRCS+= ${LINUXKPI_GENSRCS}
+SRCS+= opt_inet.h opt_inet6.h opt_cam.h icl_conn_if.h
CFLAGS+= -I${SYSDIR}/
CFLAGS+= -I${SYSDIR}/ofed/include
Index: head/sys/modules/lindebugfs/Makefile
===================================================================
--- head/sys/modules/lindebugfs/Makefile
+++ head/sys/modules/lindebugfs/Makefile
@@ -3,9 +3,8 @@
.PATH: ${SRCTOP}/sys/compat/lindebugfs
KMOD= lindebugfs
-SRCS= vnode_if.h \
- device_if.h bus_if.h pci_if.h \
- lindebugfs.c
+SRCS= lindebugfs.c
+SRCS+= ${LINUXKPI_GENSRCS}
CFLAGS+= -I${SRCTOP}/sys/compat/linuxkpi/common/include
Index: head/sys/modules/linuxkpi/Makefile
===================================================================
--- head/sys/modules/linuxkpi/Makefile
+++ head/sys/modules/linuxkpi/Makefile
@@ -21,14 +21,7 @@
linux_usb.c \
linux_work.c
-SRCS+= bus_if.h \
- device_if.h \
- pci_if.h \
- pci_iov_if.h \
- vnode_if.h \
- usb_if.h \
- opt_usb.h \
- opt_stack.h
+SRCS+= ${LINUXKPI_GENSRCS}
CFLAGS+= -I${SRCTOP}/sys/compat/linuxkpi/common/include
CFLAGS+= -I${SRCTOP}/sys/contrib/ck/include
Index: head/sys/modules/mlx4/Makefile
===================================================================
--- head/sys/modules/mlx4/Makefile
+++ head/sys/modules/mlx4/Makefile
@@ -2,8 +2,7 @@
.PATH: ${SRCTOP}/sys/dev/mlx4/mlx4_core
KMOD= mlx4
-SRCS= device_if.h bus_if.h vnode_if.h pci_if.h pci_iov_if.h \
- opt_inet.h opt_inet6.h \
+SRCS= \
mlx4_alloc.c \
mlx4_catas.c \
mlx4_cmd.c \
@@ -24,6 +23,8 @@
mlx4_sense.c \
mlx4_srq.c \
mlx4_resource_tracker.c
+SRCS+= ${LINUXKPI_GENSRCS}
+SRCS+= opt_inet.h opt_inet6.h
CFLAGS+= -I${SRCTOP}/sys/ofed/include
CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi
Index: head/sys/modules/mlx4en/Makefile
===================================================================
--- head/sys/modules/mlx4en/Makefile
+++ head/sys/modules/mlx4en/Makefile
@@ -2,8 +2,7 @@
.PATH: ${SRCTOP}/sys/dev/mlx4/mlx4_en
KMOD= mlx4en
-SRCS= device_if.h bus_if.h pci_if.h pci_iov_if.h vnode_if.h \
- opt_inet.h opt_inet6.h \
+SRCS= \
mlx4_en_cq.c \
mlx4_en_main.c \
mlx4_en_netdev.c \
@@ -11,6 +10,8 @@
mlx4_en_resources.c \
mlx4_en_rx.c \
mlx4_en_tx.c
+SRCS+= ${LINUXKPI_GENSRCS}
+SRCS+= opt_inet.h opt_inet6.h
CFLAGS+= -I${SRCTOP}/sys/ofed/include
CFLAGS+= -I${SRCTOP}/sys/compat/linuxkpi/common/include
Index: head/sys/modules/mlx4ib/Makefile
===================================================================
--- head/sys/modules/mlx4ib/Makefile
+++ head/sys/modules/mlx4ib/Makefile
@@ -2,8 +2,7 @@
.PATH: ${SRCTOP}/sys/dev/mlx4/mlx4_ib
KMOD= mlx4ib
-SRCS= device_if.h bus_if.h vnode_if.h pci_if.h pci_iov_if.h \
- opt_inet.h opt_inet6.h \
+SRCS= \
mlx4_ib_alias_GUID.c \
mlx4_ib_mcg.c \
mlx4_ib_sysfs.c \
@@ -17,6 +16,8 @@
mlx4_ib_srq.c \
mlx4_ib_wc.c \
mlx4_ib_cm.c
+SRCS+= ${LINUXKPI_GENSRCS}
+SRCS+= opt_inet.h opt_inet6.h
CFLAGS+= -I${SRCTOP}/sys/ofed/include
CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi
Index: head/sys/modules/mlx5/Makefile
===================================================================
--- head/sys/modules/mlx5/Makefile
+++ head/sys/modules/mlx5/Makefile
@@ -33,9 +33,9 @@
mlx5_vport.c \
mlx5_vsc.c \
mlx5_wq.c \
-mlx5_gid.c \
-device_if.h bus_if.h vnode_if.h pci_if.h pci_iov_if.h \
-opt_inet.h opt_inet6.h opt_rss.h opt_ratelimit.h
+mlx5_gid.c
+SRCS+= ${LINUXKPI_GENSRCS}
+SRCS+= opt_inet.h opt_inet6.h opt_rss.h opt_ratelimit.h
CFLAGS+= -I${SRCTOP}/sys/ofed/include
CFLAGS+= -I${SRCTOP}/sys/compat/linuxkpi/common/include
Index: head/sys/modules/mlx5en/Makefile
===================================================================
--- head/sys/modules/mlx5en/Makefile
+++ head/sys/modules/mlx5en/Makefile
@@ -12,10 +12,9 @@
mlx5_en_rx.c \
mlx5_en_rl.c \
mlx5_en_txrx.c \
-mlx5_en_port_buffer.c \
-device_if.h bus_if.h vnode_if.h pci_if.h pci_iov_if.h \
-opt_inet.h opt_inet6.h opt_rss.h opt_ratelimit.h \
-opt_kern_tls.h
+mlx5_en_port_buffer.c
+SRCS+= ${LINUXKPI_GENSRCS}
+SRCS+= opt_inet.h opt_inet6.h opt_rss.h opt_ratelimit.h opt_kern_tls.h
.if defined(HAVE_PER_CQ_EVENT_PACKET)
CFLAGS+= -DHAVE_PER_CQ_EVENT_PACKET
Index: head/sys/modules/mlx5fpga_tools/Makefile
===================================================================
--- head/sys/modules/mlx5fpga_tools/Makefile
+++ head/sys/modules/mlx5fpga_tools/Makefile
@@ -6,9 +6,8 @@
mlx5fpga_tools_main.c \
mlx5fpga_tools_char.c
-SRCS+= \
- device_if.h bus_if.h vnode_if.h pci_if.h pci_iov_if.h \
- opt_inet.h opt_inet6.h opt_rss.h opt_ratelimit.h
+SRCS+= ${LINUXKPI_GENSRCS}
+SRCS+= opt_inet.h opt_inet6.h opt_rss.h opt_ratelimit.h
CFLAGS+= -I${SRCTOP}/sys/ofed/include
CFLAGS+= -I${SRCTOP}/sys/compat/linuxkpi/common/include
Index: head/sys/modules/mlx5ib/Makefile
===================================================================
--- head/sys/modules/mlx5ib/Makefile
+++ head/sys/modules/mlx5ib/Makefile
@@ -14,9 +14,9 @@
mlx5_ib_mr.c \
mlx5_ib_qp.c \
mlx5_ib_srq.c \
-mlx5_ib_virt.c \
-device_if.h bus_if.h vnode_if.h pci_if.h pci_iov_if.h \
-opt_inet.h opt_inet6.h opt_ratelimit.h
+mlx5_ib_virt.c
+SRCS+= ${LINUXKPI_GENSRCS}
+SRCS+= opt_inet.h opt_inet6.h opt_ratelimit.h
CFLAGS+= -I${SRCTOP}/sys/ofed/include
CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi
Index: head/sys/modules/mlxfw/Makefile
===================================================================
--- head/sys/modules/mlxfw/Makefile
+++ head/sys/modules/mlxfw/Makefile
@@ -5,8 +5,8 @@
SRCS= \
mlxfw_fsm.c \
mlxfw_mfa2.c \
-mlxfw_mfa2_tlv_multi.c \
-device_if.h bus_if.h vnode_if.h pci_if.h
+mlxfw_mfa2_tlv_multi.c
+SRCS+= ${LINUXKPI_GENSRCS}
CFLAGS+= \
-I${SRCTOP}/sys/ofed/include \
Index: head/sys/modules/mthca/Makefile
===================================================================
--- head/sys/modules/mthca/Makefile
+++ head/sys/modules/mthca/Makefile
@@ -20,9 +20,9 @@
mthca_qp.c \
mthca_reset.c \
mthca_srq.c \
-mthca_uar.c \
-device_if.h bus_if.h vnode_if.h pci_if.h \
- opt_inet.h opt_inet6.h
+mthca_uar.c
+SRCS+= ${LINUXKPI_GENSRCS}
+SRCS+= opt_inet.h opt_inet6.h
CFLAGS+= -I${SRCTOP}/sys/ofed/include
CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi
Index: head/sys/modules/qlnx/qlnxe/Makefile
===================================================================
--- head/sys/modules/qlnx/qlnxe/Makefile
+++ head/sys/modules/qlnx/qlnxe/Makefile
@@ -57,15 +57,10 @@
SRCS+=ecore_ll2.c
SRCS+=qlnx_rdma.c
-
SRCS+=qlnx_ioctl.c
SRCS+=qlnx_os.c
-SRCS+= device_if.h
-SRCS+= bus_if.h
-SRCS+= pci_if.h
-SRCS+= pci_iov_if.h
-
+SRCS+= ${LINUXKPI_GENSRCS}
.include <bsd.kmod.mk>
Index: head/sys/modules/qlnx/qlnxev/Makefile
===================================================================
--- head/sys/modules/qlnx/qlnxev/Makefile
+++ head/sys/modules/qlnx/qlnxev/Makefile
@@ -51,10 +51,7 @@
SRCS+=qlnx_ioctl.c
SRCS+=qlnx_os.c
-SRCS+= device_if.h
-SRCS+= bus_if.h
-SRCS+= pci_if.h
-SRCS+= pci_iov_if.h
+SRCS+= ${LINUXKPI_GENSRCS}
.include <bsd.kmod.mk>
Index: head/sys/modules/qlnx/qlnxr/Makefile
===================================================================
--- head/sys/modules/qlnx/qlnxr/Makefile
+++ head/sys/modules/qlnx/qlnxr/Makefile
@@ -41,11 +41,12 @@
ETHDRVR=${SRCTOP}/sys/dev/qlnx/qlnxe
KMOD= qlnxr
-SRCS= device_if.h bus_if.h vnode_if.h pci_if.h \
- opt_inet.h opt_inet6.h \
+SRCS= \
qlnxr_os.c\
qlnxr_cm.c\
qlnxr_verbs.c
+SRCS+= ${LINUXKPI_GENSRCS}
+SRCS+= opt_inet.h opt_inet6.h
.include <bsd.kmod.mk>
Index: head/sys/modules/rdma/krping/Makefile
===================================================================
--- head/sys/modules/rdma/krping/Makefile
+++ head/sys/modules/rdma/krping/Makefile
@@ -3,7 +3,7 @@
KMOD= krping
SRCS= krping.c krping_dev.c getopt.c
-SRCS+= bus_if.h device_if.h pci_if.h pci_iov_if.h pcib_if.h vnode_if.h
+SRCS+= ${LINUXKPI_GENSRCS}
SRCS+= opt_sched.h opt_inet.h opt_inet6.h
CFLAGS+= -I${SRCTOP}/sys/ofed/include
CFLAGS+= -I${SRCTOP}/sys/ofed/include/uapi

File Metadata

Mime Type
text/plain
Expires
Sat, Feb 15, 6:54 PM (12 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16663312
Default Alt Text
D24137.diff (10 KB)

Event Timeline