https://github.com/torvalds/linux
Revision 07fef3623407444e51c12ea57cd91df38c1069e0 authored by Arnd Bergmann on 20 March 2017, 08:58:33 UTC, committed by David S. Miller on 22 March 2017, 17:56:42 UTC
With posix timers having become optional, we get a build error with
the cpts time sync option of the CPSW driver:

drivers/net/ethernet/ti/cpts.c: In function 'cpts_find_ts':
drivers/net/ethernet/ti/cpts.c:291:23: error: implicit declaration of function 'ptp_classify_raw';did you mean 'ptp_classifier_init'? [-Werror=implicit-function-declaration]

This adds a hard dependency on PTP_CLOCK to avoid the problem, as
building it without PTP support makes no sense anyway.

Fixes: baa73d9e478f ("posix-timers: Make them configurable")
Cc: Nicolas Pitre <nicolas.pitre@linaro.org>
Cc: stable@vger.kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent be9ca0d
History
Tip revision: 07fef3623407444e51c12ea57cd91df38c1069e0 authored by Arnd Bergmann on 20 March 2017, 08:58:33 UTC
cpsw/netcp: cpts depends on posix_timers
Tip revision: 07fef36
File Mode Size
Kconfig -rw-r--r-- 69.2 KB
Makefile -rw-r--r-- 1.2 KB
calibrate.c -rw-r--r-- 8.5 KB
do_mounts.c -rw-r--r-- 14.6 KB
do_mounts.h -rw-r--r-- 1.4 KB
do_mounts_initrd.c -rw-r--r-- 3.4 KB
do_mounts_md.c -rw-r--r-- 8.2 KB
do_mounts_rd.c -rw-r--r-- 8.3 KB
init_task.c -rw-r--r-- 802 bytes
initramfs.c -rw-r--r-- 13.9 KB
main.c -rw-r--r-- 25.4 KB
noinitramfs.c -rw-r--r-- 1.5 KB
version.c -rw-r--r-- 1.2 KB

back to top