]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: timestamping: Fix SIOCGSTAMP undeclared build failure
authorShuah Khan <skhan@linuxfoundation.org>
Thu, 27 Jun 2019 22:39:35 +0000 (16:39 -0600)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 28 Jun 2019 20:31:12 +0000 (14:31 -0600)
commit8229958868c89272f3feedf906586d89be4ec79b
treed54ad4be60b2e1635e10bf5918323fdec8509007
parentb5a4241aeae595a1a7f4a5fab920a56cb8ffdc71
selftests: timestamping: Fix SIOCGSTAMP undeclared build failure

Add missing linux/sockios.h include to fix the following SIOCGSTAMP
undeclared build error. In addition, remove the local defines for
SIOCGSTAMPNS and SIOCSHWTSTAMP and pick them up from linux/sockios.h.

timestamping.c:249:19: error: SIOCGSTAMP undeclared
   if (ioctl(sock, SIOCGSTAMP, &tv))

Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/networking/timestamping/timestamping.c