Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 3 participants 4 messages Jan 17, 2022 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the origin tree, today's linux-next build (powerpc allnoconfig) produced this warning:

kernel/sysctl.c:125:12: warning: 'one_thousand' defined but not used [-Wunused-variable]

  125 | static int one_thousand = 1000;
      |            ^~~~~~~~~~~~

Introduced by commit

39c65a94cd96 ("mm/pagealloc: sysctl: change watermark_scale_factor max limit to 30%")

It seems to only be used when CONFIG_PERF_EVENTS is set.

I didn't see it in linux-next because there is a patch later in the akpm series (not yet in Linus' tree) that removes this variable.

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

Hi all,

After merging the origin tree, today's linux-next build (powerpc allnoconfig) produced this warning:

kernel/sysctl.c:125:12: warning: 'one_thousand' defined but not used [-Wunused-variable]

  125 | static int one_thousand = 1000;
      |            ^~~~~~~~~~~~
Quoted 8 lines

Introduced by commit

39c65a94cd96 ("mm/pagealloc: sysctl: change watermark_scale_factor max limit to 30%")

It seems to only be used when CONFIG_PERF_EVENTS is set.

I didn't see it in linux-next because there is a patch later in the akpm series (not yet in Linus' tree) that removes this variable.

Sorry, I saw the warning before when backporting this patch but I didn't realize that the followup patches refactoring this code would not be merged.
Posted a fix at:
https://lore.kernel.org/all/[email protected]/
Thanks!

Quoted 4 lines

--
Cheers,
Stephen Rothwell

#2 lore raw

Hi Suren,

Quoted 4 lines · On Sun, 16 Jan 2022 17:27:34 -0800 Suren Baghdasaryan <[email protected]> wrote:

Sorry, I saw the warning before when backporting this patch but I didn't realize that the followup patches refactoring this code would not be merged.

Hopefully they will be merged shortly. Andrew?

Signature · 2 lines
Cheers,
Stephen Rothwell
#3 lore raw
Quoted 10 lines · On Mon, 17 Jan 2022 13:24:34 +1100 Stephen Rothwell <[email protected]>…

Hi Suren,

Quoted 4 lines · On Sun, 16 Jan 2022 17:27:34 -0800 Suren Baghdasaryan <[email protected]> wrote:

Sorry, I saw the warning before when backporting this patch but I didn't realize that the followup patches refactoring this code would not be merged.

Hopefully they will be merged shortly. Andrew?

Sorry didn't see this on x86_64. sysctl-move-some-boundary-constants-from-sysctlc-to-sysctl_vals.patch fixes this. Shall be sending upstream in a few days.