Re: [net v4] selftests: txtimestamp: fix compilation issue

From
Willem de Bruijn <willemdebruijn.kernel@gmail.com>
Date
2021-02-04 19:00:14
Reply to
Vadim Fedorenko, 2021-02-04
On Thu, Feb 4, 2021 at 12:51 PM Vadim Fedorenko [off-list ref] wrote:
PACKET_TX_TIMESTAMP is defined in if_packet.h but it is not included in
test. Include it instead of <netpacket/packet.h> otherwise the error of
redefinition arrives.
Also fix the compiler warning about ambiguous control flow by adding
explicit braces.

Fixes: 8fe2f761cae9 ("net-timestamp: expand documentation")
Suggested-by: Willem de Bruijn <willemdebruijn.kernel@gmail.com>
Signed-off-by: Vadim Fedorenko <redacted>
Acked-by: Willem de Bruijn <willemb@google.com>

Thanks for fixing this, Vadim.
Thread (3 messages) 3 messages, 3 authors, last reply 2021-02-05
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help