[tip:tmp.tmp2 302/364] drivers/video/backlight/rave-sp-backlight.c: linux/backlight.h is included more than once.
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tmp.tmp2
head: adcceb5eb7aee38e4a9c15bdf599655f0e1b1324
commit: 3fb8658426ac271948eb757e1c5a5554afdc5cf8 [302/364] sched/headers, fb: Simplify <linux/fb.h> dependencies
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
includecheck warnings: (new ones prefixed by >>)
>> drivers/video/backlight/rave-sp-backlight.c: linux/backlight.h is included more than once.
--
>> drivers/video/backlight/lm3639_bl.c: linux/backlight.h is included more than once.
--
>> drivers/video/backlight/kb3886_bl.c: linux/backlight.h is included more than once.
--
>> drivers/video/backlight/da9052_bl.c: linux/backlight.h is included more than once.
--
>> drivers/video/backlight/cr_bllcd.c: linux/backlight.h is included more than once.
Please review and possibly fold the followup patch.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[block:for-5.14/io_uring 24/28] fs/io_uring.c:7082:28: warning: comparison of distinct pointer types ('typeof (size) *' (aka 'unsigned int *') and 'typeof ((1UL << 12)) *' (aka 'unsigned long *'))
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-5.14/io_uring
head: aeab9506ef50d23b350d1822c324023c9e1cb783
commit: 9123c8ffce1610323ec9c0874fa0262353f41fc3 [24/28] io_uring: add helpers for 2 level table alloc
config: powerpc64-randconfig-r016-20210613 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 64720f57bea6a6bf033feef4a5751ab9c0c3b401)
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 powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/com...
git remote add block https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git
git fetch --no-tags block for-5.14/io_uring
git checkout 9123c8ffce1610323ec9c0874fa0262353f41fc3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64
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 arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:45:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insw, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:247:1: note: expanded from here
__do_insw
^
arch/powerpc/include/asm/io.h:557:56: note: expanded from macro '__do_insw'
#define __do_insw(p, b, n) readsw((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from fs/io_uring.c:45:
In file included from include/linux/syscalls.h:87:
In file included from include/trace/syscall.h:7:
In file included from include/linux/trace_events.h:9:
In file included from include/linux/hardirq.h:11:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:47:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(insl, (unsigned long p, void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:249:1: note: expanded from here
__do_insl
^
arch/powerpc/include/asm/io.h:558:56: note: expanded from macro '__do_insl'
#define __do_insl(p, b, n) readsl((PCI_IO_ADDR)_IO_BASE+(p), (b), (n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from fs/io_uring.c:45:
In file included from include/linux/syscalls.h:87:
In file included from include/trace/syscall.h:7:
In file included from include/linux/trace_events.h:9:
In file included from include/linux/hardirq.h:11:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:49:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsb, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:251:1: note: expanded from here
__do_outsb
^
arch/powerpc/include/asm/io.h:559:58: note: expanded from macro '__do_outsb'
#define __do_outsb(p, b, n) writesb((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from fs/io_uring.c:45:
In file included from include/linux/syscalls.h:87:
In file included from include/trace/syscall.h:7:
In file included from include/linux/trace_events.h:9:
In file included from include/linux/hardirq.h:11:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:51:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsw, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:253:1: note: expanded from here
__do_outsw
^
arch/powerpc/include/asm/io.h:560:58: note: expanded from macro '__do_outsw'
#define __do_outsw(p, b, n) writesw((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
In file included from fs/io_uring.c:45:
In file included from include/linux/syscalls.h:87:
In file included from include/trace/syscall.h:7:
In file included from include/linux/trace_events.h:9:
In file included from include/linux/hardirq.h:11:
In file included from arch/powerpc/include/asm/hardirq.h:6:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/powerpc/include/asm/io.h:619:
arch/powerpc/include/asm/io-defs.h:53:1: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
DEF_PCI_AC_NORET(outsl, (unsigned long p, const void *b, unsigned long c),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/io.h:616:3: note: expanded from macro 'DEF_PCI_AC_NORET'
__do_##name al; \
^~~~~~~~~~~~~~
<scratch space>:255:1: note: expanded from here
__do_outsl
^
arch/powerpc/include/asm/io.h:561:58: note: expanded from macro '__do_outsl'
#define __do_outsl(p, b, n) writesl((PCI_IO_ADDR)_IO_BASE+(p),(b),(n))
~~~~~~~~~~~~~~~~~~~~~^
>> fs/io_uring.c:7082:28: warning: comparison of distinct pointer types ('typeof (size) *' (aka 'unsigned int *') and 'typeof ((1UL << 12)) *' (aka 'unsigned long *')) [-Wcompare-distinct-pointer-types]
unsigned int this_size = min(size, PAGE_SIZE);
^~~~~~~~~~~~~~~~~~~~
include/linux/minmax.h:45:19: note: expanded from macro 'min'
#define min(x, y) __careful_cmp(x, y, <)
^~~~~~~~~~~~~~~~~~~~~~
include/linux/minmax.h:36:24: note: expanded from macro '__careful_cmp'
__builtin_choose_expr(__safe_cmp(x, y), \
^~~~~~~~~~~~~~~~
include/linux/minmax.h:26:4: note: expanded from macro '__safe_cmp'
(__typecheck(x, y) && __no_side_effects(x, y))
^~~~~~~~~~~~~~~~~
include/linux/minmax.h:20:28: note: expanded from macro '__typecheck'
(!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~
8 warnings generated.
vim +7082 fs/io_uring.c
7070
7071 static void **io_alloc_page_table(size_t size)
7072 {
7073 unsigned i, nr_tables = DIV_ROUND_UP(size, PAGE_SIZE);
7074 size_t init_size = size;
7075 void **table;
7076
7077 table = kcalloc(nr_tables, sizeof(*table), GFP_KERNEL);
7078 if (!table)
7079 return NULL;
7080
7081 for (i = 0; i < nr_tables; i++) {
> 7082 unsigned int this_size = min(size, PAGE_SIZE);
7083
7084 table[i] = kzalloc(this_size, GFP_KERNEL);
7085 if (!table[i]) {
7086 io_free_page_table(table, init_size);
7087 return NULL;
7088 }
7089 size -= this_size;
7090 }
7091 return table;
7092 }
7093
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
Att. Administración
by FOESCO
Buenos días
Desde FOESCO estamos informando a todas las empresas acerca de los Cursos Bonificables para empleados en activo o en situación de ERTE.
Todos los cursos impartidos son bonificables con cargo al Crédito de Formación 2021.
Rogamos podáis respondernos eligiendo una de las opciones que a continuación indicamos:
1 - Precisamos información para la PRESENTE convocatoria de JUNIO 2021.
2 - Precisamos información para la convocatoria del mes de SEPTIEMBRE 2021.
3 - Precisamos información para la ÚLTIMA convocatoria OCTUBRE 2021.
4 - Precisamos información para el año 2022.
Agradecemos vuestra colaboración y quedamos a la espera.
Un cordial saludo.
Alex Pons.
Director FOESCO.
FOESCO Formación Estatal Continua
e-mail: cursos(a)foesco.net
Tel.: 91 032 37 94
(Horario de 9h a 14h y de 16:30h a 21h de Lunes a Viernes)
FOESCO ofrece formación a empresas y trabajadores en activo a través de cursos bonificables por la Fundación Estatal para la Formación en el Empleo (antiguo FORCEM) que gestiona las acciones formativas de FORMACIÓN CONTINUA para trabajadores y se rige por la ley 30/2015 de 9 de Septiembre.
Antes de imprimir este e-mail piense bien si es necesario hacerlo. Before printing this e-mail please think twice if you really need it. FOESCO Tfno: 910 382 880 Email: cursos(a)foesco.com. La información transmitida en este mensaje está dirigida solamente a las personas o entidades que figuran en el encabezamiento y contiene información confidencial, por lo que, si usted lo recibiera por error, por favor destrúyalo sin copiarlo, usarlo ni distribuirlo, comunicándolo inmediatamente al emisor del mensaje. De conformidad con lo dispuesto en el Reglamento Europeo del 2016/679, del 27 de Abril de 2016, FOESCO le informa que los datos por usted suministrados serán tratados con las medidas de seguridad conformes a la normativa vigente que se requiere. Dichos datos serán empleados con fines de gestión. Para el ejercicio de sus derechos de transparencia, información, acceso, rectificación, supresión o derecho al olvido, limitación del tratamiento , portabilidad de datos y oposición de sus datos de carácter personal deberá dirigirse a la dirección del Responsable del tratamiento a C/ LAGUNA DEL MARQUESADO Nº10, 28021, MADRID, "PULSANDO AQUI" <mailto:bajas@foesco.com?Subject=BAJA%20CORREOS> y "ENVIAR" o a través de la dirección de correo electrónico: bajas(a)foesco.com <mailto:bajas@foesco.com?Subject=BAJA%20CORREOS>
1 year, 3 months
[peterz-queue:sched/urgent 1/1] kernel/sched/fair.c:4771:8: error: implicit declaration of function 'cfs_rq_is_decayed'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/urgent
head: 75f33978239fe8a05ffb95f301eccb166699ac49
commit: 75f33978239fe8a05ffb95f301eccb166699ac49 [1/1] sched/fair: Correctly insert cfs_rq's to list on unthrottle
config: x86_64-randconfig-a015-20210613 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 64720f57bea6a6bf033feef4a5751ab9c0c3b401)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?...
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue sched/urgent
git checkout 75f33978239fe8a05ffb95f301eccb166699ac49
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
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/sched/fair.c:637:5: warning: no previous prototype for function 'sched_update_scaling' [-Wmissing-prototypes]
int sched_update_scaling(void)
^
kernel/sched/fair.c:637:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int sched_update_scaling(void)
^
static
>> kernel/sched/fair.c:4771:8: error: implicit declaration of function 'cfs_rq_is_decayed' [-Werror,-Wimplicit-function-declaration]
if (!cfs_rq_is_decayed(cfs_rq) || cfs_rq->nr_running)
^
1 warning and 1 error generated.
vim +/cfs_rq_is_decayed +4771 kernel/sched/fair.c
4759
4760 static int tg_unthrottle_up(struct task_group *tg, void *data)
4761 {
4762 struct rq *rq = data;
4763 struct cfs_rq *cfs_rq = tg->cfs_rq[cpu_of(rq)];
4764
4765 cfs_rq->throttle_count--;
4766 if (!cfs_rq->throttle_count) {
4767 cfs_rq->throttled_clock_task_time += rq_clock_task(rq) -
4768 cfs_rq->throttled_clock_task;
4769
4770 /* Add cfs_rq with load or one or more already running entities to the list */
> 4771 if (!cfs_rq_is_decayed(cfs_rq) || cfs_rq->nr_running)
4772 list_add_leaf_cfs_rq(cfs_rq);
4773 }
4774
4775 return 0;
4776 }
4777
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[tip:tmp.tmp2 348/364] include/kunit/test.h:503:22: error: implicit declaration of function 'strcmp'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tmp.tmp2
head: adcceb5eb7aee38e4a9c15bdf599655f0e1b1324
commit: 80b4a6d3c8c2325e072a36e473706f5165e0e9fb [348/364] sched/headers, locking/mutexes: Optimize <linux/mutex.h> header dependencies
config: x86_64-rhel-8.3 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=80...
git remote add tip https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git
git fetch --no-tags tip tmp.tmp2
git checkout 80b4a6d3c8c2325e072a36e473706f5165e0e9fb
# save the attached .config to linux build tree
make 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 error/warnings (new ones prefixed by >>):
In file included from kernel/sysctl-test.c:6:
include/kunit/test.h: In function 'kunit_resource_name_match':
>> include/kunit/test.h:503:22: error: implicit declaration of function 'strcmp' [-Werror=implicit-function-declaration]
503 | return res->name && strcmp(res->name, match_name) == 0;
| ^~~~~~
include/kunit/test.h: In function 'kunit_find_resource':
include/kunit/test.h:519:2: error: implicit declaration of function 'spin_lock' [-Werror=implicit-function-declaration]
519 | spin_lock(&test->lock);
| ^~~~~~~~~
include/kunit/test.h:529:2: error: implicit declaration of function 'spin_unlock' [-Werror=implicit-function-declaration]
529 | spin_unlock(&test->lock);
| ^~~~~~~~~~~
kernel/sysctl-test.c: In function 'sysctl_test_api_dointvec_null_tbl_data':
include/kunit/test.h:778:9: error: implicit declaration of function '__typecheck'; did you mean 'typecheck'? [-Werror=implicit-function-declaration]
778 | ((void)__typecheck(__left, __right)); \
| ^~~~~~~~~~~
include/kunit/test.h:802:2: note: in expansion of macro 'KUNIT_BASE_BINARY_ASSERTION'
802 | KUNIT_BASE_BINARY_ASSERTION(test, \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:891:2: note: in expansion of macro 'KUNIT_BASE_EQ_MSG_ASSERTION'
891 | KUNIT_BASE_EQ_MSG_ASSERTION(test, \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:901:2: note: in expansion of macro 'KUNIT_BINARY_EQ_MSG_ASSERTION'
901 | KUNIT_BINARY_EQ_MSG_ASSERTION(test, \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:1264:2: note: in expansion of macro 'KUNIT_BINARY_EQ_ASSERTION'
1264 | KUNIT_BINARY_EQ_ASSERTION(test, KUNIT_EXPECTATION, left, right)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
kernel/sysctl-test.c:49:2: note: in expansion of macro 'KUNIT_EXPECT_EQ'
49 | KUNIT_EXPECT_EQ(test, 0, proc_dointvec(&null_data_table,
| ^~~~~~~~~~~~~~~
kernel/sysctl-test.c: In function 'sysctl_test_dointvec_write_happy_single_positive':
>> kernel/sysctl-test.c:263:2: error: implicit declaration of function 'memcpy' [-Werror=implicit-function-declaration]
263 | memcpy(buffer, input, len);
| ^~~~~~
>> kernel/sysctl-test.c:263:2: warning: incompatible implicit declaration of built-in function 'memcpy'
kernel/sysctl-test.c:8:1: note: include '<string.h>' or provide a declaration of 'memcpy'
7 | #include <linux/sysctl.h>
+++ |+#include <string.h>
8 |
kernel/sysctl-test.c: In function 'sysctl_test_dointvec_write_happy_single_negative':
kernel/sysctl-test.c:293:2: warning: incompatible implicit declaration of built-in function 'memcpy'
293 | memcpy(buffer, input, len);
| ^~~~~~
kernel/sysctl-test.c:293:2: note: include '<string.h>' or provide a declaration of 'memcpy'
cc1: some warnings being treated as errors
--
In file included from lib/list-test.c:8:
include/kunit/test.h: In function 'kunit_resource_name_match':
>> include/kunit/test.h:503:22: error: implicit declaration of function 'strcmp' [-Werror=implicit-function-declaration]
503 | return res->name && strcmp(res->name, match_name) == 0;
| ^~~~~~
include/kunit/test.h: In function 'kunit_find_resource':
include/kunit/test.h:519:2: error: implicit declaration of function 'spin_lock' [-Werror=implicit-function-declaration]
519 | spin_lock(&test->lock);
| ^~~~~~~~~
include/kunit/test.h:529:2: error: implicit declaration of function 'spin_unlock' [-Werror=implicit-function-declaration]
529 | spin_unlock(&test->lock);
| ^~~~~~~~~~~
lib/list-test.c: In function 'list_test_list_init':
>> lib/list-test.c:32:2: error: implicit declaration of function 'memset' [-Werror=implicit-function-declaration]
32 | memset(list5, 0xFF, sizeof(*list5));
| ^~~~~~
>> lib/list-test.c:32:2: warning: incompatible implicit declaration of built-in function 'memset'
lib/list-test.c:9:1: note: include '<string.h>' or provide a declaration of 'memset'
8 | #include <kunit/test.h>
+++ |+#include <string.h>
9 |
In file included from lib/list-test.c:8:
lib/list-test.c: In function 'list_test_list_add':
include/kunit/test.h:778:9: error: implicit declaration of function '__typecheck'; did you mean 'typecheck'? [-Werror=implicit-function-declaration]
778 | ((void)__typecheck(__left, __right)); \
| ^~~~~~~~~~~
include/kunit/test.h:802:2: note: in expansion of macro 'KUNIT_BASE_BINARY_ASSERTION'
802 | KUNIT_BASE_BINARY_ASSERTION(test, \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:913:2: note: in expansion of macro 'KUNIT_BASE_EQ_MSG_ASSERTION'
913 | KUNIT_BASE_EQ_MSG_ASSERTION(test, \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:923:2: note: in expansion of macro 'KUNIT_BINARY_PTR_EQ_MSG_ASSERTION'
923 | KUNIT_BINARY_PTR_EQ_MSG_ASSERTION(test, \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:1286:2: note: in expansion of macro 'KUNIT_BINARY_PTR_EQ_ASSERTION'
1286 | KUNIT_BINARY_PTR_EQ_ASSERTION(test, \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/list-test.c:55:2: note: in expansion of macro 'KUNIT_EXPECT_PTR_EQ'
55 | KUNIT_EXPECT_PTR_EQ(test, list.next, &b);
| ^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from lib/kunit/kunit-test.c:8:
include/kunit/test.h: In function 'kunit_resource_name_match':
>> include/kunit/test.h:503:22: error: implicit declaration of function 'strcmp' [-Werror=implicit-function-declaration]
503 | return res->name && strcmp(res->name, match_name) == 0;
| ^~~~~~
include/kunit/test.h: In function 'kunit_find_resource':
include/kunit/test.h:519:2: error: implicit declaration of function 'spin_lock' [-Werror=implicit-function-declaration]
519 | spin_lock(&test->lock);
| ^~~~~~~~~
include/kunit/test.h:529:2: error: implicit declaration of function 'spin_unlock' [-Werror=implicit-function-declaration]
529 | spin_unlock(&test->lock);
| ^~~~~~~~~~~
lib/kunit/kunit-test.c: In function 'kunit_resource_test_alloc_resource':
include/kunit/test.h:778:9: error: implicit declaration of function '__typecheck'; did you mean 'typecheck'? [-Werror=implicit-function-declaration]
778 | ((void)__typecheck(__left, __right)); \
| ^~~~~~~~~~~
include/kunit/test.h:802:2: note: in expansion of macro 'KUNIT_BASE_BINARY_ASSERTION'
802 | KUNIT_BASE_BINARY_ASSERTION(test, \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:913:2: note: in expansion of macro 'KUNIT_BASE_EQ_MSG_ASSERTION'
913 | KUNIT_BASE_EQ_MSG_ASSERTION(test, \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:923:2: note: in expansion of macro 'KUNIT_BINARY_PTR_EQ_MSG_ASSERTION'
923 | KUNIT_BINARY_PTR_EQ_MSG_ASSERTION(test, \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:1286:2: note: in expansion of macro 'KUNIT_BINARY_PTR_EQ_ASSERTION'
1286 | KUNIT_BINARY_PTR_EQ_ASSERTION(test, \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/kunit/kunit-test.c:155:2: note: in expansion of macro 'KUNIT_EXPECT_PTR_EQ'
155 | KUNIT_EXPECT_PTR_EQ(test,
| ^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from lib/kunit/kunit-example-test.c:9:
include/kunit/test.h: In function 'kunit_resource_name_match':
>> include/kunit/test.h:503:22: error: implicit declaration of function 'strcmp' [-Werror=implicit-function-declaration]
503 | return res->name && strcmp(res->name, match_name) == 0;
| ^~~~~~
include/kunit/test.h: In function 'kunit_find_resource':
include/kunit/test.h:519:2: error: implicit declaration of function 'spin_lock' [-Werror=implicit-function-declaration]
519 | spin_lock(&test->lock);
| ^~~~~~~~~
include/kunit/test.h:529:2: error: implicit declaration of function 'spin_unlock' [-Werror=implicit-function-declaration]
529 | spin_unlock(&test->lock);
| ^~~~~~~~~~~
lib/kunit/kunit-example-test.c: In function 'example_simple_test':
include/kunit/test.h:778:9: error: implicit declaration of function '__typecheck'; did you mean 'typecheck'? [-Werror=implicit-function-declaration]
778 | ((void)__typecheck(__left, __right)); \
| ^~~~~~~~~~~
include/kunit/test.h:802:2: note: in expansion of macro 'KUNIT_BASE_BINARY_ASSERTION'
802 | KUNIT_BASE_BINARY_ASSERTION(test, \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:891:2: note: in expansion of macro 'KUNIT_BASE_EQ_MSG_ASSERTION'
891 | KUNIT_BASE_EQ_MSG_ASSERTION(test, \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:901:2: note: in expansion of macro 'KUNIT_BINARY_EQ_MSG_ASSERTION'
901 | KUNIT_BINARY_EQ_MSG_ASSERTION(test, \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/kunit/test.h:1264:2: note: in expansion of macro 'KUNIT_BINARY_EQ_ASSERTION'
1264 | KUNIT_BINARY_EQ_ASSERTION(test, KUNIT_EXPECTATION, left, right)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
lib/kunit/kunit-example-test.c:29:2: note: in expansion of macro 'KUNIT_EXPECT_EQ'
29 | KUNIT_EXPECT_EQ(test, 1 + 1, 2);
| ^~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from lib/kunit/test.c:9:
include/kunit/test.h: In function 'kunit_resource_name_match':
>> include/kunit/test.h:503:22: error: implicit declaration of function 'strcmp' [-Werror=implicit-function-declaration]
503 | return res->name && strcmp(res->name, match_name) == 0;
| ^~~~~~
include/kunit/test.h: In function 'kunit_find_resource':
include/kunit/test.h:519:2: error: implicit declaration of function 'spin_lock' [-Werror=implicit-function-declaration]
519 | spin_lock(&test->lock);
| ^~~~~~~~~
include/kunit/test.h:529:2: error: implicit declaration of function 'spin_unlock' [-Werror=implicit-function-declaration]
529 | spin_unlock(&test->lock);
| ^~~~~~~~~~~
In file included from lib/kunit/string-stream.h:12,
from lib/kunit/test.c:17:
include/linux/spinlock.h: At top level:
include/linux/spinlock.h:312:29: warning: conflicting types for 'spin_lock'
312 | static __always_inline void spin_lock(spinlock_t *lock)
| ^~~~~~~~~
include/linux/spinlock.h:312:29: error: static declaration of 'spin_lock' follows non-static declaration
In file included from lib/kunit/test.c:9:
include/kunit/test.h:519:2: note: previous implicit declaration of 'spin_lock' was here
519 | spin_lock(&test->lock);
| ^~~~~~~~~
In file included from lib/kunit/string-stream.h:12,
from lib/kunit/test.c:17:
include/linux/spinlock.h:352:29: warning: conflicting types for 'spin_unlock'
352 | static __always_inline void spin_unlock(spinlock_t *lock)
| ^~~~~~~~~~~
include/linux/spinlock.h:352:29: error: static declaration of 'spin_unlock' follows non-static declaration
In file included from lib/kunit/test.c:9:
include/kunit/test.h:529:2: note: previous implicit declaration of 'spin_unlock' was here
529 | spin_unlock(&test->lock);
| ^~~~~~~~~~~
lib/kunit/test.c: In function 'kunit_log_append':
lib/kunit/test.c:72:2: warning: function 'kunit_log_append' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
72 | vsnprintf(line, sizeof(line), fmt, args);
| ^~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from lib/kunit/string-stream.c:9:
include/kunit/test.h: In function 'kunit_resource_name_match':
>> include/kunit/test.h:503:22: error: implicit declaration of function 'strcmp' [-Werror=implicit-function-declaration]
503 | return res->name && strcmp(res->name, match_name) == 0;
| ^~~~~~
include/kunit/test.h: In function 'kunit_find_resource':
include/kunit/test.h:519:2: error: implicit declaration of function 'spin_lock' [-Werror=implicit-function-declaration]
519 | spin_lock(&test->lock);
| ^~~~~~~~~
include/kunit/test.h:529:2: error: implicit declaration of function 'spin_unlock' [-Werror=implicit-function-declaration]
529 | spin_unlock(&test->lock);
| ^~~~~~~~~~~
In file included from lib/kunit/string-stream.h:12,
from lib/kunit/string-stream.c:13:
include/linux/spinlock.h: At top level:
include/linux/spinlock.h:312:29: warning: conflicting types for 'spin_lock'
312 | static __always_inline void spin_lock(spinlock_t *lock)
| ^~~~~~~~~
include/linux/spinlock.h:312:29: error: static declaration of 'spin_lock' follows non-static declaration
In file included from lib/kunit/string-stream.c:9:
include/kunit/test.h:519:2: note: previous implicit declaration of 'spin_lock' was here
519 | spin_lock(&test->lock);
| ^~~~~~~~~
In file included from lib/kunit/string-stream.h:12,
from lib/kunit/string-stream.c:13:
include/linux/spinlock.h:352:29: warning: conflicting types for 'spin_unlock'
352 | static __always_inline void spin_unlock(spinlock_t *lock)
| ^~~~~~~~~~~
include/linux/spinlock.h:352:29: error: static declaration of 'spin_unlock' follows non-static declaration
In file included from lib/kunit/string-stream.c:9:
include/kunit/test.h:529:2: note: previous implicit declaration of 'spin_unlock' was here
529 | spin_unlock(&test->lock);
| ^~~~~~~~~~~
lib/kunit/string-stream.c: In function 'string_stream_vadd':
lib/kunit/string-stream.c:85:2: warning: function 'string_stream_vadd' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
85 | len = vsnprintf(NULL, 0, fmt, args_for_counting) + 1;
| ^~~
lib/kunit/string-stream.c:95:2: warning: function 'string_stream_vadd' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
95 | len = vsnprintf(frag_container->fragment, len, fmt, args);
| ^~~
cc1: some warnings being treated as errors
--
In file included from lib/kunit/assert.c:9:
include/kunit/test.h: In function 'kunit_resource_name_match':
>> include/kunit/test.h:503:22: error: implicit declaration of function 'strcmp' [-Werror=implicit-function-declaration]
503 | return res->name && strcmp(res->name, match_name) == 0;
| ^~~~~~
include/kunit/test.h: In function 'kunit_find_resource':
include/kunit/test.h:519:2: error: implicit declaration of function 'spin_lock' [-Werror=implicit-function-declaration]
519 | spin_lock(&test->lock);
| ^~~~~~~~~
include/kunit/test.h:529:2: error: implicit declaration of function 'spin_unlock' [-Werror=implicit-function-declaration]
529 | spin_unlock(&test->lock);
| ^~~~~~~~~~~
In file included from lib/kunit/string-stream.h:12,
from lib/kunit/assert.c:11:
include/linux/spinlock.h: At top level:
include/linux/spinlock.h:312:29: warning: conflicting types for 'spin_lock'
312 | static __always_inline void spin_lock(spinlock_t *lock)
| ^~~~~~~~~
include/linux/spinlock.h:312:29: error: static declaration of 'spin_lock' follows non-static declaration
In file included from lib/kunit/assert.c:9:
include/kunit/test.h:519:2: note: previous implicit declaration of 'spin_lock' was here
519 | spin_lock(&test->lock);
| ^~~~~~~~~
In file included from lib/kunit/string-stream.h:12,
from lib/kunit/assert.c:11:
include/linux/spinlock.h:352:29: warning: conflicting types for 'spin_unlock'
352 | static __always_inline void spin_unlock(spinlock_t *lock)
| ^~~~~~~~~~~
include/linux/spinlock.h:352:29: error: static declaration of 'spin_unlock' follows non-static declaration
In file included from lib/kunit/assert.c:9:
include/kunit/test.h:529:2: note: previous implicit declaration of 'spin_unlock' was here
529 | spin_unlock(&test->lock);
| ^~~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from lib/kunit/try-catch.c:10:
include/kunit/test.h: In function 'kunit_resource_name_match':
>> include/kunit/test.h:503:22: error: implicit declaration of function 'strcmp' [-Werror=implicit-function-declaration]
503 | return res->name && strcmp(res->name, match_name) == 0;
| ^~~~~~
include/kunit/test.h: In function 'kunit_find_resource':
include/kunit/test.h:519:2: error: implicit declaration of function 'spin_lock' [-Werror=implicit-function-declaration]
519 | spin_lock(&test->lock);
| ^~~~~~~~~
include/kunit/test.h:529:2: error: implicit declaration of function 'spin_unlock' [-Werror=implicit-function-declaration]
529 | spin_unlock(&test->lock);
| ^~~~~~~~~~~
In file included from include/linux/swait.h:7,
from include/linux/completion.h:12,
from lib/kunit/try-catch.c:11:
include/linux/spinlock.h: At top level:
include/linux/spinlock.h:312:29: warning: conflicting types for 'spin_lock'
312 | static __always_inline void spin_lock(spinlock_t *lock)
| ^~~~~~~~~
include/linux/spinlock.h:312:29: error: static declaration of 'spin_lock' follows non-static declaration
In file included from lib/kunit/try-catch.c:10:
include/kunit/test.h:519:2: note: previous implicit declaration of 'spin_lock' was here
519 | spin_lock(&test->lock);
| ^~~~~~~~~
In file included from include/linux/swait.h:7,
from include/linux/completion.h:12,
from lib/kunit/try-catch.c:11:
include/linux/spinlock.h:352:29: warning: conflicting types for 'spin_unlock'
352 | static __always_inline void spin_unlock(spinlock_t *lock)
| ^~~~~~~~~~~
include/linux/spinlock.h:352:29: error: static declaration of 'spin_unlock' follows non-static declaration
In file included from lib/kunit/try-catch.c:10:
include/kunit/test.h:529:2: note: previous implicit declaration of 'spin_unlock' was here
529 | spin_unlock(&test->lock);
| ^~~~~~~~~~~
In file included from lib/kunit/try-catch.c:13:
lib/kunit/try-catch.c: In function 'kunit_try_catch_run':
include/linux/kthread.h:28:41: error: 'NUMA_NO_NODE' undeclared (first use in this function)
28 | kthread_create_on_node(threadfn, data, NUMA_NO_NODE, namefmt, ##arg)
| ^~~~~~~~~~~~
include/linux/kthread.h:53:5: note: in expansion of macro 'kthread_create'
53 | = kthread_create(threadfn, data, namefmt, ## __VA_ARGS__); \
| ^~~~~~~~~~~~~~
lib/kunit/try-catch.c:68:16: note: in expansion of macro 'kthread_run'
68 | task_struct = kthread_run(kunit_generic_run_threadfn_adapter,
| ^~~~~~~~~~~
include/linux/kthread.h:28:41: note: each undeclared identifier is reported only once for each function it appears in
28 | kthread_create_on_node(threadfn, data, NUMA_NO_NODE, namefmt, ##arg)
| ^~~~~~~~~~~~
include/linux/kthread.h:53:5: note: in expansion of macro 'kthread_create'
53 | = kthread_create(threadfn, data, namefmt, ## __VA_ARGS__); \
| ^~~~~~~~~~~~~~
lib/kunit/try-catch.c:68:16: note: in expansion of macro 'kthread_run'
68 | task_struct = kthread_run(kunit_generic_run_threadfn_adapter,
| ^~~~~~~~~~~
include/linux/kthread.h:55:3: error: implicit declaration of function 'wake_up_process'; did you mean 'wake_up_poll'? [-Werror=implicit-function-declaration]
55 | wake_up_process(__k); \
| ^~~~~~~~~~~~~~~
lib/kunit/try-catch.c:68:16: note: in expansion of macro 'kthread_run'
68 | task_struct = kthread_run(kunit_generic_run_threadfn_adapter,
| ^~~~~~~~~~~
cc1: some warnings being treated as errors
..
vim +/strcmp +503 include/kunit/test.h
d4cdd146d0db90 Alan Maguire 2020-05-29 492
725aca95859566 Alan Maguire 2020-05-29 493 /**
725aca95859566 Alan Maguire 2020-05-29 494 * kunit_resource_name_match() - Match a resource with the same name.
725aca95859566 Alan Maguire 2020-05-29 495 * @test: Test case to which the resource belongs.
725aca95859566 Alan Maguire 2020-05-29 496 * @res: The resource.
725aca95859566 Alan Maguire 2020-05-29 497 * @match_name: The name to match against.
725aca95859566 Alan Maguire 2020-05-29 498 */
725aca95859566 Alan Maguire 2020-05-29 499 static inline bool kunit_resource_name_match(struct kunit *test,
725aca95859566 Alan Maguire 2020-05-29 500 struct kunit_resource *res,
725aca95859566 Alan Maguire 2020-05-29 501 void *match_name)
725aca95859566 Alan Maguire 2020-05-29 502 {
725aca95859566 Alan Maguire 2020-05-29 @503 return res->name && strcmp(res->name, match_name) == 0;
725aca95859566 Alan Maguire 2020-05-29 504 }
725aca95859566 Alan Maguire 2020-05-29 505
:::::: The code at line 503 was first introduced by commit
:::::: 725aca9585956676687c4cb803e88f770b0df2b2 kunit: add support for named resources
:::::: TO: Alan Maguire <alan.maguire(a)oracle.com>
:::::: CC: Shuah Khan <skhan(a)linuxfoundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months
[peterz-queue:sched/wip-freezer 1/3] include/linux/suspend.h:546:40: error: parameter name omitted
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/wip-freezer
head: 9ddb4cc740408e85babad7482f50e1b4d2490759
commit: 83d18804b7330928d3176cd76939cf558581e092 [1/3] freezer: Have {,un}lock_system_sleep() save/restore flags
config: openrisc-randconfig-r013-20210613 (attached as .config)
compiler: or1k-linux-gcc (GCC) 9.3.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://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?...
git remote add peterz-queue https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue sched/wip-freezer
git checkout 83d18804b7330928d3176cd76939cf558581e092
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=openrisc
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 init/do_mounts.c:7:
include/linux/suspend.h: In function 'unlock_system_sleep':
>> include/linux/suspend.h:546:40: error: parameter name omitted
546 | static inline void unlock_system_sleep(unsigned int) {}
| ^~~~~~~~~~~~
--
In file included from kernel/sched/sched.h:65,
from kernel/sched/core.c:13:
include/linux/suspend.h: In function 'unlock_system_sleep':
>> include/linux/suspend.h:546:40: error: parameter name omitted
546 | static inline void unlock_system_sleep(unsigned int) {}
| ^~~~~~~~~~~~
kernel/sched/core.c: In function 'ttwu_stat':
kernel/sched/core.c:3282:13: warning: variable 'rq' set but not used [-Wunused-but-set-variable]
3282 | struct rq *rq;
| ^~
--
In file included from kernel/sched/sched.h:65,
from kernel/sched/fair.c:23:
include/linux/suspend.h: In function 'unlock_system_sleep':
>> include/linux/suspend.h:546:40: error: parameter name omitted
546 | static inline void unlock_system_sleep(unsigned int) {}
| ^~~~~~~~~~~~
kernel/sched/fair.c: At top level:
kernel/sched/fair.c:591:5: warning: no previous prototype for 'sched_update_scaling' [-Wmissing-prototypes]
591 | int sched_update_scaling(void)
| ^~~~~~~~~~~~~~~~~~~~
--
In file included from kernel/sched/sched.h:65,
from kernel/sched/rt.c:6:
include/linux/suspend.h: In function 'unlock_system_sleep':
>> include/linux/suspend.h:546:40: error: parameter name omitted
546 | static inline void unlock_system_sleep(unsigned int) {}
| ^~~~~~~~~~~~
kernel/sched/rt.c: At top level:
kernel/sched/rt.c:669:6: warning: no previous prototype for 'sched_rt_bandwidth_account' [-Wmissing-prototypes]
669 | bool sched_rt_bandwidth_account(struct rt_rq *rt_rq)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
vim +546 include/linux/suspend.h
544
545 static inline unsigned int lock_system_sleep(void) { return 0; }
> 546 static inline void unlock_system_sleep(unsigned int) {}
547
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 3 months