ltq-vmmc: fix ignored-qualifiers warning
authorShiji Yang <[email protected]>
Sat, 10 May 2025 09:19:18 +0000 (17:19 +0800)
committerHauke Mehrtens <[email protected]>
Sat, 18 Oct 2025 12:21:01 +0000 (14:21 +0200)
commit5e095c87e254c93102f5906fa149672a0961ce2b
treecdcf08a0d76f663241d35fca1bff7e2ee0d7c164
parent0d02cf9e3464c9f415877bf0a7ce6416a498cd18
ltq-vmmc: fix ignored-qualifiers warning

NULL and fixed addresses are constant, const qualifier are useless.

/home/db/owrt/build_dir/target-mips_24kc_musl/linux-lantiq_xrx200/drv_vmmc-1.9.0/src/mps/drv_mps_vmmc_ar9.c:47:1: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
   47 | const void (*ifx_bsp_basic_mps_decrypt)(unsigned int addr, int n) = NULL;
      | ^~~~~
/home/db/owrt/build_dir/target-mips_24kc_musl/linux-lantiq_xrx200/drv_vmmc-1.9.0/src/mps/drv_mps_vmmc_ar9.c:246:49: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  246 |                    ifx_bsp_basic_mps_decrypt = (const void (*)(unsigned int, int))0xbf0017c4;
      |                                                 ^~~~~
/home/db/owrt/build_dir/target-mips_24kc_musl/linux-lantiq_xrx200/drv_vmmc-1.9.0/src/mps/drv_mps_vmmc_ar9.c:249:49: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  249 |                    ifx_bsp_basic_mps_decrypt = (const void (*)(unsigned int, int))0xbf001ea4;
      |                                                 ^~~~~
/home/db/owrt/build_dir/target-mips_24kc_musl/linux-lantiq_xrx200/drv_vmmc-1.9.0/src/mps/drv_mps_vmmc_ar9.c:252:49: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers]
  252 |                    ifx_bsp_basic_mps_decrypt = (const void (*)(unsigned int, int))0xbf001f38;
      |                                                 ^~~~~

Signed-off-by: Shiji Yang <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/18744
Signed-off-by: Robert Marko <[email protected]>
(cherry picked from commit ac8e876a6e15ee6ea0724c824feea23c79f1a444)
Signed-off-by: Nora Matthias Schiffer <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20440
Signed-off-by: Hauke Mehrtens <[email protected]>
package/kernel/lantiq/ltq-vmmc/patches/500-ar9_vr9.patch