From 4764212483a99f2b998e08225d167faf763d62e8 Mon Sep 17 00:00:00 2001 From: Vincent Mailhol Date: Tue, 15 Nov 2022 01:38:48 +0900 Subject: [PATCH] candump: use linux/net_tstamp.h instead of redefining values ourselves The project contains a local copy of the timestamp header at include/linux/net_tstamp.h. However, candump.c redefines the net_tstamp.h values instead of relying on the header. Replace these by a "include ". Signed-off-by: Vincent Mailhol Acked-by: Oliver Hartkopp Link: https://lore.kernel.org/all/20221114163848.3398-7-mailhol.vincent@wanadoo.fr Signed-off-by: Marc Kleine-Budde --- candump.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/candump.c b/candump.c index 7ad4398..ff646e7 100644 --- a/candump.c +++ b/candump.c @@ -63,6 +63,7 @@ #include #include +#include #include "terminal.h" #include "lib.h" @@ -72,10 +73,6 @@ #define SO_TIMESTAMPING 37 #endif -/* from #include - since Linux 2.6.30 */ -#define SOF_TIMESTAMPING_SOFTWARE (1 << 4) -#define SOF_TIMESTAMPING_RX_SOFTWARE (1 << 3) -#define SOF_TIMESTAMPING_RAW_HARDWARE (1 << 6) #define TIMESTAMPSZ 50 /* string 'absolute with date' requires max 49 bytes */ #define MAXSOCK 16 /* max. number of CAN interfaces given on the cmdline */