kernel: lantiq: vrx518_tc: add patch fix compilation warning for ptm_tc
authorChristian Marangi <ansuelsmth@gmail.com>
Tue, 9 May 2023 21:32:29 +0000 (23:32 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 12 May 2023 01:15:44 +0000 (03:15 +0200)
commitd088282ddd88dfaba222b60d9db9f13a87948865
tree82123e48de711ecd71f8dbb63130907d13125f05
parent220739aa0d2fd6e50a4ac74e8ef71ff9f3bfb116
kernel: lantiq: vrx518_tc: add patch fix compilation warning for ptm_tc

Alloc MIB struct dynamically instead to fix compilation warning for
stack limit.
Fix compilation warning:
/__w/openwrt/openwrt/openwrt/build_dir/target-arm-openwrt-linux-muslgnueabi_musl/linux-ipq40xx_chromium/vrx518_tc_drv-ugw_8.5.2.10/dcdp/ptm_tc.c: In function 'ptm_tc_get_stats':
/__w/openwrt/openwrt/openwrt/build_dir/target-arm-openwrt-linux-muslgnueabi_musl/linux-ipq40xx_chromium/vrx518_tc_drv-ugw_8.5.2.10/dcdp/ptm_tc.c:463:1: error: the frame size of 1032 bytes is larger than 1024 bytes [-Werror=frame-larger-than=]
  463 | }
      | ^
cc1: all warnings being treated as errors

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
package/kernel/lantiq/vrx518_tc/patches/205-dcdp-ptm_tc-dynamically-alloc-mib.patch [new file with mode: 0644]