profiles: qca_ipq95xx: Fix compilation issues when CONFIG_DYNAMIC_DEBUG is disabled

When CONFIG_KERNEL_DYNAMIC_DEBUG is disabled in the build configuration,
several nss packages fail to compile due to unused variable warnings
being treated as errors.

This commit applies patches to fix compilation issues in the following
packages from feed-qca:
- qca-nss-ppe
- qca-nss-gre-mgr
- qca-nss-ppe-clients
- qca-nss-dscpstats

The patches mark debug-only variables with __maybe_unused attribute and
add missing header includes, allowing these packages to compile
successfully regardless of the CONFIG_DYNAMIC_DEBUG setting.

CONFIG_KERNEL_DYNAMIC_DEBUG is also removed from the build configuration
.

Closes: PCF-2135
Closes: PCF-2136
Closes: PCF-2137
Closes: PCF-2138

Signed-off-by: Marvin Lu <marvin.lu@wnc.com.tw>
This commit is contained in:
Marvin Lu 2025-12-17 10:49:34 +08:00 committed by Petr Štetiar
parent e344f9d4ed
commit aa52f6d01d
No known key found for this signature in database
GPG Key ID: 58EE120F30CC02D3

View File

@ -8,7 +8,7 @@ description: Build image for prpl Foundation Freedom board
feeds:
- name: feed_qca
uri: https://gitlab.com/prpl-foundation/prplOS/feed-qca.git
revision: dev/ath13.1-freedom@dbfb4f94f59cbc42defe9f665db218084d3d70f2
revision: dev/ath13.1-freedom@0d3820f29ac5840d019badaceb6811c6f6c0967f
packages:
- ipq95xx
@ -48,7 +48,6 @@ diffconfig: |
CONFIG_BUSYBOX_CUSTOM=y
CONFIG_BUSYBOX_CONFIG_I2CSET=y
CONFIG_PACKAGE_ATH_DEBUG=y
CONFIG_KERNEL_DYNAMIC_DEBUG=y
# CONFIG_PACKAGE_wififw_mount_script is not set
# CONFIG_KERNEL_SWAP is not set
CONFIG_PACKAGE_ppecfg=y