greearb / ath10k-ct

Stand-alone ath10k driver based on Candela Technologies Linux kernel.
111 stars 41 forks source link

ath10k-ct: fix compilation warning for debug level #213

Closed Ansuel closed 1 year ago

Ansuel commented 1 year ago

Rework read_debug_level function as it does exceed the stack limit for some arch. Fix compilation error: /w/openwrt/openwrt/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-malta_be/ath10k-ct-regular/ath10k-ct-2022-05-13-f808496f/ath10k-5.15/debug.c: In function 'ath10k_read_debug_level': /w/openwrt/openwrt/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-malta_be/ath10k-ct-regular/ath10k-ct-2022-05-13-f808496f/ath10k-5.15/debug.c:1388:1: error: the frame size of 1440 bytes is larger than 1024 bytes [-Werror=frame-larger-than=] 1388 | } | ^


@greearb tell me what kernel version should be updated.

greearb commented 1 year ago

What is earliest kernel you'd like this ported to? 5.15? Easiest for me is if you could email me a patch against one of the kernels to greearb@candelatech.com, then I'll apply to my various kernels, and re-sync with ath10k-ct driver repo.

Ansuel commented 1 year ago

@greearb 5.15 is what we are currently using. (so 5.15 and up should be good) This code is not present in upstream ath10k so I can't target a kernel and generate a patch, any alternative way to facilitate for you this?