treewide: Fix const compile errors
authorHauke Mehrtens <[email protected]>
Wed, 3 Dec 2025 21:46:44 +0000 (22:46 +0100)
committerHauke Mehrtens <[email protected]>
Wed, 3 Dec 2025 22:28:43 +0000 (23:28 +0100)
Fixes compile errors caused by static const arrays;

The lantiq firmware is const now.

ATTRIBUTE_GROUPS() does not take const.

Fixes: 5b263f3360b ("treewide: add const to static arrays")
Signed-off-by: Hauke Mehrtens <[email protected]>
package/kernel/lantiq/ltq-atm/src/ifxmips_atm_amazon_se.c
package/kernel/lantiq/ltq-atm/src/ifxmips_atm_ar9.c
package/kernel/lantiq/ltq-atm/src/ifxmips_atm_danube.c
package/kernel/lantiq/ltq-atm/src/ifxmips_atm_vr9.c
package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_amazon_se.c
package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_ar9.c
package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_danube.c
package/kernel/lantiq/ltq-ptm/src/ifxmips_ptm_vr9.c
target/linux/mvebu/patches-6.12/902-drivers-mfd-Add-a-driver-for-IEI-WT61P803-PUZZLE-MCU.patch

index 734fe299615619b9e0d158bdfd398494063dcf35..db40bbcaa62a08a442460c5e5e9fa8246df4518a 100644 (file)
@@ -220,7 +220,7 @@ static inline void clear_share_buffer(void)
  *    int       --- 0:    Success
  *                  else:           Error Code
  */
-static inline int pp32_download_code(u32 *code_src, unsigned int code_dword_len, u32 *data_src, unsigned int data_dword_len)
+static inline int pp32_download_code(const u32 *code_src, unsigned int code_dword_len, const u32 *data_src, unsigned int data_dword_len)
 {
     volatile u32 *dest;
 
index 28ac8f6c7aa66c769364151187c59b88c4cd5cac..e9949d6af31e8ad8b69324a408687ca9aea7ab5b 100644 (file)
@@ -159,7 +159,7 @@ static inline void clear_share_buffer(void)
         IFX_REG_W32(0, p++);
 }
 
-static inline int pp32_download_code(u32 *code_src, unsigned int code_dword_len, u32 *data_src, unsigned int data_dword_len)
+static inline int pp32_download_code(const u32 *code_src, unsigned int code_dword_len, const u32 *data_src, unsigned int data_dword_len)
 {
     volatile u32 *dest;
 
index 57a50e322d352ae42729315c982ca9588bc6f4de..81df6386fb9ca5d0b10aceaab0d615088c5df3d0 100644 (file)
@@ -106,7 +106,7 @@ static inline void reset_ppe(struct platform_device *pdev)
  *    int       --- 0:    Success
  *                  else:           Error Code
  */
-static inline int danube_pp32_download_code(u32 *code_src, unsigned int code_dword_len, u32 *data_src, unsigned int data_dword_len)
+static inline int danube_pp32_download_code(const u32 *code_src, unsigned int code_dword_len, const u32 *data_src, unsigned int data_dword_len)
 {
        volatile u32 *dest;
 
index ffe079f3df5a46523bbb6044b298479f5f8d8f22..f6602db921d5178d9290dfa94bb2af404d0efd1f 100644 (file)
@@ -91,7 +91,7 @@ static inline int vr9_reset_ppe(struct platform_device *pdev)
        return 0;
 }
 
-static inline int vr9_pp32_download_code(int pp32, u32 *code_src, unsigned int code_dword_len, u32 *data_src, unsigned int data_dword_len)
+static inline int vr9_pp32_download_code(int pp32, const u32 *code_src, unsigned int code_dword_len, const u32 *data_src, unsigned int data_dword_len)
 {
        unsigned int clr, set;
        volatile u32 *dest;
index 7548c6d357b361814ef92e033f65bba0d3faf7f4..541e3dc094b4ef3162efdb09495ecc72a0c7a54e 100644 (file)
@@ -219,7 +219,7 @@ static inline void clear_share_buffer(void)
  *    int       --- 0:    Success
  *                  else:           Error Code
  */
-static inline int pp32_download_code(u32 *code_src, unsigned int code_dword_len, u32 *data_src, unsigned int data_dword_len)
+static inline int pp32_download_code(const u32 *code_src, unsigned int code_dword_len, const u32 *data_src, unsigned int data_dword_len)
 {
     volatile u32 *dest;
 
index e83268ee3631451526e5fbe9322d01081016b859..65a71402842dac1accc0e42ec0cc371e338988a3 100644 (file)
@@ -242,7 +242,7 @@ static inline void clear_share_buffer(void)
  *    int       --- 0:    Success
  *                  else:           Error Code
  */
-static inline int pp32_download_code(u32 *code_src, unsigned int code_dword_len, u32 *data_src, unsigned int data_dword_len)
+static inline int pp32_download_code(const u32 *code_src, unsigned int code_dword_len, const u32 *data_src, unsigned int data_dword_len)
 {
     volatile u32 *dest;
 
index ef20e9cb45340fb9454a4e48acfe5c8152dea944..8ddf6f82740b13414f55701284c19e6f8ce366e6 100644 (file)
@@ -214,7 +214,7 @@ static inline void clear_share_buffer(void)
  *    int       --- 0:    Success
  *                  else:           Error Code
  */
-static inline int pp32_download_code(u32 *code_src, unsigned int code_dword_len, u32 *data_src, unsigned int data_dword_len)
+static inline int pp32_download_code(const u32 *code_src, unsigned int code_dword_len, const u32 *data_src, unsigned int data_dword_len)
 {
     volatile u32 *dest;
 
index 10e71cb1d9807409aff8404c5dbf303f80171222..41a0bbbd9fed69d6bc75d5b7f2a1f511878ef7df 100644 (file)
@@ -202,7 +202,7 @@ static inline void clear_share_buffer(void)
  *    int       --- 0:    Success
  *                  else:           Error Code
  */
-static inline int pp32_download_code(int pp32, u32 *code_src, unsigned int code_dword_len, u32 *data_src, unsigned int data_dword_len)
+static inline int pp32_download_code(int pp32, const u32 *code_src, unsigned int code_dword_len, const u32 *data_src, unsigned int data_dword_len)
 {
     unsigned int clr, set;
     volatile u32 *dest;
index e697a64066b9edde44fb4ff8d02c85651d0a40ed..6f99497c36daa62971e4d0e455be4cc6339716f2 100644 (file)
@@ -820,7 +820,7 @@ Cc: Robert Marko <[email protected]>
 +static IEI_WT61P803_PUZZLE_ATTR_RW(power_loss_recovery, IEI_WT61P803_PUZZLE_POWER_LOSS_RECOVERY, 0);
 +static IEI_WT61P803_PUZZLE_ATTR_RO(power_status, IEI_WT61P803_PUZZLE_POWER_STATUS, 0);
 +
-+static const struct attribute *iei_wt61p803_puzzle_attrs[] = {
++static struct attribute *iei_wt61p803_puzzle_attrs[] = {
 +      &dev_attr_version.dev_attr.attr,
 +      &dev_attr_build_info.dev_attr.attr,
 +      &dev_attr_bootloader_mode.dev_attr.attr,