Skip to contentSkip to conversation

linux-next: build warning after merge of the scmi tree

DISCUSSION Stephen Rothwell 2 participants 2 messages Jul 8, 2020 – Jul 9, 2020 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the scmi tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

drivers/firmware/arm_scmi/clock.c: In function 'rate_cmp_func':
drivers/firmware/arm_scmi/clock.c:128:12: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
128 | u64 *r1 = _r1, *r2 = _r2;
| ^~~
drivers/firmware/arm_scmi/clock.c:128:23: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
128 | u64 *r1 = _r1, *r2 = _r2;
| ^~~

Introduced by commit

f0a2500a2a05 ("firmware: arm_scmi: Keep the discrete clock rates sorted")

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 13 lines · Stephen Rothwell

Hi all,

After merging the scmi tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

drivers/firmware/arm_scmi/clock.c: In function 'rate_cmp_func':
drivers/firmware/arm_scmi/clock.c:128:12: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
128 | u64 *r1 = _r1, *r2 = _r2;
| ^~~
drivers/firmware/arm_scmi/clock.c:128:23: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
128 | u64 *r1 = _r1, *r2 = _r2;
| ^~~

Quoted 4 lines

Introduced by commit

f0a2500a2a05 ("firmware: arm_scmi: Keep the discrete clock rates sorted")

Sorry for both the issues, I will update the tree with proper patch.

Signature · 2 lines
Regards,
Sudeep