Re: [PATCH] refcount: trim headers

2018-03-31 Thread Ingo Molnar
* Alexey Dobriyan wrote: > On Sat, Mar 31, 2018 at 10:36:32AM +0200, Ingo Molnar wrote: > > > --- a/include/linux/refcount.h > > > +++ b/include/linux/refcount.h > > > #include > > > -#include > > > -#include > > > -#include > > > +#include > > > +#include > > > + > > > +struct mutex; >

Re: [PATCH] refcount: trim headers

2018-03-31 Thread Alexey Dobriyan
On Sat, Mar 31, 2018 at 10:36:32AM +0200, Ingo Molnar wrote: > > --- a/include/linux/refcount.h > > +++ b/include/linux/refcount.h > > #include > > -#include > > -#include > > -#include > > +#include > > +#include > > + > > +struct mutex; > Doesn't build on x86-64 defconfig... Yeah, it doe

Re: [PATCH] refcount: trim headers

2018-03-31 Thread Ingo Molnar
* Alexey Dobriyan wrote: > kernel.h is not needed, but compiler.h is. > > mutex.h is not needed only a forward declaration. > > spinlock.h is not needed, spinlock_types.h is enough. > > Signed-off-by: Alexey Dobriyan > --- > > include/linux/refcount.h |7 --- > lib/refcount.c

[PATCH] refcount: trim headers

2018-03-13 Thread Alexey Dobriyan
kernel.h is not needed, but compiler.h is. mutex.h is not needed only a forward declaration. spinlock.h is not needed, spinlock_types.h is enough. Signed-off-by: Alexey Dobriyan --- include/linux/refcount.h |7 --- lib/refcount.c |2 ++ 2 files changed, 6 insertions(+),