[ammarfaizi2-block:google/android/kernel/common/android-4.19-stable 346/9999] drivers/nvmem/core.c:347:5: warning: no previous prototype for 'nvmem_add_cells'
by kernel test robot
Hi Bartosz,
FYI, the error/warning still remains.
tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android-4.19-stable
head: 90a691fca4c2525068d9908ac203e9f09e4e33c0
commit: e96a10625581a499e8a4218ef504f3f53918408b [346/9999] UPSTREAM: nvmem: add support for cell info
config: x86_64-randconfig-a011 (https://download.01.org/0day-ci/archive/20220122/202201221032.qQ2lBxEQ-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/ammarfaizi2/linux-block/commit/e96a10625581a499e8a4218...
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android-4.19-stable
git checkout e96a10625581a499e8a4218ef504f3f53918408b
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/nvmem/
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/nvmem/core.c:347:5: warning: no previous prototype for 'nvmem_add_cells' [-Wmissing-prototypes]
347 | int nvmem_add_cells(struct nvmem_device *nvmem,
| ^~~~~~~~~~~~~~~
vim +/nvmem_add_cells +347 drivers/nvmem/core.c
eace75cfdcf7d99 Srinivas Kandagatla 2015-07-27 337
b3db17e4b864e46 Andrew Lunn 2018-05-11 338 /**
b3db17e4b864e46 Andrew Lunn 2018-05-11 339 * nvmem_add_cells() - Add cell information to an nvmem device
b3db17e4b864e46 Andrew Lunn 2018-05-11 340 *
b3db17e4b864e46 Andrew Lunn 2018-05-11 341 * @nvmem: nvmem device to add cells to.
b3db17e4b864e46 Andrew Lunn 2018-05-11 342 * @info: nvmem cell info to add to the device
b3db17e4b864e46 Andrew Lunn 2018-05-11 343 * @ncells: number of cells in info
b3db17e4b864e46 Andrew Lunn 2018-05-11 344 *
b3db17e4b864e46 Andrew Lunn 2018-05-11 345 * Return: 0 or negative error code on failure.
b3db17e4b864e46 Andrew Lunn 2018-05-11 346 */
b3db17e4b864e46 Andrew Lunn 2018-05-11 @347 int nvmem_add_cells(struct nvmem_device *nvmem,
b3db17e4b864e46 Andrew Lunn 2018-05-11 348 const struct nvmem_cell_info *info,
b3db17e4b864e46 Andrew Lunn 2018-05-11 349 int ncells)
eace75cfdcf7d99 Srinivas Kandagatla 2015-07-27 350 {
eace75cfdcf7d99 Srinivas Kandagatla 2015-07-27 351 struct nvmem_cell **cells;
eace75cfdcf7d99 Srinivas Kandagatla 2015-07-27 352 int i, rval;
eace75cfdcf7d99 Srinivas Kandagatla 2015-07-27 353
b3db17e4b864e46 Andrew Lunn 2018-05-11 354 cells = kcalloc(ncells, sizeof(*cells), GFP_KERNEL);
eace75cfdcf7d99 Srinivas Kandagatla 2015-07-27 355 if (!cells)
eace75cfdcf7d99 Srinivas Kandagatla 2015-07-27 356 return -ENOMEM;
eace75cfdcf7d99 Srinivas Kandagatla 2015-07-27 357
b3db17e4b864e46 Andrew Lunn 2018-05-11 358 for (i = 0; i < ncells; i++) {
eace75cfdcf7d99 Srinivas Kandagatla 2015-07-27 359 cells[i] = kzalloc(sizeof(**cells), GFP_KERNEL);
eace75cfdcf7d99 Srinivas Kandagatla 2015-07-27 360 if (!cells[i]) {
eace75cfdcf7d99 Srinivas Kandagatla 2015-07-27 361 rval = -ENOMEM;
eace75cfdcf7d99 Srinivas Kandagatla 2015-07-27 362 goto err;
eace75cfdcf7d99 Srinivas Kandagatla 2015-07-27 363 }
eace75cfdcf7d99 Srinivas Kandagatla 2015-07-27 364
eace75cfdcf7d99 Srinivas Kandagatla 2015-07-27 365 rval = nvmem_cell_info_to_nvmem_cell(nvmem, &info[i], cells[i]);
287980e49ffc0f6 Arnd Bergmann 2016-05-27 366 if (rval) {
eace75cfdcf7d99 Srinivas Kandagatla 2015-07-27 367 kfree(cells[i]);
eace75cfdcf7d99 Srinivas Kandagatla 2015-07-27 368 goto err;
eace75cfdcf7d99 Srinivas Kandagatla 2015-07-27 369 }
eace75cfdcf7d99 Srinivas Kandagatla 2015-07-27 370
eace75cfdcf7d99 Srinivas Kandagatla 2015-07-27 371 nvmem_cell_add(cells[i]);
eace75cfdcf7d99 Srinivas Kandagatla 2015-07-27 372 }
eace75cfdcf7d99 Srinivas Kandagatla 2015-07-27 373
eace75cfdcf7d99 Srinivas Kandagatla 2015-07-27 374 /* remove tmp array */
eace75cfdcf7d99 Srinivas Kandagatla 2015-07-27 375 kfree(cells);
eace75cfdcf7d99 Srinivas Kandagatla 2015-07-27 376
eace75cfdcf7d99 Srinivas Kandagatla 2015-07-27 377 return 0;
eace75cfdcf7d99 Srinivas Kandagatla 2015-07-27 378 err:
dfdf141429f0895 Rasmus Villemoes 2016-02-08 379 while (i--)
eace75cfdcf7d99 Srinivas Kandagatla 2015-07-27 380 nvmem_cell_drop(cells[i]);
eace75cfdcf7d99 Srinivas Kandagatla 2015-07-27 381
dfdf141429f0895 Rasmus Villemoes 2016-02-08 382 kfree(cells);
dfdf141429f0895 Rasmus Villemoes 2016-02-08 383
eace75cfdcf7d99 Srinivas Kandagatla 2015-07-27 384 return rval;
eace75cfdcf7d99 Srinivas Kandagatla 2015-07-27 385 }
b3db17e4b864e46 Andrew Lunn 2018-05-11 386 EXPORT_SYMBOL_GPL(nvmem_add_cells);
eace75cfdcf7d99 Srinivas Kandagatla 2015-07-27 387
:::::: The code at line 347 was first introduced by commit
:::::: b3db17e4b864e46ad150ebef69c0e0130a1c5fca drivers: nvmem: Export nvmem_add_cells()
:::::: TO: Andrew Lunn <andrew(a)lunn.ch>
:::::: 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
8 months
[rt-devel:linux-5.16.y-rt-rebase 8/132] kernel/printk/printk.c:2628:2: error: implicit declaration of function 'boot_delay_msec'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git linux-5.16.y-rt-rebase
head: 1722f531f5244c70dcd9687c40729860bb254e8d
commit: 75ade2af49f22287257530b6ba838efe2b6dfb56 [8/132] printk: refactor and rework printing logic
config: hexagon-buildonly-randconfig-r005-20220121 (https://download.01.org/0day-ci/archive/20220122/202201220904.ZcTeNwWl-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 7b3d30728816403d1fd73cc5082e9fb761262bce)
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/rt/linux-rt-devel.git/com...
git remote add rt-devel https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git
git fetch --no-tags rt-devel linux-5.16.y-rt-rebase
git checkout 75ade2af49f22287257530b6ba838efe2b6dfb56
# 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=hexagon SHELL=/bin/bash kernel/printk/
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 >>):
kernel/printk/printk.c:175:5: warning: no previous prototype for function 'devkmsg_sysctl_set_loglvl' [-Wmissing-prototypes]
int devkmsg_sysctl_set_loglvl(struct ctl_table *table, int write,
^
kernel/printk/printk.c:175:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int devkmsg_sysctl_set_loglvl(struct ctl_table *table, int write,
^
static
>> kernel/printk/printk.c:2628:2: error: implicit declaration of function 'boot_delay_msec' [-Werror,-Wimplicit-function-declaration]
boot_delay_msec(r.info->level);
^
>> kernel/printk/printk.c:2629:2: error: implicit declaration of function 'printk_delay' [-Werror,-Wimplicit-function-declaration]
printk_delay();
^
1 warning and 2 errors generated.
vim +/boot_delay_msec +2628 kernel/printk/printk.c
2556
2557 /*
2558 * Print one record for the given console. The record printed is whatever
2559 * record is the next available record for the given console.
2560 *
2561 * Requires the console_lock.
2562 *
2563 * Returns false if the given console has no next record to print, otherwise
2564 * true.
2565 *
2566 * @handover will be set to true if a printk waiter has taken over the
2567 * console_lock, in which case the caller is no longer holding the
2568 * console_lock.
2569 */
2570 static bool console_emit_next_record(struct console *con, bool *handover)
2571 {
2572 static char ext_text[CONSOLE_EXT_LOG_MAX];
2573 static char text[CONSOLE_LOG_MAX];
2574 struct printk_info info;
2575 struct printk_record r;
2576 unsigned long flags;
2577 char *write_text;
2578 size_t len;
2579
2580 prb_rec_init_rd(&r, &info, text, sizeof(text));
2581
2582 if (!prb_read_valid(prb, con->seq, &r))
2583 return false;
2584
2585 if (con->seq != r.info->seq) {
2586 con->dropped += r.info->seq - con->seq;
2587 con->seq = r.info->seq;
2588 }
2589
2590 /* Skip record that has level above the console loglevel. */
2591 if (suppress_message_printing(r.info->level)) {
2592 con->seq++;
2593 goto skip;
2594 }
2595
2596 if (con->flags & CON_EXTENDED) {
2597 write_text = &ext_text[0];
2598 len = info_print_ext_header(ext_text, sizeof(ext_text), r.info);
2599 len += msg_print_ext_body(ext_text + len, sizeof(ext_text) - len,
2600 &r.text_buf[0], r.info->text_len, &r.info->dev_info);
2601 } else {
2602 write_text = &text[0];
2603 len = record_print_text(&r, console_msg_format & MSG_FORMAT_SYSLOG, printk_time);
2604 }
2605
2606 /*
2607 * While actively printing out messages, if another printk()
2608 * were to occur on another CPU, it may wait for this one to
2609 * finish. This task can not be preempted if there is a
2610 * waiter waiting to take over.
2611 *
2612 * Interrupts are disabled because the hand over to a waiter
2613 * must not be interrupted until the hand over is completed
2614 * (@console_waiter is cleared).
2615 */
2616 printk_safe_enter_irqsave(flags);
2617 console_lock_spinning_enable();
2618
2619 stop_critical_timings(); /* don't trace print latency */
2620 call_console_driver(con, write_text, len);
2621 start_critical_timings();
2622
2623 con->seq++;
2624
2625 *handover = console_lock_spinning_disable_and_check();
2626 printk_safe_exit_irqrestore(flags);
2627
> 2628 boot_delay_msec(r.info->level);
> 2629 printk_delay();
2630 skip:
2631 return true;
2632 }
2633
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months
[rt-devel:linux-5.16.y-rt-rebase 16/132] kernel/printk/printk.c:2979:7: warning: variable 'any_usable' set but not used
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git linux-5.16.y-rt-rebase
head: 1722f531f5244c70dcd9687c40729860bb254e8d
commit: e1fd5438186d729df636919574f08231f7ecdd1d [16/132] serial: 8250: implement write_atomic
config: arm-randconfig-r016-20220121 (https://download.01.org/0day-ci/archive/20220122/202201220837.EAj9Nrqa-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 7b3d30728816403d1fd73cc5082e9fb761262bce)
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/rt/linux-rt-devel.git/com...
git remote add rt-devel https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git
git fetch --no-tags rt-devel linux-5.16.y-rt-rebase
git checkout e1fd5438186d729df636919574f08231f7ecdd1d
# 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 kernel/printk/
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 >>):
>> kernel/printk/printk.c:2979:7: warning: variable 'any_usable' set but not used [-Wunused-but-set-variable]
bool any_usable = false;
^
1 warning generated.
vim +/any_usable +2979 kernel/printk/printk.c
fe3d8ad31cf51b kernel/printk.c Feng Tang 2011-03-22 2975
02489ebe320634 kernel/printk/printk.c John Ogness 2021-12-22 2976 #ifdef CONFIG_HAVE_ATOMIC_CONSOLE
02489ebe320634 kernel/printk/printk.c John Ogness 2021-12-22 2977 static void atomic_console_flush_all(void)
02489ebe320634 kernel/printk/printk.c John Ogness 2021-12-22 2978 {
02489ebe320634 kernel/printk/printk.c John Ogness 2021-12-22 @2979 bool any_usable = false;
02489ebe320634 kernel/printk/printk.c John Ogness 2021-12-22 2980 unsigned long flags;
02489ebe320634 kernel/printk/printk.c John Ogness 2021-12-22 2981 struct console *con;
02489ebe320634 kernel/printk/printk.c John Ogness 2021-12-22 2982 bool any_progress;
02489ebe320634 kernel/printk/printk.c John Ogness 2021-12-22 2983 int index = 0;
02489ebe320634 kernel/printk/printk.c John Ogness 2021-12-22 2984
02489ebe320634 kernel/printk/printk.c John Ogness 2021-12-22 2985 if (console_suspended)
02489ebe320634 kernel/printk/printk.c John Ogness 2021-12-22 2986 return;
02489ebe320634 kernel/printk/printk.c John Ogness 2021-12-22 2987
:::::: The code at line 2979 was first introduced by commit
:::::: 02489ebe320634155c5ddb3110d7d456fa68d304 printk: add infrastucture for atomic consoles
:::::: TO: John Ogness <john.ogness(a)linutronix.de>
:::::: CC: Sebastian Andrzej Siewior <bigeasy(a)linutronix.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months
[ammarfaizi2-block:google/android/kernel/common/android-4.19-stable 75/9999] drivers/pwm/pwm-stm32-lp.c:63:41: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'u64' {aka 'long long unsigned int'}
by kernel test robot
Hi Fenglin,
FYI, the error/warning still remains.
tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android-4.19-stable
head: 90a691fca4c2525068d9908ac203e9f09e4e33c0
commit: d892c9f3571faa2e691fc3a9eb6ea4f4da1d7eab [75/9999] ANDROID: GKI: pwm: core: Add option to config PWM duty/period with u64 data length
config: arm-buildonly-randconfig-r002-20220121 (https://download.01.org/0day-ci/archive/20220122/202201220851.GWJU03D1-lk...)
compiler: arm-linux-gnueabi-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/ammarfaizi2/linux-block/commit/d892c9f3571faa2e691fc3a...
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android-4.19-stable
git checkout d892c9f3571faa2e691fc3a9eb6ea4f4da1d7eab
# 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=arm SHELL=/bin/bash drivers/pwm/
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 >>):
In file included from include/linux/platform_device.h:14,
from drivers/pwm/pwm-stm32-lp.c:16:
drivers/pwm/pwm-stm32-lp.c: In function 'stm32_pwm_lp_apply':
>> drivers/pwm/pwm-stm32-lp.c:63:41: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'u64' {aka 'long long unsigned int'} [-Wformat=]
63 | dev_dbg(priv->chip.dev, "Can't reach %u ns\n", state->period);
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/device.h:1426:22: note: in definition of macro 'dev_fmt'
1426 | #define dev_fmt(fmt) fmt
| ^~~
drivers/pwm/pwm-stm32-lp.c:63:17: note: in expansion of macro 'dev_dbg'
63 | dev_dbg(priv->chip.dev, "Can't reach %u ns\n", state->period);
| ^~~~~~~
drivers/pwm/pwm-stm32-lp.c:63:55: note: format string is defined here
63 | dev_dbg(priv->chip.dev, "Can't reach %u ns\n", state->period);
| ~^
| |
| unsigned int
| %llu
vim +63 drivers/pwm/pwm-stm32-lp.c
e70a540b4e0230 Fabrice Gasnier 2017-08-28 32
e70a540b4e0230 Fabrice Gasnier 2017-08-28 33 static int stm32_pwm_lp_apply(struct pwm_chip *chip, struct pwm_device *pwm,
e70a540b4e0230 Fabrice Gasnier 2017-08-28 34 struct pwm_state *state)
e70a540b4e0230 Fabrice Gasnier 2017-08-28 35 {
e70a540b4e0230 Fabrice Gasnier 2017-08-28 36 struct stm32_pwm_lp *priv = to_stm32_pwm_lp(chip);
e70a540b4e0230 Fabrice Gasnier 2017-08-28 37 unsigned long long prd, div, dty;
e70a540b4e0230 Fabrice Gasnier 2017-08-28 38 struct pwm_state cstate;
e70a540b4e0230 Fabrice Gasnier 2017-08-28 39 u32 val, mask, cfgr, presc = 0;
e70a540b4e0230 Fabrice Gasnier 2017-08-28 40 bool reenable;
e70a540b4e0230 Fabrice Gasnier 2017-08-28 41 int ret;
e70a540b4e0230 Fabrice Gasnier 2017-08-28 42
e70a540b4e0230 Fabrice Gasnier 2017-08-28 43 pwm_get_state(pwm, &cstate);
e70a540b4e0230 Fabrice Gasnier 2017-08-28 44 reenable = !cstate.enabled;
e70a540b4e0230 Fabrice Gasnier 2017-08-28 45
e70a540b4e0230 Fabrice Gasnier 2017-08-28 46 if (!state->enabled) {
e70a540b4e0230 Fabrice Gasnier 2017-08-28 47 if (cstate.enabled) {
e70a540b4e0230 Fabrice Gasnier 2017-08-28 48 /* Disable LP timer */
e70a540b4e0230 Fabrice Gasnier 2017-08-28 49 ret = regmap_write(priv->regmap, STM32_LPTIM_CR, 0);
e70a540b4e0230 Fabrice Gasnier 2017-08-28 50 if (ret)
e70a540b4e0230 Fabrice Gasnier 2017-08-28 51 return ret;
e70a540b4e0230 Fabrice Gasnier 2017-08-28 52 /* disable clock to PWM counter */
e70a540b4e0230 Fabrice Gasnier 2017-08-28 53 clk_disable(priv->clk);
e70a540b4e0230 Fabrice Gasnier 2017-08-28 54 }
e70a540b4e0230 Fabrice Gasnier 2017-08-28 55 return 0;
e70a540b4e0230 Fabrice Gasnier 2017-08-28 56 }
e70a540b4e0230 Fabrice Gasnier 2017-08-28 57
e70a540b4e0230 Fabrice Gasnier 2017-08-28 58 /* Calculate the period and prescaler value */
e70a540b4e0230 Fabrice Gasnier 2017-08-28 59 div = (unsigned long long)clk_get_rate(priv->clk) * state->period;
e70a540b4e0230 Fabrice Gasnier 2017-08-28 60 do_div(div, NSEC_PER_SEC);
65348659535d23 Fabrice Gasnier 2019-09-18 61 if (!div) {
65348659535d23 Fabrice Gasnier 2019-09-18 62 /* Clock is too slow to achieve requested period. */
65348659535d23 Fabrice Gasnier 2019-09-18 @63 dev_dbg(priv->chip.dev, "Can't reach %u ns\n", state->period);
65348659535d23 Fabrice Gasnier 2019-09-18 64 return -EINVAL;
65348659535d23 Fabrice Gasnier 2019-09-18 65 }
65348659535d23 Fabrice Gasnier 2019-09-18 66
e70a540b4e0230 Fabrice Gasnier 2017-08-28 67 prd = div;
e70a540b4e0230 Fabrice Gasnier 2017-08-28 68 while (div > STM32_LPTIM_MAX_ARR) {
e70a540b4e0230 Fabrice Gasnier 2017-08-28 69 presc++;
e70a540b4e0230 Fabrice Gasnier 2017-08-28 70 if ((1 << presc) > STM32_LPTIM_MAX_PRESCALER) {
e70a540b4e0230 Fabrice Gasnier 2017-08-28 71 dev_err(priv->chip.dev, "max prescaler exceeded\n");
e70a540b4e0230 Fabrice Gasnier 2017-08-28 72 return -EINVAL;
e70a540b4e0230 Fabrice Gasnier 2017-08-28 73 }
e70a540b4e0230 Fabrice Gasnier 2017-08-28 74 div = prd >> presc;
e70a540b4e0230 Fabrice Gasnier 2017-08-28 75 }
e70a540b4e0230 Fabrice Gasnier 2017-08-28 76 prd = div;
e70a540b4e0230 Fabrice Gasnier 2017-08-28 77
e70a540b4e0230 Fabrice Gasnier 2017-08-28 78 /* Calculate the duty cycle */
e70a540b4e0230 Fabrice Gasnier 2017-08-28 79 dty = prd * state->duty_cycle;
e70a540b4e0230 Fabrice Gasnier 2017-08-28 80 do_div(dty, state->period);
e70a540b4e0230 Fabrice Gasnier 2017-08-28 81
e70a540b4e0230 Fabrice Gasnier 2017-08-28 82 if (!cstate.enabled) {
e70a540b4e0230 Fabrice Gasnier 2017-08-28 83 /* enable clock to drive PWM counter */
e70a540b4e0230 Fabrice Gasnier 2017-08-28 84 ret = clk_enable(priv->clk);
e70a540b4e0230 Fabrice Gasnier 2017-08-28 85 if (ret)
e70a540b4e0230 Fabrice Gasnier 2017-08-28 86 return ret;
e70a540b4e0230 Fabrice Gasnier 2017-08-28 87 }
e70a540b4e0230 Fabrice Gasnier 2017-08-28 88
e70a540b4e0230 Fabrice Gasnier 2017-08-28 89 ret = regmap_read(priv->regmap, STM32_LPTIM_CFGR, &cfgr);
e70a540b4e0230 Fabrice Gasnier 2017-08-28 90 if (ret)
e70a540b4e0230 Fabrice Gasnier 2017-08-28 91 goto err;
e70a540b4e0230 Fabrice Gasnier 2017-08-28 92
e70a540b4e0230 Fabrice Gasnier 2017-08-28 93 if ((FIELD_GET(STM32_LPTIM_PRESC, cfgr) != presc) ||
e70a540b4e0230 Fabrice Gasnier 2017-08-28 94 (FIELD_GET(STM32_LPTIM_WAVPOL, cfgr) != state->polarity)) {
e70a540b4e0230 Fabrice Gasnier 2017-08-28 95 val = FIELD_PREP(STM32_LPTIM_PRESC, presc);
e70a540b4e0230 Fabrice Gasnier 2017-08-28 96 val |= FIELD_PREP(STM32_LPTIM_WAVPOL, state->polarity);
e70a540b4e0230 Fabrice Gasnier 2017-08-28 97 mask = STM32_LPTIM_PRESC | STM32_LPTIM_WAVPOL;
e70a540b4e0230 Fabrice Gasnier 2017-08-28 98
e70a540b4e0230 Fabrice Gasnier 2017-08-28 99 /* Must disable LP timer to modify CFGR */
e70a540b4e0230 Fabrice Gasnier 2017-08-28 100 reenable = true;
e70a540b4e0230 Fabrice Gasnier 2017-08-28 101 ret = regmap_write(priv->regmap, STM32_LPTIM_CR, 0);
e70a540b4e0230 Fabrice Gasnier 2017-08-28 102 if (ret)
e70a540b4e0230 Fabrice Gasnier 2017-08-28 103 goto err;
e70a540b4e0230 Fabrice Gasnier 2017-08-28 104
e70a540b4e0230 Fabrice Gasnier 2017-08-28 105 ret = regmap_update_bits(priv->regmap, STM32_LPTIM_CFGR, mask,
e70a540b4e0230 Fabrice Gasnier 2017-08-28 106 val);
e70a540b4e0230 Fabrice Gasnier 2017-08-28 107 if (ret)
e70a540b4e0230 Fabrice Gasnier 2017-08-28 108 goto err;
e70a540b4e0230 Fabrice Gasnier 2017-08-28 109 }
e70a540b4e0230 Fabrice Gasnier 2017-08-28 110
e70a540b4e0230 Fabrice Gasnier 2017-08-28 111 if (reenable) {
e70a540b4e0230 Fabrice Gasnier 2017-08-28 112 /* Must (re)enable LP timer to modify CMP & ARR */
e70a540b4e0230 Fabrice Gasnier 2017-08-28 113 ret = regmap_write(priv->regmap, STM32_LPTIM_CR,
e70a540b4e0230 Fabrice Gasnier 2017-08-28 114 STM32_LPTIM_ENABLE);
e70a540b4e0230 Fabrice Gasnier 2017-08-28 115 if (ret)
e70a540b4e0230 Fabrice Gasnier 2017-08-28 116 goto err;
e70a540b4e0230 Fabrice Gasnier 2017-08-28 117 }
e70a540b4e0230 Fabrice Gasnier 2017-08-28 118
e70a540b4e0230 Fabrice Gasnier 2017-08-28 119 ret = regmap_write(priv->regmap, STM32_LPTIM_ARR, prd - 1);
e70a540b4e0230 Fabrice Gasnier 2017-08-28 120 if (ret)
e70a540b4e0230 Fabrice Gasnier 2017-08-28 121 goto err;
e70a540b4e0230 Fabrice Gasnier 2017-08-28 122
e70a540b4e0230 Fabrice Gasnier 2017-08-28 123 ret = regmap_write(priv->regmap, STM32_LPTIM_CMP, prd - (1 + dty));
e70a540b4e0230 Fabrice Gasnier 2017-08-28 124 if (ret)
e70a540b4e0230 Fabrice Gasnier 2017-08-28 125 goto err;
e70a540b4e0230 Fabrice Gasnier 2017-08-28 126
e70a540b4e0230 Fabrice Gasnier 2017-08-28 127 /* ensure CMP & ARR registers are properly written */
e70a540b4e0230 Fabrice Gasnier 2017-08-28 128 ret = regmap_read_poll_timeout(priv->regmap, STM32_LPTIM_ISR, val,
e70a540b4e0230 Fabrice Gasnier 2017-08-28 129 (val & STM32_LPTIM_CMPOK_ARROK),
e70a540b4e0230 Fabrice Gasnier 2017-08-28 130 100, 1000);
e70a540b4e0230 Fabrice Gasnier 2017-08-28 131 if (ret) {
e70a540b4e0230 Fabrice Gasnier 2017-08-28 132 dev_err(priv->chip.dev, "ARR/CMP registers write issue\n");
e70a540b4e0230 Fabrice Gasnier 2017-08-28 133 goto err;
e70a540b4e0230 Fabrice Gasnier 2017-08-28 134 }
e70a540b4e0230 Fabrice Gasnier 2017-08-28 135 ret = regmap_write(priv->regmap, STM32_LPTIM_ICR,
e70a540b4e0230 Fabrice Gasnier 2017-08-28 136 STM32_LPTIM_CMPOKCF_ARROKCF);
e70a540b4e0230 Fabrice Gasnier 2017-08-28 137 if (ret)
e70a540b4e0230 Fabrice Gasnier 2017-08-28 138 goto err;
e70a540b4e0230 Fabrice Gasnier 2017-08-28 139
e70a540b4e0230 Fabrice Gasnier 2017-08-28 140 if (reenable) {
e70a540b4e0230 Fabrice Gasnier 2017-08-28 141 /* Start LP timer in continuous mode */
e70a540b4e0230 Fabrice Gasnier 2017-08-28 142 ret = regmap_update_bits(priv->regmap, STM32_LPTIM_CR,
e70a540b4e0230 Fabrice Gasnier 2017-08-28 143 STM32_LPTIM_CNTSTRT,
e70a540b4e0230 Fabrice Gasnier 2017-08-28 144 STM32_LPTIM_CNTSTRT);
e70a540b4e0230 Fabrice Gasnier 2017-08-28 145 if (ret) {
e70a540b4e0230 Fabrice Gasnier 2017-08-28 146 regmap_write(priv->regmap, STM32_LPTIM_CR, 0);
e70a540b4e0230 Fabrice Gasnier 2017-08-28 147 goto err;
e70a540b4e0230 Fabrice Gasnier 2017-08-28 148 }
e70a540b4e0230 Fabrice Gasnier 2017-08-28 149 }
e70a540b4e0230 Fabrice Gasnier 2017-08-28 150
e70a540b4e0230 Fabrice Gasnier 2017-08-28 151 return 0;
e70a540b4e0230 Fabrice Gasnier 2017-08-28 152 err:
e70a540b4e0230 Fabrice Gasnier 2017-08-28 153 if (!cstate.enabled)
e70a540b4e0230 Fabrice Gasnier 2017-08-28 154 clk_disable(priv->clk);
e70a540b4e0230 Fabrice Gasnier 2017-08-28 155
e70a540b4e0230 Fabrice Gasnier 2017-08-28 156 return ret;
e70a540b4e0230 Fabrice Gasnier 2017-08-28 157 }
e70a540b4e0230 Fabrice Gasnier 2017-08-28 158
:::::: The code at line 63 was first introduced by commit
:::::: 65348659535d23e6fb7a79aa9d54332479cf980e pwm: stm32-lp: Add check in case requested period cannot be achieved
:::::: TO: Fabrice Gasnier <fabrice.gasnier(a)st.com>
:::::: 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
8 months
[ammarfaizi2-block:google/android/kernel/common/android-4.19-stable 204/9999] kernel/sched/stubs.c:8:5: warning: no previous prototype for 'sched_isolate_cpu'
by kernel test robot
Hi Quentin,
FYI, the error/warning still remains.
tree: https://github.com/ammarfaizi2/linux-block google/android/kernel/common/android-4.19-stable
head: 90a691fca4c2525068d9908ac203e9f09e4e33c0
commit: eead51495c8760858c32d9ad0332ffc94397aa82 [204/9999] ANDROID: GKI: sched: stub sched_isolate symbols
config: x86_64-randconfig-a011 (https://download.01.org/0day-ci/archive/20220122/202201220740.3itLwKmy-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/ammarfaizi2/linux-block/commit/eead51495c8760858c32d9a...
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block google/android/kernel/common/android-4.19-stable
git checkout eead51495c8760858c32d9ad0332ffc94397aa82
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/nvmem/ kernel/sched/
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 >>):
>> kernel/sched/stubs.c:8:5: warning: no previous prototype for 'sched_isolate_cpu' [-Wmissing-prototypes]
8 | int sched_isolate_cpu(int cpu)
| ^~~~~~~~~~~~~~~~~
>> kernel/sched/stubs.c:14:5: warning: no previous prototype for 'sched_unisolate_cpu_unlocked' [-Wmissing-prototypes]
14 | int sched_unisolate_cpu_unlocked(int cpu)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> kernel/sched/stubs.c:20:5: warning: no previous prototype for 'sched_unisolate_cpu' [-Wmissing-prototypes]
20 | int sched_unisolate_cpu(int cpu)
| ^~~~~~~~~~~~~~~~~~~
>> kernel/sched/stubs.c:26:5: warning: no previous prototype for 'set_task_boost' [-Wmissing-prototypes]
26 | int set_task_boost(int boost, u64 period)
| ^~~~~~~~~~~~~~
vim +/sched_isolate_cpu +8 kernel/sched/stubs.c
7
> 8 int sched_isolate_cpu(int cpu)
9 {
10 return -EINVAL;
11 }
12 EXPORT_SYMBOL_GPL(sched_isolate_cpu);
13
> 14 int sched_unisolate_cpu_unlocked(int cpu)
15 {
16 return -EINVAL;
17 }
18 EXPORT_SYMBOL_GPL(sched_unisolate_cpu_unlocked);
19
> 20 int sched_unisolate_cpu(int cpu)
21 {
22 return -EINVAL;
23 }
24 EXPORT_SYMBOL_GPL(sched_unisolate_cpu);
25
> 26 int set_task_boost(int boost, u64 period)
---
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] mmc:sdhci-bayhub:provide a solution to improve sd host card compatibility
by kernel test robot
Hi Chevron,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on c9e6606c7fe92b50a02ce51dda82586ebdf99b48]
url: https://github.com/0day-ci/linux/commits/Chevron-Li/mmc-sdhci-msm-fix-Qua...
base: c9e6606c7fe92b50a02ce51dda82586ebdf99b48
config: arm64-randconfig-s032-20220118 (https://download.01.org/0day-ci/archive/20220122/202201220601.vDkqlC2r-lk...)
compiler: aarch64-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/8916351ffe4bd538ba3bf2c5e16a151fb...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Chevron-Li/mmc-sdhci-msm-fix-Qualcomm-sd-host-7180-SD-card-compatibility-issue/20220121-191113
git checkout 8916351ffe4bd538ba3bf2c5e16a151fb47674fe
# 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=arm64 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 >>)
drivers/mmc/host/sdhci-msm.c: note: in included file:
>> drivers/mmc/host/sdhci-bayhub.c:1498:28: sparse: sparse: Using plain integer as NULL pointer
drivers/mmc/host/sdhci-bayhub.c:2945:40: sparse: sparse: Using plain integer as NULL pointer
drivers/mmc/host/sdhci-bayhub.c:2945:43: sparse: sparse: Using plain integer as NULL pointer
drivers/mmc/host/sdhci-bayhub.c:2945:46: sparse: sparse: Using plain integer as NULL pointer
vim +1498 drivers/mmc/host/sdhci-bayhub.c
1480
1481 static bool ggc_read_registers_ext(struct sdhci_host *host,
1482 bool *card_status, bool *read_status,
1483 struct ggc_reg_op *gg_reg_arr, u8 num)
1484 {
1485 u8 get_idx = 0;
1486 bool ret = false;
1487 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
1488 struct sdhci_msm_host *vendor_host = sdhci_pltfm_priv(pltfm_host);
1489 struct sdhci_bht_host *ggc = sdhci_msm_priv(vendor_host);
1490
1491 if (read_status)
1492 *read_status = false;
1493 if (card_status)
1494 *card_status = false;
1495
1496 memset(ggc->cur_read_buf, 0, 512);
1497 ret = gg_emulator_read_ext(host, card_status, read_status, ggc->cur_read_buf, 512);
> 1498 if (read_status == false)
1499 goto exit;
1500
1501 for (get_idx = 0; get_idx < num; get_idx++)
1502 (gg_reg_arr + get_idx)->value =
1503 _read_status_data_read_register(ggc->cur_read_buf, (gg_reg_arr + get_idx));
1504
1505 exit:
1506 return ret;
1507 }
1508
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months
Re: [RFC bpf-next 1/3] bpf: btf: Introduce infrastructure for module helpers
by kernel test robot
Hi Usama,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on bpf-next/master]
url: https://github.com/0day-ci/linux/commits/Usama-Arif/bpf-Introduce-module-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
config: arm-spear3xx_defconfig (https://download.01.org/0day-ci/archive/20220122/202201220614.duEAa9pD-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 7b3d30728816403d1fd73cc5082e9fb761262bce)
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/ca60b90025819a8a03818e86e2105bd15...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Usama-Arif/bpf-Introduce-module-helper-functions/20220122-034203
git checkout ca60b90025819a8a03818e86e2105bd15576d134
# 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 net/core/
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 >>):
In file included from net/core/filter.c:50:
>> include/linux/btf.h:391:5: warning: no previous prototype for function 'register_mod_helper' [-Wmissing-prototypes]
int register_mod_helper(struct btf_mod_helper *mod_helper)
^
include/linux/btf.h:391:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int register_mod_helper(struct btf_mod_helper *mod_helper)
^
static
>> include/linux/btf.h:395:5: warning: no previous prototype for function 'unregister_mod_helper' [-Wmissing-prototypes]
int unregister_mod_helper(struct btf_mod_helper *mod_helper)
^
include/linux/btf.h:395:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int unregister_mod_helper(struct btf_mod_helper *mod_helper)
^
static
>> include/linux/btf.h:399:30: warning: no previous prototype for function 'get_mod_helper_proto' [-Wmissing-prototypes]
const struct bpf_func_proto *get_mod_helper_proto(const struct btf *btf,
^
include/linux/btf.h:399:7: note: declare 'static' if the function is not intended to be used outside of this translation unit
const struct bpf_func_proto *get_mod_helper_proto(const struct btf *btf,
^
static
3 warnings generated.
vim +/register_mod_helper +391 include/linux/btf.h
373
374 #ifdef CONFIG_DEBUG_INFO_BTF_MODULES
375 int register_mod_helper(struct btf_mod_helper *mod_helper);
376 int unregister_mod_helper(struct btf_mod_helper *mod_helper);
377 const struct bpf_func_proto *get_mod_helper_proto(const struct btf *btf,
378 const u32 kfunc_btf_id);
379
380 #define DEFINE_MOD_HELPER(mod_helper, owner, helper_func, func_proto) \
381 BTF_SET_START(helper_func##__id_set) \
382 BTF_ID(func, helper_func) \
383 BTF_SET_END(helper_func##__id_set) \
384 struct btf_mod_helper mod_helper = { \
385 LIST_HEAD_INIT(mod_helper.list), \
386 (owner), \
387 (&(helper_func##__id_set)), \
388 (&(func_proto)) \
389 }
390 #else
> 391 int register_mod_helper(struct btf_mod_helper *mod_helper)
392 {
393 return -EPERM;
394 }
> 395 int unregister_mod_helper(struct btf_mod_helper *mod_helper)
396 {
397 return -EPERM;
398 }
> 399 const struct bpf_func_proto *get_mod_helper_proto(const struct btf *btf,
400 const u32 kfunc_btf_id)
401 {
402 return NULL;
403 }
404 #endif
405
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months
Re: [RFC bpf-next 1/3] bpf: btf: Introduce infrastructure for module helpers
by kernel test robot
Hi Usama,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on bpf-next/master]
url: https://github.com/0day-ci/linux/commits/Usama-Arif/bpf-Introduce-module-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
config: x86_64-randconfig-a004-20220117 (https://download.01.org/0day-ci/archive/20220122/202201220628.8IcADV9U-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 7b3d30728816403d1fd73cc5082e9fb761262bce)
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/ca60b90025819a8a03818e86e2105bd15...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Usama-Arif/bpf-Introduce-module-helper-functions/20220122-034203
git checkout ca60b90025819a8a03818e86e2105bd15576d134
# 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 net/bpf/
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 >>):
In file included from net/bpf/test_run.c:5:
>> include/linux/btf.h:391:5: warning: no previous prototype for function 'register_mod_helper' [-Wmissing-prototypes]
int register_mod_helper(struct btf_mod_helper *mod_helper)
^
include/linux/btf.h:391:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int register_mod_helper(struct btf_mod_helper *mod_helper)
^
static
>> include/linux/btf.h:395:5: warning: no previous prototype for function 'unregister_mod_helper' [-Wmissing-prototypes]
int unregister_mod_helper(struct btf_mod_helper *mod_helper)
^
include/linux/btf.h:395:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int unregister_mod_helper(struct btf_mod_helper *mod_helper)
^
static
>> include/linux/btf.h:399:30: warning: no previous prototype for function 'get_mod_helper_proto' [-Wmissing-prototypes]
const struct bpf_func_proto *get_mod_helper_proto(const struct btf *btf,
^
include/linux/btf.h:399:7: note: declare 'static' if the function is not intended to be used outside of this translation unit
const struct bpf_func_proto *get_mod_helper_proto(const struct btf *btf,
^
static
net/bpf/test_run.c:171:14: warning: no previous prototype for function 'bpf_fentry_test1' [-Wmissing-prototypes]
int noinline bpf_fentry_test1(int a)
^
net/bpf/test_run.c:171:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int noinline bpf_fentry_test1(int a)
^
static
net/bpf/test_run.c:178:14: warning: no previous prototype for function 'bpf_fentry_test2' [-Wmissing-prototypes]
int noinline bpf_fentry_test2(int a, u64 b)
^
net/bpf/test_run.c:178:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int noinline bpf_fentry_test2(int a, u64 b)
^
static
net/bpf/test_run.c:183:14: warning: no previous prototype for function 'bpf_fentry_test3' [-Wmissing-prototypes]
int noinline bpf_fentry_test3(char a, int b, u64 c)
^
net/bpf/test_run.c:183:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int noinline bpf_fentry_test3(char a, int b, u64 c)
^
static
net/bpf/test_run.c:188:14: warning: no previous prototype for function 'bpf_fentry_test4' [-Wmissing-prototypes]
int noinline bpf_fentry_test4(void *a, char b, int c, u64 d)
^
net/bpf/test_run.c:188:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int noinline bpf_fentry_test4(void *a, char b, int c, u64 d)
^
static
net/bpf/test_run.c:193:14: warning: no previous prototype for function 'bpf_fentry_test5' [-Wmissing-prototypes]
int noinline bpf_fentry_test5(u64 a, void *b, short c, int d, u64 e)
^
net/bpf/test_run.c:193:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int noinline bpf_fentry_test5(u64 a, void *b, short c, int d, u64 e)
^
static
net/bpf/test_run.c:198:14: warning: no previous prototype for function 'bpf_fentry_test6' [-Wmissing-prototypes]
int noinline bpf_fentry_test6(u64 a, void *b, short c, int d, void *e, u64 f)
^
net/bpf/test_run.c:198:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int noinline bpf_fentry_test6(u64 a, void *b, short c, int d, void *e, u64 f)
^
static
net/bpf/test_run.c:207:14: warning: no previous prototype for function 'bpf_fentry_test7' [-Wmissing-prototypes]
int noinline bpf_fentry_test7(struct bpf_fentry_test_t *arg)
^
net/bpf/test_run.c:207:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int noinline bpf_fentry_test7(struct bpf_fentry_test_t *arg)
^
static
net/bpf/test_run.c:212:14: warning: no previous prototype for function 'bpf_fentry_test8' [-Wmissing-prototypes]
int noinline bpf_fentry_test8(struct bpf_fentry_test_t *arg)
^
net/bpf/test_run.c:212:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int noinline bpf_fentry_test8(struct bpf_fentry_test_t *arg)
^
static
net/bpf/test_run.c:217:14: warning: no previous prototype for function 'bpf_modify_return_test' [-Wmissing-prototypes]
int noinline bpf_modify_return_test(int a, int *b)
^
net/bpf/test_run.c:217:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int noinline bpf_modify_return_test(int a, int *b)
^
static
net/bpf/test_run.c:223:14: warning: no previous prototype for function 'bpf_kfunc_call_test1' [-Wmissing-prototypes]
u64 noinline bpf_kfunc_call_test1(struct sock *sk, u32 a, u64 b, u32 c, u64 d)
^
net/bpf/test_run.c:223:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
u64 noinline bpf_kfunc_call_test1(struct sock *sk, u32 a, u64 b, u32 c, u64 d)
^
static
net/bpf/test_run.c:228:14: warning: no previous prototype for function 'bpf_kfunc_call_test2' [-Wmissing-prototypes]
int noinline bpf_kfunc_call_test2(struct sock *sk, u32 a, u32 b)
^
net/bpf/test_run.c:228:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int noinline bpf_kfunc_call_test2(struct sock *sk, u32 a, u32 b)
^
static
net/bpf/test_run.c:233:24: warning: no previous prototype for function 'bpf_kfunc_call_test3' [-Wmissing-prototypes]
struct sock * noinline bpf_kfunc_call_test3(struct sock *sk)
^
net/bpf/test_run.c:233:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct sock * noinline bpf_kfunc_call_test3(struct sock *sk)
^
static
net/bpf/test_run.c:251:1: warning: no previous prototype for function 'bpf_kfunc_call_test_acquire' [-Wmissing-prototypes]
bpf_kfunc_call_test_acquire(unsigned long *scalar_ptr)
^
net/bpf/test_run.c:250:10: note: declare 'static' if the function is not intended to be used outside of this translation unit
noinline struct prog_test_ref_kfunc *
^
static
net/bpf/test_run.c:259:15: warning: no previous prototype for function 'bpf_kfunc_call_test_release' [-Wmissing-prototypes]
noinline void bpf_kfunc_call_test_release(struct prog_test_ref_kfunc *p)
^
vim +/register_mod_helper +391 include/linux/btf.h
373
374 #ifdef CONFIG_DEBUG_INFO_BTF_MODULES
375 int register_mod_helper(struct btf_mod_helper *mod_helper);
376 int unregister_mod_helper(struct btf_mod_helper *mod_helper);
377 const struct bpf_func_proto *get_mod_helper_proto(const struct btf *btf,
378 const u32 kfunc_btf_id);
379
380 #define DEFINE_MOD_HELPER(mod_helper, owner, helper_func, func_proto) \
381 BTF_SET_START(helper_func##__id_set) \
382 BTF_ID(func, helper_func) \
383 BTF_SET_END(helper_func##__id_set) \
384 struct btf_mod_helper mod_helper = { \
385 LIST_HEAD_INIT(mod_helper.list), \
386 (owner), \
387 (&(helper_func##__id_set)), \
388 (&(func_proto)) \
389 }
390 #else
> 391 int register_mod_helper(struct btf_mod_helper *mod_helper)
392 {
393 return -EPERM;
394 }
> 395 int unregister_mod_helper(struct btf_mod_helper *mod_helper)
396 {
397 return -EPERM;
398 }
> 399 const struct bpf_func_proto *get_mod_helper_proto(const struct btf *btf,
400 const u32 kfunc_btf_id)
401 {
402 return NULL;
403 }
404 #endif
405
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
8 months