提交 1003b065 编写于 作者: Y Yang Yingliang 提交者: Xie XiuQi

hns3: Makefile: remove unnecessary kcompat.o

hulk inclusion
category: feature
bugzilla: 12807
CVE: NA

-------------------------------------------------

Now hns3 driver will be rebuild without changing any code:

[root@localhost hulk-4.19]# make -j64
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  CC [M]  drivers/net/ethernet/hisilicon/hns3/kcompat.o
  CC [M]  drivers/net/ethernet/hisilicon/hns3/hns3pf/../kcompat.o
  LD [M]  drivers/net/ethernet/hisilicon/hns3/hns3.o
  LD [M]  drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge.o
  Building modules, stage 2.
  MODPOST 1400 modules
  CC      drivers/net/ethernet/hisilicon/hns3/hns3.mod.o
  CC      drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge.mod.o
  LD [M]  drivers/net/ethernet/hisilicon/hns3/hns3.ko
  LD [M]  drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge.ko

[root@localhost hulk-4.19]# make -j64
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  CC [M]  drivers/net/ethernet/hisilicon/hns3/kcompat.o
  LD [M]  drivers/net/ethernet/hisilicon/hns3/hns3.o
  Building modules, stage 2.
  MODPOST 1400 modules
  CC      drivers/net/ethernet/hisilicon/hns3/hns3.mod.o
  CC      drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge.mod.o
  LD [M]  drivers/net/ethernet/hisilicon/hns3/hns3.ko
  LD [M]  drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge.ko

It's introduced by build kcompat.o both in hns3 and hns3/hns3pf.

kcompat.c provide pci_irq* relatived interfaces for driver
building in earlier version kernel. Now hulk-4.19 has these
interfaces, it can be removed to fix this problem.
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: NXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 2790911b
......@@ -9,6 +9,6 @@ obj-$(CONFIG_HNS3) += hns3vf/
obj-$(CONFIG_HNS3) += hnae3.o
obj-$(CONFIG_HNS3_ENET) += hns3.o
hns3-objs = hns3_enet.o hns3_ethtool.o hns3_debugfs.o kcompat.o
hns3-objs = hns3_enet.o hns3_ethtool.o hns3_debugfs.o
hns3-$(CONFIG_HNS3_DCB) += hns3_dcbnl.o
......@@ -6,6 +6,6 @@
ccflags-y := -Idrivers/net/ethernet/hisilicon/hns3
obj-$(CONFIG_HNS3_HCLGE) += hclge.o
hclge-objs = hclge_main.o hclge_cmd.o hclge_mdio.o hclge_tm.o hclge_mbx.o hclge_debugfs.o hclge_err.o ../kcompat.o
hclge-objs = hclge_main.o hclge_cmd.o hclge_mdio.o hclge_tm.o hclge_mbx.o hclge_debugfs.o hclge_err.o
hclge-$(CONFIG_HNS3_DCB) += hclge_dcb.o
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册