Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4199055pxf; Tue, 30 Mar 2021 01:35:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8X4khdlC8lIuHrUuuznLU4oEtkV1wJQn2EpXyuU8J/YMKKX3qtrVxCUEh1BjAb4T8eg8v X-Received: by 2002:a05:6402:3089:: with SMTP id de9mr33096586edb.10.1617093342923; Tue, 30 Mar 2021 01:35:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617093342; cv=none; d=google.com; s=arc-20160816; b=spEoZPzu52cmgohkUCGpVqfyIdEogP575VF+mq0Y+oaHjSiyeTqrciZD56qDBgzJYa mWp0jcJAnkE1B2fS7WpxYrEkeCBNEe4OdDlkd3krh3YZ2V/UjA1t8Fl+yitDFULp20aY 1fn7rM+CWNXTqMCE3I9tRgbkD725jF6tUwwvfqbpLhUkR9QBjAAl22hGLLysbI/QMFyQ TCGRmOzLGTTVjojC4A9rycJMDck3OCdJI0T/hWFShp3TsMdCBp2dOA54Ygh85CE6+Db9 ZVj8C3lnclCLSpHynTu73ZpEi6M0kZC62Qc/XOXj4fGtPiWL4vQWUX5TopP/Dr8jbVNf d3VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=UcYc6tW2INSLLFfW3LxW2mAtxYuyO+4ndCyVPY/GEpU=; b=ozuS04UyrxLhVIMFgECRtmN/IKby0s4aSrgATk7XSpaSyFUNj+yprnUVYTlirSsW0h sm26/PGrbEUvsQEbi5IxMxD9oHatBhySB0CVuYqqIFwFIBm8i84Dj9rQrsus3VPBqgTl jhdppZtMZtSXROxsJlcvn6A+7VMwf29ZRFj3D5oscj4V0Q4mw7cHSgOWfeUVntDmAWs3 LmHvc1AgLbP3RL7/Ojbue/84e6GdGHB+iB0r5qa1NH9Lr4DFTvrwkBAA7HCDd450xU5/ en/D20fYWg3Es0DBf6xVnJKYzsZp1bEUsj5UlP8PI7iq8DW4U1HsI1IxL/KnD5DTQEIe fNVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=a+o7PoeN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ec6si14863633ejb.738.2021.03.30.01.35.19; Tue, 30 Mar 2021 01:35:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=a+o7PoeN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231558AbhC3IdI (ORCPT + 99 others); Tue, 30 Mar 2021 04:33:08 -0400 Received: from mx2.suse.de ([195.135.220.15]:50180 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231512AbhC3IdA (ORCPT ); Tue, 30 Mar 2021 04:33:00 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1617093179; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=UcYc6tW2INSLLFfW3LxW2mAtxYuyO+4ndCyVPY/GEpU=; b=a+o7PoeNqAdn83N55RziM54wGk8lAbwLSMiRP6nIFq4y3xIZiVhjoFffz3ZnqEmdNEdfCO yEoAe5VrhIqrvDInc3pEAcmI2UIPhjVcKVFMSqTNzw0da2gRv/Fli8IQrWXQgWZ+wUqdTt LzzpZJUVXwIsgHbD9t3lFUu2v3Ic1Ls= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 5B909B162; Tue, 30 Mar 2021 08:32:59 +0000 (UTC) Date: Tue, 30 Mar 2021 10:32:47 +0200 From: Michal Hocko To: Wan Jiabing Cc: Andrew Morton , Shakeel Butt , Johannes Weiner , Roman Gushchin , Muchun Song , Alex Shi , Alexander Duyck , Chris Down , Yafang Shao , Wei Yang , linux-kernel@vger.kernel.org, kael_w@yeah.net Subject: Re: [PATCH] linux/memcontrol.h: Remove duplicate struct declaration Message-ID: References: <20210330020246.2265371-1-wanjiabing@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210330020246.2265371-1-wanjiabing@vivo.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 30-03-21 10:02:36, Wan Jiabing wrote: > struct mem_cgroup is declared twice. One has been declared > at forward struct declaration. Remove the duplicate. Duplicate declaration shouldn't really cause any problems. You are right that there is one which is independent on CONFIG_MEMCG so the below one is not needed though. It would be great if the changelog mentioned that so that. > Signed-off-by: Wan Jiabing Acked-by: Michal Hocko > --- > include/linux/memcontrol.h | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h > index 0c04d39a7967..f0ae33a0f175 100644 > --- a/include/linux/memcontrol.h > +++ b/include/linux/memcontrol.h > @@ -1068,8 +1068,6 @@ void split_page_memcg(struct page *head, unsigned int nr); > #define MEM_CGROUP_ID_SHIFT 0 > #define MEM_CGROUP_ID_MAX 0 > > -struct mem_cgroup; > - > static inline struct mem_cgroup *page_memcg(struct page *page) > { > return NULL; > -- > 2.25.1 -- Michal Hocko SUSE Labs