[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <922cc330062be2e66ca68222ef54147276e0ae9f.1545042350.git.dcaratti@redhat.com>
Date: Mon, 17 Dec 2018 11:26:38 +0100
From: Davide Caratti <dcaratti@...hat.com>
To: Jesus Sanchez-Palencia <jesus.sanchez-palencia@...el.com>,
"David S. Miller" <davem@...emloft.net>,
Richard Cochran <rcochran@...utronix.de>,
netdev@...r.kernel.org
Cc: "Herton R . Krzesinski" <herton@...hat.com>
Subject: [PATCH net] net: Use __kernel_clockid_t in uapi net_stamp.h
Herton reports the following error when building a userspace program that
includes net_stamp.h:
In file included from foo.c:2:
/usr/include/linux/net_tstamp.h:158:2: error: unknown type name
‘clockid_t’
clockid_t clockid; /* reference clockid */
^~~~~~~~~
Fix it by using __kernel_clockid_t in place of clockid_t.
Fixes: 80b14dee2bea ("net: Add a new socket option for a future transmit time.")
Cc: Timothy Redaelli <tredaelli@...hat.com>
Reported-by: Herton R. Krzesinski <herton@...hat.com>
Signed-off-by: Davide Caratti <dcaratti@...hat.com>
---
include/uapi/linux/net_tstamp.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/uapi/linux/net_tstamp.h b/include/uapi/linux/net_tstamp.h
index 97ff3c17ec4d..e5b39721c6e4 100644
--- a/include/uapi/linux/net_tstamp.h
+++ b/include/uapi/linux/net_tstamp.h
@@ -155,8 +155,8 @@ enum txtime_flags {
};
struct sock_txtime {
- clockid_t clockid; /* reference clockid */
- __u32 flags; /* as defined by enum txtime_flags */
+ __kernel_clockid_t clockid;/* reference clockid */
+ __u32 flags; /* as defined by enum txtime_flags */
};
#endif /* _NET_TIMESTAMPING_H */
--
2.19.1
Powered by blists - more mailing lists