* Re: [PATCH v3 4/4] mm: memcg: use non-unified stats flushing for userspace reads
[not found] <20230830175335.1536008-5-yosryahmed@google.com>
@ 2023-08-31 3:08 ` kernel test robot
2023-08-31 16:40 ` Yosry Ahmed
0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2023-08-31 3:08 UTC (permalink / raw)
To: Yosry Ahmed, Andrew Morton
Cc: llvm, oe-kbuild-all, Linux Memory Management List,
Johannes Weiner, Michal Hocko, Roman Gushchin, Shakeel Butt,
Muchun Song, Ivan Babrou, Tejun Heo, Michal Koutný,
Waiman Long, cgroups, linux-kernel, Yosry Ahmed
Hi Yosry,
kernel test robot noticed the following build warnings:
[auto build test WARNING on akpm-mm/mm-everything]
[also build test WARNING on linus/master next-20230830]
[cannot apply to v6.5]
[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#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Yosry-Ahmed/mm-memcg-properly-name-and-document-unified-stats-flushing/20230831-015518
base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link: https://lore.kernel.org/r/20230830175335.1536008-5-yosryahmed%40google.com
patch subject: [PATCH v3 4/4] mm: memcg: use non-unified stats flushing for userspace reads
config: i386-randconfig-r013-20230831 (https://download.01.org/0day-ci/archive/20230831/202308311025.538QuXBV-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230831/202308311025.538QuXBV-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202308311025.538QuXBV-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> mm/memcontrol.c:667:6: warning: no previous prototype for function 'mem_cgroup_user_flush_stats' [-Wmissing-prototypes]
void mem_cgroup_user_flush_stats(struct mem_cgroup *memcg)
^
mm/memcontrol.c:667:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void mem_cgroup_user_flush_stats(struct mem_cgroup *memcg)
^
static
1 warning generated.
vim +/mem_cgroup_user_flush_stats +667 mm/memcontrol.c
658
659 /*
660 * mem_cgroup_user_flush_stats - do a stats flush for a user read
661 * @memcg: memory cgroup to flush
662 *
663 * Flush the subtree of @memcg. A mutex is used for userspace readers to gate
664 * the global rstat spinlock. This protects in-kernel flushers from userspace
665 * readers hogging the lock.
666 */
> 667 void mem_cgroup_user_flush_stats(struct mem_cgroup *memcg)
668 {
669 mutex_lock(&stats_user_flush_mutex);
670 do_stats_flush(memcg);
671 mutex_unlock(&stats_user_flush_mutex);
672 }
673
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH v3 4/4] mm: memcg: use non-unified stats flushing for userspace reads
2023-08-31 3:08 ` [PATCH v3 4/4] mm: memcg: use non-unified stats flushing for userspace reads kernel test robot
@ 2023-08-31 16:40 ` Yosry Ahmed
0 siblings, 0 replies; 2+ messages in thread
From: Yosry Ahmed @ 2023-08-31 16:40 UTC (permalink / raw)
To: kernel test robot
Cc: Andrew Morton, llvm, oe-kbuild-all, Linux Memory Management List,
Johannes Weiner, Michal Hocko, Roman Gushchin, Shakeel Butt,
Muchun Song, Ivan Babrou, Tejun Heo, Michal Koutný,
Waiman Long, cgroups, linux-kernel
On Wed, Aug 30, 2023 at 8:08 PM kernel test robot <lkp@intel.com> wrote:
>
> Hi Yosry,
>
> kernel test robot noticed the following build warnings:
>
> [auto build test WARNING on akpm-mm/mm-everything]
> [also build test WARNING on linus/master next-20230830]
> [cannot apply to v6.5]
> [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#_base_tree_information]
>
> url: https://github.com/intel-lab-lkp/linux/commits/Yosry-Ahmed/mm-memcg-properly-name-and-document-unified-stats-flushing/20230831-015518
> base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
> patch link: https://lore.kernel.org/r/20230830175335.1536008-5-yosryahmed%40google.com
> patch subject: [PATCH v3 4/4] mm: memcg: use non-unified stats flushing for userspace reads
> config: i386-randconfig-r013-20230831 (https://download.01.org/0day-ci/archive/20230831/202308311025.538QuXBV-lkp@intel.com/config)
> compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230831/202308311025.538QuXBV-lkp@intel.com/reproduce)
>
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@intel.com>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202308311025.538QuXBV-lkp@intel.com/
>
> All warnings (new ones prefixed by >>):
>
> >> mm/memcontrol.c:667:6: warning: no previous prototype for function 'mem_cgroup_user_flush_stats' [-Wmissing-prototypes]
> void mem_cgroup_user_flush_stats(struct mem_cgroup *memcg)
> ^
> mm/memcontrol.c:667:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
> void mem_cgroup_user_flush_stats(struct mem_cgroup *memcg)
> ^
> static
> 1 warning generated.
Ah silly mistake on my end. Will send v4 after making
mem_cgroup_user_flush_stats() static.
>
>
> vim +/mem_cgroup_user_flush_stats +667 mm/memcontrol.c
>
> 658
> 659 /*
> 660 * mem_cgroup_user_flush_stats - do a stats flush for a user read
> 661 * @memcg: memory cgroup to flush
> 662 *
> 663 * Flush the subtree of @memcg. A mutex is used for userspace readers to gate
> 664 * the global rstat spinlock. This protects in-kernel flushers from userspace
> 665 * readers hogging the lock.
> 666 */
> > 667 void mem_cgroup_user_flush_stats(struct mem_cgroup *memcg)
> 668 {
> 669 mutex_lock(&stats_user_flush_mutex);
> 670 do_stats_flush(memcg);
> 671 mutex_unlock(&stats_user_flush_mutex);
> 672 }
> 673
>
> --
> 0-DAY CI Kernel Test Service
> https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-08-31 16:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20230830175335.1536008-5-yosryahmed@google.com>
2023-08-31 3:08 ` [PATCH v3 4/4] mm: memcg: use non-unified stats flushing for userspace reads kernel test robot
2023-08-31 16:40 ` Yosry Ahmed
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox