Hi Richard,

On 16/05/20 10:24 PM, Richard Cochran wrote:
> On Fri, Apr 17, 2020 at 10:00:09AM +0530, Lokesh Vutla wrote:
>>  phc2pwm.c | 233 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
>>  2 files changed, 237 insertions(+), 2 deletions(-)
>>  create mode 100644 phc2pwm.c
> 
> I wanted to try this today.  There are some issues:
> 
> /home/richard/git/linuxptp/phc2pwm.c: In function ‘main’:
> /home/richard/git/linuxptp/phc2pwm.c:222:3: error: ‘period’ may be used 
> uninitialized in this function [-Werror=maybe-uninitialized]
>    pwm_chan_set_period(chan, pwm_servo_sample(&ps, ts));
>    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /home/richard/git/linuxptp/phc2pwm.c:193:8: error: ‘ptp_dev’ may be used 
> uninitialized in this function [-Werror=maybe-uninitialized]
>   clkid = phc_open(ptp_dev);
>   ~~~~~~^~~~~~~~~~~~~~~~~~~
> /home/richard/git/linuxptp/phc2pwm.c:203:8: error: ‘event_index’ may be used 
> uninitialized in this function [-Werror=maybe-uninitialized]
>   err = phc_enable_extts(clkid, event_index);
>         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /home/richard/git/linuxptp/phc2pwm.c:197:9: error: ‘pwm_chan’ may be used 
> uninitialized in this function [-Werror=maybe-uninitialized]
>   chan = pwm_chan_create(pwm_chip, pwm_chan);
>          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /home/richard/git/linuxptp/phc2pwm.c:197:9: error: ‘pwm_chip’ may be used 
> uninitialized in this function [-Werror=maybe-uninitialized]
> cc1: all warnings being treated as errors

I am using 9.2 arm compiler and the build is successful. Which compiler are you
using?

➜  linuxptp git:(master) arm-none-linux-gnueabihf-gcc --version
arm-none-linux-gnueabihf-gcc (GNU Toolchain for the A-profile Architecture
9.2-2019.12 (arm-9.10)) 9.2.1 20191025
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

➜  linuxptp git:(master) make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf-
KBUILD_OUTPUT=/home/lokesh/working/mainline/linux
DEPEND phc2pwm.c
DEPEND timemaster.c
DEPEND sysoff.c
DEPEND pmc_common.c
DEPEND pmc.c
DEPEND phc_ctl.c
DEPEND phc2sys.c
DEPEND nsm.c
DEPEND hwstamp_ctl.c
DEPEND pwm.c
DEPEND version.c
DEPEND util.c
DEPEND unicast_service.c
DEPEND unicast_fsm.c
DEPEND unicast_client.c
DEPEND tsproc.c
DEPEND tlv.c
DEPEND telecom.c
DEPEND uds.c
DEPEND udp6.c
DEPEND udp.c
DEPEND transport.c
DEPEND raw.c
DEPEND tc.c
DEPEND stats.c
DEPEND sk.c
DEPEND servo.c
DEPEND pi.c
DEPEND nullf.c
DEPEND ntpshm.c
DEPEND linreg.c
DEPEND rtnl.c
DEPEND p2p_tc.c
DEPEND ptp4l.c
DEPEND print.c
DEPEND pqueue.c
DEPEND port_signaling.c
DEPEND port.c
DEPEND phc.c
DEPEND msg.c
DEPEND interface.c
DEPEND hash.c
DEPEND fsm.c
DEPEND mmedian.c
DEPEND mave.c
DEPEND filter.c
DEPEND fault.c
DEPEND e2e_tc.c
DEPEND designated_fsm.c
DEPEND config.c
DEPEND clockcheck.c
DEPEND clockadj.c
DEPEND clock.c
DEPEND bmc.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o ptp4l.o
ptp4l.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o bmc.o 
bmc.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o clock.o
clock.c
clock.c: In function ‘clock_management_fill_response’:
clock.c:444:48: warning: taking address of packed member of ‘struct
subscribe_events_np’ may result in an unaligned pointer value
[-Waddress-of-packed-member]
  444 |   clock_get_subscription(c, req, sen->bitmask, &sen->duration);
      |                                                ^~~~~~~~~~~~~~
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o clockadj.o
clockadj.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o
clockcheck.o clockcheck.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o config.o
config.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o
designated_fsm.o designated_fsm.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o e2e_tc.o
e2e_tc.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o fault.o
fault.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o filter.o
filter.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o mave.o 
mave.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o mmedian.o
mmedian.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o fsm.o 
fsm.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o hash.o 
hash.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o
interface.o interface.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o msg.o 
msg.c
msg.c: In function ‘msg_allocate’:
msg.c:269:8: warning: taking address of packed member of ‘struct
message_storage’ may result in an unaligned pointer value
[-Waddress-of-packed-member]
  269 |    m = &s->msg;
      |        ^~~~~~~
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o phc.o 
phc.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o port.o 
port.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o
port_signaling.o port_signaling.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o pqueue.o
pqueue.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o print.o
print.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o p2p_tc.o
p2p_tc.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o rtnl.o 
rtnl.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o linreg.o
linreg.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o ntpshm.o
ntpshm.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o nullf.o
nullf.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o pi.o pi.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o servo.o
servo.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o sk.o sk.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o stats.o
stats.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o tc.o tc.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o raw.o 
raw.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o
transport.o transport.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o udp.o 
udp.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o udp6.o 
udp6.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o uds.o 
uds.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o telecom.o
telecom.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o tlv.o 
tlv.c
tlv.c: In function ‘mgt_post_recv’:
tlv.c:130:16: warning: taking address of packed member of ‘struct
PhysicalAddress’ may result in an unaligned pointer value
[-Waddress-of-packed-member]
  130 |   u16 = flip16(&cd->physicalAddress->length);
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
tlv.c:144:10: warning: taking address of packed member of ‘struct PortAddress’
may result in an unaligned pointer value [-Waddress-of-packed-member]
  144 |   flip16(&cd->protocolAddress->networkProtocol);
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tlv.c:145:16: warning: taking address of packed member of ‘struct PortAddress’
may result in an unaligned pointer value [-Waddress-of-packed-member]
  145 |   u16 = flip16(&cd->protocolAddress->addressLength);
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tlv.c: In function ‘mgt_pre_send’:
tlv.c:338:11: warning: taking address of packed member of ‘struct
PhysicalAddress’ may result in an unaligned pointer value
[-Waddress-of-packed-member]
  338 |    flip16(&cd->physicalAddress->length);
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
tlv.c:339:11: warning: taking address of packed member of ‘struct PortAddress’
may result in an unaligned pointer value [-Waddress-of-packed-member]
  339 |    flip16(&cd->protocolAddress->networkProtocol);
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tlv.c:340:11: warning: taking address of packed member of ‘struct PortAddress’
may result in an unaligned pointer value [-Waddress-of-packed-member]
  340 |    flip16(&cd->protocolAddress->addressLength);
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tlv.c: In function ‘nsm_resp_post_recv’:
tlv.c:471:23: warning: taking address of packed member of ‘struct currentDS’ may
result in an unaligned pointer value [-Waddress-of-packed-member]
  471 |  net2host64_unaligned(&cds->offsetFromMaster);
      |                       ^~~~~~~~~~~~~~~~~~~~~~
tlv.c:472:23: warning: taking address of packed member of ‘struct currentDS’ may
result in an unaligned pointer value [-Waddress-of-packed-member]
  472 |  net2host64_unaligned(&cds->meanPathDelay);
      |                       ^~~~~~~~~~~~~~~~~~~
tlv.c: In function ‘nsm_resp_pre_send’:
tlv.c:507:23: warning: taking address of packed member of ‘struct currentDS’ may
result in an unaligned pointer value [-Waddress-of-packed-member]
  507 |  host2net64_unaligned(&cds->offsetFromMaster);
      |                       ^~~~~~~~~~~~~~~~~~~~~~
tlv.c:508:23: warning: taking address of packed member of ‘struct currentDS’ may
result in an unaligned pointer value [-Waddress-of-packed-member]
  508 |  host2net64_unaligned(&cds->meanPathDelay);
      |                       ^~~~~~~~~~~~~~~~~~~
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o tsproc.o
tsproc.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o
unicast_client.o unicast_client.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o
unicast_fsm.o unicast_fsm.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o
unicast_service.o unicast_service.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o util.o 
util.c
util.c: In function ‘portaddr2str’:
util.c:177:18: warning: taking address of packed member of ‘struct PortAddress’
may result in an unaligned pointer value [-Waddress-of-packed-member]
  177 |  switch (align16(&addr->networkProtocol)) {
      |                  ^~~~~~~~~~~~~~~~~~~~~~
util.c:179:15: warning: taking address of packed member of ‘struct PortAddress’
may result in an unaligned pointer value [-Waddress-of-packed-member]
  179 |   if (align16(&addr->addressLength) == 4
      |               ^~~~~~~~~~~~~~~~~~~~
util.c:184:15: warning: taking address of packed member of ‘struct PortAddress’
may result in an unaligned pointer value [-Waddress-of-packed-member]
  184 |   if (align16(&addr->addressLength) == 16
      |               ^~~~~~~~~~~~~~~~~~~~
util.c:189:38: warning: taking address of packed member of ‘struct PortAddress’
may result in an unaligned pointer value [-Waddress-of-packed-member]
  189 |  bin2str_impl(addr->address, align16(&addr->addressLength), buf,
sizeof(buf));
      |                                      ^~~~~~~~~~~~~~~~~~~~
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o version.o
version.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o pwm.o 
pwm.c
arm-none-linux-gnueabihf-gcc   ptp4l.o bmc.o clock.o clockadj.o clockcheck.o
config.o designated_fsm.o e2e_tc.o fault.o filter.o mave.o mmedian.o fsm.o
hash.o interface.o msg.o phc.o port.o port_signaling.o pqueue.o print.o p2p_tc.o
rtnl.o linreg.o ntpshm.o nullf.o pi.o servo.o sk.o stats.o tc.o raw.o
transport.o udp.o udp6.o uds.o telecom.o tlv.o tsproc.o unicast_client.o
unicast_fsm.o unicast_service.o util.o version.o pwm.o  -lm -lrt  -o ptp4l
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o
hwstamp_ctl.o hwstamp_ctl.c
arm-none-linux-gnueabihf-gcc   hwstamp_ctl.o version.o  -lm -lrt  -o hwstamp_ctl
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o nsm.o 
nsm.c
arm-none-linux-gnueabihf-gcc   nsm.o config.o filter.o mave.o mmedian.o hash.o
interface.o msg.o phc.o print.o rtnl.o sk.o raw.o transport.o udp.o udp6.o uds.o
tlv.o tsproc.o util.o version.o  -lm -lrt  -o nsm
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o phc2sys.o
phc2sys.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o
pmc_common.o pmc_common.c
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o sysoff.o
sysoff.c
arm-none-linux-gnueabihf-gcc   phc2sys.o clockadj.o clockcheck.o config.o hash.o
interface.o msg.o phc.o pmc_common.o print.o linreg.o ntpshm.o nullf.o pi.o
servo.o sk.o stats.o sysoff.o tlv.o raw.o transport.o udp.o udp6.o uds.o util.o
version.o  -lm -lrt  -o phc2sys
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o phc_ctl.o
phc_ctl.c
arm-none-linux-gnueabihf-gcc   phc_ctl.o phc.o sk.o util.o clockadj.o sysoff.o
print.o version.o  -lm -lrt  -o phc_ctl
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o pmc.o 
pmc.c
pmc.c: In function ‘pmc_show’:
pmc.c:118:13: warning: taking address of packed member of ‘struct
PhysicalAddress’ may result in an unaligned pointer value
[-Waddress-of-packed-member]
  118 |     align16(&cd->physicalAddress->length)),
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
pmc.c:119:12: warning: taking address of packed member of ‘struct PortAddress’
may result in an unaligned pointer value [-Waddress-of-packed-member]
  119 |    align16(&cd->protocolAddress->networkProtocol),
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arm-none-linux-gnueabihf-gcc   pmc.o config.o hash.o interface.o msg.o phc.o
pmc_common.o print.o sk.o tlv.o raw.o transport.o udp.o udp6.o uds.o util.o
version.o  -lm -lrt  -o pmc
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o
timemaster.o timemaster.c
arm-none-linux-gnueabihf-gcc   timemaster.o phc.o print.o rtnl.o sk.o util.o
version.o  -lm -lrt  -o timemaster
arm-none-linux-gnueabihf-gcc -Wall -DVER=2.0-00120-g1e22eca  -D_GNU_SOURCE
-DHAVE_CLOCK_ADJTIME -DHAVE_POSIX_SPAWN -DHAVE_ONESTEP_SYNC     -c -o phc2pwm.o
phc2pwm.c
arm-none-linux-gnueabihf-gcc   phc2pwm.o util.o pwm.o phc.o print.o sk.o  -lm
-lrt  -o phc2pwm


Thanks and  regards,
Lokesh


_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to