From: kbuild test robot <lkp@intel.com>
To: Mina Almasry <almasrymina@google.com>
Cc: kbuild-all@lists.01.org,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>
Subject: [krzk-github:for-next/defconfig-cleanup-io-sched-and-others-v2-rebased 2183/2430] include/linux/hugetlb_cgroup.h:146:21: warning: 'struct file_region' declared inside parameter list will not be visible outside of this definition or declaration
Date: Tue, 18 Feb 2020 18:54:14 +0800 [thread overview]
Message-ID: <202002181800.a2QQeU5C%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3665 bytes --]
tree: https://github.com/krzk/linux for-next/defconfig-cleanup-io-sched-and-others-v2-rebased
head: 819576ed2e648eb1a63ef082e7babd44fceee084
commit: 8818186983610773dc88f613b8636392efd54635 [2183/2430] hugetlb_cgroup: add accounting for shared mappings
config: m68k-m5475evb_defconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 7.5.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 8818186983610773dc88f613b8636392efd54635
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
In file included from mm/migrate.c:39:0:
>> include/linux/hugetlb_cgroup.h:146:21: warning: 'struct file_region' declared inside parameter list will not be visible outside of this definition or declaration
struct file_region *rg,
^~~~~~~~~~~
include/linux/hugetlb_cgroup.h:145:63: warning: 'struct resv_map' declared inside parameter list will not be visible outside of this definition or declaration
static inline void hugetlb_cgroup_uncharge_file_region(struct resv_map *resv,
^~~~~~~~
include/linux/hugetlb_cgroup.h:233:59: warning: 'struct resv_map' declared inside parameter list will not be visible outside of this definition or declaration
static inline void hugetlb_cgroup_uncharge_counter(struct resv_map *resv,
^~~~~~~~
vim +146 include/linux/hugetlb_cgroup.h
112
113 extern int hugetlb_cgroup_charge_cgroup(int idx, unsigned long nr_pages,
114 struct hugetlb_cgroup **ptr);
115 extern int hugetlb_cgroup_charge_cgroup_rsvd(int idx, unsigned long nr_pages,
116 struct hugetlb_cgroup **ptr);
117 extern void hugetlb_cgroup_commit_charge(int idx, unsigned long nr_pages,
118 struct hugetlb_cgroup *h_cg,
119 struct page *page);
120 extern void hugetlb_cgroup_commit_charge_rsvd(int idx, unsigned long nr_pages,
121 struct hugetlb_cgroup *h_cg,
122 struct page *page);
123 extern void hugetlb_cgroup_uncharge_page(int idx, unsigned long nr_pages,
124 struct page *page);
125 extern void hugetlb_cgroup_uncharge_page_rsvd(int idx, unsigned long nr_pages,
126 struct page *page);
127
128 extern void hugetlb_cgroup_uncharge_cgroup(int idx, unsigned long nr_pages,
129 struct hugetlb_cgroup *h_cg);
130 extern void hugetlb_cgroup_uncharge_cgroup_rsvd(int idx, unsigned long nr_pages,
131 struct hugetlb_cgroup *h_cg);
132 extern void hugetlb_cgroup_uncharge_counter(struct resv_map *resv,
133 unsigned long start,
134 unsigned long end);
135
136 extern void hugetlb_cgroup_uncharge_file_region(struct resv_map *resv,
137 struct file_region *rg,
138 unsigned long nr_pages);
139
140 extern void hugetlb_cgroup_file_init(void) __init;
141 extern void hugetlb_cgroup_migrate(struct page *oldhpage,
142 struct page *newhpage);
143
144 #else
145 static inline void hugetlb_cgroup_uncharge_file_region(struct resv_map *resv,
> 146 struct file_region *rg,
147 unsigned long nr_pages)
148 {
149 }
150
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 7290 bytes --]
reply other threads:[~2020-02-18 10:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202002181800.a2QQeU5C%lkp@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=almasrymina@google.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-mm@kvack.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