Hi Gang,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on tip/master]
[also build test WARNING on tip/sched/core linux/master linus/master v5.16-rc2]
[cannot apply to next-20211124]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url:
https://github.com/0day-ci/linux/commits/Gang-Li/sched-numa-add-per-proce...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
7284bd9822f33a3be80ac6d92b4540d6dcfb5219
config: powerpc64-defconfig
(
https://download.01.org/0day-ci/archive/20211124/202111242116.IDH0eWzM-lk...)
compiler: powerpc64-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://github.com/0day-ci/linux/commit/0ba51a6062697d2109e0cf86470e354ed...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Gang-Li/sched-numa-add-per-process-numa_balancing/20211124-162550
git checkout 0ba51a6062697d2109e0cf86470e354ed005fab8
# save the config file to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
fs/proc/task_mmu.c: In function 'task_mem':
> fs/proc/task_mmu.c:36:13: warning: variable
'numab_enabled' set but not used [-Wunused-but-set-variable]
36 |
int numab_enabled;
| ^~~~~~~~~~~~~
vim +/numab_enabled +36 fs/proc/task_mmu.c
28
29 #define SEQ_PUT_DEC(str, val) \
30 seq_put_decimal_ull_width(m, str, (val) << (PAGE_SHIFT-10), 8)
31 void task_mem(struct seq_file *m, struct mm_struct *mm)
32 {
33 unsigned long text, lib, swap, anon, file, shmem;
34 unsigned long hiwater_vm, total_vm, hiwater_rss, total_rss;
35 #ifdef CONFIG_NUMA_BALANCING
36 int numab_enabled;
37 #endif
38
39 anon = get_mm_counter(mm, MM_ANONPAGES);
40 file = get_mm_counter(mm, MM_FILEPAGES);
41 shmem = get_mm_counter(mm, MM_SHMEMPAGES);
42 #ifdef CONFIG_NUMA_BALANCING
43 numab_enabled = mm->numab_enabled;
44 #endif
45
46 /*
47 * Note: to minimize their overhead, mm maintains hiwater_vm and
48 * hiwater_rss only when about to *lower* total_vm or rss. Any
49 * collector of these hiwater stats must therefore get total_vm
50 * and rss too, which will usually be the higher. Barriers? not
51 * worth the effort, such snapshots can always be inconsistent.
52 */
53 hiwater_vm = total_vm = mm->total_vm;
54 if (hiwater_vm < mm->hiwater_vm)
55 hiwater_vm = mm->hiwater_vm;
56 hiwater_rss = total_rss = anon + file + shmem;
57 if (hiwater_rss < mm->hiwater_rss)
58 hiwater_rss = mm->hiwater_rss;
59
60 /* split executable areas between text and lib */
61 text = PAGE_ALIGN(mm->end_code) - (mm->start_code & PAGE_MASK);
62 text = min(text, mm->exec_vm << PAGE_SHIFT);
63 lib = (mm->exec_vm << PAGE_SHIFT) - text;
64
65 swap = get_mm_counter(mm, MM_SWAPENTS);
66 SEQ_PUT_DEC("VmPeak:\t", hiwater_vm);
67 SEQ_PUT_DEC(" kB\nVmSize:\t", total_vm);
68 SEQ_PUT_DEC(" kB\nVmLck:\t", mm->locked_vm);
69 SEQ_PUT_DEC(" kB\nVmPin:\t", atomic64_read(&mm->pinned_vm));
70 SEQ_PUT_DEC(" kB\nVmHWM:\t", hiwater_rss);
71 SEQ_PUT_DEC(" kB\nVmRSS:\t", total_rss);
72 SEQ_PUT_DEC(" kB\nRssAnon:\t", anon);
73 SEQ_PUT_DEC(" kB\nRssFile:\t", file);
74 SEQ_PUT_DEC(" kB\nRssShmem:\t", shmem);
75 SEQ_PUT_DEC(" kB\nVmData:\t", mm->data_vm);
76 SEQ_PUT_DEC(" kB\nVmStk:\t", mm->stack_vm);
77 seq_put_decimal_ull_width(m,
78 " kB\nVmExe:\t", text >> 10, 8);
79 seq_put_decimal_ull_width(m,
80 " kB\nVmLib:\t", lib >> 10, 8);
81 seq_put_decimal_ull_width(m,
82 " kB\nVmPTE:\t", mm_pgtables_bytes(mm) >> 10, 8);
83 SEQ_PUT_DEC(" kB\nVmSwap:\t", swap);
84 seq_puts(m, " kB\n");
85 #ifdef CONFIG_NUMA_BALANCING
86 seq_puts(m, "NumaB_enabled:\t");
87 switch (mm->numab_enabled) {
88 case NUMAB_DEFAULT:
89 seq_puts(m, "default");
90 break;
91 case NUMAB_DISABLED:
92 seq_puts(m, "disabled");
93 break;
94 case NUMAB_ENABLED:
95 seq_puts(m, "enabled");
96 break;
97 default:
98 seq_puts(m, "unknown");
99 break;
100 }
101 seq_putc(m, '\n');
102 #endif
103 hugetlb_report_usage(m, mm);
104 }
105 #undef SEQ_PUT_DEC
106
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org