[jirislaby:devel 28/30] drivers/tty/mxser.c:1745:30: warning: unused variable 'mxser_ops'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git devel
head: f297a9ec220495933237083fbf2333eca65eb9b4
commit: c2f304d1e4750e106a884544dfd7539b4853edf5 [28/30] mxser: switch to uart_driver
config: arm-randconfig-r003-20220116 (https://download.01.org/0day-ci/archive/20220117/202201171837.2mMV7e7n-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 5f782d25a742302d25ef3c8b84b54f7483c2deb9)
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://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git/commi...
git remote add jirislaby https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git
git fetch --no-tags jirislaby devel
git checkout c2f304d1e4750e106a884544dfd7539b4853edf5
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/tty/
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/tty/mxser.c:1745:30: warning: unused variable 'mxser_ops' [-Wunused-const-variable]
static const struct uart_ops mxser_ops = {
^
1 warning generated.
vim +/mxser_ops +1745 drivers/tty/mxser.c
1744
> 1745 static const struct uart_ops mxser_ops = {
1746 .tx_empty = mxser_tx_empty,
1747 //.get_mctrl = mxser_get_mctrl,
1748 //.set_mctrl = mxser_set_mctrl,
1749 .stop_tx = mxser_stop_tx,
1750 .start_tx = mxser_start_tx,
1751 .stop_rx = mxser_stop_rx,
1752 .break_ctl = mxser_break_ctl,
1753 .startup = mxser_startup,
1754 .shutdown = mxser_shutdown,
1755 .set_termios = mxser_set_termios,
1756 //.pm = mxser_pm,
1757 //.type = mxser_type,
1758 //.release_port = mxser_release_port,
1759 //.request_port = mxser_request_port,
1760 //.config_port = mxser_config_port,
1761 //.verify_port = mxser_verify_port,
1762 };
1763
1764
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months
Re: [PATCH] Wire up CONFIG_DEVTMPFS_MOUNT to initramfs.
by kernel test robot
Hi Rob,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on linux/master]
[also build test WARNING on linus/master v5.16 next-20220117]
[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/Rob-Landley/Wire-up-CONFIG_DEVTM...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git daadb3bd0e8d3e317e36bc2c1542e86c528665e5
config: h8300-randconfig-s032-20220116 (https://download.01.org/0day-ci/archive/20220117/202201171822.FDXweWsH-lk...)
compiler: h8300-linux-gcc (GCC) 11.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://github.com/0day-ci/linux/commit/c6b7e8ccdf2b0a9620c9dc0b5e5b2a719...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Rob-Landley/Wire-up-CONFIG_DEVTMPFS_MOUNT-to-initramfs/20220117-023610
git checkout c6b7e8ccdf2b0a9620c9dc0b5e5b2a719b223817
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=h8300 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> init/main.c:1624:27: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected char const [noderef] __user *pathname @@ got char * @@
init/main.c:1624:27: sparse: expected char const [noderef] __user *pathname
init/main.c:1624:27: sparse: got char *
vim +1624 init/main.c
1579
1580 static noinline void __init kernel_init_freeable(void)
1581 {
1582 /* Now the scheduler is fully set up and can do blocking allocations */
1583 gfp_allowed_mask = __GFP_BITS_MASK;
1584
1585 /*
1586 * init can allocate pages on any node
1587 */
1588 set_mems_allowed(node_states[N_MEMORY]);
1589
1590 cad_pid = get_pid(task_pid(current));
1591
1592 smp_prepare_cpus(setup_max_cpus);
1593
1594 workqueue_init();
1595
1596 init_mm_internals();
1597
1598 rcu_init_tasks_generic();
1599 do_pre_smp_initcalls();
1600 lockup_detector_init();
1601
1602 smp_init();
1603 sched_init_smp();
1604
1605 padata_init();
1606 page_alloc_init_late();
1607 /* Initialize page ext after all struct pages are initialized. */
1608 page_ext_init();
1609
1610 do_basic_setup();
1611
1612 kunit_run_all_tests();
1613
1614 wait_for_initramfs();
1615
1616 /*
1617 * check if there is an early userspace init. If yes, let it do all
1618 * the work
1619 */
1620 if (init_eaccess(ramdisk_execute_command) != 0) {
1621 ramdisk_execute_command = NULL;
1622 prepare_namespace();
1623 } else if (IS_ENABLED(CONFIG_DEVTMPFS_MOUNT)) {
> 1624 sys_mkdir("/dev", 0755);
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months
Re: [PATCH 2/2] clocksource/drivers: Add Realtek Otto timer driver
by kernel test robot
Hi Sander,
I love your patch! Perhaps something to improve:
[auto build test WARNING on next-20220116]
[cannot apply to tip/timers/core linux/master linus/master daniel-lezcano/clockevents/next v5.16 v5.16-rc8 v5.16-rc7 v5.16]
[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/Sander-Vanheule/Realtek-Otto-tim...
base: 70e6f1b39929bf6755a9c55b79fe720f7c8b9436
config: sparc-allyesconfig (https://download.01.org/0day-ci/archive/20220117/202201170911.q3u7GptA-lk...)
compiler: sparc64-linux-gcc (GCC) 11.2.0
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/1c346209c6655c06ab28df22f821ffa06...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Sander-Vanheule/Realtek-Otto-timer-counter-support/20220117-054003
git checkout 1c346209c6655c06ab28df22f821ffa06a792a14
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=sparc SHELL=/bin/bash drivers/clocksource/
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/clocksource/timer-realtek-otto.c: In function 'otto_tc_init':
drivers/clocksource/timer-realtek-otto.c:182:16: error: implicit declaration of function 'kzalloc'; did you mean 'd_alloc'? [-Werror=implicit-function-declaration]
182 | ctrl = kzalloc(sizeof(*ctrl), GFP_KERNEL);
| ^~~~~~~
| d_alloc
>> drivers/clocksource/timer-realtek-otto.c:182:14: warning: assignment to 'struct otto_tc_ctrl *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
182 | ctrl = kzalloc(sizeof(*ctrl), GFP_KERNEL);
| ^
drivers/clocksource/timer-realtek-otto.c:212:9: error: implicit declaration of function 'kfree' [-Werror=implicit-function-declaration]
212 | kfree(ctrl);
| ^~~~~
cc1: some warnings being treated as errors
vim +182 drivers/clocksource/timer-realtek-otto.c
176
177 static int __init otto_tc_init(struct device_node *node)
178 {
179 struct otto_tc_ctrl *ctrl;
180 int err;
181
> 182 ctrl = kzalloc(sizeof(*ctrl), GFP_KERNEL);
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months
Re: [PATCH v3 1/1] ceph: add getvxattr op
by kernel test robot
Hi Milind,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on fd84bfdddd169c219c3a637889a8b87f70a072c2]
url: https://github.com/0day-ci/linux/commits/Milind-Changire/ceph-add-support...
base: fd84bfdddd169c219c3a637889a8b87f70a072c2
config: x86_64-randconfig-r002-20220117 (https://download.01.org/0day-ci/archive/20220117/202201171516.ilKzMFxt-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 5f782d25a742302d25ef3c8b84b54f7483c2deb9)
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/2c3b424994ab41a8d52471eb5a6721f46...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Milind-Changire/ceph-add-support-for-getvxattr-op/20220117-120129
git checkout 2c3b424994ab41a8d52471eb5a6721f466d515dc
# save the config file 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/ceph/
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 >>):
>> fs/ceph/inode.c:2326:53: warning: format specifies type 'unsigned int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
dout("do_getvxattr xattr_value_len:%u, size:%u\n", xattr_value_len, size);
~~ ^~~~~~~~~~~~~~~
%lu
include/linux/ceph/ceph_debug.h:26:29: note: expanded from macro 'dout'
printk(KERN_DEBUG fmt, ##__VA_ARGS__); \
~~~ ^~~~~~~~~~~
include/linux/printk.h:450:60: note: expanded from macro 'printk'
#define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
include/linux/printk.h:422:19: note: expanded from macro 'printk_index_wrap'
_p_func(_fmt, ##__VA_ARGS__); \
~~~~ ^~~~~~~~~~~
fs/ceph/inode.c:2326:70: warning: format specifies type 'unsigned int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
dout("do_getvxattr xattr_value_len:%u, size:%u\n", xattr_value_len, size);
~~ ^~~~
%lu
include/linux/ceph/ceph_debug.h:26:29: note: expanded from macro 'dout'
printk(KERN_DEBUG fmt, ##__VA_ARGS__); \
~~~ ^~~~~~~~~~~
include/linux/printk.h:450:60: note: expanded from macro 'printk'
#define printk(fmt, ...) printk_index_wrap(_printk, fmt, ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
include/linux/printk.h:422:19: note: expanded from macro 'printk_index_wrap'
_p_func(_fmt, ##__VA_ARGS__); \
~~~~ ^~~~~~~~~~~
2 warnings generated.
vim +2326 fs/ceph/inode.c
2293
2294 int ceph_do_getvxattr(struct inode *inode, const char *name, void *value,
2295 size_t size)
2296 {
2297 struct ceph_fs_client *fsc = ceph_sb_to_client(inode->i_sb);
2298 struct ceph_mds_client *mdsc = fsc->mdsc;
2299 struct ceph_mds_request *req;
2300 int mode = USE_AUTH_MDS;
2301 int err;
2302 char *xattr_value;
2303 size_t xattr_value_len;
2304
2305 req = ceph_mdsc_create_request(mdsc, CEPH_MDS_OP_GETVXATTR, mode);
2306 if (IS_ERR(req)) {
2307 err = -ENOMEM;
2308 goto out;
2309 }
2310
2311 req->r_path2 = kstrdup(name, GFP_NOFS);
2312 if (!req->r_path2) {
2313 err = -ENOMEM;
2314 goto put;
2315 }
2316
2317 ihold(inode);
2318 req->r_inode = inode;
2319 err = ceph_mdsc_do_request(mdsc, NULL, req);
2320 if (err < 0)
2321 goto put;
2322
2323 xattr_value = req->r_reply_info.xattr_info.xattr_value;
2324 xattr_value_len = req->r_reply_info.xattr_info.xattr_value_len;
2325
> 2326 dout("do_getvxattr xattr_value_len:%u, size:%u\n", xattr_value_len, size);
2327
2328 err = xattr_value_len;
2329 if (size == 0)
2330 goto put;
2331
2332 if (xattr_value_len > size) {
2333 err = -ERANGE;
2334 goto put;
2335 }
2336
2337 memcpy(value, xattr_value, xattr_value_len);
2338 put:
2339 ceph_mdsc_put_request(req);
2340 out:
2341 dout("do_getvxattr result=%d\n", err);
2342 return err;
2343 }
2344
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months
[mingo-tip:sched/headers 203/2384] kernel/kcsan/permissive.h:31:26: error: no member named 'flags' in 'struct task_struct'
by kernel test robot
tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers
head: 4c707c1c0de83967079b4e385012fa5b00e2cd11
commit: 762c0e5e35546dcaccb201e1e3dae69e34f7733b [203/2384] headers/deps: Move task_struct::flags to per_task()
config: x86_64-randconfig-c007 (https://download.01.org/0day-ci/archive/20220117/202201171545.dO2soyng-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c63a3175c2947e8c1a2d3bbe16a8586600705c54)
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/mingo/tip.git/commit/?id=...
git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
git fetch --no-tags mingo-tip sched/headers
git checkout 762c0e5e35546dcaccb201e1e3dae69e34f7733b
# save the config file 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
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 kernel/kcsan/core.c:25:
>> kernel/kcsan/permissive.h:31:26: error: no member named 'flags' in 'struct task_struct'
return ptr == ¤t->flags;
~~~~~~~ ^
1 error generated.
vim +31 kernel/kcsan/permissive.h
49f72d5358dd3c Marco Elver 2021-06-07 18
49f72d5358dd3c Marco Elver 2021-06-07 19 /*
49f72d5358dd3c Marco Elver 2021-06-07 20 * Access ignore rules based on address.
49f72d5358dd3c Marco Elver 2021-06-07 21 */
49f72d5358dd3c Marco Elver 2021-06-07 22 static __always_inline bool kcsan_ignore_address(const volatile void *ptr)
49f72d5358dd3c Marco Elver 2021-06-07 23 {
49f72d5358dd3c Marco Elver 2021-06-07 24 if (!IS_ENABLED(CONFIG_KCSAN_PERMISSIVE))
49f72d5358dd3c Marco Elver 2021-06-07 25 return false;
49f72d5358dd3c Marco Elver 2021-06-07 26
d8fd74d35a8d3c Marco Elver 2021-06-07 27 /*
d8fd74d35a8d3c Marco Elver 2021-06-07 28 * Data-racy bitops on current->flags are too common, ignore completely
d8fd74d35a8d3c Marco Elver 2021-06-07 29 * for now.
d8fd74d35a8d3c Marco Elver 2021-06-07 30 */
d8fd74d35a8d3c Marco Elver 2021-06-07 @31 return ptr == ¤t->flags;
49f72d5358dd3c Marco Elver 2021-06-07 32 }
49f72d5358dd3c Marco Elver 2021-06-07 33
:::::: The code at line 31 was first introduced by commit
:::::: d8fd74d35a8d3c602232e3238e916bda9d03d520 kcsan: permissive: Ignore data-racy 1-bit value changes
:::::: TO: Marco Elver <elver(a)google.com>
:::::: CC: Paul E. McKenney <paulmck(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months
Re: [PATCH 2/2] clocksource/drivers: Add Realtek Otto timer driver
by kernel test robot
Hi Sander,
I love your patch! Yet something to improve:
[auto build test ERROR on next-20220116]
[cannot apply to tip/timers/core linux/master linus/master daniel-lezcano/clockevents/next v5.16 v5.16-rc8 v5.16-rc7 v5.16]
[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/Sander-Vanheule/Realtek-Otto-tim...
base: 70e6f1b39929bf6755a9c55b79fe720f7c8b9436
config: sparc-allyesconfig (https://download.01.org/0day-ci/archive/20220117/202201171557.EmiIHtdJ-lk...)
compiler: sparc64-linux-gcc (GCC) 11.2.0
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/1c346209c6655c06ab28df22f821ffa06...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Sander-Vanheule/Realtek-Otto-timer-counter-support/20220117-054003
git checkout 1c346209c6655c06ab28df22f821ffa06a792a14
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=sparc 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/clocksource/timer-realtek-otto.c: In function 'otto_tc_init':
>> drivers/clocksource/timer-realtek-otto.c:182:16: error: implicit declaration of function 'kzalloc'; did you mean 'd_alloc'? [-Werror=implicit-function-declaration]
182 | ctrl = kzalloc(sizeof(*ctrl), GFP_KERNEL);
| ^~~~~~~
| d_alloc
drivers/clocksource/timer-realtek-otto.c:182:14: warning: assignment to 'struct otto_tc_ctrl *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
182 | ctrl = kzalloc(sizeof(*ctrl), GFP_KERNEL);
| ^
>> drivers/clocksource/timer-realtek-otto.c:212:9: error: implicit declaration of function 'kfree' [-Werror=implicit-function-declaration]
212 | kfree(ctrl);
| ^~~~~
cc1: some warnings being treated as errors
vim +182 drivers/clocksource/timer-realtek-otto.c
176
177 static int __init otto_tc_init(struct device_node *node)
178 {
179 struct otto_tc_ctrl *ctrl;
180 int err;
181
> 182 ctrl = kzalloc(sizeof(*ctrl), GFP_KERNEL);
183 if (!ctrl)
184 return -ENOMEM;
185
186 spin_lock_init(&ctrl->lock);
187
188 ctrl->to.flags = TIMER_OF_BASE | TIMER_OF_IRQ | TIMER_OF_CLOCK;
189 ctrl->to.of_clk.name = "bus";
190 ctrl->to.of_irq.flags = IRQF_TIMER;
191 ctrl->to.of_irq.handler = otto_tc_handler;
192
193 err = timer_of_init(node, &ctrl->to);
194 if (err)
195 goto err_out;
196
197 /* Reset timer state */
198 writel(0, OTTO_TC_REG_CTL(&ctrl->to));
199 writel(0, OTTO_TC_REG_DATA(&ctrl->to));
200
201 /* TODO Replace by a real derived clock */
202 otto_tc_set_divisor(ctrl, OTTO_TC_MIN_DIVISOR);
203 ctrl->to.of_clk.rate /= OTTO_TC_MIN_DIVISOR;
204 ctrl->to.of_clk.period /= OTTO_TC_MIN_DIVISOR;
205
206 otto_tc_irq_enable_clear(&ctrl->to);
207 otto_tc_init_clkevt(&ctrl->to);
208
209 return 0;
210
211 err_out:
> 212 kfree(ctrl);
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months