From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752109AbdGRBYF (ORCPT ); Mon, 17 Jul 2017 21:24:05 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:9780 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751639AbdGRBYE (ORCPT ); Mon, 17 Jul 2017 21:24:04 -0400 Subject: Re: [f2fs-dev] [PATCH] f2fs: include seq_file.h for sysfs.c To: Jaegeuk Kim , Chao Yu CC: , , , Eric Biggers References: <20170714010138.68665-1-jaegeuk@kernel.org> <8fe6971d-a71b-7641-de71-cd68adff2b74@kernel.org> <20170717165504.GA81128@jaegeuk-macbookpro.roam.corp.google.com> From: Chao Yu Message-ID: Date: Tue, 18 Jul 2017 09:23:52 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170717165504.GA81128@jaegeuk-macbookpro.roam.corp.google.com> Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.134.22.195] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020203.596D632C.00C8,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 9307d9a21170378c6fbbcfd89da24b94 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2017/7/18 0:55, Jaegeuk Kim wrote: > On 07/17, Chao Yu wrote: >> Hi Jaegeuk, >> >> On 2017/7/14 9:01, Jaegeuk Kim wrote: >>> This patch includes seq_file.h to avoid compile error. >> >> I didn't hit the error, I guess that's because we have included f2fs_fs.h >> in sysfs.c, the inclusion relation is like this: >> - sysfs.c >> - f2fs_fs.h >> - pagemap.h >> - fs.h >> - struct seq_file > > What about seq ops such as seq_puts? - sysfs.c - segment.h - linux/backing-dev.h - linux/writeback.h #ifdef CONFIG_CGROUP_WRITEBACK - linux/cgroup.h - linux/seq_file.h #endif So it looks that there is no compiling error in my environment because of CONFIG_CGROUP_WRITEBACK was defined. Anyway, please add: Reviewed-by: Chao Yu Thanks, > > Thanks, > >> >> Thanks, >> >>> >>> Signed-off-by: Eric Biggers >>> Signed-off-by: Jaegeuk Kim >>> --- >>> fs/f2fs/sysfs.c | 1 + >>> 1 file changed, 1 insertion(+) >>> >>> diff --git a/fs/f2fs/sysfs.c b/fs/f2fs/sysfs.c >>> index 9adc202fcd6f..71191d89917d 100644 >>> --- a/fs/f2fs/sysfs.c >>> +++ b/fs/f2fs/sysfs.c >>> @@ -11,6 +11,7 @@ >>> */ >>> #include >>> #include >>> +#include >>> >>> #include "f2fs.h" >>> #include "segment.h" >>> > > . >