openwrt/package/kernel/mac80211/patches/build
Sean Khan 02e8285051 mac80211: fix kconf build warnings
This patch cleans up the following warnings during build:

"warning: format not a string literal"

```
conf.c: In function 'conf_askvalue':
conf.c:89:17: warning: format not a string literal and no format arguments [-Wformat-security]
    89 |                 printf(_("(NEW) "));
      |                 ^~~~~~
conf.c: In function 'conf_choice':
conf.c:285:33: warning: format not a string literal and no format arguments [-Wformat-security]
  285 |                                 printf(_(" (NEW)"));
      |                                 ^~~~~~
conf.c: In function 'check_conf':
conf.c:440:41: warning: format not a string literal and no format arguments [-Wformat-security]
  440 |                                         printf(_("*\n* Restart config...\n*\n"));
      |                                         ^~~~~~
conf.c: In function 'main':
conf.c:617:41: warning: format not a string literal and no format arguments [-Wformat-security]
  617 |                                         _("\n*** The configuration requires explicit update.\n\n"));
      |                                         ^
conf.c:669:25: warning: format not a string literal and no format arguments [-Wformat-security]
  669 |                         fprintf(stderr, _("\n*** Error during writing of the configuration.\n\n"));
      |                         ^~~~~~~
conf.c:673:25: warning: format not a string literal and no format arguments [-Wformat-security]
  673 |                         fprintf(stderr, _("\n*** Error during update of the configuration.\n\n"));
      |                         ^~~~~~~
conf.c:684:25: warning: format not a string literal and no format arguments [-Wformat-security]
  684 |                         fprintf(stderr, _("\n*** Error during writing of the configuration.\n\n"));
      |                         ^~~~~~~
```

And POSIX Yacc warnings
```
lex -ozconf.lex.c -L zconf.l
yacc -ozconf.tab.c -t -l zconf.y
zconf.y:34.1-7: warning: POSIX Yacc does not support %expect [-Wyacc]
    34 | %expect 32
      | ^~~~~~~
zconf.y:97.1-11: warning: POSIX Yacc does not support %destructor [-Wyacc]
    97 | %destructor {
      | ^~~~~~~~~~~
gcc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -DKBUILD_NO_NLS   -c -o zconf.tab.o zconf.tab.c
gcc   conf.o zconf.tab.o   -o conf
```

After:

gcc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -DKBUILD_NO_NLS   -c -o conf.o conf.c
yacc -Wno-yacc -ozconf.tab.c -t -l zconf.y
gcc -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -DKBUILD_NO_NLS   -c -o zconf.tab.o zconf.tab.c
gcc   conf.o zconf.tab.o   -o conf

Signed-off-by: Sean Khan <datapronix@protonmail.com>
Link: https://github.com/openwrt/openwrt/pull/15953
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-07-21 14:01:21 +02:00
..
000-fix_kconfig.patch mac80211: rebase ontop of v4.18.5 2018-09-26 16:35:33 +02:00
001-fix_build.patch mac80211: update to version 6.9.9 2024-07-12 16:38:28 +02:00
002-change_allconfig.patch mac80211: Update to version 5.3-rc4-1 2019-08-17 13:41:16 +02:00
003-remove_bogus_modparams.patch mac80211: Update to version 5.11.22-1 2021-10-23 23:17:23 +02:00
004-fix-kconf-compiling.patch mac80211: compile kconf with host gcc 2023-10-28 21:34:23 +02:00
005-fix-kconf-warnings.patch mac80211: fix kconf build warnings 2024-07-21 14:01:21 +02:00
012-kernel_build_check.patch mac80211: rebase ontop of v4.18.5 2018-09-26 16:35:33 +02:00
060-no_local_ssb_bcma.patch mac80211: update to version 6.9.9 2024-07-12 16:38:28 +02:00
070-remove-broken-wext-select.patch mac80211: update to linux 6.1-rc8 2022-12-10 15:15:19 +01:00
090-bcma-otp.patch mac80211: update to linux 6.1-rc8 2022-12-10 15:15:19 +01:00
100-backports-drop-QRTR-and-MHI.patch mac80211: update to version 6.9.9 2024-07-12 16:38:28 +02:00
110-backport_namepace_const.patch mac80211: update to version 6.5 2023-09-11 14:29:36 +02:00
120-headers_version_fix.patch mac80211: update to version 6.9.9 2024-07-12 16:38:28 +02:00
130-iommu_backport.patch mac80211: fix build regressions on linux 6.1 2023-09-11 18:54:13 +02:00
200-iwlwifi_thermal_backport.patch mac80211: update to version 6.9.9 2024-07-12 16:38:28 +02:00
210-backport_genl_split_ops.patch mac80211: update to version 6.9.9 2024-07-12 16:38:28 +02:00
220-list-don-t-backport-list_count_nodes.patch kernel: backport list_count_nodes() 2023-12-15 11:44:38 +01:00
230-brcmfmac_usb_driver_backport.patch mac80211: update to version 6.9.9 2024-07-12 16:38:28 +02:00