[jic23-iio:testing 176/178] drivers/mux/core.c:391: warning: expecting prototype for mux_control_try_select(). Prototype was for mux_control_try_select_delay() instead
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git testing
head: d6c96ec70b3ccc97eb0c6c794836a5c3340c9927
commit: 9a7254435c4fdb5ae424d9f40a48a7ded51b3367 [176/178] mux: add support for delay after muxing
config: i386-randconfig-a001-20211019 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project b37efed957ed0a0193d80020aefd55cb587dfc1f)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git/commit/?id=...
git remote add jic23-iio https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git
git fetch --no-tags jic23-iio testing
git checkout 9a7254435c4fdb5ae424d9f40a48a7ded51b3367
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/mux/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/mux/core.c:391: warning: expecting prototype for mux_control_try_select(). Prototype was for mux_control_try_select_delay() instead
vim +391 drivers/mux/core.c
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 372
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 373 /**
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 374 * mux_control_try_select() - Try to select the given multiplexer state.
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 375 * @mux: The mux-control to request a change of state from.
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 376 * @state: The new requested state.
9a7254435c4fdb drivers/mux/core.c Vincent Whitchurch 2021-10-07 377 * @delay_us: The time to delay (in microseconds) if the mux state is changed.
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 378 *
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 379 * On successfully selecting the mux-control state, it will be locked until
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 380 * mux_control_deselect() called.
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 381 *
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 382 * Therefore, make sure to call mux_control_deselect() when the operation is
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 383 * complete and the mux-control is free for others to use, but do not call
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 384 * mux_control_deselect() if mux_control_try_select() fails.
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 385 *
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 386 * Return: 0 when the mux-control state has the requested state or a negative
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 387 * errno on error. Specifically -EBUSY if the mux-control is contended.
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 388 */
9a7254435c4fdb drivers/mux/core.c Vincent Whitchurch 2021-10-07 389 int mux_control_try_select_delay(struct mux_control *mux, unsigned int state,
9a7254435c4fdb drivers/mux/core.c Vincent Whitchurch 2021-10-07 390 unsigned int delay_us)
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 @391 {
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 392 int ret;
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 393
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 394 if (down_trylock(&mux->lock))
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 395 return -EBUSY;
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 396
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 397 ret = __mux_control_select(mux, state);
9a7254435c4fdb drivers/mux/core.c Vincent Whitchurch 2021-10-07 398 if (ret >= 0)
9a7254435c4fdb drivers/mux/core.c Vincent Whitchurch 2021-10-07 399 mux_control_delay(mux, delay_us);
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 400
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 401 if (ret < 0)
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 402 up(&mux->lock);
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 403
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 404 return ret;
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 405 }
9a7254435c4fdb drivers/mux/core.c Vincent Whitchurch 2021-10-07 406 EXPORT_SYMBOL_GPL(mux_control_try_select_delay);
a3b02a9c6591ce drivers/mux/mux-core.c Peter Rosin 2017-05-14 407
:::::: The code at line 391 was first introduced by commit
:::::: a3b02a9c6591ce154cd44e2383406390a45b530c mux: minimal mux subsystem
:::::: TO: Peter Rosin <peda(a)axentia.se>
:::::: CC: Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
11 months
[jimc:dd-drm-next 12/16] drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_debug.c:65:1: error: expected identifier or '('
by kernel test robot
tree: https://github.com/jimc/linux.git dd-drm-next
head: 35b983deeffc9a69ebb7f36c98583492baaff18f
commit: 13595be14ee22859c794542d847670ab9bf69897 [12/16] drm_print: add choice to use dynamic debug in drm-debug
config: riscv-randconfig-c006-20211019 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d245f2e8597bfb52c34810a328d42b990e4af1a4)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://github.com/jimc/linux/commit/13595be14ee22859c794542d847670ab9bf6...
git remote add jimc https://github.com/jimc/linux.git
git fetch --no-tags jimc dd-drm-next
git checkout 13595be14ee22859c794542d847670ab9bf69897
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_debug.c:65:1: error: expected identifier or '('
DEFINE_DYNAMIC_DEBUG_CATEGORIES(debug_dc, __debug_dc,
^
include/linux/dynamic_debug.h:277:2: note: expanded from macro 'DEFINE_DYNAMIC_DEBUG_CATEGORIES'
BUILD_BUG_ON_MSG(1, "you need -DDYNAMIC_DEBUG_MODULE in compile")
^
include/linux/build_bug.h:39:37: note: expanded from macro 'BUILD_BUG_ON_MSG'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
include/linux/compiler_types.h:322:2: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:310:2: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:300:2: note: expanded from macro '__compiletime_assert'
do { \
^
>> drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_debug.c:65:1: error: expected identifier or '('
include/linux/dynamic_debug.h:277:2: note: expanded from macro 'DEFINE_DYNAMIC_DEBUG_CATEGORIES'
BUILD_BUG_ON_MSG(1, "you need -DDYNAMIC_DEBUG_MODULE in compile")
^
include/linux/build_bug.h:39:37: note: expanded from macro 'BUILD_BUG_ON_MSG'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
include/linux/compiler_types.h:322:2: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:310:2: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:304:4: note: expanded from macro '__compiletime_assert'
} while (0)
^
2 errors generated.
vim +65 drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_debug.c
12545e4a8c962b Jim Cromie 2021-07-30 47
12545e4a8c962b Jim Cromie 2021-07-30 48 #define DC_DYNDBG_BITMAP_DESC(name) \
12545e4a8c962b Jim Cromie 2021-07-30 49 "Control pr_debugs via /sys/module/amdgpu/parameters/" #name \
12545e4a8c962b Jim Cromie 2021-07-30 50 ", where each bit controls a debug category.\n" \
12545e4a8c962b Jim Cromie 2021-07-30 51 help_(0, "[SURFACE]:") \
12545e4a8c962b Jim Cromie 2021-07-30 52 help_(1, "[CURSOR]:") \
12545e4a8c962b Jim Cromie 2021-07-30 53 help_(2, "[PFLIP]:") \
12545e4a8c962b Jim Cromie 2021-07-30 54 help_(3, "[VBLANK]:") \
12545e4a8c962b Jim Cromie 2021-07-30 55 help_(4, "[HW_LINK_TRAINING]:") \
12545e4a8c962b Jim Cromie 2021-07-30 56 help_(5, "[HW_AUDIO]:") \
12545e4a8c962b Jim Cromie 2021-07-30 57 help_(6, "[SCALER]:") \
12545e4a8c962b Jim Cromie 2021-07-30 58 help_(7, "[BIOS]:") \
12545e4a8c962b Jim Cromie 2021-07-30 59 help_(8, "[BANDWIDTH_CALCS]:") \
12545e4a8c962b Jim Cromie 2021-07-30 60 help_(9, "[DML]:") \
12545e4a8c962b Jim Cromie 2021-07-30 61 help_(10, "[IF_TRACE]:") \
12545e4a8c962b Jim Cromie 2021-07-30 62 help_(11, "[GAMMA]:") \
12545e4a8c962b Jim Cromie 2021-07-30 63 help_(12, "[SMU_MSG]:")
5d4b05ddd826d8 Bhawanpreet Lakha 2018-03-15 64
12545e4a8c962b Jim Cromie 2021-07-30 @65 DEFINE_DYNAMIC_DEBUG_CATEGORIES(debug_dc, __debug_dc,
12545e4a8c962b Jim Cromie 2021-07-30 66 DC_DYNDBG_BITMAP_DESC(debug_dc),
12545e4a8c962b Jim Cromie 2021-07-30 67 [0] = { "[CURSOR]:" },
12545e4a8c962b Jim Cromie 2021-07-30 68 [1] = { "[PFLIP]:" },
12545e4a8c962b Jim Cromie 2021-07-30 69 [2] = { "[VBLANK]:" },
12545e4a8c962b Jim Cromie 2021-07-30 70 [3] = { "[HW_LINK_TRAINING]:" },
12545e4a8c962b Jim Cromie 2021-07-30 71 [4] = { "[HW_AUDIO]:" },
12545e4a8c962b Jim Cromie 2021-07-30 72 [5] = { "[SCALER]:" },
12545e4a8c962b Jim Cromie 2021-07-30 73 [6] = { "[BIOS]:" },
12545e4a8c962b Jim Cromie 2021-07-30 74 [7] = { "[BANDWIDTH_CALCS]:" },
12545e4a8c962b Jim Cromie 2021-07-30 75 [8] = { "[DML]:" },
12545e4a8c962b Jim Cromie 2021-07-30 76 [9] = { "[IF_TRACE]:" },
12545e4a8c962b Jim Cromie 2021-07-30 77 [10] = { "[GAMMA]:" },
12545e4a8c962b Jim Cromie 2021-07-30 78 [11] = { "[SMU_MSG]:" });
12545e4a8c962b Jim Cromie 2021-07-30 79
:::::: The code at line 65 was first introduced by commit
:::::: 12545e4a8c962b8c534fd0792f972cde3b91da0f amdgpu: use dyndbg.CATEGORIES to control existing pr_dbgs
:::::: TO: Jim Cromie <jim.cromie(a)gmail.com>
:::::: CC: Jim Cromie <jim.cromie(a)gmail.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
11 months
[tnguy-next-queue:dev-queue 53/129] ld.lld: error: main.c:(function do_one_initcall: .text+0x47C): relocation R_RISCV_HI20 out of range: 527042 is not in
by kernel test robot
CC: Intel Wired LAN <intel-wired-lan(a)lists.osuosl.org>
CC: linux-kernel(a)vger.kernel.org
TO: Brett Creeley <brett.creeley(a)intel.com>
CC: Tony Nguyen <anthony.l.nguyen(a)intel.com>
CC: Tarun Singh <tarun.k.singh(a)intel.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue.git dev-queue
head: ab797d77ffd32f277fbe473594f27dae00fb88c7
commit: 2fb3dd09f05364708980a28fea2ea75b39190f4c [53/129] ice: Add support for VF rate limiting
config: riscv-randconfig-r003-20211019 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d245f2e8597bfb52c34810a328d42b990e4af1a4)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue.git/comm...
git remote add tnguy-next-queue https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue.git
git fetch --no-tags tnguy-next-queue dev-queue
git checkout 2fb3dd09f05364708980a28fea2ea75b39190f4c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ld.lld: error: main.c:(function trace_event_raw_event_initcall_level: .text+0x190): relocation R_RISCV_HI20 out of range: 527155 is not in [-524288, 524287]
>> ld.lld: error: main.c:(function do_one_initcall: .text+0x47C): relocation R_RISCV_HI20 out of range: 527042 is not in [-524288, 524287]
>> ld.lld: error: main.c:(function do_one_initcall: .text+0x4C4): relocation R_RISCV_HI20 out of range: 526985 is not in [-524288, 524287]
>> ld.lld: error: main.c:(function initcall_blacklisted: .text+0x514): relocation R_RISCV_HI20 out of range: 527335 is not in [-524288, 524287]
ld.lld: error: main.c:(function initcall_blacklisted: .text+0x578): relocation R_RISCV_HI20 out of range: 527727 is not in [-524288, 524287]
ld.lld: error: main.c:(function initcall_blacklisted: .text+0x580): relocation R_RISCV_HI20 out of range: 527049 is not in [-524288, 524287]
>> ld.lld: error: main.c:(function trace_initcall_start: .text+0x5CC): relocation R_RISCV_HI20 out of range: 527719 is not in [-524288, 524287]; references __tracepoint_initcall_start
>>> defined in init/built-in.a(main.o)
--
>> ld.lld: error: main.c:(function trace_initcall_start: .text+0x604): relocation R_RISCV_HI20 out of range: 527719 is not in [-524288, 524287]
ld.lld: error: main.c:(function trace_initcall_start: .text+0x618): relocation R_RISCV_HI20 out of range: 527007 is not in [-524288, 524287]
ld.lld: error: main.c:(function trace_initcall_start: .text+0x620): relocation R_RISCV_HI20 out of range: 527105 is not in [-524288, 524287]
>> ld.lld: error: main.c:(function trace_initcall_finish: .text+0x678): relocation R_RISCV_HI20 out of range: 527719 is not in [-524288, 524287]; references __tracepoint_initcall_finish
>>> defined in init/built-in.a(main.o)
--
>> ld.lld: error: main.c:(function trace_initcall_finish: .text+0x6B0): relocation R_RISCV_HI20 out of range: 527719 is not in [-524288, 524287]
>> ld.lld: error: main.c:(function trace_initcall_finish: .text+0x6C4): relocation R_RISCV_HI20 out of range: 527007 is not in [-524288, 524287]
>> ld.lld: error: main.c:(function trace_initcall_finish: .text+0x6CC): relocation R_RISCV_HI20 out of range: 527105 is not in [-524288, 524287]
ld.lld: error: main.c:(.text+0x710): relocation R_RISCV_HI20 out of range: 526377 is not in [-524288, 524287]; references __init_begin
>>> defined in ./arch/riscv/kernel/vmlinux.lds:28
--
>> ld.lld: error: main.c:(.text+0x718): relocation R_RISCV_HI20 out of range: 526507 is not in [-524288, 524287]; references __init_end
>>> defined in ./arch/riscv/kernel/vmlinux.lds:65
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
11 months
Re: [PATCH v2 2/3] scsi: target: iscsi: extract auth functions
by kernel test robot
Hi Dmitry,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on v5.15-rc6]
[cannot apply to mkp-scsi/for-next next-20211018]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Dmitry-Bogdanov/target-iscsi-con...
base: 519d81956ee277b4419c723adfb154603c2565ba
config: arm-randconfig-r015-20211019 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d245f2e8597bfb52c34810a328d42b990e4af1a4)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://github.com/0day-ci/linux/commit/86c706d4db6af27167e04b97242cc82df...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Dmitry-Bogdanov/target-iscsi-control-authentication-per-ACL/20211019-023356
git checkout 86c706d4db6af27167e04b97242cc82dfbfc2212
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/target/iscsi/iscsi_target_nego.c:814:6: warning: no previous prototype for function 'iscsi_conn_auth_required' [-Wmissing-prototypes]
bool iscsi_conn_auth_required(struct iscsi_conn *conn)
^
drivers/target/iscsi/iscsi_target_nego.c:814:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
bool iscsi_conn_auth_required(struct iscsi_conn *conn)
^
static
1 warning generated.
vim +/iscsi_conn_auth_required +814 drivers/target/iscsi/iscsi_target_nego.c
813
> 814 bool iscsi_conn_auth_required(struct iscsi_conn *conn)
815 {
816 struct se_node_acl *se_nacl;
817
818 if (conn->sess->sess_ops->SessionType) {
819 /*
820 * For SessionType=Discovery
821 */
822 return conn->tpg->tpg_attrib.authentication;
823 }
824 /*
825 * For SessionType=Normal
826 */
827 se_nacl = conn->sess->se_sess->se_node_acl;
828 if (!se_nacl) {
829 pr_debug("Unknown ACL %s is trying to connect\n",
830 se_nacl->initiatorname);
831 return true;
832 }
833
834 if (se_nacl->dynamic_node_acl) {
835 pr_debug("Dynamic ACL %s is trying to connect\n",
836 se_nacl->initiatorname);
837 return conn->tpg->tpg_attrib.authentication;
838 }
839
840 pr_debug("Known ACL %s is trying to connect\n",
841 se_nacl->initiatorname);
842 return conn->tpg->tpg_attrib.authentication;
843 }
844
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
11 months
[arm-perf:kvm/mm-hacking 20/22] arch/arm64/kvm/hyp/nvhe/hyp-main.c:40:6: warning: no previous prototype for function 'put_shadow_vcpu'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git kvm/mm-hacking
head: e5759e0ca29728e31bd3fd0137ec905eecb15bf9
commit: a77ba8a5f9ded36915ebab3e8bb3c75430c9ad92 [20/22] BACKPORT: KVM: arm64: Shadow table for KVM EL2 state
config: arm64-randconfig-r035-20211019 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d245f2e8597bfb52c34810a328d42b990e4af1a4)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git/commit/?id...
git remote add arm-perf https://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git
git fetch --no-tags arm-perf kvm/mm-hacking
git checkout a77ba8a5f9ded36915ebab3e8bb3c75430c9ad92
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> arch/arm64/kvm/hyp/nvhe/hyp-main.c:40:6: warning: no previous prototype for function 'put_shadow_vcpu' [-Wmissing-prototypes]
void put_shadow_vcpu(struct kvm_vcpu *vcpu, int exit_code)
^
arch/arm64/kvm/hyp/nvhe/hyp-main.c:40:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void put_shadow_vcpu(struct kvm_vcpu *vcpu, int exit_code)
^
static
arch/arm64/kvm/hyp/nvhe/hyp-main.c:292:6: warning: no previous prototype for function 'handle_trap' [-Wmissing-prototypes]
void handle_trap(struct kvm_cpu_context *host_ctxt)
^
arch/arm64/kvm/hyp/nvhe/hyp-main.c:292:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void handle_trap(struct kvm_cpu_context *host_ctxt)
^
static
2 warnings generated.
--
>> arch/arm64/kvm/hyp/nvhe/pkvm.c:90:6: warning: no previous prototype for function 'clear_shadow_cache' [-Wmissing-prototypes]
void clear_shadow_cache(void)
^
arch/arm64/kvm/hyp/nvhe/pkvm.c:90:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void clear_shadow_cache(void)
^
static
arch/arm64/kvm/hyp/nvhe/pkvm.c:329:8: error: implicit declaration of function 'check_host_memory_addr' [-Werror,-Wimplicit-function-declaration]
ret = check_host_memory_addr((u64)kvm, sizeof(*kvm));
^
arch/arm64/kvm/hyp/nvhe/pkvm.c:404:15: error: implicit declaration of function 'check_host_memory_addr' [-Werror,-Wimplicit-function-declaration]
if (unlikely(check_host_memory_addr((u64)kvm, sizeof(*kvm))))
^
arch/arm64/kvm/hyp/nvhe/pkvm.c:399:14: warning: unused variable 'shadow_kvm_pa' [-Wunused-variable]
phys_addr_t shadow_kvm_pa;
^
2 warnings and 2 errors generated.
vim +/put_shadow_vcpu +40 arch/arm64/kvm/hyp/nvhe/hyp-main.c
39
> 40 void put_shadow_vcpu(struct kvm_vcpu *vcpu, int exit_code)
41 {
42 }
43
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
11 months
[mcgrof-next:20211011-for-axboe-add-disk-error-handling 24/24] drivers/nvdimm/pmem.c:535:2: warning: ignoring return value of function declared with 'warn_unused_result' attribute
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20211011-for-axboe-add-disk-error-handling
head: 53099761729ca16d3bb36db8a8cc526f4eb08f28
commit: 53099761729ca16d3bb36db8a8cc526f4eb08f28 [24/24] block: add __must_check for *add_disk*() callers
config: x86_64-randconfig-r035-20211019 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d245f2e8597bfb52c34810a328d42b990e4af1a4)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git/com...
git remote add mcgrof-next https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git
git fetch --no-tags mcgrof-next 20211011-for-axboe-add-disk-error-handling
git checkout 53099761729ca16d3bb36db8a8cc526f4eb08f28
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/nvdimm/pmem.c:535:2: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result]
device_add_disk(dev, disk, pmem_attribute_groups);
^~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
vim +/warn_unused_result +535 drivers/nvdimm/pmem.c
1e240e8d4a7d92 drivers/nvdimm/pmem.c Christoph Hellwig 2019-06-26 412
200c79da824c97 drivers/nvdimm/pmem.c Dan Williams 2016-03-22 413 static int pmem_attach_disk(struct device *dev,
200c79da824c97 drivers/nvdimm/pmem.c Dan Williams 2016-03-22 414 struct nd_namespace_common *ndns)
9e853f2313e5eb drivers/block/pmem.c Ross Zwisler 2015-04-01 415 {
200c79da824c97 drivers/nvdimm/pmem.c Dan Williams 2016-03-22 416 struct nd_namespace_io *nsio = to_nd_namespace_io(&ndns->dev);
f284a4f23752d0 drivers/nvdimm/pmem.c Dan Williams 2016-07-07 417 struct nd_region *nd_region = to_nd_region(dev->parent);
ce7f11a230d5b7 drivers/nvdimm/pmem.c Ross Zwisler 2018-06-06 418 int nid = dev_to_node(dev), fua;
200c79da824c97 drivers/nvdimm/pmem.c Dan Williams 2016-03-22 419 struct resource *res = &nsio->res;
a4574f63edc6f7 drivers/nvdimm/pmem.c Dan Williams 2020-10-13 420 struct range bb_range;
200c79da824c97 drivers/nvdimm/pmem.c Dan Williams 2016-03-22 421 struct nd_pfn *nd_pfn = NULL;
c1d6e828a35df5 drivers/nvdimm/pmem.c Dan Williams 2017-01-24 422 struct dax_device *dax_dev;
200c79da824c97 drivers/nvdimm/pmem.c Dan Williams 2016-03-22 423 struct nd_pfn_sb *pfn_sb;
9e853f2313e5eb drivers/block/pmem.c Ross Zwisler 2015-04-01 424 struct pmem_device *pmem;
468ded03c07e0f drivers/nvdimm/pmem.c Dan Williams 2016-01-15 425 struct request_queue *q;
200c79da824c97 drivers/nvdimm/pmem.c Dan Williams 2016-03-22 426 struct gendisk *disk;
200c79da824c97 drivers/nvdimm/pmem.c Dan Williams 2016-03-22 427 void *addr;
e8d5134833006a drivers/nvdimm/pmem.c Christoph Hellwig 2017-12-29 428 int rc;
fefc1d97fa4b5e drivers/nvdimm/pmem.c Pankaj Gupta 2019-07-05 429 unsigned long flags = 0UL;
e8d5134833006a drivers/nvdimm/pmem.c Christoph Hellwig 2017-12-29 430
e8d5134833006a drivers/nvdimm/pmem.c Christoph Hellwig 2017-12-29 431 pmem = devm_kzalloc(dev, sizeof(*pmem), GFP_KERNEL);
e8d5134833006a drivers/nvdimm/pmem.c Christoph Hellwig 2017-12-29 432 if (!pmem)
e8d5134833006a drivers/nvdimm/pmem.c Christoph Hellwig 2017-12-29 433 return -ENOMEM;
200c79da824c97 drivers/nvdimm/pmem.c Dan Williams 2016-03-22 434
8f4b01fcded2dc drivers/nvdimm/pmem.c Aneesh Kumar K.V 2019-10-31 435 rc = devm_namespace_enable(dev, ndns, nd_info_block_reserve());
8f4b01fcded2dc drivers/nvdimm/pmem.c Aneesh Kumar K.V 2019-10-31 436 if (rc)
8f4b01fcded2dc drivers/nvdimm/pmem.c Aneesh Kumar K.V 2019-10-31 437 return rc;
8f4b01fcded2dc drivers/nvdimm/pmem.c Aneesh Kumar K.V 2019-10-31 438
200c79da824c97 drivers/nvdimm/pmem.c Dan Williams 2016-03-22 439 /* while nsio_rw_bytes is active, parse a pfn info block if present */
200c79da824c97 drivers/nvdimm/pmem.c Dan Williams 2016-03-22 440 if (is_nd_pfn(dev)) {
200c79da824c97 drivers/nvdimm/pmem.c Dan Williams 2016-03-22 441 nd_pfn = to_nd_pfn(dev);
e8d5134833006a drivers/nvdimm/pmem.c Christoph Hellwig 2017-12-29 442 rc = nvdimm_setup_pfn(nd_pfn, &pmem->pgmap);
e8d5134833006a drivers/nvdimm/pmem.c Christoph Hellwig 2017-12-29 443 if (rc)
e8d5134833006a drivers/nvdimm/pmem.c Christoph Hellwig 2017-12-29 444 return rc;
200c79da824c97 drivers/nvdimm/pmem.c Dan Williams 2016-03-22 445 }
200c79da824c97 drivers/nvdimm/pmem.c Dan Williams 2016-03-22 446
200c79da824c97 drivers/nvdimm/pmem.c Dan Williams 2016-03-22 447 /* we're attaching a block device, disable raw namespace access */
8f4b01fcded2dc drivers/nvdimm/pmem.c Aneesh Kumar K.V 2019-10-31 448 devm_namespace_disable(dev, ndns);
9e853f2313e5eb drivers/block/pmem.c Ross Zwisler 2015-04-01 449
200c79da824c97 drivers/nvdimm/pmem.c Dan Williams 2016-03-22 450 dev_set_drvdata(dev, pmem);
9e853f2313e5eb drivers/block/pmem.c Ross Zwisler 2015-04-01 451 pmem->phys_addr = res->start;
9e853f2313e5eb drivers/block/pmem.c Ross Zwisler 2015-04-01 452 pmem->size = resource_size(res);
0b277961f4484f drivers/nvdimm/pmem.c Dan Williams 2017-06-09 453 fua = nvdimm_has_flush(nd_region);
0b277961f4484f drivers/nvdimm/pmem.c Dan Williams 2017-06-09 454 if (!IS_ENABLED(CONFIG_ARCH_HAS_UACCESS_FLUSHCACHE) || fua < 0) {
61031952f4c89d drivers/nvdimm/pmem.c Ross Zwisler 2015-06-25 455 dev_warn(dev, "unable to guarantee persistence of writes\n");
0b277961f4484f drivers/nvdimm/pmem.c Dan Williams 2017-06-09 456 fua = 0;
0b277961f4484f drivers/nvdimm/pmem.c Dan Williams 2017-06-09 457 }
9e853f2313e5eb drivers/block/pmem.c Ross Zwisler 2015-04-01 458
947df02d255a6a drivers/nvdimm/pmem.c Dan Williams 2016-03-21 459 if (!devm_request_mem_region(dev, res->start, resource_size(res),
450c6633e874c4 drivers/nvdimm/pmem.c Dan Williams 2016-11-28 460 dev_name(&ndns->dev))) {
947df02d255a6a drivers/nvdimm/pmem.c Dan Williams 2016-03-21 461 dev_warn(dev, "could not reserve region %pR\n", res);
200c79da824c97 drivers/nvdimm/pmem.c Dan Williams 2016-03-22 462 return -EBUSY;
9e853f2313e5eb drivers/block/pmem.c Ross Zwisler 2015-04-01 463 }
9e853f2313e5eb drivers/block/pmem.c Ross Zwisler 2015-04-01 464
87eb73b2ca7c1b drivers/nvdimm/pmem.c Christoph Hellwig 2021-05-21 465 disk = blk_alloc_disk(nid);
87eb73b2ca7c1b drivers/nvdimm/pmem.c Christoph Hellwig 2021-05-21 466 if (!disk)
200c79da824c97 drivers/nvdimm/pmem.c Dan Williams 2016-03-22 467 return -ENOMEM;
87eb73b2ca7c1b drivers/nvdimm/pmem.c Christoph Hellwig 2021-05-21 468 q = disk->queue;
468ded03c07e0f drivers/nvdimm/pmem.c Dan Williams 2016-01-15 469
87eb73b2ca7c1b drivers/nvdimm/pmem.c Christoph Hellwig 2021-05-21 470 pmem->disk = disk;
a624eb520390ce drivers/nvdimm/pmem.c Dan Williams 2021-06-07 471 pmem->pgmap.owner = pmem;
34c0fd540e79fb drivers/nvdimm/pmem.c Dan Williams 2016-01-15 472 pmem->pfn_flags = PFN_DEV;
e8d5134833006a drivers/nvdimm/pmem.c Christoph Hellwig 2017-12-29 473 pmem->pgmap.ref = &q->q_usage_counter;
200c79da824c97 drivers/nvdimm/pmem.c Dan Williams 2016-03-22 474 if (is_nd_pfn(dev)) {
f6a55e1a3fe6b3 drivers/nvdimm/pmem.c Christoph Hellwig 2019-06-26 475 pmem->pgmap.type = MEMORY_DEVICE_FS_DAX;
f6a55e1a3fe6b3 drivers/nvdimm/pmem.c Christoph Hellwig 2019-06-26 476 pmem->pgmap.ops = &fsdax_pagemap_ops;
e8d5134833006a drivers/nvdimm/pmem.c Christoph Hellwig 2017-12-29 477 addr = devm_memremap_pages(dev, &pmem->pgmap);
200c79da824c97 drivers/nvdimm/pmem.c Dan Williams 2016-03-22 478 pfn_sb = nd_pfn->pfn_sb;
200c79da824c97 drivers/nvdimm/pmem.c Dan Williams 2016-03-22 479 pmem->data_offset = le64_to_cpu(pfn_sb->dataoff);
e8d5134833006a drivers/nvdimm/pmem.c Christoph Hellwig 2017-12-29 480 pmem->pfn_pad = resource_size(res) -
a4574f63edc6f7 drivers/nvdimm/pmem.c Dan Williams 2020-10-13 481 range_len(&pmem->pgmap.range);
200c79da824c97 drivers/nvdimm/pmem.c Dan Williams 2016-03-22 482 pmem->pfn_flags |= PFN_MAP;
a4574f63edc6f7 drivers/nvdimm/pmem.c Dan Williams 2020-10-13 483 bb_range = pmem->pgmap.range;
a4574f63edc6f7 drivers/nvdimm/pmem.c Dan Williams 2020-10-13 484 bb_range.start += pmem->data_offset;
200c79da824c97 drivers/nvdimm/pmem.c Dan Williams 2016-03-22 485 } else if (pmem_should_map_pages(dev)) {
a4574f63edc6f7 drivers/nvdimm/pmem.c Dan Williams 2020-10-13 486 pmem->pgmap.range.start = res->start;
a4574f63edc6f7 drivers/nvdimm/pmem.c Dan Williams 2020-10-13 487 pmem->pgmap.range.end = res->end;
b7b3c01b191596 drivers/nvdimm/pmem.c Dan Williams 2020-10-13 488 pmem->pgmap.nr_range = 1;
f6a55e1a3fe6b3 drivers/nvdimm/pmem.c Christoph Hellwig 2019-06-26 489 pmem->pgmap.type = MEMORY_DEVICE_FS_DAX;
f6a55e1a3fe6b3 drivers/nvdimm/pmem.c Christoph Hellwig 2019-06-26 490 pmem->pgmap.ops = &fsdax_pagemap_ops;
e8d5134833006a drivers/nvdimm/pmem.c Christoph Hellwig 2017-12-29 491 addr = devm_memremap_pages(dev, &pmem->pgmap);
34c0fd540e79fb drivers/nvdimm/pmem.c Dan Williams 2016-01-15 492 pmem->pfn_flags |= PFN_MAP;
a4574f63edc6f7 drivers/nvdimm/pmem.c Dan Williams 2020-10-13 493 bb_range = pmem->pgmap.range;
91ed7ac444ef74 drivers/nvdimm/pmem.c Dan Williams 2018-10-04 494 } else {
32b2397c1e56f3 drivers/nvdimm/pmem.c sumiyawang 2021-08-22 495 addr = devm_memremap(dev, pmem->phys_addr,
32b2397c1e56f3 drivers/nvdimm/pmem.c sumiyawang 2021-08-22 496 pmem->size, ARCH_MEMREMAP_PMEM);
50f44ee7248ad2 drivers/nvdimm/pmem.c Dan Williams 2019-06-13 497 if (devm_add_action_or_reset(dev, pmem_release_queue,
d8668bb0451c3c drivers/nvdimm/pmem.c Christoph Hellwig 2019-06-26 498 &pmem->pgmap))
50f44ee7248ad2 drivers/nvdimm/pmem.c Dan Williams 2019-06-13 499 return -ENOMEM;
a4574f63edc6f7 drivers/nvdimm/pmem.c Dan Williams 2020-10-13 500 bb_range.start = res->start;
a4574f63edc6f7 drivers/nvdimm/pmem.c Dan Williams 2020-10-13 501 bb_range.end = res->end;
91ed7ac444ef74 drivers/nvdimm/pmem.c Dan Williams 2018-10-04 502 }
b36f47617f6ce7 drivers/nvdimm/pmem.c Dan Williams 2015-09-15 503
200c79da824c97 drivers/nvdimm/pmem.c Dan Williams 2016-03-22 504 if (IS_ERR(addr))
200c79da824c97 drivers/nvdimm/pmem.c Dan Williams 2016-03-22 505 return PTR_ERR(addr);
7a9eb206663177 drivers/nvdimm/pmem.c Dan Williams 2016-06-03 506 pmem->virt_addr = addr;
9e853f2313e5eb drivers/block/pmem.c Ross Zwisler 2015-04-01 507
ce7f11a230d5b7 drivers/nvdimm/pmem.c Ross Zwisler 2018-06-06 508 blk_queue_write_cache(q, true, fua);
5a92289f41311a drivers/nvdimm/pmem.c Dan Williams 2016-03-21 509 blk_queue_physical_block_size(q, PAGE_SIZE);
f979b13c3cc515 drivers/nvdimm/pmem.c Dan Williams 2017-06-04 510 blk_queue_logical_block_size(q, pmem_sector_size(ndns));
5a92289f41311a drivers/nvdimm/pmem.c Dan Williams 2016-03-21 511 blk_queue_max_hw_sectors(q, UINT_MAX);
8b904b5b6b58b9 drivers/nvdimm/pmem.c Bart Van Assche 2018-03-07 512 blk_queue_flag_set(QUEUE_FLAG_NONROT, q);
4557641b4c7046 drivers/nvdimm/pmem.c Ross Zwisler 2018-06-26 513 if (pmem->pfn_flags & PFN_MAP)
8b904b5b6b58b9 drivers/nvdimm/pmem.c Bart Van Assche 2018-03-07 514 blk_queue_flag_set(QUEUE_FLAG_DAX, q);
9e853f2313e5eb drivers/block/pmem.c Ross Zwisler 2015-04-01 515
9e853f2313e5eb drivers/block/pmem.c Ross Zwisler 2015-04-01 516 disk->fops = &pmem_fops;
6ec26b8b2d70b4 drivers/nvdimm/pmem.c Christoph Hellwig 2020-05-08 517 disk->private_data = pmem;
5212e11fde4d40 drivers/nvdimm/pmem.c Vishal Verma 2015-06-25 518 nvdimm_namespace_disk_name(ndns, disk->disk_name);
cfe30b872058f2 drivers/nvdimm/pmem.c Dan Williams 2016-03-03 519 set_capacity(disk, (pmem->size - pmem->pfn_pad - pmem->data_offset)
cfe30b872058f2 drivers/nvdimm/pmem.c Dan Williams 2016-03-03 520 / 512);
b95f5f4391fad6 drivers/nvdimm/pmem.c Dan Williams 2016-01-04 521 if (devm_init_badblocks(dev, &pmem->bb))
b95f5f4391fad6 drivers/nvdimm/pmem.c Dan Williams 2016-01-04 522 return -ENOMEM;
a4574f63edc6f7 drivers/nvdimm/pmem.c Dan Williams 2020-10-13 523 nvdimm_badblocks_populate(nd_region, &pmem->bb, &bb_range);
57f7f317abdd07 drivers/nvdimm/pmem.c Dan Williams 2016-01-06 524 disk->bb = &pmem->bb;
f02716db951c5e drivers/nvdimm/pmem.c Dan Williams 2016-06-15 525
fefc1d97fa4b5e drivers/nvdimm/pmem.c Pankaj Gupta 2019-07-05 526 if (is_nvdimm_sync(nd_region))
fefc1d97fa4b5e drivers/nvdimm/pmem.c Pankaj Gupta 2019-07-05 527 flags = DAXDEV_F_SYNC;
fefc1d97fa4b5e drivers/nvdimm/pmem.c Pankaj Gupta 2019-07-05 528 dax_dev = alloc_dax(pmem, disk->disk_name, &pmem_dax_ops, flags);
4e4ced93794acb drivers/nvdimm/pmem.c Vivek Goyal 2020-04-01 529 if (IS_ERR(dax_dev)) {
4e4ced93794acb drivers/nvdimm/pmem.c Vivek Goyal 2020-04-01 530 return PTR_ERR(dax_dev);
c1d6e828a35df5 drivers/nvdimm/pmem.c Dan Williams 2017-01-24 531 }
ce7f11a230d5b7 drivers/nvdimm/pmem.c Ross Zwisler 2018-06-06 532 dax_write_cache(dax_dev, nvdimm_has_cache(nd_region));
c1d6e828a35df5 drivers/nvdimm/pmem.c Dan Williams 2017-01-24 533 pmem->dax_dev = dax_dev;
6e0c90d691cd5d drivers/nvdimm/pmem.c Dan Williams 2017-06-26 534
d55174cccac2e4 drivers/nvdimm/pmem.c Christoph Hellwig 2021-09-22 @535 device_add_disk(dev, disk, pmem_attribute_groups);
c1d6e828a35df5 drivers/nvdimm/pmem.c Dan Williams 2017-01-24 536 if (devm_add_action_or_reset(dev, pmem_release_disk, pmem))
f02716db951c5e drivers/nvdimm/pmem.c Dan Williams 2016-06-15 537 return -ENOMEM;
f02716db951c5e drivers/nvdimm/pmem.c Dan Williams 2016-06-15 538
32f61d67570db0 drivers/nvdimm/pmem.c Christoph Hellwig 2020-09-01 539 nvdimm_check_and_set_ro(disk);
9e853f2313e5eb drivers/block/pmem.c Ross Zwisler 2015-04-01 540
975750a98c2676 drivers/nvdimm/pmem.c Toshi Kani 2017-06-12 541 pmem->bb_state = sysfs_get_dirent(disk_to_dev(disk)->kobj.sd,
975750a98c2676 drivers/nvdimm/pmem.c Toshi Kani 2017-06-12 542 "badblocks");
6aa734a2f38e2e drivers/nvdimm/pmem.c Dan Williams 2017-06-30 543 if (!pmem->bb_state)
6aa734a2f38e2e drivers/nvdimm/pmem.c Dan Williams 2017-06-30 544 dev_warn(dev, "'badblocks' notification disabled\n");
975750a98c2676 drivers/nvdimm/pmem.c Toshi Kani 2017-06-12 545
8c2f7e8658df1d drivers/nvdimm/pmem.c Dan Williams 2015-06-25 546 return 0;
8c2f7e8658df1d drivers/nvdimm/pmem.c Dan Williams 2015-06-25 547 }
9e853f2313e5eb drivers/block/pmem.c Ross Zwisler 2015-04-01 548
:::::: The code at line 535 was first introduced by commit
:::::: d55174cccac2e4c2a58ff68b6b573fc0836f73bd nvdimm/pmem: fix creating the dax group
:::::: TO: Christoph Hellwig <hch(a)lst.de>
:::::: CC: Dan Williams <dan.j.williams(a)intel.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
11 months
[dhowells-fs:fscache-rewrite-indexing 77/77] fs/cifs/fscache.h:103:38: error: redefinition of 'cifs_inode_cookie'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git fscache-rewrite-indexing
head: 77d7cb0fca08e72544d242d6897dede22de6bc20
commit: 77d7cb0fca08e72544d242d6897dede22de6bc20 [77/77] cifs: Support fscache indexing rewrite (untested)
config: i386-randconfig-r003-20211019 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d245f2e8597bfb52c34810a328d42b990e4af1a4)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/com...
git remote add dhowells-fs https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git
git fetch --no-tags dhowells-fs fscache-rewrite-indexing
git checkout 77d7cb0fca08e72544d242d6897dede22de6bc20
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash fs/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from fs/cifs/cifssmb.c:33:
>> fs/cifs/fscache.h:103:38: error: redefinition of 'cifs_inode_cookie'
static inline struct fscache_cookie *cifs_inode_cookie(struct inode *inode)
^
fs/cifs/fscache.h:93:38: note: previous definition is here
static inline struct fscache_cookie *cifs_inode_cookie(struct inode *inode) { return NULL; }
^
1 error generated.
--
In file included from fs/cifs/cifsfs.c:40:
>> fs/cifs/fscache.h:103:38: error: redefinition of 'cifs_inode_cookie'
static inline struct fscache_cookie *cifs_inode_cookie(struct inode *inode)
^
fs/cifs/fscache.h:93:38: note: previous definition is here
static inline struct fscache_cookie *cifs_inode_cookie(struct inode *inode) { return NULL; }
^
>> fs/cifs/cifsfs.c:401:42: error: too many arguments to function call, expected single argument 'inode', have 2 arguments
cifs_fscache_unuse_inode_cookie(inode, true);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~
fs/cifs/fscache.h:92:20: note: 'cifs_fscache_unuse_inode_cookie' declared here
static inline void cifs_fscache_unuse_inode_cookie(struct inode *inode) {}
^
2 errors generated.
--
In file included from fs/cifs/file.c:32:
>> fs/cifs/fscache.h:103:38: error: redefinition of 'cifs_inode_cookie'
static inline struct fscache_cookie *cifs_inode_cookie(struct inode *inode)
^
fs/cifs/fscache.h:93:38: note: previous definition is here
static inline struct fscache_cookie *cifs_inode_cookie(struct inode *inode) { return NULL; }
^
>> fs/cifs/file.c:641:37: error: variable has incomplete type 'struct cifs_fscache_inode_auxdata'
struct cifs_fscache_inode_auxdata auxdata;
^
fs/cifs/file.c:641:10: note: forward declaration of 'struct cifs_fscache_inode_auxdata'
struct cifs_fscache_inode_auxdata auxdata;
^
>> fs/cifs/file.c:642:3: error: implicit declaration of function 'cifs_fscache_fill_auxdata' [-Werror,-Wimplicit-function-declaration]
cifs_fscache_fill_auxdata(file_inode(file), &auxdata);
^
>> fs/cifs/file.c:890:41: error: too many arguments to function call, expected single argument 'inode', have 2 arguments
cifs_fscache_unuse_inode_cookie(inode, file->f_mode & FMODE_WRITE);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~
fs/cifs/fscache.h:92:20: note: 'cifs_fscache_unuse_inode_cookie' declared here
static inline void cifs_fscache_unuse_inode_cookie(struct inode *inode) {}
^
4 errors generated.
--
In file included from fs/cifs/inode.c:25:
>> fs/cifs/fscache.h:103:38: error: redefinition of 'cifs_inode_cookie'
static inline struct fscache_cookie *cifs_inode_cookie(struct inode *inode)
^
fs/cifs/fscache.h:93:38: note: previous definition is here
static inline struct fscache_cookie *cifs_inode_cookie(struct inode *inode) { return NULL; }
^
>> fs/cifs/inode.c:2263:36: error: variable has incomplete type 'struct cifs_fscache_inode_auxdata'
struct cifs_fscache_inode_auxdata auxdata;
^
fs/cifs/inode.c:2263:9: note: forward declaration of 'struct cifs_fscache_inode_auxdata'
struct cifs_fscache_inode_auxdata auxdata;
^
>> fs/cifs/inode.c:2274:2: error: implicit declaration of function 'cifs_fscache_fill_auxdata' [-Werror,-Wimplicit-function-declaration]
cifs_fscache_fill_auxdata(&cifsi->vfs_inode, &auxdata);
^
3 errors generated.
vim +/cifs_inode_cookie +103 fs/cifs/fscache.h
56698236e12948 Suresh Jayaraman 2010-07-05 100
9dc06558c223bb Suresh Jayaraman 2010-07-05 101 static inline void cifs_readpage_to_fscache(struct inode *inode,
9dc06558c223bb Suresh Jayaraman 2010-07-05 102 struct page *page) {}
d53048a45b2865 David Howells 2021-09-14 @103 static inline struct fscache_cookie *cifs_inode_cookie(struct inode *inode)
d53048a45b2865 David Howells 2021-09-14 104 { return NULL; }
54afa99057ee2f David Howells 2013-09-04 105
:::::: The code at line 103 was first introduced by commit
:::::: d53048a45b2865f95be9d02feaf04a9fd55d8d93 cifs: (untested) Move to using the alternate fallback fscache I/O API
:::::: TO: David Howells <dhowells(a)redhat.com>
:::::: CC: David Howells <dhowells(a)redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
11 months
Re: [PATCH] scsi: be2iscsi: Replace irq_poll with threaded IRQ handler.
by kernel test robot
Hi Sebastian,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on jejb-scsi/for-next]
[also build test WARNING on mkp-scsi/for-next v5.15-rc6 next-20211018]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Sebastian-Andrzej-Siewior/scsi-b...
base: https://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git for-next
config: x86_64-randconfig-r034-20211019 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d245f2e8597bfb52c34810a328d42b990e4af1a4)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/9f6ca42b58a498f5ab7a8b479087d1457...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Sebastian-Andrzej-Siewior/scsi-be2iscsi-Replace-irq_poll-with-threaded-IRQ-handler/20211018-233450
git checkout 9f6ca42b58a498f5ab7a8b479087d14574d30618
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/scsi/be2iscsi/be_main.c:707:8: warning: variable 'pbe_eq' is uninitialized when used here [-Wuninitialized]
eq = &pbe_eq->q;
^~~~~~
drivers/scsi/be2iscsi/be_main.c:699:26: note: initialize the variable 'pbe_eq' to silence this warning
struct be_eq_obj *pbe_eq;
^
= NULL
drivers/scsi/be2iscsi/be_main.c:733:24: warning: variable 'eq' set but not used [-Wunused-but-set-variable]
struct be_queue_info *eq;
^
>> drivers/scsi/be2iscsi/be_main.c:5388:33: warning: variable 'i' is uninitialized when used here [-Wuninitialized]
pbe_eq = &phwi_context->be_eq[i];
^
drivers/scsi/be2iscsi/be_main.c:5373:16: note: initialize the variable 'i' to silence this warning
unsigned int i;
^
= 0
3 warnings generated.
vim +/pbe_eq +707 drivers/scsi/be2iscsi/be_main.c
695
696 static irqreturn_t be_iopoll(struct beiscsi_hba *phba)
697 {
698 unsigned int ret, io_events;
699 struct be_eq_obj *pbe_eq;
700 struct be_eq_entry *eqe = NULL;
701 struct be_queue_info *eq;
702
703 if (beiscsi_hba_in_error(phba))
704 return IRQ_NONE;
705
706 io_events = 0;
> 707 eq = &pbe_eq->q;
708 eqe = queue_tail_node(eq);
709 while (eqe->dw[offsetof(struct amap_eq_entry, valid) / 32] &
710 EQE_VALID_MASK) {
711 AMAP_SET_BITS(struct amap_eq_entry, valid, eqe, 0);
712 queue_tail_inc(eq);
713 eqe = queue_tail_node(eq);
714 io_events++;
715 }
716 hwi_ring_eq_db(phba, eq->id, 1, io_events, 0, 1);
717
718 ret = beiscsi_process_cq(pbe_eq);
719 pbe_eq->cq_count += ret;
720 beiscsi_log(phba, KERN_INFO,
721 BEISCSI_LOG_CONFIG | BEISCSI_LOG_IO,
722 "BM_%d : rearm pbe_eq->q.id =%d ret %d\n",
723 pbe_eq->q.id, ret);
724 if (!beiscsi_hba_in_error(phba))
725 hwi_ring_eq_db(phba, pbe_eq->q.id, 0, 0, 1, 1);
726
727 return IRQ_HANDLED;
728 }
729
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
11 months
[dhowells-fs:fscache-rewrite-indexing 77/77] fs/cifs/cifsfs.c:401:42: error: too many arguments to function call, expected single argument 'inode', have 2 arguments
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git fscache-rewrite-indexing
head: 77d7cb0fca08e72544d242d6897dede22de6bc20
commit: 77d7cb0fca08e72544d242d6897dede22de6bc20 [77/77] cifs: Support fscache indexing rewrite (untested)
config: x86_64-randconfig-r031-20211019 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d245f2e8597bfb52c34810a328d42b990e4af1a4)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/com...
git remote add dhowells-fs https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git
git fetch --no-tags dhowells-fs fscache-rewrite-indexing
git checkout 77d7cb0fca08e72544d242d6897dede22de6bc20
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash fs/cifs/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from fs/cifs/cifsfs.c:40:
fs/cifs/fscache.h:103:38: error: redefinition of 'cifs_inode_cookie'
static inline struct fscache_cookie *cifs_inode_cookie(struct inode *inode)
^
fs/cifs/fscache.h:93:38: note: previous definition is here
static inline struct fscache_cookie *cifs_inode_cookie(struct inode *inode) { return NULL; }
^
>> fs/cifs/cifsfs.c:401:42: error: too many arguments to function call, expected single argument 'inode', have 2 arguments
cifs_fscache_unuse_inode_cookie(inode, true);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~
fs/cifs/fscache.h:92:20: note: 'cifs_fscache_unuse_inode_cookie' declared here
static inline void cifs_fscache_unuse_inode_cookie(struct inode *inode) {}
^
2 errors generated.
--
In file included from fs/cifs/file.c:32:
fs/cifs/fscache.h:103:38: error: redefinition of 'cifs_inode_cookie'
static inline struct fscache_cookie *cifs_inode_cookie(struct inode *inode)
^
fs/cifs/fscache.h:93:38: note: previous definition is here
static inline struct fscache_cookie *cifs_inode_cookie(struct inode *inode) { return NULL; }
^
>> fs/cifs/file.c:641:37: error: variable has incomplete type 'struct cifs_fscache_inode_auxdata'
struct cifs_fscache_inode_auxdata auxdata;
^
fs/cifs/file.c:641:10: note: forward declaration of 'struct cifs_fscache_inode_auxdata'
struct cifs_fscache_inode_auxdata auxdata;
^
>> fs/cifs/file.c:642:3: error: implicit declaration of function 'cifs_fscache_fill_auxdata' [-Werror,-Wimplicit-function-declaration]
cifs_fscache_fill_auxdata(file_inode(file), &auxdata);
^
>> fs/cifs/file.c:890:41: error: too many arguments to function call, expected single argument 'inode', have 2 arguments
cifs_fscache_unuse_inode_cookie(inode, file->f_mode & FMODE_WRITE);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~
fs/cifs/fscache.h:92:20: note: 'cifs_fscache_unuse_inode_cookie' declared here
static inline void cifs_fscache_unuse_inode_cookie(struct inode *inode) {}
^
4 errors generated.
--
In file included from fs/cifs/inode.c:25:
fs/cifs/fscache.h:103:38: error: redefinition of 'cifs_inode_cookie'
static inline struct fscache_cookie *cifs_inode_cookie(struct inode *inode)
^
fs/cifs/fscache.h:93:38: note: previous definition is here
static inline struct fscache_cookie *cifs_inode_cookie(struct inode *inode) { return NULL; }
^
>> fs/cifs/inode.c:2263:36: error: variable has incomplete type 'struct cifs_fscache_inode_auxdata'
struct cifs_fscache_inode_auxdata auxdata;
^
fs/cifs/inode.c:2263:9: note: forward declaration of 'struct cifs_fscache_inode_auxdata'
struct cifs_fscache_inode_auxdata auxdata;
^
>> fs/cifs/inode.c:2274:2: error: implicit declaration of function 'cifs_fscache_fill_auxdata' [-Werror,-Wimplicit-function-declaration]
cifs_fscache_fill_auxdata(&cifsi->vfs_inode, &auxdata);
^
3 errors generated.
vim +/inode +401 fs/cifs/cifsfs.c
395
396 static void
397 cifs_evict_inode(struct inode *inode)
398 {
399 truncate_inode_pages_final(&inode->i_data);
400 if (inode->i_state & I_PINNING_FSCACHE_WB)
> 401 cifs_fscache_unuse_inode_cookie(inode, true);
402 clear_inode(inode);
403 }
404
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
11 months
Re: [PATCH v13 02/10] PCI: kirin: Add support for a PHY layer
by kernel test robot
Hi Mauro,
I love your patch! Perhaps something to improve:
[auto build test WARNING on helgaas-pci/next]
[also build test WARNING on v5.15-rc6 next-20211018]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Mauro-Carvalho-Chehab/Add-suppor...
base: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next
config: arm64-randconfig-r004-20211017 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d245f2e8597bfb52c34810a328d42b990e4af1a4)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://github.com/0day-ci/linux/commit/203dfb8c88a9a2b502b9e1db644565559...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Mauro-Carvalho-Chehab/Add-support-for-Hikey-970-PCIe/20211018-150945
git checkout 203dfb8c88a9a2b502b9e1db644565559e028cf2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/pci/controller/dwc/pcie-kirin.c:561:13: warning: cast to smaller integer type 'enum pcie_kirin_phy_type' from 'const void *' [-Wvoid-pointer-to-enum-cast]
phy_type = (enum pcie_kirin_phy_type)of_id->data;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
vim +561 drivers/pci/controller/dwc/pcie-kirin.c
540
541 static int kirin_pcie_probe(struct platform_device *pdev)
542 {
543 enum pcie_kirin_phy_type phy_type;
544 const struct of_device_id *of_id;
545 struct device *dev = &pdev->dev;
546 struct kirin_pcie *kirin_pcie;
547 struct dw_pcie *pci;
548 int ret;
549
550 if (!dev->of_node) {
551 dev_err(dev, "NULL node\n");
552 return -EINVAL;
553 }
554
555 of_id = of_match_device(kirin_pcie_match, dev);
556 if (!of_id) {
557 dev_err(dev, "OF data missing\n");
558 return -EINVAL;
559 }
560
> 561 phy_type = (enum pcie_kirin_phy_type)of_id->data;
562
563 kirin_pcie = devm_kzalloc(dev, sizeof(struct kirin_pcie), GFP_KERNEL);
564 if (!kirin_pcie)
565 return -ENOMEM;
566
567 pci = devm_kzalloc(dev, sizeof(*pci), GFP_KERNEL);
568 if (!pci)
569 return -ENOMEM;
570
571 pci->dev = dev;
572 pci->ops = &kirin_dw_pcie_ops;
573 pci->pp.ops = &kirin_pcie_host_ops;
574 kirin_pcie->pci = pci;
575 kirin_pcie->type = phy_type;
576
577 ret = kirin_pcie_get_resource(kirin_pcie, pdev);
578 if (ret)
579 return ret;
580
581 platform_set_drvdata(pdev, kirin_pcie);
582
583 ret = kirin_pcie_power_on(pdev, kirin_pcie);
584 if (ret)
585 return ret;
586
587 return dw_pcie_host_init(&pci->pp);
588 }
589
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
11 months