Re: [v2 PATCH] printk: Make linux/printk.h self-contained

2020-06-12 Thread Peter Zijlstra
On Fri, Jun 12, 2020 at 03:14:05PM +0200, Petr Mladek wrote: > On Fri 2020-06-12 14:36:35, Herbert Xu wrote: > > As it stands if you include printk.h by itself it will fail to > > compile because it requires definitions from ratelimit.h. However, > > simply including ratelimit.h from printk.h

Re: [v2 PATCH] printk: Make linux/printk.h self-contained

2020-06-12 Thread Petr Mladek
On Fri 2020-06-12 14:36:35, Herbert Xu wrote: > As it stands if you include printk.h by itself it will fail to > compile because it requires definitions from ratelimit.h. However, > simply including ratelimit.h from printk.h does not work due to > inclusion loops involving sched.h and kernel.h. >

Re: [v2 PATCH] printk: Make linux/printk.h self-contained

2020-06-12 Thread Sergey Senozhatsky
On (20/06/12 14:36), Herbert Xu wrote: > As it stands if you include printk.h by itself it will fail to > compile because it requires definitions from ratelimit.h. However, > simply including ratelimit.h from printk.h does not work due to > inclusion loops involving sched.h and kernel.h. > >

Re: [v2 PATCH] printk: Make linux/printk.h self-contained

2020-06-12 Thread Andy Shevchenko
On Fri, Jun 12, 2020 at 7:39 AM Herbert Xu wrote: > > As it stands if you include printk.h by itself it will fail to > compile because it requires definitions from ratelimit.h. However, > simply including ratelimit.h from printk.h does not work due to > inclusion loops involving sched.h and

[v2 PATCH] printk: Make linux/printk.h self-contained

2020-06-11 Thread Herbert Xu
As it stands if you include printk.h by itself it will fail to compile because it requires definitions from ratelimit.h. However, simply including ratelimit.h from printk.h does not work due to inclusion loops involving sched.h and kernel.h. This patch solves this by moving bits from ratelimit.h