Skip to content

Commit 16bfb0c

Browse files
author
Muralidharan Karicheri
committed
Merge pull request torvalds#170 in PROCESSOR-SDK/processor-sdk-linux from plsdk-2838 to processor-sdk-linux-4.19.y
* commit 'ab13039561a188d1029b94f19192abab8e978468': net: ethernet: ti: ptp_bc/iep: fix compiler warning watchdog: keystone_wdt: fix compiler warning
2 parents f0b79d4 + ab13039 commit 16bfb0c

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

drivers/net/ethernet/ti/iep.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,6 +1096,9 @@ int iep_register(struct iep *iep)
10961096
PTP_BC_CLOCK_TYPE_PRUICSS2);
10971097

10981098
pr_info("iep ptp bc clkid %d\n", iep->bc_clkid);
1099+
/* HACK: call the unused ptp_bc API to avoid compiler warning
1100+
*/
1101+
ptp_bc_mux_ctrl_register(NULL, NULL, NULL);
10991102
return 0;
11001103
}
11011104

drivers/net/ethernet/ti/ptp_bc.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,11 @@ EXPORT_SYMBOL_GPL(ptp_bc_clock_unregister);
196196
void ptp_bc_mux_ctrl_register(void *ctx, spinlock_t *lock,
197197
ptp_bc_mux_ctrl_handle_t handler)
198198
{
199-
bc_mux_ctrl_handler = handler;
200-
bc_mux_ctrl_ctx = ctx;
201-
bc_mux_lock = lock;
199+
if (ctx && lock && handler) {
200+
bc_mux_ctrl_handler = handler;
201+
bc_mux_ctrl_ctx = ctx;
202+
bc_mux_lock = lock;
203+
}
202204
}
203205
EXPORT_SYMBOL_GPL(ptp_bc_mux_ctrl_register);
204206

drivers/watchdog/keystone_wdt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ static int keystone_wdt_ping(struct watchdog_device *wdd)
9999
{
100100
struct keystone_wdt_device *wdt = watchdog_get_drvdata(wdd);
101101

102-
pr_debug("%s, %x (%x): jiffies=%lu\n", __func__, wdt, wdt->base,
102+
pr_debug("%s, %p (%p): jiffies=%lu\n", __func__, wdt, wdt->base,
103103
jiffies);
104104

105105
/* put watchdog in service state */

0 commit comments

Comments
 (0)