[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200715115043.45a505ca@canb.auug.org.au>
Date: Wed, 15 Jul 2020 11:50:43 +1000
From: Stephen Rothwell <sfr@...b.auug.org.au>
To: Bixuan Cui <cuibixuan@...wei.com>
Cc: <akpm@...ux-foundation.org>, <linux-mm@...ck.org>,
<linux-kernel@...r.kernel.org>, <linux-next@...r.kernel.org>,
<john.wanghui@...wei.com>, Roman Gushchin <guro@...com>
Subject: Re: [PATCH v3] mm/percpu: fix 'defined but not used' warning
Hi all,
On Wed, 15 Jul 2020 08:25:19 +0800 Bixuan Cui <cuibixuan@...wei.com> wrote:
>
> Gcc report the following warning without CONFIG_MEMCG_KMEM:
>
> mm/percpu-internal.h:145:29: warning: 'pcpu_chunk_type' defined
> but not used [-Wunused-function]
> static enum pcpu_chunk_type pcpu_chunk_type(struct pcpu_chunk *chunk)
> ^~~~~~~~~~~~~~~
>
> Add 'inline' to pcpu_chunk_type(),pcpu_is_memcg_chunk() and
> pcpu_chunk_list() to clear warning.
>
> Acked-by: Roman Gushchin <guro@...com>
> Suggested-by: Stephen Rothwell <sfr@...b.auug.org.au>
> Signed-off-by: Bixuan Cui <cuibixuan@...wei.com>
> ---
> mm/percpu-internal.h | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
I have added this patch to linux-next today.
--
Cheers,
Stephen Rothwell
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists