[chrome-os:chromeos-4.19 5/5] drivers/gpu/drm/i915/intel_modes.c:168:2: error: 'prop' may be used uninitialized in this function
by kbuild test robot
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.19
head: 6e9ad418e3e56843809b2de0e833818fd9fe72eb
commit: 6e9ad418e3e56843809b2de0e833818fd9fe72eb [5/5] BACKPORT: FROMLIST: drm/i915: Add support for integrated privacy screens
config: x86_64-randconfig-c003-20200201 (attached as .config)
compiler: gcc-7 (Debian 7.5.0-3) 7.5.0
reproduce:
git checkout 6e9ad418e3e56843809b2de0e833818fd9fe72eb
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings
All errors (new ones prefixed by >>):
drivers/gpu/drm/i915/intel_modes.c: In function 'intel_attach_privacy_screen_property':
>> drivers/gpu/drm/i915/intel_modes.c:168:2: error: 'prop' may be used uninitialized in this function [-Werror=maybe-uninitialized]
drm_object_attach_property(&connector->base, prop,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PRIVACY_SCREEN_DISABLED);
~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/prop +168 drivers/gpu/drm/i915/intel_modes.c
141
142 /**
143 * intel_attach_privacy_screen_property -
144 * create and attach the connecter's privacy-screen property. *
145 * @connector: connector for which to init the privacy-screen property
146 *
147 * This function creates and attaches the "privacy-screen" property to the
148 * connector. Initial state of privacy-screen is set to disabled.
149 */
150 void
151 intel_attach_privacy_screen_property(struct drm_connector *connector)
152 {
153 struct intel_connector *intel_connector = to_intel_connector(connector);
154 struct drm_property *prop;
155
156 if (!intel_connector->privacy_screen_property) {
157 prop = drm_property_create_enum(connector->dev,
158 DRM_MODE_PROP_ENUM,
159 "privacy-screen",
160 privacy_screen_enum,
161 ARRAY_SIZE(privacy_screen_enum));
162 if (!prop)
163 return;
164
165 intel_connector->privacy_screen_property = prop;
166 }
167
> 168 drm_object_attach_property(&connector->base, prop,
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 2 months
[rgushchin:new_slab.2 171/261] config.c:undefined reference to `find_via_pmu'
by kbuild test robot
tree: https://github.com/rgushchin/linux.git new_slab.2
head: 73feb630925aa5f40f9ef86a9023e0f014a25b49
commit: aa698ba4b661252a954332198763194cc666ae0e [171/261] a
config: m68k-multi_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 aa698ba4b661252a954332198763194cc666ae0e
# 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(a)intel.com>
All errors (new ones prefixed by >>):
arch/m68k/mac/config.o: In function `config_mac':
>> config.c:(.init.text+0x49a): undefined reference to `find_via_pmu'
arch/m68k/mac/misc.o: In function `mac_reset':
>> misc.c:(.text+0x1d4): undefined reference to `pmu_restart'
arch/m68k/mac/misc.o: In function `mac_pram_read_byte':
>> misc.c:(.text+0x33a): undefined reference to `pmu_request'
>> misc.c:(.text+0x34a): undefined reference to `pmu_wait_complete'
arch/m68k/mac/misc.o: In function `mac_pram_write_byte':
misc.c:(.text+0x458): undefined reference to `pmu_request'
misc.c:(.text+0x468): undefined reference to `pmu_wait_complete'
arch/m68k/mac/misc.o: In function `mac_poweroff':
>> misc.c:(.text+0x588): undefined reference to `pmu_shutdown'
arch/m68k/mac/misc.o: In function `mac_hwclk':
>> misc.c:(.text+0x7fe): undefined reference to `pmu_get_time'
>> misc.c:(.text+0xa58): undefined reference to `pmu_set_rtc_time'
drivers/macintosh/via-pmu-event.o: In function `via_pmu_event_init':
via-pmu-event.c:(.init.text+0x4): undefined reference to `pmu_get_model'
>> drivers/macintosh/adb.o:(.rodata+0x8c): undefined reference to `via_pmu_driver'
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 2 months
[dax:readahead 1/13] fs/f2fs/data.c:2208:9: error: implicit declaration of function 'f2fs_cluster_can_merge_page'; did you mean 'f2fs_register_inmem_page'?
by kbuild test robot
tree: git://git.infradead.org/users/willy/linux-dax.git readahead
head: 507849fa6627b0911c4952cbc1ea6d0c6ee05c26
commit: f3539d579c4f276ef877292abee01d7f742444ba [1/13] f2fs: Make f2fs_readpages readable again
config: x86_64-lkp (attached as .config)
compiler: gcc-7 (Debian 7.5.0-3) 7.5.0
reproduce:
git checkout f3539d579c4f276ef877292abee01d7f742444ba
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
fs/f2fs/data.c: In function 'f2fs_mpage_readpages':
>> fs/f2fs/data.c:2208:9: error: implicit declaration of function 'f2fs_cluster_can_merge_page'; did you mean 'f2fs_register_inmem_page'? [-Werror=implicit-function-declaration]
if (!f2fs_cluster_can_merge_page(&cc, page->index)) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
f2fs_register_inmem_page
>> fs/f2fs/data.c:2208:38: error: 'cc' undeclared (first use in this function)
if (!f2fs_cluster_can_merge_page(&cc, page->index)) {
^~
fs/f2fs/data.c:2208:38: note: each undeclared identifier is reported only once for each function it appears in
>> fs/f2fs/data.c:2209:11: error: implicit declaration of function 'f2fs_read_multi_pages'; did you mean 'f2fs_ra_meta_pages'? [-Werror=implicit-function-declaration]
ret = f2fs_read_multi_pages(&cc, &bio,
^~~~~~~~~~~~~~~~~~~~~
f2fs_ra_meta_pages
>> fs/f2fs/data.c:2213:5: error: implicit declaration of function 'f2fs_destroy_compress_ctx'; did you mean 'f2fs_decompress_bio'? [-Werror=implicit-function-declaration]
f2fs_destroy_compress_ctx(&cc);
^~~~~~~~~~~~~~~~~~~~~~~~~
f2fs_decompress_bio
>> fs/f2fs/data.c:2217:10: error: implicit declaration of function 'f2fs_is_compressed_cluster'; did you mean 'f2fs_is_compressed_page'? [-Werror=implicit-function-declaration]
ret = f2fs_is_compressed_cluster(inode, page->index);
^~~~~~~~~~~~~~~~~~~~~~~~~~
f2fs_is_compressed_page
>> fs/f2fs/data.c:2223:10: error: implicit declaration of function 'f2fs_init_compress_ctx'; did you mean 'f2fs_decompress_bio'? [-Werror=implicit-function-declaration]
ret = f2fs_init_compress_ctx(&cc);
^~~~~~~~~~~~~~~~~~~~~~
f2fs_decompress_bio
>> fs/f2fs/data.c:2227:4: error: implicit declaration of function 'f2fs_compress_ctx_add_page'; did you mean 'f2fs_compress_control_page'? [-Werror=implicit-function-declaration]
f2fs_compress_ctx_add_page(&cc, page);
^~~~~~~~~~~~~~~~~~~~~~~~~~
f2fs_compress_control_page
>> fs/f2fs/data.c:2247:26: error: implicit declaration of function 'f2fs_cluster_is_empty'; did you mean 'f2fs_register_inmem_page'? [-Werror=implicit-function-declaration]
if (nr_pages == 1 && !f2fs_cluster_is_empty(&cc)) {
^~~~~~~~~~~~~~~~~~~~~
f2fs_register_inmem_page
cc1: some warnings being treated as errors
vim +2208 fs/f2fs/data.c
4c8ff7095bef64 Chao Yu 2019-11-01 2152
2df0ab045784a1 Chao Yu 2019-03-25 2153 /*
2df0ab045784a1 Chao Yu 2019-03-25 2154 * This function was originally taken from fs/mpage.c, and customized for f2fs.
2df0ab045784a1 Chao Yu 2019-03-25 2155 * Major change was from block_size == page_size in f2fs by default.
2df0ab045784a1 Chao Yu 2019-03-25 2156 *
2df0ab045784a1 Chao Yu 2019-03-25 2157 * Note that the aops->readpages() function is ONLY used for read-ahead. If
2df0ab045784a1 Chao Yu 2019-03-25 2158 * this function ever deviates from doing just read-ahead, it should either
2df0ab045784a1 Chao Yu 2019-03-25 2159 * use ->readpage() or do the necessary surgery to decouple ->readpages()
2df0ab045784a1 Chao Yu 2019-03-25 2160 * from read-ahead.
2df0ab045784a1 Chao Yu 2019-03-25 2161 */
4c8ff7095bef64 Chao Yu 2019-11-01 2162 int f2fs_mpage_readpages(struct address_space *mapping,
2df0ab045784a1 Chao Yu 2019-03-25 2163 struct list_head *pages, struct page *page,
2df0ab045784a1 Chao Yu 2019-03-25 2164 unsigned nr_pages, bool is_readahead)
2df0ab045784a1 Chao Yu 2019-03-25 2165 {
2df0ab045784a1 Chao Yu 2019-03-25 2166 struct bio *bio = NULL;
2df0ab045784a1 Chao Yu 2019-03-25 2167 sector_t last_block_in_bio = 0;
2df0ab045784a1 Chao Yu 2019-03-25 2168 struct inode *inode = mapping->host;
2df0ab045784a1 Chao Yu 2019-03-25 2169 struct f2fs_map_blocks map;
4c8ff7095bef64 Chao Yu 2019-11-01 2170 #ifdef CONFIG_F2FS_FS_COMPRESSION
4c8ff7095bef64 Chao Yu 2019-11-01 2171 struct compress_ctx cc = {
4c8ff7095bef64 Chao Yu 2019-11-01 2172 .inode = inode,
4c8ff7095bef64 Chao Yu 2019-11-01 2173 .log_cluster_size = F2FS_I(inode)->i_log_cluster_size,
4c8ff7095bef64 Chao Yu 2019-11-01 2174 .cluster_size = F2FS_I(inode)->i_cluster_size,
4c8ff7095bef64 Chao Yu 2019-11-01 2175 .cluster_idx = NULL_CLUSTER,
4c8ff7095bef64 Chao Yu 2019-11-01 2176 .rpages = NULL,
4c8ff7095bef64 Chao Yu 2019-11-01 2177 .cpages = NULL,
4c8ff7095bef64 Chao Yu 2019-11-01 2178 .nr_rpages = 0,
4c8ff7095bef64 Chao Yu 2019-11-01 2179 .nr_cpages = 0,
4c8ff7095bef64 Chao Yu 2019-11-01 2180 };
4c8ff7095bef64 Chao Yu 2019-11-01 2181 #endif
4c8ff7095bef64 Chao Yu 2019-11-01 2182 unsigned max_nr_pages = nr_pages;
2df0ab045784a1 Chao Yu 2019-03-25 2183 int ret = 0;
2df0ab045784a1 Chao Yu 2019-03-25 2184
2df0ab045784a1 Chao Yu 2019-03-25 2185 map.m_pblk = 0;
2df0ab045784a1 Chao Yu 2019-03-25 2186 map.m_lblk = 0;
2df0ab045784a1 Chao Yu 2019-03-25 2187 map.m_len = 0;
2df0ab045784a1 Chao Yu 2019-03-25 2188 map.m_flags = 0;
2df0ab045784a1 Chao Yu 2019-03-25 2189 map.m_next_pgofs = NULL;
2df0ab045784a1 Chao Yu 2019-03-25 2190 map.m_next_extent = NULL;
2df0ab045784a1 Chao Yu 2019-03-25 2191 map.m_seg_type = NO_CHECK_TYPE;
2df0ab045784a1 Chao Yu 2019-03-25 2192 map.m_may_create = false;
2df0ab045784a1 Chao Yu 2019-03-25 2193
2df0ab045784a1 Chao Yu 2019-03-25 2194 for (; nr_pages; nr_pages--) {
2df0ab045784a1 Chao Yu 2019-03-25 2195 if (pages) {
2df0ab045784a1 Chao Yu 2019-03-25 2196 page = list_last_entry(pages, struct page, lru);
2df0ab045784a1 Chao Yu 2019-03-25 2197
2df0ab045784a1 Chao Yu 2019-03-25 2198 prefetchw(&page->flags);
2df0ab045784a1 Chao Yu 2019-03-25 2199 list_del(&page->lru);
2df0ab045784a1 Chao Yu 2019-03-25 2200 if (add_to_page_cache_lru(page, mapping,
4969c06a0d83c9 Jaegeuk Kim 2019-07-01 2201 page_index(page),
2df0ab045784a1 Chao Yu 2019-03-25 2202 readahead_gfp_mask(mapping)))
2df0ab045784a1 Chao Yu 2019-03-25 2203 goto next_page;
2df0ab045784a1 Chao Yu 2019-03-25 2204 }
2df0ab045784a1 Chao Yu 2019-03-25 2205
4c8ff7095bef64 Chao Yu 2019-11-01 2206 if (f2fs_compressed_file(inode)) {
4c8ff7095bef64 Chao Yu 2019-11-01 2207 /* there are remained comressed pages, submit them */
4c8ff7095bef64 Chao Yu 2019-11-01 @2208 if (!f2fs_cluster_can_merge_page(&cc, page->index)) {
4c8ff7095bef64 Chao Yu 2019-11-01 @2209 ret = f2fs_read_multi_pages(&cc, &bio,
4c8ff7095bef64 Chao Yu 2019-11-01 2210 max_nr_pages,
4c8ff7095bef64 Chao Yu 2019-11-01 2211 &last_block_in_bio,
4c8ff7095bef64 Chao Yu 2019-11-01 2212 is_readahead);
4c8ff7095bef64 Chao Yu 2019-11-01 @2213 f2fs_destroy_compress_ctx(&cc);
4c8ff7095bef64 Chao Yu 2019-11-01 2214 if (ret)
4c8ff7095bef64 Chao Yu 2019-11-01 2215 goto set_error_page;
4c8ff7095bef64 Chao Yu 2019-11-01 2216 }
4c8ff7095bef64 Chao Yu 2019-11-01 @2217 ret = f2fs_is_compressed_cluster(inode, page->index);
4c8ff7095bef64 Chao Yu 2019-11-01 2218 if (ret < 0)
4c8ff7095bef64 Chao Yu 2019-11-01 2219 goto set_error_page;
4c8ff7095bef64 Chao Yu 2019-11-01 2220 else if (!ret)
4c8ff7095bef64 Chao Yu 2019-11-01 2221 goto read_single_page;
4c8ff7095bef64 Chao Yu 2019-11-01 2222
4c8ff7095bef64 Chao Yu 2019-11-01 @2223 ret = f2fs_init_compress_ctx(&cc);
4c8ff7095bef64 Chao Yu 2019-11-01 2224 if (ret)
4c8ff7095bef64 Chao Yu 2019-11-01 2225 goto set_error_page;
4c8ff7095bef64 Chao Yu 2019-11-01 2226
4c8ff7095bef64 Chao Yu 2019-11-01 @2227 f2fs_compress_ctx_add_page(&cc, page);
4c8ff7095bef64 Chao Yu 2019-11-01 2228
4c8ff7095bef64 Chao Yu 2019-11-01 2229 goto next_page;
4c8ff7095bef64 Chao Yu 2019-11-01 2230 }
4c8ff7095bef64 Chao Yu 2019-11-01 2231 read_single_page:
4c8ff7095bef64 Chao Yu 2019-11-01 2232
4c8ff7095bef64 Chao Yu 2019-11-01 2233 ret = f2fs_read_single_page(inode, page, max_nr_pages, &map,
4c8ff7095bef64 Chao Yu 2019-11-01 2234 &bio, &last_block_in_bio, is_readahead);
2df0ab045784a1 Chao Yu 2019-03-25 2235 if (ret) {
4c8ff7095bef64 Chao Yu 2019-11-01 2236 set_error_page:
2df0ab045784a1 Chao Yu 2019-03-25 2237 SetPageError(page);
2df0ab045784a1 Chao Yu 2019-03-25 2238 zero_user_segment(page, 0, PAGE_SIZE);
2df0ab045784a1 Chao Yu 2019-03-25 2239 unlock_page(page);
2df0ab045784a1 Chao Yu 2019-03-25 2240 }
f1e8866016b53b Jaegeuk Kim 2015-04-09 2241 next_page:
f1e8866016b53b Jaegeuk Kim 2015-04-09 2242 if (pages)
09cbfeaf1a5a67 Kirill A. Shutemov 2016-04-01 2243 put_page(page);
4c8ff7095bef64 Chao Yu 2019-11-01 2244
4c8ff7095bef64 Chao Yu 2019-11-01 2245 if (f2fs_compressed_file(inode)) {
4c8ff7095bef64 Chao Yu 2019-11-01 2246 /* last page */
4c8ff7095bef64 Chao Yu 2019-11-01 @2247 if (nr_pages == 1 && !f2fs_cluster_is_empty(&cc)) {
4c8ff7095bef64 Chao Yu 2019-11-01 2248 ret = f2fs_read_multi_pages(&cc, &bio,
4c8ff7095bef64 Chao Yu 2019-11-01 2249 max_nr_pages,
4c8ff7095bef64 Chao Yu 2019-11-01 2250 &last_block_in_bio,
4c8ff7095bef64 Chao Yu 2019-11-01 2251 is_readahead);
4c8ff7095bef64 Chao Yu 2019-11-01 2252 f2fs_destroy_compress_ctx(&cc);
4c8ff7095bef64 Chao Yu 2019-11-01 2253 }
4c8ff7095bef64 Chao Yu 2019-11-01 2254 }
f1e8866016b53b Jaegeuk Kim 2015-04-09 2255 }
f1e8866016b53b Jaegeuk Kim 2015-04-09 2256 BUG_ON(pages && !list_empty(pages));
f1e8866016b53b Jaegeuk Kim 2015-04-09 2257 if (bio)
4fc29c1aa37535 Linus Torvalds 2016-07-27 2258 __submit_bio(F2FS_I_SB(inode), bio, DATA);
2df0ab045784a1 Chao Yu 2019-03-25 2259 return pages ? 0 : ret;
f1e8866016b53b Jaegeuk Kim 2015-04-09 2260 }
f1e8866016b53b Jaegeuk Kim 2015-04-09 2261
:::::: The code at line 2208 was first introduced by commit
:::::: 4c8ff7095bef64fc47e996a938f7d57f9e077da3 f2fs: support data compression
:::::: TO: Chao Yu <yuchao0(a)huawei.com>
:::::: CC: Jaegeuk Kim <jaegeuk(a)kernel.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 2 months
[dax:readahead 1/13] fs/f2fs/data.c:2208:9: error: implicit declaration of function 'f2fs_cluster_can_merge_page'
by kbuild test robot
tree: git://git.infradead.org/users/willy/linux-dax.git readahead
head: 507849fa6627b0911c4952cbc1ea6d0c6ee05c26
commit: f3539d579c4f276ef877292abee01d7f742444ba [1/13] f2fs: Make f2fs_readpages readable again
config: arc-randconfig-a001-20200201 (attached as .config)
compiler: arc-elf-gcc (GCC) 9.2.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 f3539d579c4f276ef877292abee01d7f742444ba
# save the attached .config to linux build tree
GCC_VERSION=9.2.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/wait.h:7,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
from fs/f2fs/data.c:8:
fs/f2fs/data.c: In function 'f2fs_mpage_readpages':
>> fs/f2fs/data.c:2208:9: error: implicit declaration of function 'f2fs_cluster_can_merge_page' [-Werror=implicit-function-declaration]
2208 | if (!f2fs_cluster_can_merge_page(&cc, page->index)) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
>> fs/f2fs/data.c:2208:4: note: in expansion of macro 'if'
2208 | if (!f2fs_cluster_can_merge_page(&cc, page->index)) {
| ^~
fs/f2fs/data.c:2208:38: error: 'cc' undeclared (first use in this function)
2208 | if (!f2fs_cluster_can_merge_page(&cc, page->index)) {
| ^~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
>> fs/f2fs/data.c:2208:4: note: in expansion of macro 'if'
2208 | if (!f2fs_cluster_can_merge_page(&cc, page->index)) {
| ^~
fs/f2fs/data.c:2208:38: note: each undeclared identifier is reported only once for each function it appears in
2208 | if (!f2fs_cluster_can_merge_page(&cc, page->index)) {
| ^~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
>> fs/f2fs/data.c:2208:4: note: in expansion of macro 'if'
2208 | if (!f2fs_cluster_can_merge_page(&cc, page->index)) {
| ^~
fs/f2fs/data.c:2209:11: error: implicit declaration of function 'f2fs_read_multi_pages'; did you mean 'f2fs_ra_meta_pages'? [-Werror=implicit-function-declaration]
2209 | ret = f2fs_read_multi_pages(&cc, &bio,
| ^~~~~~~~~~~~~~~~~~~~~
| f2fs_ra_meta_pages
fs/f2fs/data.c:2213:5: error: implicit declaration of function 'f2fs_destroy_compress_ctx'; did you mean 'f2fs_decompress_bio'? [-Werror=implicit-function-declaration]
2213 | f2fs_destroy_compress_ctx(&cc);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| f2fs_decompress_bio
fs/f2fs/data.c:2217:10: error: implicit declaration of function 'f2fs_is_compressed_cluster'; did you mean 'f2fs_is_compressed_page'? [-Werror=implicit-function-declaration]
2217 | ret = f2fs_is_compressed_cluster(inode, page->index);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| f2fs_is_compressed_page
fs/f2fs/data.c:2223:10: error: implicit declaration of function 'f2fs_init_compress_ctx'; did you mean 'f2fs_decompress_bio'? [-Werror=implicit-function-declaration]
2223 | ret = f2fs_init_compress_ctx(&cc);
| ^~~~~~~~~~~~~~~~~~~~~~
| f2fs_decompress_bio
fs/f2fs/data.c:2227:4: error: implicit declaration of function 'f2fs_compress_ctx_add_page'; did you mean 'f2fs_compress_control_page'? [-Werror=implicit-function-declaration]
2227 | f2fs_compress_ctx_add_page(&cc, page);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| f2fs_compress_control_page
In file included from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/wait.h:7,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
from fs/f2fs/data.c:8:
>> fs/f2fs/data.c:2247:26: error: implicit declaration of function 'f2fs_cluster_is_empty' [-Werror=implicit-function-declaration]
2247 | if (nr_pages == 1 && !f2fs_cluster_is_empty(&cc)) {
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
fs/f2fs/data.c:2247:4: note: in expansion of macro 'if'
2247 | if (nr_pages == 1 && !f2fs_cluster_is_empty(&cc)) {
| ^~
cc1: some warnings being treated as errors
vim +/f2fs_cluster_can_merge_page +2208 fs/f2fs/data.c
4c8ff7095bef64 Chao Yu 2019-11-01 2152
2df0ab045784a1 Chao Yu 2019-03-25 2153 /*
2df0ab045784a1 Chao Yu 2019-03-25 2154 * This function was originally taken from fs/mpage.c, and customized for f2fs.
2df0ab045784a1 Chao Yu 2019-03-25 2155 * Major change was from block_size == page_size in f2fs by default.
2df0ab045784a1 Chao Yu 2019-03-25 2156 *
2df0ab045784a1 Chao Yu 2019-03-25 2157 * Note that the aops->readpages() function is ONLY used for read-ahead. If
2df0ab045784a1 Chao Yu 2019-03-25 2158 * this function ever deviates from doing just read-ahead, it should either
2df0ab045784a1 Chao Yu 2019-03-25 2159 * use ->readpage() or do the necessary surgery to decouple ->readpages()
2df0ab045784a1 Chao Yu 2019-03-25 2160 * from read-ahead.
2df0ab045784a1 Chao Yu 2019-03-25 2161 */
4c8ff7095bef64 Chao Yu 2019-11-01 2162 int f2fs_mpage_readpages(struct address_space *mapping,
2df0ab045784a1 Chao Yu 2019-03-25 2163 struct list_head *pages, struct page *page,
2df0ab045784a1 Chao Yu 2019-03-25 2164 unsigned nr_pages, bool is_readahead)
2df0ab045784a1 Chao Yu 2019-03-25 2165 {
2df0ab045784a1 Chao Yu 2019-03-25 2166 struct bio *bio = NULL;
2df0ab045784a1 Chao Yu 2019-03-25 2167 sector_t last_block_in_bio = 0;
2df0ab045784a1 Chao Yu 2019-03-25 2168 struct inode *inode = mapping->host;
2df0ab045784a1 Chao Yu 2019-03-25 2169 struct f2fs_map_blocks map;
4c8ff7095bef64 Chao Yu 2019-11-01 2170 #ifdef CONFIG_F2FS_FS_COMPRESSION
4c8ff7095bef64 Chao Yu 2019-11-01 2171 struct compress_ctx cc = {
4c8ff7095bef64 Chao Yu 2019-11-01 2172 .inode = inode,
4c8ff7095bef64 Chao Yu 2019-11-01 2173 .log_cluster_size = F2FS_I(inode)->i_log_cluster_size,
4c8ff7095bef64 Chao Yu 2019-11-01 2174 .cluster_size = F2FS_I(inode)->i_cluster_size,
4c8ff7095bef64 Chao Yu 2019-11-01 2175 .cluster_idx = NULL_CLUSTER,
4c8ff7095bef64 Chao Yu 2019-11-01 2176 .rpages = NULL,
4c8ff7095bef64 Chao Yu 2019-11-01 2177 .cpages = NULL,
4c8ff7095bef64 Chao Yu 2019-11-01 2178 .nr_rpages = 0,
4c8ff7095bef64 Chao Yu 2019-11-01 2179 .nr_cpages = 0,
4c8ff7095bef64 Chao Yu 2019-11-01 2180 };
4c8ff7095bef64 Chao Yu 2019-11-01 2181 #endif
4c8ff7095bef64 Chao Yu 2019-11-01 2182 unsigned max_nr_pages = nr_pages;
2df0ab045784a1 Chao Yu 2019-03-25 2183 int ret = 0;
2df0ab045784a1 Chao Yu 2019-03-25 2184
2df0ab045784a1 Chao Yu 2019-03-25 2185 map.m_pblk = 0;
2df0ab045784a1 Chao Yu 2019-03-25 2186 map.m_lblk = 0;
2df0ab045784a1 Chao Yu 2019-03-25 2187 map.m_len = 0;
2df0ab045784a1 Chao Yu 2019-03-25 2188 map.m_flags = 0;
2df0ab045784a1 Chao Yu 2019-03-25 2189 map.m_next_pgofs = NULL;
2df0ab045784a1 Chao Yu 2019-03-25 2190 map.m_next_extent = NULL;
2df0ab045784a1 Chao Yu 2019-03-25 2191 map.m_seg_type = NO_CHECK_TYPE;
2df0ab045784a1 Chao Yu 2019-03-25 2192 map.m_may_create = false;
2df0ab045784a1 Chao Yu 2019-03-25 2193
2df0ab045784a1 Chao Yu 2019-03-25 2194 for (; nr_pages; nr_pages--) {
2df0ab045784a1 Chao Yu 2019-03-25 2195 if (pages) {
2df0ab045784a1 Chao Yu 2019-03-25 2196 page = list_last_entry(pages, struct page, lru);
2df0ab045784a1 Chao Yu 2019-03-25 2197
2df0ab045784a1 Chao Yu 2019-03-25 2198 prefetchw(&page->flags);
2df0ab045784a1 Chao Yu 2019-03-25 2199 list_del(&page->lru);
2df0ab045784a1 Chao Yu 2019-03-25 2200 if (add_to_page_cache_lru(page, mapping,
4969c06a0d83c9 Jaegeuk Kim 2019-07-01 2201 page_index(page),
2df0ab045784a1 Chao Yu 2019-03-25 2202 readahead_gfp_mask(mapping)))
2df0ab045784a1 Chao Yu 2019-03-25 2203 goto next_page;
2df0ab045784a1 Chao Yu 2019-03-25 2204 }
2df0ab045784a1 Chao Yu 2019-03-25 2205
4c8ff7095bef64 Chao Yu 2019-11-01 2206 if (f2fs_compressed_file(inode)) {
4c8ff7095bef64 Chao Yu 2019-11-01 2207 /* there are remained comressed pages, submit them */
4c8ff7095bef64 Chao Yu 2019-11-01 @2208 if (!f2fs_cluster_can_merge_page(&cc, page->index)) {
4c8ff7095bef64 Chao Yu 2019-11-01 2209 ret = f2fs_read_multi_pages(&cc, &bio,
4c8ff7095bef64 Chao Yu 2019-11-01 2210 max_nr_pages,
4c8ff7095bef64 Chao Yu 2019-11-01 2211 &last_block_in_bio,
4c8ff7095bef64 Chao Yu 2019-11-01 2212 is_readahead);
4c8ff7095bef64 Chao Yu 2019-11-01 2213 f2fs_destroy_compress_ctx(&cc);
4c8ff7095bef64 Chao Yu 2019-11-01 2214 if (ret)
4c8ff7095bef64 Chao Yu 2019-11-01 2215 goto set_error_page;
4c8ff7095bef64 Chao Yu 2019-11-01 2216 }
4c8ff7095bef64 Chao Yu 2019-11-01 2217 ret = f2fs_is_compressed_cluster(inode, page->index);
4c8ff7095bef64 Chao Yu 2019-11-01 2218 if (ret < 0)
4c8ff7095bef64 Chao Yu 2019-11-01 2219 goto set_error_page;
4c8ff7095bef64 Chao Yu 2019-11-01 2220 else if (!ret)
4c8ff7095bef64 Chao Yu 2019-11-01 2221 goto read_single_page;
4c8ff7095bef64 Chao Yu 2019-11-01 2222
4c8ff7095bef64 Chao Yu 2019-11-01 2223 ret = f2fs_init_compress_ctx(&cc);
4c8ff7095bef64 Chao Yu 2019-11-01 2224 if (ret)
4c8ff7095bef64 Chao Yu 2019-11-01 2225 goto set_error_page;
4c8ff7095bef64 Chao Yu 2019-11-01 2226
4c8ff7095bef64 Chao Yu 2019-11-01 2227 f2fs_compress_ctx_add_page(&cc, page);
4c8ff7095bef64 Chao Yu 2019-11-01 2228
4c8ff7095bef64 Chao Yu 2019-11-01 2229 goto next_page;
4c8ff7095bef64 Chao Yu 2019-11-01 2230 }
4c8ff7095bef64 Chao Yu 2019-11-01 2231 read_single_page:
4c8ff7095bef64 Chao Yu 2019-11-01 2232
4c8ff7095bef64 Chao Yu 2019-11-01 2233 ret = f2fs_read_single_page(inode, page, max_nr_pages, &map,
4c8ff7095bef64 Chao Yu 2019-11-01 2234 &bio, &last_block_in_bio, is_readahead);
2df0ab045784a1 Chao Yu 2019-03-25 2235 if (ret) {
4c8ff7095bef64 Chao Yu 2019-11-01 2236 set_error_page:
2df0ab045784a1 Chao Yu 2019-03-25 2237 SetPageError(page);
2df0ab045784a1 Chao Yu 2019-03-25 2238 zero_user_segment(page, 0, PAGE_SIZE);
2df0ab045784a1 Chao Yu 2019-03-25 2239 unlock_page(page);
2df0ab045784a1 Chao Yu 2019-03-25 2240 }
f1e8866016b53b Jaegeuk Kim 2015-04-09 2241 next_page:
f1e8866016b53b Jaegeuk Kim 2015-04-09 2242 if (pages)
09cbfeaf1a5a67 Kirill A. Shutemov 2016-04-01 2243 put_page(page);
4c8ff7095bef64 Chao Yu 2019-11-01 2244
4c8ff7095bef64 Chao Yu 2019-11-01 2245 if (f2fs_compressed_file(inode)) {
4c8ff7095bef64 Chao Yu 2019-11-01 2246 /* last page */
4c8ff7095bef64 Chao Yu 2019-11-01 @2247 if (nr_pages == 1 && !f2fs_cluster_is_empty(&cc)) {
4c8ff7095bef64 Chao Yu 2019-11-01 2248 ret = f2fs_read_multi_pages(&cc, &bio,
4c8ff7095bef64 Chao Yu 2019-11-01 2249 max_nr_pages,
4c8ff7095bef64 Chao Yu 2019-11-01 2250 &last_block_in_bio,
4c8ff7095bef64 Chao Yu 2019-11-01 2251 is_readahead);
4c8ff7095bef64 Chao Yu 2019-11-01 2252 f2fs_destroy_compress_ctx(&cc);
4c8ff7095bef64 Chao Yu 2019-11-01 2253 }
4c8ff7095bef64 Chao Yu 2019-11-01 2254 }
f1e8866016b53b Jaegeuk Kim 2015-04-09 2255 }
f1e8866016b53b Jaegeuk Kim 2015-04-09 2256 BUG_ON(pages && !list_empty(pages));
f1e8866016b53b Jaegeuk Kim 2015-04-09 2257 if (bio)
4fc29c1aa37535 Linus Torvalds 2016-07-27 2258 __submit_bio(F2FS_I_SB(inode), bio, DATA);
2df0ab045784a1 Chao Yu 2019-03-25 2259 return pages ? 0 : ret;
f1e8866016b53b Jaegeuk Kim 2015-04-09 2260 }
f1e8866016b53b Jaegeuk Kim 2015-04-09 2261
:::::: The code at line 2208 was first introduced by commit
:::::: 4c8ff7095bef64fc47e996a938f7d57f9e077da3 f2fs: support data compression
:::::: TO: Chao Yu <yuchao0(a)huawei.com>
:::::: CC: Jaegeuk Kim <jaegeuk(a)kernel.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 2 months
[hwmon:hwmon-playground 3/12] drivers/hwmon//pmbus/pmbus_core.c:175:25: warning: array subscript 255 is above array bounds of 'const u32[8]' {aka 'const unsigned int[8]'}
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-playground
head: 4e5fc259a7d202d7e13818052a6cdaff0f602b35
commit: 4e87220ea3c48bcb3aeadc4000acf9bcc7aa7522 [3/12] hwmon: (pmbus) Implement multi-phase support
config: arc-randconfig-a001-20200202 (attached as .config)
compiler: arc-elf-gcc (GCC) 9.2.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 4e87220ea3c48bcb3aeadc4000acf9bcc7aa7522
# save the attached .config to linux build tree
GCC_VERSION=9.2.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/hwmon//pmbus/pmbus_core.c: In function 'pmbus_clear_faults':
>> drivers/hwmon//pmbus/pmbus_core.c:175:25: warning: array subscript 255 is above array bounds of 'const u32[8]' {aka 'const unsigned int[8]'} [-Warray-bounds]
175 | !(data->info->pfunc[phase] & PMBUS_PHASE_VIRTUAL)) {
| ~~~~~~~~~~~~~~~~~^~~~~~~
drivers/hwmon//pmbus/pmbus_core.c: In function 'pmbus_read_byte_data':
>> drivers/hwmon//pmbus/pmbus_core.c:175:25: warning: array subscript 255 is above array bounds of 'const u32[8]' {aka 'const unsigned int[8]'} [-Warray-bounds]
175 | !(data->info->pfunc[phase] & PMBUS_PHASE_VIRTUAL)) {
| ~~~~~~~~~~~~~~~~~^~~~~~~
drivers/hwmon//pmbus/pmbus_core.c: In function 'pmbus_write_byte':
>> drivers/hwmon//pmbus/pmbus_core.c:175:25: warning: array subscript 255 is above array bounds of 'const u32[8]' {aka 'const unsigned int[8]'} [-Warray-bounds]
175 | !(data->info->pfunc[phase] & PMBUS_PHASE_VIRTUAL)) {
| ~~~~~~~~~~~~~~~~~^~~~~~~
drivers/hwmon//pmbus/pmbus_core.c: In function 'pmbus_write_word_data':
>> drivers/hwmon//pmbus/pmbus_core.c:175:25: warning: array subscript 255 is above array bounds of 'const u32[8]' {aka 'const unsigned int[8]'} [-Warray-bounds]
175 | !(data->info->pfunc[phase] & PMBUS_PHASE_VIRTUAL)) {
| ~~~~~~~~~~~~~~~~~^~~~~~~
drivers/hwmon//pmbus/pmbus_core.c: In function 'pmbus_write_byte_data':
>> drivers/hwmon//pmbus/pmbus_core.c:175:25: warning: array subscript 255 is above array bounds of 'const u32[8]' {aka 'const unsigned int[8]'} [-Warray-bounds]
175 | !(data->info->pfunc[phase] & PMBUS_PHASE_VIRTUAL)) {
| ~~~~~~~~~~~~~~~~~^~~~~~~
drivers/hwmon//pmbus/pmbus_core.c: In function 'pmbus_update_byte_data':
>> drivers/hwmon//pmbus/pmbus_core.c:175:25: warning: array subscript 255 is above array bounds of 'const u32[8]' {aka 'const unsigned int[8]'} [-Warray-bounds]
175 | !(data->info->pfunc[phase] & PMBUS_PHASE_VIRTUAL)) {
| ~~~~~~~~~~~~~~~~~^~~~~~~
drivers/hwmon//pmbus/pmbus_core.c: In function 'pmbus_update_fan':
>> drivers/hwmon//pmbus/pmbus_core.c:175:25: warning: array subscript 255 is above array bounds of 'const u32[8]' {aka 'const unsigned int[8]'} [-Warray-bounds]
175 | !(data->info->pfunc[phase] & PMBUS_PHASE_VIRTUAL)) {
| ~~~~~~~~~~~~~~~~~^~~~~~~
drivers/hwmon//pmbus/pmbus_core.c: In function 'pmbus_read_status_byte':
>> drivers/hwmon//pmbus/pmbus_core.c:175:25: warning: array subscript 255 is above array bounds of 'const u32[8]' {aka 'const unsigned int[8]'} [-Warray-bounds]
175 | !(data->info->pfunc[phase] & PMBUS_PHASE_VIRTUAL)) {
| ~~~~~~~~~~~~~~~~~^~~~~~~
drivers/hwmon//pmbus/pmbus_core.c: In function 'pmbus_debugfs_get':
>> drivers/hwmon//pmbus/pmbus_core.c:175:25: warning: array subscript 255 is above array bounds of 'const u32[8]' {aka 'const unsigned int[8]'} [-Warray-bounds]
175 | !(data->info->pfunc[phase] & PMBUS_PHASE_VIRTUAL)) {
| ~~~~~~~~~~~~~~~~~^~~~~~~
drivers/hwmon//pmbus/pmbus_core.c: In function '_pmbus_read_byte_data':
>> drivers/hwmon//pmbus/pmbus_core.c:175:25: warning: array subscript 255 is above array bounds of 'const u32[8]' {aka 'const unsigned int[8]'} [-Warray-bounds]
175 | !(data->info->pfunc[phase] & PMBUS_PHASE_VIRTUAL)) {
| ~~~~~~~~~~~~~~~~~^~~~~~~
vim +175 drivers/hwmon//pmbus/pmbus_core.c
150
151 int pmbus_set_page(struct i2c_client *client, int page, int phase)
152 {
153 struct pmbus_data *data = i2c_get_clientdata(client);
154 int rv;
155
156 if (page < 0)
157 return 0;
158
159 if (!(data->info->func[page] & PMBUS_PAGE_VIRTUAL) &&
160 data->info->pages > 1 && page != data->currpage) {
161 rv = i2c_smbus_write_byte_data(client, PMBUS_PAGE, page);
162 if (rv < 0)
163 return rv;
164
165 rv = i2c_smbus_read_byte_data(client, PMBUS_PAGE);
166 if (rv < 0)
167 return rv;
168
169 if (rv != page)
170 return -EIO;
171 }
172 data->currpage = page;
173
174 if (data->info->phases && data->currphase != phase &&
> 175 !(data->info->pfunc[phase] & PMBUS_PHASE_VIRTUAL)) {
176 rv = i2c_smbus_write_byte_data(client, PMBUS_PHASE,
177 phase);
178 if (rv)
179 return rv;
180 }
181 data->currphase = phase;
182
183 return 0;
184 }
185 EXPORT_SYMBOL_GPL(pmbus_set_page);
186
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 2 months
[kvms390:protvirtv2 12/42] arch/s390/kvm/interrupt.c:2383:9: error: implicit declaration of function 'uv_convert_to_secure_pinned'; did you mean 'uv_convert_to_secure'?
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux.git protvirtv2
head: 657e815c2839c2852b87e5909e9bfd650cc3506d
commit: 176ad8c3e9d974c68dd23cbd70a6f8542c1a2626 [12/42] interrupt page
config: s390-alldefconfig (attached as .config)
compiler: s390-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 176ad8c3e9d974c68dd23cbd70a6f8542c1a2626
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=s390
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/s390/kvm/interrupt.c: In function 'kvm_s390_adapter_map':
>> arch/s390/kvm/interrupt.c:2383:9: error: implicit declaration of function 'uv_convert_to_secure_pinned'; did you mean 'uv_convert_to_secure'? [-Werror=implicit-function-declaration]
ret = uv_convert_to_secure_pinned(kvm->arch.gmap, addr, 1);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
uv_convert_to_secure
cc1: some warnings being treated as errors
vim +2383 arch/s390/kvm/interrupt.c
2356
2357 static int kvm_s390_adapter_map(struct kvm *kvm, unsigned int id, __u64 addr)
2358 {
2359 struct s390_io_adapter *adapter = get_io_adapter(kvm, id);
2360 struct s390_map_info *map;
2361 int ret;
2362
2363 if (!adapter || !addr)
2364 return -EINVAL;
2365
2366 map = kzalloc(sizeof(*map), GFP_KERNEL);
2367 if (!map) {
2368 ret = -ENOMEM;
2369 goto out;
2370 }
2371 INIT_LIST_HEAD(&map->list);
2372 map->guest_addr = addr;
2373 map->addr = gmap_translate(kvm->arch.gmap, addr);
2374 if (map->addr == -EFAULT) {
2375 ret = -EFAULT;
2376 goto out;
2377 }
2378 ret = get_user_pages_fast(map->addr, 1, FOLL_WRITE, &map->page);
2379 if (ret < 0)
2380 goto out;
2381 BUG_ON(ret != 1);
2382 do {
> 2383 ret = uv_convert_to_secure_pinned(kvm->arch.gmap, addr, 1);
2384 } while (ret == -EAGAIN);
2385 if (ret)
2386 goto out;
2387
2388 down_write(&adapter->maps_lock);
2389 if (atomic_inc_return(&adapter->nr_maps) < MAX_S390_ADAPTER_MAPS) {
2390 list_add_tail(&map->list, &adapter->maps);
2391 ret = 0;
2392 } else {
2393 put_page(map->page);
2394 ret = -EINVAL;
2395 }
2396 up_write(&adapter->maps_lock);
2397 out:
2398 if (ret)
2399 kfree(map);
2400 return ret;
2401 }
2402
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 2 months
[zen-kernel-zen-kernel:5.5/muqss 2/22] kernel/time/hrtimer.c:2217:14: error: redefinition of 'schedule_msec_hrtimeout'
by kbuild test robot
tree: https://github.com/zen-kernel/zen-kernel 5.5/muqss
head: bf569053d0fe08b3615793a0105afff3d28f3676
commit: 9c34e9485aa8a6a771eeacfc9abf31008d1ce8c2 [2/22] Create highres timeout variants of schedule_timeout functions.
config: i386-tinyconfig (attached as .config)
compiler: gcc-7 (Debian 7.5.0-3) 7.5.0
reproduce:
git checkout 9c34e9485aa8a6a771eeacfc9abf31008d1ce8c2
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
Note: the zen-kernel-zen-kernel/5.5/muqss HEAD bf569053d0fe08b3615793a0105afff3d28f3676 builds fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>):
>> kernel/time/hrtimer.c:2217:14: error: redefinition of 'schedule_msec_hrtimeout'
long __sched schedule_msec_hrtimeout(long timeout)
^~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/ratelimit.h:6:0,
from include/linux/device.h:25,
from include/linux/node.h:18,
from include/linux/cpu.h:17,
from kernel/time/hrtimer.c:25:
include/linux/sched.h:233:20: note: previous definition of 'schedule_msec_hrtimeout' was here
static inline long schedule_msec_hrtimeout(long timeout)
^~~~~~~~~~~~~~~~~~~~~~~
>> kernel/time/hrtimer.c:2261:14: error: redefinition of 'schedule_min_hrtimeout'
long __sched schedule_min_hrtimeout(void)
^~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/ratelimit.h:6:0,
from include/linux/device.h:25,
from include/linux/node.h:18,
from include/linux/cpu.h:17,
from kernel/time/hrtimer.c:25:
include/linux/sched.h:238:20: note: previous definition of 'schedule_min_hrtimeout' was here
static inline long schedule_min_hrtimeout(void)
^~~~~~~~~~~~~~~~~~~~~~
>> kernel/time/hrtimer.c:2268:14: error: redefinition of 'schedule_msec_hrtimeout_interruptible'
long __sched schedule_msec_hrtimeout_interruptible(long timeout)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/ratelimit.h:6:0,
from include/linux/device.h:25,
from include/linux/node.h:18,
from include/linux/cpu.h:17,
from kernel/time/hrtimer.c:25:
include/linux/sched.h:243:20: note: previous definition of 'schedule_msec_hrtimeout_interruptible' was here
static inline long schedule_msec_hrtimeout_interruptible(long timeout)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> kernel/time/hrtimer.c:2275:14: error: redefinition of 'schedule_msec_hrtimeout_uninterruptible'
long __sched schedule_msec_hrtimeout_uninterruptible(long timeout)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/ratelimit.h:6:0,
from include/linux/device.h:25,
from include/linux/node.h:18,
from include/linux/cpu.h:17,
from kernel/time/hrtimer.c:25:
include/linux/sched.h:248:20: note: previous definition of 'schedule_msec_hrtimeout_uninterruptible' was here
static inline long schedule_msec_hrtimeout_uninterruptible(long timeout)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/schedule_msec_hrtimeout +2217 kernel/time/hrtimer.c
2212
2213 /*
2214 * As per schedule_hrtimeout but taskes a millisecond value and returns how
2215 * many milliseconds are left.
2216 */
> 2217 long __sched schedule_msec_hrtimeout(long timeout)
2218 {
2219 struct hrtimer_sleeper t;
2220 int delta, secs, jiffs;
2221 ktime_t expires;
2222
2223 if (!timeout) {
2224 __set_current_state(TASK_RUNNING);
2225 return 0;
2226 }
2227
2228 jiffs = msecs_to_jiffies(timeout);
2229 /*
2230 * If regular timer resolution is adequate or hrtimer resolution is not
2231 * (yet) better than Hz, as would occur during startup, use regular
2232 * timers.
2233 */
2234 if (jiffs > 4 || hrtimer_resolution >= NSEC_PER_SEC / HZ)
2235 return schedule_timeout(jiffs);
2236
2237 secs = timeout / 1000;
2238 delta = (timeout % 1000) * NSEC_PER_MSEC;
2239 expires = ktime_set(secs, delta);
2240
2241 hrtimer_init_sleeper_on_stack(&t, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
2242 hrtimer_set_expires_range_ns(&t.timer, expires, delta);
2243
2244 hrtimer_sleeper_start_expires(&t, HRTIMER_MODE_REL);
2245
2246 if (likely(t.task))
2247 schedule();
2248
2249 hrtimer_cancel(&t.timer);
2250 destroy_hrtimer_on_stack(&t.timer);
2251
2252 __set_current_state(TASK_RUNNING);
2253
2254 expires = hrtimer_expires_remaining(&t.timer);
2255 timeout = ktime_to_ms(expires);
2256 return timeout < 0 ? 0 : timeout;
2257 }
2258
2259 EXPORT_SYMBOL(schedule_msec_hrtimeout);
2260
> 2261 long __sched schedule_min_hrtimeout(void)
2262 {
2263 return schedule_msec_hrtimeout(1);
2264 }
2265
2266 EXPORT_SYMBOL(schedule_min_hrtimeout);
2267
> 2268 long __sched schedule_msec_hrtimeout_interruptible(long timeout)
2269 {
2270 __set_current_state(TASK_INTERRUPTIBLE);
2271 return schedule_msec_hrtimeout(timeout);
2272 }
2273 EXPORT_SYMBOL(schedule_msec_hrtimeout_interruptible);
2274
> 2275 long __sched schedule_msec_hrtimeout_uninterruptible(long timeout)
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 2 months
[linux-platform-drivers-x86:review-andy 72/83] arch/x86/include/asm/intel-family.h:131:23: error: 'INTEL_FAM6_ATOM_TREMONT_L' undeclared here (not in a function); did you mean 'INTEL_FAM6_ATOM_TREMONT_D'?
by kbuild test robot
tree: git://git.infradead.org/linux-platform-drivers-x86 review-andy
head: 407d14e619b1249eef142163b078312ed7c821cb
commit: 379191bd1d00a141b80a26c68e6506c3271a870a [72/83] platform/x86: intel_pmc_core: Add Atom based Jasper Lake (JSL) platform support
config: x86_64-rhel-7.6 (attached as .config)
compiler: gcc-7 (Debian 7.5.0-3) 7.5.0
reproduce:
git checkout 379191bd1d00a141b80a26c68e6506c3271a870a
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/platform/x86/intel_pmc_core.c:27:0:
>> arch/x86/include/asm/intel-family.h:131:23: error: 'INTEL_FAM6_ATOM_TREMONT_L' undeclared here (not in a function); did you mean 'INTEL_FAM6_ATOM_TREMONT_D'?
INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
^
arch/x86/include/asm/intel-family.h:125:12: note: in definition of macro 'INTEL_CPU_FAM_ANY'
.model = _model, \
^~~~~~
drivers/platform/x86/intel_pmc_core.c:886:2: note: in expansion of macro 'INTEL_CPU_FAM6'
INTEL_CPU_FAM6(ATOM_TREMONT_L, tgl_reg_map),
^~~~~~~~~~~~~~
--
In file included from drivers/platform//x86/intel_pmc_core.c:27:0:
>> arch/x86/include/asm/intel-family.h:131:23: error: 'INTEL_FAM6_ATOM_TREMONT_L' undeclared here (not in a function); did you mean 'INTEL_FAM6_ATOM_TREMONT_D'?
INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
^
arch/x86/include/asm/intel-family.h:125:12: note: in definition of macro 'INTEL_CPU_FAM_ANY'
.model = _model, \
^~~~~~
drivers/platform//x86/intel_pmc_core.c:886:2: note: in expansion of macro 'INTEL_CPU_FAM6'
INTEL_CPU_FAM6(ATOM_TREMONT_L, tgl_reg_map),
^~~~~~~~~~~~~~
vim +131 arch/x86/include/asm/intel-family.h
e2ce67b2b34b6e Andy Shevchenko 2018-06-29 129
e2ce67b2b34b6e Andy Shevchenko 2018-06-29 130 #define INTEL_CPU_FAM6(_model, _driver_data) \
e2ce67b2b34b6e Andy Shevchenko 2018-06-29 @131 INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
e2ce67b2b34b6e Andy Shevchenko 2018-06-29 132
:::::: The code at line 131 was first introduced by commit
:::::: e2ce67b2b34b6e9d77da2f375dba5b525508f7df x86/cpu: Introduce INTEL_CPU_FAM*() helper macros
:::::: TO: Andy Shevchenko <andriy.shevchenko(a)linux.intel.com>
:::::: CC: Thomas Gleixner <tglx(a)linutronix.de>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 2 months
[zen-kernel-zen-kernel:5.5/muqss 1/22] kernel/sched/MuQSS.c:6758:17: error: 'cpu_llc_shared_map' undeclared; did you mean 'sd_llc_shared'?
by kbuild test robot
tree: https://github.com/zen-kernel/zen-kernel 5.5/muqss
head: bf569053d0fe08b3615793a0105afff3d28f3676
commit: c58e2d61f83d40ac72e858d41b3b277b345b9387 [1/22] MultiQueue Skiplist Scheduler v0.196.
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-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 c58e2d61f83d40ac72e858d41b3b277b345b9387
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=arm64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
kernel/sched/MuQSS.c: In function 'unlock_rq':
kernel/sched/MuQSS.c:463:46: error: macro "spin_release" passed 3 arguments, but takes just 2
spin_release(&rq->lock->dep_map, 1, _RET_IP_);
^
kernel/sched/MuQSS.c:463:2: error: 'spin_release' undeclared (first use in this function); did you mean 'seq_release'?
spin_release(&rq->lock->dep_map, 1, _RET_IP_);
^~~~~~~~~~~~
seq_release
kernel/sched/MuQSS.c:463:2: note: each undeclared identifier is reported only once for each function it appears in
kernel/sched/MuQSS.c: In function 'prepare_lock_switch':
kernel/sched/MuQSS.c:2583:47: error: macro "spin_release" passed 3 arguments, but takes just 2
spin_release(&rq->lock->dep_map, 1, _THIS_IP_);
^
kernel/sched/MuQSS.c:2583:2: error: 'spin_release' undeclared (first use in this function); did you mean 'seq_release'?
spin_release(&rq->lock->dep_map, 1, _THIS_IP_);
^~~~~~~~~~~~
seq_release
In file included from include/asm-generic/percpu.h:7:0,
from arch/arm64/include/asm/percpu.h:228,
from arch/arm64/include/asm/smp.h:28,
from include/linux/smp.h:68,
from arch/arm64/include/asm/arch_timer.h:18,
from arch/arm64/include/asm/timex.h:8,
from include/linux/timex.h:65,
from include/linux/clocksource.h:13,
from include/linux/clockchips.h:14,
from include/linux/tick.h:8,
from include/linux/sched/isolation.h:6,
from kernel/sched/MuQSS.c:35:
kernel/sched/MuQSS.c: In function 'llc_core_cpumask':
>> kernel/sched/MuQSS.c:6758:17: error: 'cpu_llc_shared_map' undeclared (first use in this function); did you mean 'sd_llc_shared'?
return per_cpu(cpu_llc_shared_map, cpu);
^
include/linux/percpu-defs.h:220:47: note: in definition of macro '__verify_pcpu_ptr'
const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
^~~
include/linux/percpu-defs.h:270:29: note: in expansion of macro 'per_cpu_ptr'
#define per_cpu(var, cpu) (*per_cpu_ptr(&(var), cpu))
^~~~~~~~~~~
kernel/sched/MuQSS.c:6758:9: note: in expansion of macro 'per_cpu'
return per_cpu(cpu_llc_shared_map, cpu);
^~~~~~~
kernel/sched/MuQSS.c: In function 'sched_init_smp':
>> kernel/sched/MuQSS.c:7071:85: error: 'cpu_llc_id' undeclared (first use in this function); did you mean 'sd_llc_id'?
printk(KERN_DEBUG "MuQSS CPU %d llc %d RQ order %d RQ %d llc %d\n", cpu, per_cpu(cpu_llc_id, cpu), i,
^
include/linux/percpu-defs.h:220:47: note: in definition of macro '__verify_pcpu_ptr'
const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL; \
^~~
include/linux/percpu-defs.h:270:29: note: in expansion of macro 'per_cpu_ptr'
#define per_cpu(var, cpu) (*per_cpu_ptr(&(var), cpu))
^~~~~~~~~~~
kernel/sched/MuQSS.c:7071:77: note: in expansion of macro 'per_cpu'
printk(KERN_DEBUG "MuQSS CPU %d llc %d RQ order %d RQ %d llc %d\n", cpu, per_cpu(cpu_llc_id, cpu), i,
^~~~~~~
kernel/sched/MuQSS.c: In function 'llc_core_cpumask':
kernel/sched/MuQSS.c:6759:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
vim +6758 kernel/sched/MuQSS.c
6723
6724 #if defined(CONFIG_SCHED_SMT) || defined(CONFIG_SCHED_MC)
6725 /*
6726 * Cheaper version of the below functions in case support for SMT and MC is
6727 * compiled in but CPUs have no siblings.
6728 */
6729 static bool sole_cpu_idle(struct rq *rq)
6730 {
6731 return rq_idle(rq);
6732 }
6733 #endif
6734 #ifdef CONFIG_SCHED_SMT
6735 static const cpumask_t *thread_cpumask(int cpu)
6736 {
6737 return topology_sibling_cpumask(cpu);
6738 }
6739 /* All this CPU's SMT siblings are idle */
6740 static bool siblings_cpu_idle(struct rq *rq)
6741 {
6742 return cpumask_subset(&rq->thread_mask, &cpu_idle_map);
6743 }
6744 #endif
6745 #ifdef CONFIG_SCHED_MC
6746 static const cpumask_t *core_cpumask(int cpu)
6747 {
6748 return topology_core_cpumask(cpu);
6749 }
6750 /* All this CPU's shared cache siblings are idle */
6751 static bool cache_cpu_idle(struct rq *rq)
6752 {
6753 return cpumask_subset(&rq->core_mask, &cpu_idle_map);
6754 }
6755 /* MC siblings CPU mask which share the same LLC */
6756 static const cpumask_t *llc_core_cpumask(int cpu)
6757 {
> 6758 return per_cpu(cpu_llc_shared_map, cpu);
6759 }
6760 #endif
6761
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 2 months
[rppt:pg_table/v0.0 5/18] include/linux/compiler_types.h:129:35: error: 'struct mm_struct' has no member named 'pgd'
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git pg_table/v0.0
head: fd150c5a9ef6e3e43818825c69a46de2b427dedf
commit: e5db6ff88e6ef1ff9ab6fefb7ec882d7e329f783 [5/18] mm: move pgd into 'struct pg_table'
config: mips-malta_kvm_defconfig (attached as .config)
compiler: mipsel-linux-gcc (GCC) 5.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 e5db6ff88e6ef1ff9ab6fefb7ec882d7e329f783
# save the attached .config to linux build tree
GCC_VERSION=5.5.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from arch/mips/include/asm/tlbex.h:5:0,
from arch/mips//kvm/entry.c:19:
arch/mips//kvm/entry.c: In function 'kvm_mips_build_enter_guest':
>> include/linux/compiler_types.h:129:35: error: 'struct mm_struct' has no member named 'pgd'
#define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
^
arch/mips/include/asm/uasm.h:230:57: note: in definition of macro 'UASM_i_LW'
# define UASM_i_LW(buf, rs, rt, off) uasm_i_lw(buf, rs, rt, off)
^
include/linux/stddef.h:17:32: note: in expansion of macro '__compiler_offsetof'
#define offsetof(TYPE, MEMBER) __compiler_offsetof(TYPE, MEMBER)
^
>> arch/mips//kvm/entry.c:413:25: note: in expansion of macro 'offsetof'
UASM_i_LW(&p, A0, (int)offsetof(struct mm_struct, pgd) -
^
--
arch/mips//kvm/mmu.c: In function 'kvm_mips_pte_for_gpa':
>> arch/mips//kvm/mmu.c:177:43: error: 'struct mm_struct' has no member named 'pgd'
return kvm_mips_walk_pgd(kvm->arch.gpa_mm.pgd, cache, addr);
^
arch/mips//kvm/mmu.c: In function 'kvm_mips_flush_gpa_pt':
arch/mips//kvm/mmu.c:301:48: error: 'struct mm_struct' has no member named 'pgd'
return kvm_mips_flush_gpa_pgd(kvm->arch.gpa_mm.pgd,
^
arch/mips//kvm/mmu.c: In function 'kvm_mips_mkclean_gpa_pt':
arch/mips//kvm/mmu.c:425:46: error: 'struct mm_struct' has no member named 'pgd'
return kvm_mips_mkclean_pgd(kvm->arch.gpa_mm.pgd,
^
arch/mips//kvm/mmu.c: In function 'kvm_mips_mkold_gpa_pt':
arch/mips//kvm/mmu.c:463:44: error: 'struct mm_struct' has no member named 'pgd'
return kvm_mips_mkold_pgd(kvm->arch.gpa_mm.pgd,
^
arch/mips//kvm/mmu.c: In function 'kvm_trap_emul_pte_for_gva':
arch/mips//kvm/mmu.c:799:36: error: 'struct mm_struct' has no member named 'pgd'
pgdp = vcpu->arch.guest_kernel_mm.pgd;
^
arch/mips//kvm/mmu.c:801:34: error: 'struct mm_struct' has no member named 'pgd'
pgdp = vcpu->arch.guest_user_mm.pgd;
^
arch/mips//kvm/mmu.c: In function 'kvm_trap_emul_invalidate_gva':
arch/mips//kvm/mmu.c:814:35: error: 'struct mm_struct' has no member named 'pgd'
pgdp = vcpu->arch.guest_kernel_mm.pgd;
^
arch/mips//kvm/mmu.c:822:34: error: 'struct mm_struct' has no member named 'pgd'
pgdp = vcpu->arch.guest_user_mm.pgd;
^
arch/mips//kvm/mmu.c: In function 'kvm_mips_flush_gpa_pt':
arch/mips//kvm/mmu.c:304:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
arch/mips//kvm/mmu.c: In function 'kvm_mips_mkclean_gpa_pt':
arch/mips//kvm/mmu.c:428:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
arch/mips//kvm/mmu.c: In function 'kvm_mips_pte_for_gpa':
arch/mips//kvm/mmu.c:178:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
arch/mips//kvm/mmu.c: In function 'kvm_mips_mkold_gpa_pt':
arch/mips//kvm/mmu.c:466:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
cc1: all warnings being treated as errors
--
arch/mips//kvm/trap_emul.c: In function 'kvm_trap_emul_vcpu_uninit':
>> arch/mips//kvm/trap_emul.c:607:54: error: 'struct mm_struct' has no member named 'pgd'
kvm_mips_emul_free_gva_pt(vcpu->arch.guest_kernel_mm.pgd);
^
arch/mips//kvm/trap_emul.c:608:52: error: 'struct mm_struct' has no member named 'pgd'
kvm_mips_emul_free_gva_pt(vcpu->arch.guest_user_mm.pgd);
^
vim +129 include/linux/compiler_types.h
71391bdd2e9aab Xiaozhou Liu 2018-12-14 128
71391bdd2e9aab Xiaozhou Liu 2018-12-14 @129 #define __compiler_offsetof(a, b) __builtin_offsetof(a, b)
71391bdd2e9aab Xiaozhou Liu 2018-12-14 130
:::::: The code at line 129 was first introduced by commit
:::::: 71391bdd2e9aab188f86bf1ecd9b232531ec7eea include/linux/compiler_types.h: don't pollute userspace with macro definitions
:::::: TO: Xiaozhou Liu <liuxiaozhou(a)bytedance.com>
:::::: CC: Miguel Ojeda <miguel.ojeda.sandonis(a)gmail.com>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
1 year, 2 months