zephyr/subsys/net/lib/ptp
Chris Friedt 72bd951ac4 net: ptp: do not use a reserved id in global scope
Generally, we should avoid using reserved names in global
contexts.

subsys/net/lib/ptp/clock.c:58:25: \
  error: 'clock' redeclared as different kind of symbol
   58 | static struct ptp_clock clock = { 0 };

/opt/toolchains/zephyr-sdk-0.16.8/arm-zephyr-eabi/picolibc/ \
  include/time.h💯12: \
  note: previous declaration of 'clock' with type 'clock_t(void)' \
  {aka 'long unsigned int(void)'}
  100 | clock_t    clock (void);

subsys/net/lib/ptp/clock.c:58:25: \
  error: 'clock' defined but not used [-Werror=unused-variable]
   58 | static struct ptp_clock clock = { 0 };

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2024-06-18 19:54:53 -04:00
..
btca.c net: ptp: Implement Best TimeTransmitter Clock algorithm for PTP stack 2024-06-13 05:40:41 -04:00
btca.h net: ptp: Implement Best TimeTransmitter Clock algorithm for PTP stack 2024-06-13 05:40:41 -04:00
clock.c net: ptp: do not use a reserved id in global scope 2024-06-18 19:54:53 -04:00
clock.h net: ptp: Implement PTP thread 2024-06-13 05:40:41 -04:00
CMakeLists.txt net: ptp: Implement Best TimeTransmitter Clock algorithm for PTP stack 2024-06-13 05:40:41 -04:00
ddt.h net: ptp: Add derived data type header 2024-06-13 05:40:41 -04:00
ds.h net: ptp: Add definitions for PTP datasets 2024-06-13 05:40:41 -04:00
Kconfig net: ptp: Implement PTP thread 2024-06-13 05:40:41 -04:00
msg.c net: ptp: Add functions for messages transmission 2024-06-13 05:40:41 -04:00
msg.h net: ptp: Add functions for messages transmission 2024-06-13 05:40:41 -04:00
port.c net: ptp: Network interface status check in PTP thread 2024-06-13 05:40:41 -04:00
port.h net: ptp: Network interface status check in PTP thread 2024-06-13 05:40:41 -04:00
ptp.c net: ptp: Implement PTP thread 2024-06-13 05:40:41 -04:00
state_machine.c net: ptp: Add Kconfig symbols and preprocessor guards for some states 2024-06-13 05:40:41 -04:00
state_machine.h net: ptp: Add TIME_RECEIVER_ONLY feature 2024-06-13 05:40:41 -04:00
tlv.c net: ptp: Extend TLV with Management TLVs 2024-06-13 05:40:41 -04:00
tlv.h net: ptp: Extend TLV with Management TLVs 2024-06-13 05:40:41 -04:00
transport.c net: ptp: Add sockets to PTP stack 2024-06-13 05:40:41 -04:00
transport.h net: ptp: Add sockets to PTP stack 2024-06-13 05:40:41 -04:00