Make sure port_capable() can be accessed by the signaling construct in port_signaling.c
Signed-off-by: Vedang Patel <vedang.pa...@intel.com> --- port.c | 3 +-- port_private.h | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/port.c b/port.c index a423c6e37a86..a4cb7322ee55 100644 --- a/port.c +++ b/port.c @@ -55,7 +55,6 @@ enum syfu_event { FUP_MATCH, }; -static int port_capable(struct port *p); static int port_is_ieee8021as(struct port *p); static void port_nrate_initialize(struct port *p); @@ -591,7 +590,7 @@ static int peer_prepare_and_send(struct port *p, struct ptp_message *msg, return 0; } -static int port_capable(struct port *p) +int port_capable(struct port *p) { if (!port_is_ieee8021as(p)) { /* Normal 1588 ports are always capable. */ diff --git a/port_private.h b/port_private.h index 593eb76fbe48..cb8bb60f3087 100644 --- a/port_private.h +++ b/port_private.h @@ -183,5 +183,6 @@ int process_signaling(struct port *p, struct ptp_message *m); void process_sync(struct port *p, struct ptp_message *m); int source_pid_eq(struct ptp_message *m1, struct ptp_message *m2); void ts_add(tmv_t *ts, Integer64 correction); +int port_capable(struct port *p); #endif -- 2.7.3 _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel