mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-12-06 12:44:00 -05:00
treewide: Fix const compile errors
Fixes compile errors caused by static const arrays;
The lantiq firmware is const now.
ATTRIBUTE_GROUPS() does not take const.
Fixes: 5b263f3360 ("treewide: add const to static arrays")
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
6f2325b23d
commit
cd9229d061
@ -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;
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -820,7 +820,7 @@ Cc: Robert Marko <robert.marko@sartura.hr>
|
||||
+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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user