]> git.ipfire.org Git - thirdparty/openwrt.git/commit
rtl8812au-ct: fix compilation with GCC 15 23957/head
authorHauke Mehrtens <hauke@hauke-m.de>
Fri, 26 Jun 2026 22:51:21 +0000 (00:51 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 27 Jun 2026 09:45:04 +0000 (11:45 +0200)
commitaea3d6cee16c98b5a799a3a6f24fd2282a6de3a7
tree7f902604cbd37b417ae6b79d7ec0eed5260048ff
parent6b16b96e433e7d30abd6cf3bed2eeffe658dacc7
rtl8812au-ct: fix compilation with GCC 15

GCC 15 enables -Wheader-guard and the kernel module build treats
warnings as errors, so the mismatched include guards in three driver
headers break the build:

  include/rtl8812a_sreset.h:20: error: header guard
  '_RTL88812A_SRESET_H_' followed by '#define' of a different macro
  [-Werror=header-guard]

Add a patch making each '#ifndef' match its '#define'. rtl8192e_sreset.h
was a copy/paste of the rtl8812a guard, so it gets its own
'_RTL8192E_SRESET_H_' name instead of duplicating '_RTL8812A_SRESET_H_'.

Assisted-by: Claude:claude-opus-4-8
Link: https://github.com/openwrt/openwrt/pull/23957
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/kernel/rtl8812au-ct/patches/012-fix-mismatched-include-guards.patch [new file with mode: 0644]