On Wed, Nov 02, 2022 at 01:26:45PM -0700, Jacob Keller wrote:
> Add a new function to phc_ctl to display the devices pin configuration
> data. First, obtain the device capabilities to determine the number of
> pins. Then, for each pin, print the name, function, and channel
> information.
> 
> Signed-off-by: Jacob Keller <jacob.e.kel...@intel.com>

So, I wanted to apply this, but it doesn't build against kernel 3.0
(which is our earliest supported kernel)

/home/richard/git/linuxptp/phc_ctl.c: In function ‘do_get_pins_cfg’:
/home/richard/git/linuxptp/phc_ctl.c:371:35: error: ‘PTP_PIN_GETFUNC’ 
undeclared (first use in this function); did you mean ‘PTP_PIN_SETFUNC’?
  371 |   if (ioctl(CLOCKID_TO_FD(clkid), PTP_PIN_GETFUNC, &pin_desc)) {
      |                                   ^~~~~~~~~~~~~~~
      |                                   PTP_PIN_SETFUNC


Looks like that that macro is needed in missing.h

Thanks,
Richard


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

Reply via email to