* [PATCH] fixup: vmscan: Fix build on !CONFIG_MEMCG from nr_deactivate changes
[not found] <155290128498.31489.18250485448913338607.stgit@localhost.localdomain>
@ 2019-03-22 15:05 ` Chris Down
2019-03-22 15:06 ` Chris Down
2019-03-22 15:16 ` Kirill Tkhai
0 siblings, 2 replies; 3+ messages in thread
From: Chris Down @ 2019-03-22 15:05 UTC (permalink / raw)
To: Andrew Morton
Cc: Kirill Tkhai, Johannes Weiner, Tejun Heo, linux-kernel, cgroups,
linux-mm, kernel-team
"mm: move nr_deactivate accounting to shrink_active_list()" uses the
non-irqsaved version of count_memcg_events (__count_memcg_events), but
we've only exported the irqsaving version of it to userspace, so the
build breaks:
mm/vmscan.c: In function ‘shrink_active_list’:
mm/vmscan.c:2101:2: error: implicit declaration of function ‘__count_memcg_events’; did you mean ‘count_memcg_events’? [-Werror=implicit-function-declaration]
This fixup makes it build with !CONFIG_MEMCG.
Signed-off-by: Chris Down <chris@chrisdown.name>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Kirill Tkhai <ktkhai@virtuozzo.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Tejun Heo <tj@kernel.org>
Cc: linux-kernel@vger.kernel.org
Cc: cgroups@vger.kernel.org
Cc: linux-mm@kvack.org
Cc: kernel-team@fb.com
---
include/linux/memcontrol.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h
index 534267947664..b226c4bafc93 100644
--- a/include/linux/memcontrol.h
+++ b/include/linux/memcontrol.h
@@ -1147,6 +1147,12 @@ static inline void count_memcg_events(struct mem_cgroup *memcg,
{
}
+static inline void __count_memcg_events(struct mem_cgroup *memcg,
+ enum vm_event_item idx,
+ unsigned long count)
+{
+}
+
static inline void count_memcg_page_event(struct page *page,
int idx)
{
--
2.21.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] fixup: vmscan: Fix build on !CONFIG_MEMCG from nr_deactivate changes
2019-03-22 15:05 ` [PATCH] fixup: vmscan: Fix build on !CONFIG_MEMCG from nr_deactivate changes Chris Down
@ 2019-03-22 15:06 ` Chris Down
2019-03-22 15:16 ` Kirill Tkhai
1 sibling, 0 replies; 3+ messages in thread
From: Chris Down @ 2019-03-22 15:06 UTC (permalink / raw)
To: Andrew Morton
Cc: Kirill Tkhai, Johannes Weiner, Tejun Heo, linux-kernel, cgroups,
linux-mm, kernel-team
Chris Down writes:
>"mm: move nr_deactivate accounting to shrink_active_list()" uses the
>non-irqsaved version of count_memcg_events (__count_memcg_events), but
>we've only exported the irqsaving version of it to userspace, so the
>build breaks:
Er, "with !CONFIG_MEMCG", not "to userspace". No idea where that came from...
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] fixup: vmscan: Fix build on !CONFIG_MEMCG from nr_deactivate changes
2019-03-22 15:05 ` [PATCH] fixup: vmscan: Fix build on !CONFIG_MEMCG from nr_deactivate changes Chris Down
2019-03-22 15:06 ` Chris Down
@ 2019-03-22 15:16 ` Kirill Tkhai
1 sibling, 0 replies; 3+ messages in thread
From: Kirill Tkhai @ 2019-03-22 15:16 UTC (permalink / raw)
To: Chris Down, Andrew Morton
Cc: Johannes Weiner, Tejun Heo, linux-kernel, cgroups, linux-mm,
kernel-team
On 22.03.2019 18:05, Chris Down wrote:
> "mm: move nr_deactivate accounting to shrink_active_list()" uses the
> non-irqsaved version of count_memcg_events (__count_memcg_events), but
> we've only exported the irqsaving version of it to userspace, so the
> build breaks:
>
> mm/vmscan.c: In function ‘shrink_active_list’:
> mm/vmscan.c:2101:2: error: implicit declaration of function ‘__count_memcg_events’; did you mean ‘count_memcg_events’? [-Werror=implicit-function-declaration]
>
> This fixup makes it build with !CONFIG_MEMCG.
Yeah, thanks, Chris.
> Signed-off-by: Chris Down <chris@chrisdown.name>
> Cc: Andrew Morton <akpm@linux-foundation.org>
> Cc: Kirill Tkhai <ktkhai@virtuozzo.com>
> Cc: Johannes Weiner <hannes@cmpxchg.org>
> Cc: Tejun Heo <tj@kernel.org>
> Cc: linux-kernel@vger.kernel.org
> Cc: cgroups@vger.kernel.org
> Cc: linux-mm@kvack.org
> Cc: kernel-team@fb.com
> ---
> include/linux/memcontrol.h | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h
> index 534267947664..b226c4bafc93 100644
> --- a/include/linux/memcontrol.h
> +++ b/include/linux/memcontrol.h
> @@ -1147,6 +1147,12 @@ static inline void count_memcg_events(struct mem_cgroup *memcg,
> {
> }
>
> +static inline void __count_memcg_events(struct mem_cgroup *memcg,
> + enum vm_event_item idx,
> + unsigned long count)
> +{
> +}
> +
> static inline void count_memcg_page_event(struct page *page,
> int idx)
> {
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-03-22 15:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <155290128498.31489.18250485448913338607.stgit@localhost.localdomain>
2019-03-22 15:05 ` [PATCH] fixup: vmscan: Fix build on !CONFIG_MEMCG from nr_deactivate changes Chris Down
2019-03-22 15:06 ` Chris Down
2019-03-22 15:16 ` Kirill Tkhai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox