public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mm/memcg: minor cleanup in non-memcg_kmem version of mem_cgroup_from_obj()
@ 2022-04-23  2:23 Vasily Averin
  2022-04-23 13:17 ` Shakeel Butt
  2022-04-25  7:37 ` Michal Hocko
  0 siblings, 2 replies; 4+ messages in thread
From: Vasily Averin @ 2022-04-23  2:23 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Shakeel Butt, Roman Gushchin, linux-kernel

Replace leading spaces by tab:
 WARNING: please, no spaces at the start of a line
 #X: FILE: include/linux/memcontrol.h:1480:
 +       return NULL;$

Fixes: commit 8380ce479010 ("mm: fork: fix kernel_stack memcg stats for various stack implementations")
Signed-off-by: Vasily Averin <vvs@openvz.org>
---
 include/linux/memcontrol.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h
index a68dce3873fc..294515d06dbe 100644
--- a/include/linux/memcontrol.h
+++ b/include/linux/memcontrol.h
@@ -1753,7 +1753,7 @@ static inline int memcg_kmem_id(struct mem_cgroup *memcg)
 
 static inline struct mem_cgroup *mem_cgroup_from_obj(void *p)
 {
-       return NULL;
+	return NULL;
 }
 
 #endif /* CONFIG_MEMCG_KMEM */
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] mm/memcg: minor cleanup in non-memcg_kmem version of mem_cgroup_from_obj()
  2022-04-23  2:23 [PATCH] mm/memcg: minor cleanup in non-memcg_kmem version of mem_cgroup_from_obj() Vasily Averin
@ 2022-04-23 13:17 ` Shakeel Butt
  2022-04-25  7:37 ` Michal Hocko
  1 sibling, 0 replies; 4+ messages in thread
From: Shakeel Butt @ 2022-04-23 13:17 UTC (permalink / raw)
  To: Vasily Averin; +Cc: Andrew Morton, Roman Gushchin, linux-kernel

On Sat, Apr 23, 2022 at 05:23:03AM +0300, Vasily Averin wrote:
> Replace leading spaces by tab:
>  WARNING: please, no spaces at the start of a line
>  #X: FILE: include/linux/memcontrol.h:1480:
>  +       return NULL;$
> 
> Fixes: commit 8380ce479010 ("mm: fork: fix kernel_stack memcg stats for various stack implementations")
> Signed-off-by: Vasily Averin <vvs@openvz.org>

Acked-by: Shakeel Butt <shakeelb@google.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] mm/memcg: minor cleanup in non-memcg_kmem version of mem_cgroup_from_obj()
  2022-04-23  2:23 [PATCH] mm/memcg: minor cleanup in non-memcg_kmem version of mem_cgroup_from_obj() Vasily Averin
  2022-04-23 13:17 ` Shakeel Butt
@ 2022-04-25  7:37 ` Michal Hocko
  2022-04-25  8:40   ` Vasily Averin
  1 sibling, 1 reply; 4+ messages in thread
From: Michal Hocko @ 2022-04-25  7:37 UTC (permalink / raw)
  To: Vasily Averin; +Cc: Andrew Morton, Shakeel Butt, Roman Gushchin, linux-kernel

On Sat 23-04-22 05:23:03, Vasily Averin wrote:
> Replace leading spaces by tab:
>  WARNING: please, no spaces at the start of a line
>  #X: FILE: include/linux/memcontrol.h:1480:
>  +       return NULL;$
> 
> Fixes: commit 8380ce479010 ("mm: fork: fix kernel_stack memcg stats for various stack implementations")

Please drop the Fixes tag. The tag is supposed to point to a functional
breakage and this is purely a style fix.

> Signed-off-by: Vasily Averin <vvs@openvz.org>

Acked-by: Michal Hocko <mhocko@suse.com>

> ---
>  include/linux/memcontrol.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h
> index a68dce3873fc..294515d06dbe 100644
> --- a/include/linux/memcontrol.h
> +++ b/include/linux/memcontrol.h
> @@ -1753,7 +1753,7 @@ static inline int memcg_kmem_id(struct mem_cgroup *memcg)
>  
>  static inline struct mem_cgroup *mem_cgroup_from_obj(void *p)
>  {
> -       return NULL;
> +	return NULL;
>  }
>  
>  #endif /* CONFIG_MEMCG_KMEM */
> -- 
> 2.25.1

-- 
Michal Hocko
SUSE Labs

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] mm/memcg: minor cleanup in non-memcg_kmem version of mem_cgroup_from_obj()
  2022-04-25  7:37 ` Michal Hocko
@ 2022-04-25  8:40   ` Vasily Averin
  0 siblings, 0 replies; 4+ messages in thread
From: Vasily Averin @ 2022-04-25  8:40 UTC (permalink / raw)
  To: Michal Hocko; +Cc: Andrew Morton, Shakeel Butt, Roman Gushchin, linux-kernel

On 4/25/22 10:37, Michal Hocko wrote:
> On Sat 23-04-22 05:23:03, Vasily Averin wrote:
>> Replace leading spaces by tab:
>>  WARNING: please, no spaces at the start of a line
>>  #X: FILE: include/linux/memcontrol.h:1480:
>>  +       return NULL;$
>>
>> Fixes: commit 8380ce479010 ("mm: fork: fix kernel_stack memcg stats for various stack implementations")
> 
> Please drop the Fixes tag. The tag is supposed to point to a functional
> breakage and this is purely a style fix.
> 
>> Signed-off-by: Vasily Averin <vvs@openvz.org>
> 
> Acked-by: Michal Hocko <mhocko@suse.com>

Andrew Morton suggested do not create separate patch for this change,
So I'm going to combine it with my next patch, which adds a few lines below.
Even if it will not be approved -- it isn't a big problem, someone will fix it later.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-04-25  8:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-23  2:23 [PATCH] mm/memcg: minor cleanup in non-memcg_kmem version of mem_cgroup_from_obj() Vasily Averin
2022-04-23 13:17 ` Shakeel Butt
2022-04-25  7:37 ` Michal Hocko
2022-04-25  8:40   ` Vasily Averin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox