forked from Minki/linux
92db978f0d
My recent commitb6d49cab44
("net: Make PTP-specific drivers depend on PTP_1588_CLOCK") exposes a missing dependency in defconfigs that select TI_CPTS without selecting PTP_1588_CLOCK, leading to linker errors of the form: drivers/net/ethernet/ti/cpsw.o: in function `cpsw_ndo_stop': cpsw.c:(.text+0x680): undefined reference to `cpts_unregister' ... That's because TI_CPTS_MOD (which is the symbol gating the _compilation_ of cpts.c) now depends on PTP_1588_CLOCK, and so is not enabled in these configurations, but TI_CPTS (which is the symbol gating _calls_ to the cpts functions) _is_ enabled. So we end up compiling calls to functions that don't exist, resulting in the linker errors. This patch fixes build errors and restores previous behavior by: - ensure PTP_1588_CLOCK=y in TI specific configs and CPTS will be built - remove TI_CPTS_MOD and, instead, add dependencies from CPTS in TI_CPSW/TI_KEYSTONE_NETCP/TI_CPSW_SWITCHDEV as below: config TI_CPSW_SWITCHDEV ... depends on TI_CPTS || !TI_CPTS which will ensure proper dependencies PTP_1588_CLOCK -> TI_CPTS -> TI_CPSW/TI_KEYSTONE_NETCP/TI_CPSW_SWITCHDEV and build type selection. Note. For NFS boot + CPTS all of above configs have to be built-in. Cc: Arnd Bergmann <arnd@arndb.de> Cc: Dan Murphy <dmurphy@ti.com> Cc: Tony Lindgren <tony@atomide.com> Fixes:b6d49cab44
("net: Make PTP-specific drivers depend on PTP_1588_CLOCK") Reported-by: kbuild test robot <lkp@intel.com> Signed-off-by: Clay McClure <clay@daemons.net> [grygorii.strashko@ti.com: rewording, add deps cpsw/netcp from cpts, drop IS_REACHABLE] Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Tested-by: Tony Lindgren <tony@atomide.com> Signed-off-by: David S. Miller <davem@davemloft.net>
243 lines
5.4 KiB
Plaintext
243 lines
5.4 KiB
Plaintext
# CONFIG_SWAP is not set
|
|
CONFIG_POSIX_MQUEUE=y
|
|
CONFIG_HIGH_RES_TIMERS=y
|
|
CONFIG_IKCONFIG=y
|
|
CONFIG_IKCONFIG_PROC=y
|
|
CONFIG_LOG_BUF_SHIFT=14
|
|
CONFIG_CGROUPS=y
|
|
CONFIG_CGROUP_FREEZER=y
|
|
CONFIG_CGROUP_DEVICE=y
|
|
CONFIG_CGROUP_CPUACCT=y
|
|
CONFIG_CGROUP_SCHED=y
|
|
CONFIG_BLK_CGROUP=y
|
|
CONFIG_BLK_DEV_INITRD=y
|
|
CONFIG_KALLSYMS_ALL=y
|
|
# CONFIG_ELF_CORE is not set
|
|
# CONFIG_BASE_FULL is not set
|
|
CONFIG_EMBEDDED=y
|
|
CONFIG_PROFILING=y
|
|
CONFIG_OPROFILE=y
|
|
CONFIG_KPROBES=y
|
|
CONFIG_MODULES=y
|
|
CONFIG_MODULE_FORCE_LOAD=y
|
|
CONFIG_MODULE_UNLOAD=y
|
|
CONFIG_MODULE_FORCE_UNLOAD=y
|
|
CONFIG_MODVERSIONS=y
|
|
CONFIG_ARCH_KEYSTONE=y
|
|
CONFIG_ARM_LPAE=y
|
|
CONFIG_PCI=y
|
|
CONFIG_PCI_MSI=y
|
|
CONFIG_PCI_KEYSTONE=y
|
|
CONFIG_SMP=y
|
|
CONFIG_HOTPLUG_CPU=y
|
|
CONFIG_ARM_PSCI=y
|
|
CONFIG_PREEMPT=y
|
|
CONFIG_AEABI=y
|
|
CONFIG_HIGHMEM=y
|
|
CONFIG_CMA=y
|
|
CONFIG_VFP=y
|
|
CONFIG_NEON=y
|
|
# CONFIG_SUSPEND is not set
|
|
CONFIG_PM=y
|
|
CONFIG_NET=y
|
|
CONFIG_PACKET=y
|
|
CONFIG_UNIX=y
|
|
CONFIG_UNIX_DIAG=y
|
|
CONFIG_XFRM_USER=y
|
|
CONFIG_XFRM_SUB_POLICY=y
|
|
CONFIG_XFRM_STATISTICS=y
|
|
CONFIG_NET_KEY=y
|
|
CONFIG_NET_KEY_MIGRATE=y
|
|
CONFIG_INET=y
|
|
CONFIG_IP_MULTICAST=y
|
|
CONFIG_IP_ADVANCED_ROUTER=y
|
|
CONFIG_IP_MULTIPLE_TABLES=y
|
|
CONFIG_IP_ROUTE_MULTIPATH=y
|
|
CONFIG_IP_ROUTE_VERBOSE=y
|
|
CONFIG_IP_PNP=y
|
|
CONFIG_IP_PNP_DHCP=y
|
|
CONFIG_IP_PNP_BOOTP=y
|
|
CONFIG_NET_IPIP=y
|
|
CONFIG_NET_IPGRE_DEMUX=y
|
|
CONFIG_NET_IPGRE=y
|
|
CONFIG_IP_MROUTE=y
|
|
CONFIG_IP_MROUTE_MULTIPLE_TABLES=y
|
|
CONFIG_IP_PIMSM_V2=y
|
|
CONFIG_INET_AH=y
|
|
CONFIG_INET_IPCOMP=y
|
|
CONFIG_INET6_XFRM_MODE_TRANSPORT=m
|
|
CONFIG_INET6_XFRM_MODE_TUNNEL=m
|
|
CONFIG_INET6_XFRM_MODE_BEET=m
|
|
CONFIG_IPV6_SIT=m
|
|
CONFIG_IPV6_MULTIPLE_TABLES=y
|
|
CONFIG_IPV6_SUBTREES=y
|
|
CONFIG_IPV6_MROUTE=y
|
|
CONFIG_IPV6_PIMSM_V2=y
|
|
CONFIG_NETFILTER=y
|
|
CONFIG_NF_CONNTRACK=y
|
|
CONFIG_NF_CT_NETLINK=y
|
|
CONFIG_NETFILTER_XT_TARGET_CLASSIFY=y
|
|
CONFIG_NETFILTER_XT_TARGET_CONNMARK=y
|
|
CONFIG_NETFILTER_XT_TARGET_IDLETIMER=y
|
|
CONFIG_NETFILTER_XT_TARGET_MARK=y
|
|
CONFIG_NETFILTER_XT_MATCH_COMMENT=y
|
|
CONFIG_NETFILTER_XT_MATCH_CONNBYTES=y
|
|
CONFIG_NETFILTER_XT_MATCH_CONNLIMIT=y
|
|
CONFIG_NETFILTER_XT_MATCH_CONNMARK=y
|
|
CONFIG_NETFILTER_XT_MATCH_CONNTRACK=y
|
|
CONFIG_NETFILTER_XT_MATCH_CPU=y
|
|
CONFIG_NETFILTER_XT_MATCH_IPRANGE=y
|
|
CONFIG_NETFILTER_XT_MATCH_LENGTH=y
|
|
CONFIG_NETFILTER_XT_MATCH_MAC=y
|
|
CONFIG_NETFILTER_XT_MATCH_MARK=y
|
|
CONFIG_NETFILTER_XT_MATCH_MULTIPORT=y
|
|
CONFIG_NETFILTER_XT_MATCH_PKTTYPE=y
|
|
CONFIG_NETFILTER_XT_MATCH_STATE=y
|
|
CONFIG_NF_CONNTRACK_IPV4=y
|
|
CONFIG_IP_NF_IPTABLES=y
|
|
CONFIG_IP_NF_MATCH_AH=y
|
|
CONFIG_IP_NF_MATCH_ECN=y
|
|
CONFIG_IP_NF_MATCH_TTL=y
|
|
CONFIG_IP_NF_FILTER=y
|
|
CONFIG_IP_NF_TARGET_REJECT=y
|
|
CONFIG_IP_NF_MANGLE=y
|
|
CONFIG_IP_NF_TARGET_CLUSTERIP=y
|
|
CONFIG_IP_NF_TARGET_ECN=y
|
|
CONFIG_IP_NF_TARGET_TTL=y
|
|
CONFIG_IP_NF_RAW=y
|
|
CONFIG_IP_NF_ARPTABLES=y
|
|
CONFIG_IP_NF_ARPFILTER=y
|
|
CONFIG_IP_NF_ARP_MANGLE=y
|
|
CONFIG_IP6_NF_IPTABLES=m
|
|
CONFIG_IP_SCTP=y
|
|
CONFIG_VLAN_8021Q=y
|
|
CONFIG_CAN=m
|
|
CONFIG_CAN_C_CAN=m
|
|
CONFIG_CAN_C_CAN_PLATFORM=m
|
|
CONFIG_DEVTMPFS=y
|
|
CONFIG_DEVTMPFS_MOUNT=y
|
|
CONFIG_DMA_CMA=y
|
|
CONFIG_MTD=y
|
|
CONFIG_MTD_CMDLINE_PARTS=y
|
|
CONFIG_MTD_BLOCK=y
|
|
CONFIG_MTD_PLATRAM=y
|
|
CONFIG_MTD_M25P80=y
|
|
CONFIG_MTD_RAW_NAND=y
|
|
CONFIG_MTD_NAND_DAVINCI=y
|
|
CONFIG_MTD_SPI_NOR=y
|
|
CONFIG_MTD_UBI=y
|
|
CONFIG_BLK_DEV_LOOP=y
|
|
CONFIG_SRAM=y
|
|
CONFIG_EEPROM_AT24=y
|
|
CONFIG_SCSI=y
|
|
CONFIG_BLK_DEV_SD=y
|
|
CONFIG_NETDEVICES=y
|
|
CONFIG_TI_KEYSTONE_NETCP=y
|
|
CONFIG_TI_KEYSTONE_NETCP_ETHSS=y
|
|
CONFIG_TI_CPTS=y
|
|
CONFIG_MARVELL_PHY=y
|
|
CONFIG_SERIAL_8250=y
|
|
CONFIG_SERIAL_8250_CONSOLE=y
|
|
CONFIG_SERIAL_OF_PLATFORM=y
|
|
# CONFIG_HW_RANDOM is not set
|
|
CONFIG_I2C=y
|
|
# CONFIG_I2C_COMPAT is not set
|
|
CONFIG_I2C_CHARDEV=y
|
|
CONFIG_I2C_DAVINCI=y
|
|
CONFIG_SPI=y
|
|
CONFIG_SPI_DAVINCI=y
|
|
CONFIG_SPI_SPIDEV=y
|
|
CONFIG_PTP_1588_CLOCK=y
|
|
CONFIG_PINCTRL_SINGLE=y
|
|
CONFIG_GPIOLIB=y
|
|
CONFIG_GPIO_SYSFS=y
|
|
CONFIG_GPIO_DAVINCI=y
|
|
CONFIG_GPIO_SYSCON=y
|
|
CONFIG_POWER_SUPPLY=y
|
|
CONFIG_POWER_RESET=y
|
|
CONFIG_POWER_RESET_KEYSTONE=y
|
|
# CONFIG_HWMON is not set
|
|
CONFIG_WATCHDOG=y
|
|
CONFIG_DAVINCI_WATCHDOG=y
|
|
CONFIG_REGULATOR=y
|
|
CONFIG_REGULATOR_FIXED_VOLTAGE=y
|
|
CONFIG_USB=y
|
|
CONFIG_USB_ANNOUNCE_NEW_DEVICES=y
|
|
CONFIG_USB_MON=y
|
|
CONFIG_USB_XHCI_HCD=y
|
|
CONFIG_USB_STORAGE=y
|
|
CONFIG_USB_DWC3=y
|
|
CONFIG_NOP_USB_XCEIV=y
|
|
CONFIG_KEYSTONE_USB_PHY=y
|
|
CONFIG_MMC=y
|
|
CONFIG_MMC_SDHCI=y
|
|
CONFIG_MMC_SDHCI_PLTFM=y
|
|
CONFIG_MMC_OMA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