include/linux/compiler.h:350:38: error: call to '__compiletime_assert_3136' declared with attribute error: BUILD_BUG_ON failed: cea_mode_for_vic(8)->vtotal != 262 || cea_mode_for_vic(9)->vtotal != 262 || cea_mode_for_vic(12)->vtotal != 262 || cea_mode_for_vic(13)->vtotal != 262 || cea_mode_for_vic(23)->vtotal != 312 || cea_mode_for_vic(24)->vtotal != 312 || cea_mode_for_vic(27)->vtotal != 312 || cea_mode_for_vic(28)->vtotal != 312
by kbuild test robot
Hi Ville,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 35c222fd323629cf2e834eb8aff77058856ffdda
commit: 7befe621ff81d8063c13d6452b04e6ebc92b22fd drm/edid: Abstract away cea_edid_modes[]
date: 7 weeks ago
config: i386-randconfig-a002-20200129 (attached as .config)
compiler: gcc-6 (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
reproduce:
git checkout 7befe621ff81d8063c13d6452b04e6ebc92b22fd
# 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>
All errors (new ones prefixed by >>):
In file included from include/linux/ioport.h:13:0,
from include/linux/device.h:15,
from include/linux/hdmi.h:28,
from drivers/gpu/drm/drm_edid.c:31:
drivers/gpu/drm/drm_edid.c: In function 'cea_mode_alternate_timings':
>> include/linux/compiler.h:350:38: error: call to '__compiletime_assert_3136' declared with attribute error: BUILD_BUG_ON failed: cea_mode_for_vic(8)->vtotal != 262 || cea_mode_for_vic(9)->vtotal != 262 || cea_mode_for_vic(12)->vtotal != 262 || cea_mode_for_vic(13)->vtotal != 262 || cea_mode_for_vic(23)->vtotal != 312 || cea_mode_for_vic(24)->vtotal != 312 || cea_mode_for_vic(27)->vtotal != 312 || cea_mode_for_vic(28)->vtotal != 312
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^
include/linux/compiler.h:331:4: note: in definition of macro '__compiletime_assert'
prefix ## suffix(); \
^~~~~~
include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^~~~~~~~~~~~~~~~
drivers/gpu/drm/drm_edid.c:3129:2: note: in expansion of macro 'BUILD_BUG_ON'
BUILD_BUG_ON(cea_mode_for_vic(8)->vtotal != 262 ||
^~~~~~~~~~~~
vim +/__compiletime_assert_3136 +350 include/linux/compiler.h
9a8ab1c39970a4 Daniel Santos 2013-02-21 336
9a8ab1c39970a4 Daniel Santos 2013-02-21 337 #define _compiletime_assert(condition, msg, prefix, suffix) \
9a8ab1c39970a4 Daniel Santos 2013-02-21 338 __compiletime_assert(condition, msg, prefix, suffix)
9a8ab1c39970a4 Daniel Santos 2013-02-21 339
9a8ab1c39970a4 Daniel Santos 2013-02-21 340 /**
9a8ab1c39970a4 Daniel Santos 2013-02-21 341 * compiletime_assert - break build and emit msg if condition is false
9a8ab1c39970a4 Daniel Santos 2013-02-21 342 * @condition: a compile-time constant condition to check
9a8ab1c39970a4 Daniel Santos 2013-02-21 343 * @msg: a message to emit if condition is false
9a8ab1c39970a4 Daniel Santos 2013-02-21 344 *
9a8ab1c39970a4 Daniel Santos 2013-02-21 345 * In tradition of POSIX assert, this macro will break the build if the
9a8ab1c39970a4 Daniel Santos 2013-02-21 346 * supplied condition is *false*, emitting the supplied error message if the
9a8ab1c39970a4 Daniel Santos 2013-02-21 347 * compiler has support to do so.
9a8ab1c39970a4 Daniel Santos 2013-02-21 348 */
9a8ab1c39970a4 Daniel Santos 2013-02-21 349 #define compiletime_assert(condition, msg) \
9a8ab1c39970a4 Daniel Santos 2013-02-21 @350 _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
9a8ab1c39970a4 Daniel Santos 2013-02-21 351
:::::: The code at line 350 was first introduced by commit
:::::: 9a8ab1c39970a4938a72d94e6fd13be88a797590 bug.h, compiler.h: introduce compiletime_assert & BUILD_BUG_ON_MSG
:::::: TO: Daniel Santos <daniel.santos(a)pobox.com>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
2 years, 4 months
[android-common:android-5.4 1/6] include/uapi/linux/incrementalfs.h:21:28: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '357661101641' to '1178816073'
by kbuild test robot
tree: https://android.googlesource.com/kernel/common android-5.4
head: 383f53ee186a22c3d04cc6809e3b5e13bc2b571d
commit: 1be052b20ba04b635cf87bcff80de5314697953e [1/6] ANDROID: Initial commit of Incremental FS
config: nds32-allyesconfig (attached as .config)
compiler: nds32le-linux-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 1be052b20ba04b635cf87bcff80de5314697953e
# save the attached .config to linux build tree
GCC_VERSION=9.2.0 make.cross ARCH=nds32
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
fs/incfs/vfs.c: In function 'ioctl_create_file':
fs/incfs/vfs.c:1324:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1324 | (struct incfs_file_signature_info __user *)
| ^
In file included from fs/incfs/vfs.c:19:
fs/incfs/vfs.c: In function 'incfs_mount_fs':
>> include/uapi/linux/incrementalfs.h:21:28: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '357661101641' to '1178816073' [-Woverflow]
21 | #define INCFS_MAGIC_NUMBER (0x5346434e49ul)
| ^
fs/incfs/vfs.c:2076:16: note: in expansion of macro 'INCFS_MAGIC_NUMBER'
2076 | sb->s_magic = INCFS_MAGIC_NUMBER;
| ^~~~~~~~~~~~~~~~~~
--
fs//incfs/vfs.c: In function 'ioctl_create_file':
fs//incfs/vfs.c:1324:4: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1324 | (struct incfs_file_signature_info __user *)
| ^
In file included from fs//incfs/vfs.c:19:
fs//incfs/vfs.c: In function 'incfs_mount_fs':
>> include/uapi/linux/incrementalfs.h:21:28: warning: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '357661101641' to '1178816073' [-Woverflow]
21 | #define INCFS_MAGIC_NUMBER (0x5346434e49ul)
| ^
fs//incfs/vfs.c:2076:16: note: in expansion of macro 'INCFS_MAGIC_NUMBER'
2076 | sb->s_magic = INCFS_MAGIC_NUMBER;
| ^~~~~~~~~~~~~~~~~~
vim +21 include/uapi/linux/incrementalfs.h
18
19 /* ===== constants ===== */
20 #define INCFS_NAME "incremental-fs"
> 21 #define INCFS_MAGIC_NUMBER (0x5346434e49ul)
22 #define INCFS_DATA_FILE_BLOCK_SIZE 4096
23 #define INCFS_HEADER_VER 1
24
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
2 years, 4 months
[wsa:i2c/for-next 99/100] drivers/i2c/busses/i2c-stm32f7.c:2199:44: error: 'struct dev_pm_info' has no member named 'wakeup_path'
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/for-next
head: abb49954dd66362ccb6aef0075e8f97e457de632
commit: 4921dd873b407e0d589d8d1af5e9875490e91a72 [99/100] i2c: stm32f7: allow controller to be wakeup-source
config: sh-allmodconfig (attached as .config)
compiler: sh4-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 4921dd873b407e0d589d8d1af5e9875490e91a72
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=sh
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/i2c/busses/i2c-stm32f7.c: In function 'stm32f7_i2c_suspend':
>> drivers/i2c/busses/i2c-stm32f7.c:2199:44: error: 'struct dev_pm_info' has no member named 'wakeup_path'
if (!device_may_wakeup(dev) && !dev->power.wakeup_path) {
^
drivers/i2c/busses/i2c-stm32f7.c: In function 'stm32f7_i2c_resume':
drivers/i2c/busses/i2c-stm32f7.c:2218:44: error: 'struct dev_pm_info' has no member named 'wakeup_path'
if (!device_may_wakeup(dev) && !dev->power.wakeup_path) {
^
vim +2199 drivers/i2c/busses/i2c-stm32f7.c
2191
2192 static int __maybe_unused stm32f7_i2c_suspend(struct device *dev)
2193 {
2194 struct stm32f7_i2c_dev *i2c_dev = dev_get_drvdata(dev);
2195 int ret;
2196
2197 i2c_mark_adapter_suspended(&i2c_dev->adap);
2198
> 2199 if (!device_may_wakeup(dev) && !dev->power.wakeup_path) {
2200 ret = stm32f7_i2c_regs_backup(i2c_dev);
2201 if (ret < 0) {
2202 i2c_mark_adapter_resumed(&i2c_dev->adap);
2203 return ret;
2204 }
2205
2206 pinctrl_pm_select_sleep_state(dev);
2207 pm_runtime_force_suspend(dev);
2208 }
2209
2210 return 0;
2211 }
2212
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
2 years, 4 months
[linux-next:master 11722/11979] fs/io_uring.c:2661:22: error: 'IO_WQ_WORK_NEEDS_FILES' undeclared; did you mean 'IO_WQ_WORK_NO_CANCEL'?
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: c32e1d01a152aee976763ccf7c7ced53ca45b78f
commit: 4633c45b49f2ba51f6688ac2aef6f74a25fcb433 [11722/11979] Merge branch 'for-5.6/io_uring-vfs' into for-next
config: parisc-c3000_defconfig (attached as .config)
compiler: hppa-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 4633c45b49f2ba51f6688ac2aef6f74a25fcb433
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=parisc
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
Note: the linux-next/master HEAD c32e1d01a152aee976763ccf7c7ced53ca45b78f builds fine.
It may have been fixed somewhere.
All errors (new ones prefixed by >>):
fs/io_uring.c: In function 'io_epoll_ctl':
>> fs/io_uring.c:2661:22: error: 'IO_WQ_WORK_NEEDS_FILES' undeclared (first use in this function); did you mean 'IO_WQ_WORK_NO_CANCEL'?
req->work.flags |= IO_WQ_WORK_NEEDS_FILES;
^~~~~~~~~~~~~~~~~~~~~~
IO_WQ_WORK_NO_CANCEL
fs/io_uring.c:2661:22: note: each undeclared identifier is reported only once for each function it appears in
vim +2661 fs/io_uring.c
6adb44effcb097 Jens Axboe 2020-01-08 2651
6adb44effcb097 Jens Axboe 2020-01-08 2652 static int io_epoll_ctl(struct io_kiocb *req, struct io_kiocb **nxt,
6adb44effcb097 Jens Axboe 2020-01-08 2653 bool force_nonblock)
6adb44effcb097 Jens Axboe 2020-01-08 2654 {
6adb44effcb097 Jens Axboe 2020-01-08 2655 #if defined(CONFIG_EPOLL)
6adb44effcb097 Jens Axboe 2020-01-08 2656 struct io_epoll *ie = &req->epoll;
6adb44effcb097 Jens Axboe 2020-01-08 2657 int ret;
6adb44effcb097 Jens Axboe 2020-01-08 2658
6adb44effcb097 Jens Axboe 2020-01-08 2659 ret = do_epoll_ctl(ie->epfd, ie->op, ie->fd, &ie->event, force_nonblock);
6adb44effcb097 Jens Axboe 2020-01-08 2660 if (force_nonblock && ret == -EAGAIN) {
6adb44effcb097 Jens Axboe 2020-01-08 @2661 req->work.flags |= IO_WQ_WORK_NEEDS_FILES;
6adb44effcb097 Jens Axboe 2020-01-08 2662 return -EAGAIN;
6adb44effcb097 Jens Axboe 2020-01-08 2663 }
6adb44effcb097 Jens Axboe 2020-01-08 2664
6adb44effcb097 Jens Axboe 2020-01-08 2665 if (ret < 0)
6adb44effcb097 Jens Axboe 2020-01-08 2666 req_set_fail_links(req);
6adb44effcb097 Jens Axboe 2020-01-08 2667 io_cqring_add_event(req, ret);
6adb44effcb097 Jens Axboe 2020-01-08 2668 io_put_req_find_next(req, nxt);
6adb44effcb097 Jens Axboe 2020-01-08 2669 return 0;
6adb44effcb097 Jens Axboe 2020-01-08 2670 #else
6adb44effcb097 Jens Axboe 2020-01-08 2671 return -EOPNOTSUPP;
6adb44effcb097 Jens Axboe 2020-01-08 2672 #endif
6adb44effcb097 Jens Axboe 2020-01-08 2673 }
6adb44effcb097 Jens Axboe 2020-01-08 2674
:::::: The code at line 2661 was first introduced by commit
:::::: 6adb44effcb0979a6ba8fa0fddcd26fd4f33efa0 io_uring: add support for epoll_ctl(2)
:::::: TO: Jens Axboe <axboe(a)kernel.dk>
:::::: CC: Jens Axboe <axboe(a)kernel.dk>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
2 years, 4 months
[peterz-queue:locking/core 5/16] arch/m68k/include/asm/mcf_pgalloc.h:41:24: error: passing argument 1 of 'pgtable_pte_page_dtor' from incompatible pointer type
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git locking/core
head: 721d27733a8903018aafc4b7f7394c852c0a6387
commit: efe9f607af3ff925efdbb946077aed69ca26b86d [5/16] m68k,mm: Use table allocator for pgtables
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 efe9f607af3ff925efdbb946077aed69ca26b86d
# 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 error/warnings (new ones prefixed by >>):
In file included from arch/m68k/include/asm/pgalloc.h:12:0,
from include/asm-generic/tlb.h:16,
from arch/m68k/include/asm/tlb.h:5,
from arch/m68k/kernel/sys_m68k.c:35:
arch/m68k/include/asm/mcf_pgalloc.h: In function '__pte_free_tlb':
>> arch/m68k/include/asm/mcf_pgalloc.h:41:24: error: passing argument 1 of 'pgtable_pte_page_dtor' from incompatible pointer type [-Werror=incompatible-pointer-types]
pgtable_pte_page_dtor(page);
^~~~
In file included from arch/m68k/kernel/sys_m68k.c:13:0:
include/linux/mm.h:1949:20: note: expected 'struct page *' but argument is of type 'pgtable_t {aka struct <anonymous> *}'
static inline void pgtable_pte_page_dtor(struct page *page)
^~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/mm.h:10:0,
from arch/m68k/kernel/sys_m68k.c:13:
>> include/linux/gfp.h:577:40: error: passing argument 1 of '__free_pages' from incompatible pointer type [-Werror=incompatible-pointer-types]
#define __free_page(page) __free_pages((page), 0)
^
>> arch/m68k/include/asm/mcf_pgalloc.h:42:2: note: in expansion of macro '__free_page'
__free_page(page);
^~~~~~~~~~~
include/linux/gfp.h:566:13: note: expected 'struct page *' but argument is of type 'pgtable_t {aka struct <anonymous> *}'
extern void __free_pages(struct page *page, unsigned int order);
^~~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from arch/m68k/include/asm/pgalloc.h:12:0,
from mm/memory.c:79:
arch/m68k/include/asm/mcf_pgalloc.h: In function '__pte_free_tlb':
>> arch/m68k/include/asm/mcf_pgalloc.h:41:24: error: passing argument 1 of 'pgtable_pte_page_dtor' from incompatible pointer type [-Werror=incompatible-pointer-types]
pgtable_pte_page_dtor(page);
^~~~
In file included from mm/memory.c:43:0:
include/linux/mm.h:1949:20: note: expected 'struct page *' but argument is of type 'pgtable_t {aka struct <anonymous> *}'
static inline void pgtable_pte_page_dtor(struct page *page)
^~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/mm.h:10:0,
from mm/memory.c:43:
>> include/linux/gfp.h:577:40: error: passing argument 1 of '__free_pages' from incompatible pointer type [-Werror=incompatible-pointer-types]
#define __free_page(page) __free_pages((page), 0)
^
>> arch/m68k/include/asm/mcf_pgalloc.h:42:2: note: in expansion of macro '__free_page'
__free_page(page);
^~~~~~~~~~~
include/linux/gfp.h:566:13: note: expected 'struct page *' but argument is of type 'pgtable_t {aka struct <anonymous> *}'
extern void __free_pages(struct page *page, unsigned int order);
^~~~~~~~~~~~
In file included from arch/m68k/include/asm/pgtable_mm.h:149:0,
from arch/m68k/include/asm/pgtable.h:5,
from include/linux/mm.h:99,
from mm/memory.c:43:
mm/memory.c: In function 'free_pte_range':
>> arch/m68k/include/asm/mcf_pgtable.h:391:24: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
#define pmd_page(pmd) (pfn_to_page(pmd_val(pmd) >> PAGE_SHIFT))
^
>> arch/m68k/include/asm/mcf_pgalloc.h:36:26: note: in expansion of macro 'pmd_page'
#define pmd_pgtable(pmd) pmd_page(pmd)
^~~~~~~~
mm/memory.c:216:20: note: in expansion of macro 'pmd_pgtable'
pgtable_t token = pmd_pgtable(*pmd);
^~~~~~~~~~~
mm/memory.c: In function '__pte_alloc':
>> mm/memory.c:426:18: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
pgtable_t new = pte_alloc_one(mm);
^~~~~~~~~~~~~
In file included from arch/m68k/include/asm/pgalloc.h:12:0,
from mm/memory.c:79:
>> mm/memory.c:448:25: error: passing argument 1 of 'page_address' from incompatible pointer type [-Werror=incompatible-pointer-types]
pmd_populate(mm, pmd, new);
^
arch/m68k/include/asm/mcf_pgalloc.h:32:31: note: in definition of macro 'pmd_populate'
(unsigned long)(page_address(page)))
^~~~
In file included from mm/memory.c:43:0:
include/linux/mm.h:1309:21: note: expected 'const struct page *' but argument is of type 'pgtable_t {aka struct <anonymous> *}'
static inline void *page_address(const struct page *page)
^~~~~~~~~~~~
>> mm/memory.c:453:16: error: passing argument 2 of 'pte_free' from incompatible pointer type [-Werror=incompatible-pointer-types]
pte_free(mm, new);
^~~
In file included from arch/m68k/include/asm/pgalloc.h:12:0,
from mm/memory.c:79:
arch/m68k/include/asm/mcf_pgalloc.h:69:20: note: expected 'struct page *' but argument is of type 'pgtable_t {aka struct <anonymous> *}'
static inline void pte_free(struct mm_struct *mm, struct page *page)
^~~~~~~~
mm/memory.c: In function '__do_fault':
>> mm/memory.c:3234:21: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
vmf->prealloc_pte = pte_alloc_one(vmf->vma->vm_mm);
^
In file included from arch/m68k/include/asm/pgalloc.h:12:0,
from mm/memory.c:79:
mm/memory.c: In function 'pte_alloc_one_map':
mm/memory.c:3286:38: error: passing argument 1 of 'page_address' from incompatible pointer type [-Werror=incompatible-pointer-types]
pmd_populate(vma->vm_mm, vmf->pmd, vmf->prealloc_pte);
^
arch/m68k/include/asm/mcf_pgalloc.h:32:31: note: in definition of macro 'pmd_populate'
(unsigned long)(page_address(page)))
^~~~
In file included from mm/memory.c:43:0:
include/linux/mm.h:1309:21: note: expected 'const struct page *' but argument is of type 'pgtable_t {aka struct <anonymous> *}'
static inline void *page_address(const struct page *page)
^~~~~~~~~~~~
mm/memory.c: In function 'do_fault_around':
mm/memory.c:3592:21: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
vmf->prealloc_pte = pte_alloc_one(vmf->vma->vm_mm);
^
mm/memory.c: In function 'do_fault':
mm/memory.c:3774:19: error: passing argument 2 of 'pte_free' from incompatible pointer type [-Werror=incompatible-pointer-types]
pte_free(vm_mm, vmf->prealloc_pte);
^~~
In file included from arch/m68k/include/asm/pgalloc.h:12:0,
from mm/memory.c:79:
arch/m68k/include/asm/mcf_pgalloc.h:69:20: note: expected 'struct page *' but argument is of type 'pgtable_t {aka struct <anonymous> *}'
static inline void pte_free(struct mm_struct *mm, struct page *page)
^~~~~~~~
cc1: some warnings being treated as errors
vim +/pgtable_pte_page_dtor +41 arch/m68k/include/asm/mcf_pgalloc.h
74d4799221d0f5 Greg Ungerer 2011-10-18 35
74d4799221d0f5 Greg Ungerer 2011-10-18 @36 #define pmd_pgtable(pmd) pmd_page(pmd)
74d4799221d0f5 Greg Ungerer 2011-10-18 37
74d4799221d0f5 Greg Ungerer 2011-10-18 38 static inline void __pte_free_tlb(struct mmu_gather *tlb, pgtable_t page,
74d4799221d0f5 Greg Ungerer 2011-10-18 39 unsigned long address)
74d4799221d0f5 Greg Ungerer 2011-10-18 40 {
b4ed71f557e458 Mark Rutland 2019-09-25 @41 pgtable_pte_page_dtor(page);
74d4799221d0f5 Greg Ungerer 2011-10-18 @42 __free_page(page);
74d4799221d0f5 Greg Ungerer 2011-10-18 43 }
74d4799221d0f5 Greg Ungerer 2011-10-18 44
:::::: The code at line 41 was first introduced by commit
:::::: b4ed71f557e458257e0f71b11969954acb389240 mm: treewide: clarify pgtable_page_{ctor,dtor}() naming
:::::: TO: Mark Rutland <mark.rutland(a)arm.com>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
2 years, 4 months
drivers//mmc/core/mmc_test.c:492:20: note: in expansion of macro 'virt_to_page'
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 35c222fd323629cf2e834eb8aff77058856ffdda
commit: 6bd33e1ece528f67646db33bf97406b747dafda0 riscv: add nommu support
date: 2 months ago
config: riscv-randconfig-a001-20200131 (attached as .config)
compiler: riscv64-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 6bd33e1ece528f67646db33bf97406b747dafda0
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=riscv
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/riscv/include/asm/page.h:131:0,
from arch/riscv/include/asm/thread_info.h:11,
from include/linux/thread_info.h:38,
from include/asm-generic/preempt.h:5,
from ./arch/riscv/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/radix-tree.h:14,
from include/linux/idr.h:15,
from include/linux/kernfs.h:13,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/device.h:16,
from include/linux/dmaengine.h:8,
from drivers//dma/qcom/hidma_mgmt.c:8:
include/linux/mm.h: In function 'virt_to_head_page':
>> include/asm-generic/memory_model.h:54:29: error: 'vmemmap' undeclared (first use in this function); did you mean 'mem_map'?
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
arch/riscv/include/asm/page.h:112:30: note: in expansion of macro 'pfn_to_page'
#define virt_to_page(vaddr) (pfn_to_page(virt_to_pfn(vaddr)))
^~~~~~~~~~~
include/linux/mm.h:751:22: note: in expansion of macro 'virt_to_page'
struct page *page = virt_to_page(x);
^~~~~~~~~~~~
include/asm-generic/memory_model.h:54:29: note: each undeclared identifier is reported only once for each function it appears in
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
arch/riscv/include/asm/page.h:112:30: note: in expansion of macro 'pfn_to_page'
#define virt_to_page(vaddr) (pfn_to_page(virt_to_pfn(vaddr)))
^~~~~~~~~~~
include/linux/mm.h:751:22: note: in expansion of macro 'virt_to_page'
struct page *page = virt_to_page(x);
^~~~~~~~~~~~
In file included from arch/riscv/include/asm/thread_info.h:11:0,
from include/linux/thread_info.h:38,
from include/asm-generic/preempt.h:5,
from ./arch/riscv/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/radix-tree.h:14,
from include/linux/idr.h:15,
from include/linux/kernfs.h:13,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/device.h:16,
from include/linux/dmaengine.h:8,
from drivers//dma/qcom/hidma_mgmt.c:8:
include/linux/mm.h: In function 'lowmem_page_address':
include/asm-generic/memory_model.h:55:54: error: 'vmemmap' undeclared (first use in this function); did you mean 'mem_map'?
#define __page_to_pfn(page) (unsigned long)((page) - vmemmap)
^
arch/riscv/include/asm/page.h:104:45: note: in definition of macro '__va'
#define __va(x) ((void *)((unsigned long) (x) + va_pa_offset))
^
arch/riscv/include/asm/page.h:107:27: note: in expansion of macro 'PFN_PHYS'
#define pfn_to_phys(pfn) (PFN_PHYS(pfn))
^~~~~~~~
arch/riscv/include/asm/page.h:110:32: note: in expansion of macro 'pfn_to_phys'
#define pfn_to_virt(pfn) (__va(pfn_to_phys(pfn)))
^~~~~~~~~~~
arch/riscv/include/asm/page.h:113:29: note: in expansion of macro 'pfn_to_virt'
#define page_to_virt(page) (pfn_to_virt(page_to_pfn(page)))
^~~~~~~~~~~
include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
#define page_to_pfn __page_to_pfn
^~~~~~~~~~~~~
arch/riscv/include/asm/page.h:113:41: note: in expansion of macro 'page_to_pfn'
#define page_to_virt(page) (pfn_to_virt(page_to_pfn(page)))
^~~~~~~~~~~
include/linux/mm.h:1321:9: note: in expansion of macro 'page_to_virt'
return page_to_virt(page);
^~~~~~~~~~~~
In file included from arch/riscv/include/asm/page.h:131:0,
from arch/riscv/include/asm/thread_info.h:11,
from include/linux/thread_info.h:38,
from include/asm-generic/preempt.h:5,
from ./arch/riscv/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/radix-tree.h:14,
from include/linux/idr.h:15,
from include/linux/kernfs.h:13,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/device.h:16,
from include/linux/dmaengine.h:8,
from drivers//dma/qcom/hidma_mgmt.c:8:
include/linux/scatterlist.h: In function 'sg_set_buf':
>> include/asm-generic/memory_model.h:54:29: error: 'vmemmap' undeclared (first use in this function); did you mean 'vm_mmap'?
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
arch/riscv/include/asm/page.h:112:30: note: in expansion of macro 'pfn_to_page'
#define virt_to_page(vaddr) (pfn_to_page(virt_to_pfn(vaddr)))
^~~~~~~~~~~
include/linux/scatterlist.h:145:18: note: in expansion of macro 'virt_to_page'
sg_set_page(sg, virt_to_page(buf), buflen, offset_in_page(buf));
^~~~~~~~~~~~
In file included from arch/riscv/include/asm/page.h:12:0,
from arch/riscv/include/asm/thread_info.h:11,
from include/linux/thread_info.h:38,
from include/asm-generic/preempt.h:5,
from ./arch/riscv/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/radix-tree.h:14,
from include/linux/idr.h:15,
from include/linux/kernfs.h:13,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/device.h:16,
from include/linux/dmaengine.h:8,
from drivers//dma/qcom/hidma_mgmt.c:8:
include/linux/scatterlist.h: In function 'sg_phys':
include/asm-generic/memory_model.h:55:54: error: 'vmemmap' undeclared (first use in this function); did you mean 'vm_mmap'?
#define __page_to_pfn(page) (unsigned long)((page) - vmemmap)
^
include/linux/pfn.h:21:36: note: in definition of macro 'PFN_PHYS'
#define PFN_PHYS(x) ((phys_addr_t)(x) << PAGE_SHIFT)
^
arch/riscv/include/asm/page.h:115:29: note: in expansion of macro 'pfn_to_phys'
#define page_to_phys(page) (pfn_to_phys(page_to_pfn(page)))
^~~~~~~~~~~
include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
#define page_to_pfn __page_to_pfn
^~~~~~~~~~~~~
arch/riscv/include/asm/page.h:115:41: note: in expansion of macro 'page_to_pfn'
#define page_to_phys(page) (pfn_to_phys(page_to_pfn(page)))
^~~~~~~~~~~
include/linux/scatterlist.h:224:9: note: in expansion of macro 'page_to_phys'
return page_to_phys(sg_page(sg)) + sg->offset;
^~~~~~~~~~~~
In file included from arch/riscv/include/asm/page.h:131:0,
from arch/riscv/include/asm/thread_info.h:11,
from include/linux/thread_info.h:38,
from include/asm-generic/preempt.h:5,
from ./arch/riscv/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/radix-tree.h:14,
from include/linux/idr.h:15,
from include/linux/kernfs.h:13,
from include/linux/sysfs.h:16,
from include/linux/kobject.h:20,
from include/linux/device.h:16,
from include/linux/dmaengine.h:8,
from drivers//dma/qcom/hidma_mgmt.c:8:
include/linux/scatterlist.h: In function 'sg_page_iter_page':
>> include/asm-generic/memory_model.h:54:29: error: 'vmemmap' undeclared (first use in this function); did you mean 'vm_mmap'?
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
include/linux/mm.h:213:26: note: in expansion of macro 'pfn_to_page'
#define nth_page(page,n) pfn_to_page(page_to_pfn((page)) + (n))
^~~~~~~~~~~
include/linux/scatterlist.h:384:9: note: in expansion of macro 'nth_page'
return nth_page(sg_page(piter->sg), piter->sg_pgoffset);
^~~~~~~~
include/linux/dma-mapping.h: In function 'dma_map_single_attrs':
>> include/asm-generic/memory_model.h:54:29: error: 'vmemmap' undeclared (first use in this function); did you mean 'vm_mmap'?
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
arch/riscv/include/asm/page.h:112:30: note: in expansion of macro 'pfn_to_page'
#define virt_to_page(vaddr) (pfn_to_page(virt_to_pfn(vaddr)))
^~~~~~~~~~~
include/linux/dma-mapping.h:587:33: note: in expansion of macro 'virt_to_page'
return dma_map_page_attrs(dev, virt_to_page(ptr), offset_in_page(ptr),
^~~~~~~~~~~~
--
In file included from arch/riscv/include/asm/page.h:131:0,
from arch/riscv/include/asm/thread_info.h:11,
from include/linux/thread_info.h:38,
from include/asm-generic/preempt.h:5,
from ./arch/riscv/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/hardirq.h:5,
from include/linux/interrupt.h:11,
from drivers//mfd/lp873x.c:16:
include/linux/mm.h: In function 'virt_to_head_page':
>> include/asm-generic/memory_model.h:54:29: error: 'vmemmap' undeclared (first use in this function); did you mean 'mem_map'?
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
arch/riscv/include/asm/page.h:112:30: note: in expansion of macro 'pfn_to_page'
#define virt_to_page(vaddr) (pfn_to_page(virt_to_pfn(vaddr)))
^~~~~~~~~~~
include/linux/mm.h:751:22: note: in expansion of macro 'virt_to_page'
struct page *page = virt_to_page(x);
^~~~~~~~~~~~
include/asm-generic/memory_model.h:54:29: note: each undeclared identifier is reported only once for each function it appears in
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
arch/riscv/include/asm/page.h:112:30: note: in expansion of macro 'pfn_to_page'
#define virt_to_page(vaddr) (pfn_to_page(virt_to_pfn(vaddr)))
^~~~~~~~~~~
include/linux/mm.h:751:22: note: in expansion of macro 'virt_to_page'
struct page *page = virt_to_page(x);
^~~~~~~~~~~~
In file included from arch/riscv/include/asm/thread_info.h:11:0,
from include/linux/thread_info.h:38,
from include/asm-generic/preempt.h:5,
from ./arch/riscv/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/hardirq.h:5,
from include/linux/interrupt.h:11,
from drivers//mfd/lp873x.c:16:
include/linux/mm.h: In function 'lowmem_page_address':
include/asm-generic/memory_model.h:55:54: error: 'vmemmap' undeclared (first use in this function); did you mean 'mem_map'?
#define __page_to_pfn(page) (unsigned long)((page) - vmemmap)
^
arch/riscv/include/asm/page.h:104:45: note: in definition of macro '__va'
#define __va(x) ((void *)((unsigned long) (x) + va_pa_offset))
^
arch/riscv/include/asm/page.h:107:27: note: in expansion of macro 'PFN_PHYS'
#define pfn_to_phys(pfn) (PFN_PHYS(pfn))
^~~~~~~~
arch/riscv/include/asm/page.h:110:32: note: in expansion of macro 'pfn_to_phys'
#define pfn_to_virt(pfn) (__va(pfn_to_phys(pfn)))
^~~~~~~~~~~
arch/riscv/include/asm/page.h:113:29: note: in expansion of macro 'pfn_to_virt'
#define page_to_virt(page) (pfn_to_virt(page_to_pfn(page)))
^~~~~~~~~~~
include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
#define page_to_pfn __page_to_pfn
^~~~~~~~~~~~~
arch/riscv/include/asm/page.h:113:41: note: in expansion of macro 'page_to_pfn'
#define page_to_virt(page) (pfn_to_virt(page_to_pfn(page)))
^~~~~~~~~~~
include/linux/mm.h:1321:9: note: in expansion of macro 'page_to_virt'
return page_to_virt(page);
^~~~~~~~~~~~
In file included from arch/riscv/include/asm/page.h:131:0,
from arch/riscv/include/asm/thread_info.h:11,
from include/linux/thread_info.h:38,
from include/asm-generic/preempt.h:5,
from ./arch/riscv/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/hardirq.h:5,
from include/linux/interrupt.h:11,
from drivers//mfd/lp873x.c:16:
include/linux/highmem.h: In function 'kmap_to_page':
>> include/asm-generic/memory_model.h:54:29: error: 'vmemmap' undeclared (first use in this function); did you mean 'vm_mmap'?
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
arch/riscv/include/asm/page.h:112:30: note: in expansion of macro 'pfn_to_page'
#define virt_to_page(vaddr) (pfn_to_page(virt_to_pfn(vaddr)))
^~~~~~~~~~~
include/linux/highmem.h:75:9: note: in expansion of macro 'virt_to_page'
return virt_to_page(addr);
^~~~~~~~~~~~
In file included from arch/riscv/include/asm/page.h:131:0,
from arch/riscv/include/asm/thread_info.h:11,
from include/linux/thread_info.h:38,
from include/asm-generic/preempt.h:5,
from ./arch/riscv/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/hardirq.h:5,
from include/linux/interrupt.h:11,
from drivers//mfd/lp873x.c:16:
include/linux/scatterlist.h: In function 'sg_set_buf':
>> include/asm-generic/memory_model.h:54:29: error: 'vmemmap' undeclared (first use in this function); did you mean 'vm_mmap'?
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
arch/riscv/include/asm/page.h:112:30: note: in expansion of macro 'pfn_to_page'
#define virt_to_page(vaddr) (pfn_to_page(virt_to_pfn(vaddr)))
^~~~~~~~~~~
include/linux/scatterlist.h:145:18: note: in expansion of macro 'virt_to_page'
sg_set_page(sg, virt_to_page(buf), buflen, offset_in_page(buf));
^~~~~~~~~~~~
In file included from arch/riscv/include/asm/page.h:12:0,
from arch/riscv/include/asm/thread_info.h:11,
from include/linux/thread_info.h:38,
from include/asm-generic/preempt.h:5,
from ./arch/riscv/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/hardirq.h:5,
from include/linux/interrupt.h:11,
from drivers//mfd/lp873x.c:16:
include/linux/scatterlist.h: In function 'sg_phys':
include/asm-generic/memory_model.h:55:54: error: 'vmemmap' undeclared (first use in this function); did you mean 'vm_mmap'?
#define __page_to_pfn(page) (unsigned long)((page) - vmemmap)
^
include/linux/pfn.h:21:36: note: in definition of macro 'PFN_PHYS'
#define PFN_PHYS(x) ((phys_addr_t)(x) << PAGE_SHIFT)
^
arch/riscv/include/asm/page.h:115:29: note: in expansion of macro 'pfn_to_phys'
#define page_to_phys(page) (pfn_to_phys(page_to_pfn(page)))
^~~~~~~~~~~
include/asm-generic/memory_model.h:81:21: note: in expansion of macro '__page_to_pfn'
#define page_to_pfn __page_to_pfn
^~~~~~~~~~~~~
arch/riscv/include/asm/page.h:115:41: note: in expansion of macro 'page_to_pfn'
#define page_to_phys(page) (pfn_to_phys(page_to_pfn(page)))
^~~~~~~~~~~
include/linux/scatterlist.h:224:9: note: in expansion of macro 'page_to_phys'
return page_to_phys(sg_page(sg)) + sg->offset;
^~~~~~~~~~~~
In file included from arch/riscv/include/asm/page.h:131:0,
from arch/riscv/include/asm/thread_info.h:11,
from include/linux/thread_info.h:38,
from include/asm-generic/preempt.h:5,
from ./arch/riscv/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/hardirq.h:5,
from include/linux/interrupt.h:11,
from drivers//mfd/lp873x.c:16:
include/linux/scatterlist.h: In function 'sg_page_iter_page':
>> include/asm-generic/memory_model.h:54:29: error: 'vmemmap' undeclared (first use in this function); did you mean 'vm_mmap'?
#define __pfn_to_page(pfn) (vmemmap + (pfn))
^
include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page'
#define pfn_to_page __pfn_to_page
^~~~~~~~~~~~~
include/linux/mm.h:213:26: note: in expansion of macro 'pfn_to_page'
#define nth_page(page,n) pfn_to_page(page_to_pfn((page)) + (n))
^~~~~~~~~~~
include/linux/scatterlist.h:384:9: note: in expansion of macro 'nth_page'
return nth_page(sg_page(piter->sg), piter->sg_pgoffset);
^~~~~~~~
..
vim +/virt_to_page +492 drivers//mmc/core/mmc_test.c
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 453
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 454 /*
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 455 * Map memory into a scatterlist so that no pages are contiguous. Allow the
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 456 * same memory to be mapped more than once.
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 457 */
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 458 static int mmc_test_map_sg_max_scatter(struct mmc_test_mem *mem,
fec4dcce237c71 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 459 unsigned long sz,
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 460 struct scatterlist *sglist,
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 461 unsigned int max_segs,
c8c8c1bdbe585d drivers/mmc/card/mmc_test.c Adrian Hunter 2010-09-10 462 unsigned int max_seg_sz,
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 463 unsigned int *sg_len)
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 464 {
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 465 struct scatterlist *sg = NULL;
fec4dcce237c71 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 466 unsigned int i = mem->cnt, cnt;
fec4dcce237c71 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 467 unsigned long len;
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 468 void *base, *addr, *last_addr = NULL;
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 469
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 470 sg_init_table(sglist, max_segs);
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 471
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 472 *sg_len = 0;
c8c8c1bdbe585d drivers/mmc/card/mmc_test.c Adrian Hunter 2010-09-10 473 while (sz) {
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 474 base = page_address(mem->arr[--i].page);
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 475 cnt = 1 << mem->arr[i].order;
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 476 while (sz && cnt) {
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 477 addr = base + PAGE_SIZE * --cnt;
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 478 if (last_addr && last_addr + PAGE_SIZE == addr)
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 479 continue;
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 480 last_addr = addr;
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 481 len = PAGE_SIZE;
c8c8c1bdbe585d drivers/mmc/card/mmc_test.c Adrian Hunter 2010-09-10 482 if (len > max_seg_sz)
c8c8c1bdbe585d drivers/mmc/card/mmc_test.c Adrian Hunter 2010-09-10 483 len = max_seg_sz;
c8c8c1bdbe585d drivers/mmc/card/mmc_test.c Adrian Hunter 2010-09-10 484 if (len > sz)
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 485 len = sz;
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 486 if (sg)
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 487 sg = sg_next(sg);
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 488 else
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 489 sg = sglist;
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 490 if (!sg)
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 491 return -EINVAL;
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 @492 sg_set_page(sg, virt_to_page(addr), len, 0);
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 493 sz -= len;
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 494 *sg_len += 1;
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 495 }
c8c8c1bdbe585d drivers/mmc/card/mmc_test.c Adrian Hunter 2010-09-10 496 if (i == 0)
c8c8c1bdbe585d drivers/mmc/card/mmc_test.c Adrian Hunter 2010-09-10 497 i = mem->cnt;
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 498 }
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 499
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 500 if (sg)
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 501 sg_mark_end(sg);
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 502
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 503 return 0;
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 504 }
64f7120d890b89 drivers/mmc/card/mmc_test.c Adrian Hunter 2010-08-11 505
:::::: The code at line 492 was first introduced by commit
:::::: 64f7120d890b892ed2c82c87bed958902e809075 mmc_test: add performance tests
:::::: TO: Adrian Hunter <adrian.hunter(a)nokia.com>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
2 years, 4 months
[linux-next:master 11921/11979] kernel/debug/kdb/kdb_main.c:1857:11: error: 'dbg_reg_def' undeclared; did you mean 'dbg_reg_def_t'?
by kbuild test robot
Hi Stephen,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: c32e1d01a152aee976763ccf7c7ced53ca45b78f
commit: e4cc6294dcce2da281342b300f8c974e88102bcb [11921/11979] Merge branch 'akpm-current/current'
config: microblaze-mmu_defconfig (attached as .config)
compiler: microblaze-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 e4cc6294dcce2da281342b300f8c974e88102bcb
# save the attached .config to linux build tree
GCC_VERSION=7.5.0 make.cross ARCH=microblaze
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 >>):
kernel/debug/kdb/kdb_main.c: In function 'kdb_rd':
>> kernel/debug/kdb/kdb_main.c:1857:11: error: 'dbg_reg_def' undeclared (first use in this function); did you mean 'dbg_reg_def_t'?
rsize = dbg_reg_def[i].size * 2;
^~~~~~~~~~~
dbg_reg_def_t
kernel/debug/kdb/kdb_main.c:1857:11: note: each undeclared identifier is reported only once for each function it appears in
>> kernel/debug/kdb/kdb_main.c:1868:12: error: implicit declaration of function 'dbg_get_reg'; did you mean 'kdb_getarea'? [-Werror=implicit-function-declaration]
rname = dbg_get_reg(i, ®8, kdb_current_regs);
^~~~~~~~~~~
kdb_getarea
>> kernel/debug/kdb/kdb_main.c:1868:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
rname = dbg_get_reg(i, ®8, kdb_current_regs);
^
kernel/debug/kdb/kdb_main.c:1874:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
rname = dbg_get_reg(i, ®16, kdb_current_regs);
^
kernel/debug/kdb/kdb_main.c:1880:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
rname = dbg_get_reg(i, ®32, kdb_current_regs);
^
kernel/debug/kdb/kdb_main.c:1886:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
rname = dbg_get_reg(i, ®64, kdb_current_regs);
^
cc1: some warnings being treated as errors
vim +1857 kernel/debug/kdb/kdb_main.c
5d5314d6795f3c Jason Wessel 2010-05-20 1832
5d5314d6795f3c Jason Wessel 2010-05-20 1833 /*
5d5314d6795f3c Jason Wessel 2010-05-20 1834 * kdb_rd - This function implements the 'rd' command.
5d5314d6795f3c Jason Wessel 2010-05-20 1835 */
5d5314d6795f3c Jason Wessel 2010-05-20 1836 static int kdb_rd(int argc, const char **argv)
5d5314d6795f3c Jason Wessel 2010-05-20 1837 {
7a05e0c34e0a61 Douglas Anderson 2020-01-30 1838 int len = 0;
534af108232939 Jason Wessel 2010-08-05 1839 int i;
534af108232939 Jason Wessel 2010-08-05 1840 char *rname;
534af108232939 Jason Wessel 2010-08-05 1841 int rsize;
534af108232939 Jason Wessel 2010-08-05 1842 u64 reg64;
534af108232939 Jason Wessel 2010-08-05 1843 u32 reg32;
534af108232939 Jason Wessel 2010-08-05 1844 u16 reg16;
534af108232939 Jason Wessel 2010-08-05 1845 u8 reg8;
534af108232939 Jason Wessel 2010-08-05 1846
7a05e0c34e0a61 Douglas Anderson 2020-01-30 1847 if (kdb_check_regs())
7a05e0c34e0a61 Douglas Anderson 2020-01-30 1848 return 0;
7a05e0c34e0a61 Douglas Anderson 2020-01-30 1849
7a05e0c34e0a61 Douglas Anderson 2020-01-30 1850 /* Fallback to Linux showregs() if we don't have DBG_MAX_REG_NUM */
7a05e0c34e0a61 Douglas Anderson 2020-01-30 1851 if (DBG_MAX_REG_NUM <= 0) {
7a05e0c34e0a61 Douglas Anderson 2020-01-30 1852 kdb_dumpregs(kdb_current_regs);
7a05e0c34e0a61 Douglas Anderson 2020-01-30 1853 return 0;
7a05e0c34e0a61 Douglas Anderson 2020-01-30 1854 }
534af108232939 Jason Wessel 2010-08-05 1855
534af108232939 Jason Wessel 2010-08-05 1856 for (i = 0; i < DBG_MAX_REG_NUM; i++) {
534af108232939 Jason Wessel 2010-08-05 @1857 rsize = dbg_reg_def[i].size * 2;
534af108232939 Jason Wessel 2010-08-05 1858 if (rsize > 16)
534af108232939 Jason Wessel 2010-08-05 1859 rsize = 2;
534af108232939 Jason Wessel 2010-08-05 1860 if (len + strlen(dbg_reg_def[i].name) + 4 + rsize > 80) {
534af108232939 Jason Wessel 2010-08-05 1861 len = 0;
534af108232939 Jason Wessel 2010-08-05 1862 kdb_printf("\n");
534af108232939 Jason Wessel 2010-08-05 1863 }
534af108232939 Jason Wessel 2010-08-05 1864 if (len)
534af108232939 Jason Wessel 2010-08-05 1865 len += kdb_printf(" ");
534af108232939 Jason Wessel 2010-08-05 1866 switch(dbg_reg_def[i].size * 8) {
534af108232939 Jason Wessel 2010-08-05 1867 case 8:
534af108232939 Jason Wessel 2010-08-05 @1868 rname = dbg_get_reg(i, ®8, kdb_current_regs);
534af108232939 Jason Wessel 2010-08-05 1869 if (!rname)
534af108232939 Jason Wessel 2010-08-05 1870 break;
534af108232939 Jason Wessel 2010-08-05 1871 len += kdb_printf("%s: %02x", rname, reg8);
534af108232939 Jason Wessel 2010-08-05 1872 break;
534af108232939 Jason Wessel 2010-08-05 1873 case 16:
534af108232939 Jason Wessel 2010-08-05 1874 rname = dbg_get_reg(i, ®16, kdb_current_regs);
534af108232939 Jason Wessel 2010-08-05 1875 if (!rname)
534af108232939 Jason Wessel 2010-08-05 1876 break;
534af108232939 Jason Wessel 2010-08-05 1877 len += kdb_printf("%s: %04x", rname, reg16);
534af108232939 Jason Wessel 2010-08-05 1878 break;
534af108232939 Jason Wessel 2010-08-05 1879 case 32:
534af108232939 Jason Wessel 2010-08-05 1880 rname = dbg_get_reg(i, ®32, kdb_current_regs);
534af108232939 Jason Wessel 2010-08-05 1881 if (!rname)
534af108232939 Jason Wessel 2010-08-05 1882 break;
534af108232939 Jason Wessel 2010-08-05 1883 len += kdb_printf("%s: %08x", rname, reg32);
534af108232939 Jason Wessel 2010-08-05 1884 break;
534af108232939 Jason Wessel 2010-08-05 1885 case 64:
534af108232939 Jason Wessel 2010-08-05 1886 rname = dbg_get_reg(i, ®64, kdb_current_regs);
534af108232939 Jason Wessel 2010-08-05 1887 if (!rname)
534af108232939 Jason Wessel 2010-08-05 1888 break;
534af108232939 Jason Wessel 2010-08-05 1889 len += kdb_printf("%s: %016llx", rname, reg64);
534af108232939 Jason Wessel 2010-08-05 1890 break;
534af108232939 Jason Wessel 2010-08-05 1891 default:
534af108232939 Jason Wessel 2010-08-05 1892 len += kdb_printf("%s: ??", dbg_reg_def[i].name);
534af108232939 Jason Wessel 2010-08-05 1893 }
534af108232939 Jason Wessel 2010-08-05 1894 }
534af108232939 Jason Wessel 2010-08-05 1895 kdb_printf("\n");
5d5314d6795f3c Jason Wessel 2010-05-20 1896
5d5314d6795f3c Jason Wessel 2010-05-20 1897 return 0;
5d5314d6795f3c Jason Wessel 2010-05-20 1898 }
5d5314d6795f3c Jason Wessel 2010-05-20 1899
:::::: The code at line 1857 was first introduced by commit
:::::: 534af1082329392bc29f6badf815e69ae2ae0f4c kgdb,kdb: individual register set and and get API
:::::: TO: Jason Wessel <jason.wessel(a)windriver.com>
:::::: CC: Jason Wessel <jason.wessel(a)windriver.com>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
2 years, 4 months
undefined reference to `__trace_hardirqs_off'
by kbuild test robot
Hi Mike,
It's probably a bug fix that unveils the link errors.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 39bed42de2e7d74686a2d5a45638d6a5d7e7d473
commit: 060dc911501f6ee222569304f50962172a52b1d6 nds32: fix build failure caused by page table folding updates
date: 5 weeks ago
config: nds32-randconfig-a001-20200130 (attached as .config)
compiler: nds32le-linux-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 060dc911501f6ee222569304f50962172a52b1d6
# save the attached .config to linux build tree
GCC_VERSION=9.2.0 make.cross ARCH=nds32
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
nds32le-linux-ld: arch/nds32/kernel/ex-entry.o: in function `fucop_ctl_done':
>> (.text+0x12a): undefined reference to `__trace_hardirqs_off'
(.text+0x12a): relocation truncated to fit: R_NDS32_25_PCREL_RELA against undefined symbol `__trace_hardirqs_off'
nds32le-linux-ld: arch/nds32/kernel/ex-exit.o: in function `no_work_pending':
(.text+0xea): undefined reference to `__trace_hardirqs_off'
>> nds32le-linux-ld: (.text+0xee): undefined reference to `__trace_hardirqs_off'
>> nds32le-linux-ld: (.text+0xf2): undefined reference to `__trace_hardirqs_on'
nds32le-linux-ld: (.text+0xf6): undefined reference to `__trace_hardirqs_on'
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
2 years, 4 months
[block:io_uring-5.6 1/2] fs/io_uring.c:6558:32: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'size_t {aka unsigned int}'
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git io_uring-5.6
head: 0d16cfac1608a72ceb78128a04cd2adf5e44b21a
commit: 0380f1b6d0c6b7de8e4eb0b387b7ad9f6bd065da [1/2] io_uring: add ->show_fdinfo() for the io_uring file descriptor
config: um-i386_defconfig (attached as .config)
compiler: gcc-7 (Debian 7.5.0-3) 7.5.0
reproduce:
git checkout 0380f1b6d0c6b7de8e4eb0b387b7ad9f6bd065da
# save the attached .config to linux build tree
make ARCH=um SUBARCH=i386
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
fs/io_uring.c: In function '__io_uring_show_fdinfo':
>> fs/io_uring.c:6558:32: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'size_t {aka unsigned int}' [-Wformat=]
seq_printf(m, "%5u: 0x%llx/%lu\n", i, buf->ubuf, buf->len);
~~^ ~~~~~~~~
%u
vim +6558 fs/io_uring.c
6536
6537 static void __io_uring_show_fdinfo(struct io_ring_ctx *ctx, struct seq_file *m)
6538 {
6539 int i;
6540
6541 mutex_lock(&ctx->uring_lock);
6542 seq_printf(m, "UserFiles:\t%u\n", ctx->nr_user_files);
6543 for (i = 0; i < ctx->nr_user_files; i++) {
6544 struct fixed_file_table *table;
6545 struct file *f;
6546
6547 table = &ctx->file_data->table[i >> IORING_FILE_TABLE_SHIFT];
6548 f = table->files[i & IORING_FILE_TABLE_MASK];
6549 if (f)
6550 seq_printf(m, "%5u: %s\n", i, file_dentry(f)->d_iname);
6551 else
6552 seq_printf(m, "%5u: <none>\n", i);
6553 }
6554 seq_printf(m, "UserBufs:\t%u\n", ctx->nr_user_bufs);
6555 for (i = 0; i < ctx->nr_user_bufs; i++) {
6556 struct io_mapped_ubuf *buf = &ctx->user_bufs[i];
6557
> 6558 seq_printf(m, "%5u: 0x%llx/%lu\n", i, buf->ubuf, buf->len);
6559 }
6560 if (!idr_is_empty(&ctx->personality_idr)) {
6561 seq_printf(m, "Personalities:\n");
6562 idr_for_each(&ctx->personality_idr, io_uring_show_cred, m);
6563 }
6564 mutex_unlock(&ctx->uring_lock);
6565 }
6566
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation
2 years, 4 months