From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: kbuild test robot <lkp@intel.com>
Cc: kbuild-all@01.org, Tejun Heo <tj@kernel.org>,
Christoph Lameter <cl@linux.com>,
Dennis Zhou <dennisszhou@gmail.com>,
Minchan Kim <minchan@kernel.org>, Nitin Gupta <ngupta@vflare.org>,
Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com>,
linux-mm@kvack.org, Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH v1] mm: Re-use DEFINE_SHOW_ATTRIBUTE() macro
Date: Sat, 17 Feb 2018 16:31:42 +0200 [thread overview]
Message-ID: <1518877902.22495.374.camel@linux.intel.com> (raw)
In-Reply-To: <201802172101.P4SF4Y50%fengguang.wu@intel.com>
On Sat, 2018-02-17 at 21:53 +0800, kbuild test robot wrote:
> Hi Andy,
>
> I love your patch! Yet something to improve:
>
> [auto build test ERROR on mmotm/master]
> [also build test ERROR on v4.16-rc1 next-20180216]
> [if your patch is applied to the wrong git tree, please drop us a note
> to help improve the system]
>
> url: https://github.com/0day-ci/linux/commits/Andy-Shevchenko/mm-Re
> -use-DEFINE_SHOW_ATTRIBUTE-macro/20180217-204603
> base: git://git.cmpxchg.org/linux-mmotm.git master
> config: i386-randconfig-a1-201806 (attached as .config)
> compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
> reproduce:
> # save the attached .config to linux build tree
> make ARCH=i386
>
> All errors (new ones prefixed by >>):
>
> mm/backing-dev.c:104:1: warning: data definition has no type or
> storage class
> DEFINE_SHOW_ATTRIBUTE(bdi_debug_stats);
> ^
> mm/backing-dev.c:104:1: error: type defaults to 'int' in
> declaration of 'DEFINE_SHOW_ATTRIBUTE' [-Werror=implicit-int]
> mm/backing-dev.c:104:1: warning: parameter names (without types) in
> function declaration
> mm/backing-dev.c: In function 'bdi_debug_register':
> > > mm/backing-dev.c:116:19: error: 'bdi_debug_stats_fops' undeclared
> > > (first use in this function)
>
> bdi, &bdi_debug_stats_fops);
> ^
> mm/backing-dev.c:116:19: note: each undeclared identifier is
> reported only once for each function it appears in
But how?! DEFINE_SHOW_ATTRIBUTE() defines ->open() callback along with
struct file_operations.
I have no compilation error with gcc (Debian 7.3.0-3).
> mm/zsmalloc.c:645:1: warning: data definition has no type or
> storage class
> DEFINE_SHOW_ATTRIBUTE(zs_stats_size);
> ^
> mm/zsmalloc.c:645:1: error: type defaults to 'int' in declaration
> of 'DEFINE_SHOW_ATTRIBUTE' [-Werror=implicit-int]
> mm/zsmalloc.c:645:1: warning: parameter names (without types) in
> function declaration
> mm/zsmalloc.c: In function 'zs_pool_stat_create':
> > > mm/zsmalloc.c:664:30: error: 'zs_stat_size_ops' undeclared (first
> > > use in this function)
>
> pool->stat_dentry, pool, &zs_st
> at_size_ops); ^
This one valid. Thanks, missed compilation!
--
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
prev parent reply other threads:[~2018-02-17 14:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-14 15:46 [PATCH v1] mm: Re-use DEFINE_SHOW_ATTRIBUTE() macro Andy Shevchenko
2018-02-14 16:04 ` Matthew Wilcox
2018-02-14 17:18 ` Christopher Lameter
2018-02-16 2:17 ` Sergey Senozhatsky
2018-02-17 13:53 ` kbuild test robot
2018-02-17 14:31 ` Andy Shevchenko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1518877902.22495.374.camel@linux.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=akpm@linux-foundation.org \
--cc=cl@linux.com \
--cc=dennisszhou@gmail.com \
--cc=kbuild-all@01.org \
--cc=linux-mm@kvack.org \
--cc=lkp@intel.com \
--cc=minchan@kernel.org \
--cc=ngupta@vflare.org \
--cc=sergey.senozhatsky.work@gmail.com \
--cc=tj@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).