kernel: lantiq: vrx518_tc: add patch fix compilation warning for atm_tc
authorChristian Marangi <ansuelsmth@gmail.com>
Tue, 9 May 2023 21:32:16 +0000 (23:32 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 12 May 2023 01:15:44 +0000 (03:15 +0200)
commit220739aa0d2fd6e50a4ac74e8ef71ff9f3bfb116
treebee0a39e7d0ea94942450e9c7121b0803f552a36
parentf3fc9ac1aa99165b4b9b88db6c2274c8e90b4c18
kernel: lantiq: vrx518_tc: add patch fix compilation warning for atm_tc

Add patch fixing compilation warning for atm_tc module.
Fix compilation warning:
/home/ansuel/openwrt-ansuel/openwrt/build_dir/target-arm-openwrt-linux-muslgnueabi_musl/linux-ipq40xx_generic/vrx518_tc_drv-ugw_8.5.2.10/dcdp/atm_tc.c: In function 'print_datetime':
/home/ansuel/openwrt-ansuel/openwrt/build_dir/target-arm-openwrt-linux-muslgnueabi_musl/linux-ipq40xx_generic/vrx518_tc_drv-ugw_8.5.2.10/dcdp/atm_tc.c:768:32: error: argument to 'sizeof' in 'snprintf' call is the same expression as the destination; did you mean to provide an explicit length? [-Werror=sizeof-pointer-memaccess]
  768 |         snprintf(buffer, sizeof(buffer), "%s.%06d", tmbuf, (int)datetime->tv_nsec / 1000);
      |                                ^
cc1: all warnings being treated as errors

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
package/kernel/lantiq/vrx518_tc/patches/204-dcdp-atm_tc-fix-compilation-warning.patch [new file with mode: 0644]