+1
−5
Loading
driver inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IAQ6G2 ---------------------------------------------------------------------- smatch report a error: hisi_ptp_create_clock() error: snprintf() is printing too much 32 vs 16 The PTP_CLOCK_NAME_LEN is not define in some kernel version, and the old kernel is defined as 16, new kernel is defined as 32, so report this error. Use sizeof() to fix it. Fixes: c64545e1 ("net: hns3: add support for Hisilicon ptp sync device") Signed-off-by:Yonglong Liu <liuyonglong@huawei.com> Signed-off-by:
Hao Chen <chenhao418@huawei.com>