linux-next: build failure after merge of the printk tree
Hi all,
After merging the printk tree, today's linux-next build (x86_64 allmodconfig) failed like this:
In file included from include/linux/printk.h:10,
from include/linux/kernel.h:15,
from include/linux/list.h:9,
from include/linux/lockdep.h:43,
from include/linux/spinlock_types.h:18,
from include/linux/genalloc.h:32,
from drivers/soc/fsl/qe/qe_common.c:16:
include/linux/ratelimit_types.h:16:2: error: unknown type name 'raw_spinlock_t'
16 | raw_spinlock_t lock; /* protect the state */
| ^~~~~~~~~~~~~~
In file included from include/linux/wait.h:9,
from include/linux/pid.h:6,
from include/linux/sched.h:14,
from include/linux/ratelimit.h:6,
from include/linux/dev_printk.h:16,
from include/linux/device.h:15,
from include/linux/node.h:18,
from include/linux/cpu.h:17,
from include/linux/of_device.h:5,
from drivers/soc/fsl/qe/qe_common.c:19:include/linux/ratelimit.h: In function 'ratelimit_state_init':include/linux/ratelimit.h:14:21: error: passing argument 1 of '__raw_spin_lock_init' from incompatible pointer type [-Werror=incompatible-pointer-types]
14 | raw_spin_lock_init(&rs->lock);include/linux/spinlock.h:102:24: note: in definition of macro 'raw_spin_lock_init'
102 | __raw_spin_lock_init((lock), #lock, &__key, LD_WAIT_SPIN); \
| ^~~~include/linux/spinlock.h:95:52: note: expected 'raw_spinlock_t *' {aka 'struct raw_spinlock *'} but argument is of type 'int *'
95 | extern void __raw_spin_lock_init(raw_spinlock_t *lock, const char *name,
| ~~~~~~~~~~~~~~~~^~~~
Caused by commit
b4a461e72bcb ("printk: Make linux/printk.h self-contained")
This *may* be interacting with other include file changes in linux-next.
I have reverted that commit for today.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 35 lines · Stephen Rothwell
Hi all,
After merging the printk tree, today's linux-next build (
x86_64allmodconfig) failed like this:In file included from
include/linux/printk.h:10,from include/linux/kernel.h:15, from include/linux/list.h:9, from include/linux/lockdep.h:43, from include/linux/spinlock_types.h:18, from include/linux/genalloc.h:32, from drivers/soc/fsl/qe/qe_common.c:16: include/linux/ratelimit_types.h:16:2: error: unknown type name 'raw_spinlock_t' 16 | raw_spinlock_t lock; /* protect the state */ | ^~~~~~~~~~~~~~ In file included from include/linux/wait.h:9, from include/linux/pid.h:6, from include/linux/sched.h:14, from include/linux/ratelimit.h:6, from include/linux/dev_printk.h:16, from include/linux/device.h:15, from include/linux/node.h:18, from include/linux/cpu.h:17, from include/linux/of_device.h:5, from drivers/soc/fsl/qe/qe_common.c:19:
include/linux/ratelimit.h: In function 'ratelimit_state_init':include/linux/ratelimit.h:14:21: error: passing argument 1 of '__raw_spin_lock_init' from incompatible pointer type [-Werror=incompatible-pointer-types]
14 |raw_spin_lock_init(&rs->lock);include/linux/spinlock.h:102:24: note: in definition of macro 'raw_spin_lock_init'
102 |__raw_spin_lock_init((lock), #lock, &__key, LD_WAIT_SPIN); \
| ^~~~include/linux/spinlock.h:95:52: note: expected 'raw_spinlock_t*' {aka 'structraw_spinlock*'} but argument is of type 'int *'
95 | extern void __raw_spin_lock_init(raw_spinlock_t *lock, const char *name,| ~~~~~~~~~~~~~~~~^~~~
Quoted 7 lines
Caused by commit
b4a461e72bcb("printk: Makelinux/printk.hself-contained")This *may* be interacting with other include file changes in linux-next.
I have reverted that commit for today.
This patch depends on two patches in the tips tree. I presume this build test was done without the tips tree, right?
Cheers,
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Hi Herbert,
Quoted 3 lines · On Tue, 28 Jul 2020 11:51:19 +1000 Herbert Xu <[email protected]>…
This patch depends on two patches in the tips tree. I presume this build test was done without the tips tree, right?
Of course it was ...
Each tree merged into linux-next should really be standalone (in case e.g. Linus does not take the other tree). So to do what you want, you need those other 2 commits to be in a separate branch that both the tip tree and the printk tree can merge.
Signature · 2 lines
Cheers, Stephen Rothwell
On (20/07/28 11:49), Stephen Rothwell wrote:
[..]
Quoted 7 lines
Caused by commit
b4a461e72bcb("printk: Makelinux/printk.hself-contained")This *may* be interacting with other include file changes in linux-next.
I have reverted that commit for today.
Hi Stephen,
Sorry about that. This will be fixed for tomorrow's build. The problems is that we have commit dependency between printk and locking tree. So I pulled the
https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?h=locking/core&id=c935cd62d3fe985d7f0ebea185d2759e8992e96f
into printk/for-next.
-ss
Hi Sergey,
Quoted 7 lines · On Tue, 28 Jul 2020 10:54:08 +0900 Sergey Senozhatsky…
Quoted 2 lines
Sorry about that. This will be fixed for tomorrow's build. The problems
is that we have commit dependency between printk and locking tree. So I pulled the
https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?h=locking/core&id=c935cd62d3fe985d7f0ebea185d2759e8992e96finto printk/for-next.
OK, thanks.
Signature · 2 lines
Cheers, Stephen Rothwell