Re: [PATCH 3/5] genetlink: statically initialize families

2016-10-25 Thread Johannes Berg
On Tue, 2016-10-25 at 11:25 +, David Laight wrote: > > Actually, with the new system where it's not const, I could even > > split this up and submit per subsystem, i.e. the fourth patch > > doesn't depend on it. I thought it would, since I wanted to make it > > const, but since I failed it doe

RE: [PATCH 3/5] genetlink: statically initialize families

2016-10-25 Thread David Laight
From: Johannes Berg > Sent: 24 October 2016 13:56 > On Mon, 2016-10-24 at 14:40 +0200, Johannes Berg wrote: > > From: Johannes Berg > > > > Instead of providing macros/inline functions to initialize > > the families, make all users initialize them statically and > > get rid of the macros. > > > >

Re: [PATCH 3/5] genetlink: statically initialize families

2016-10-24 Thread Johannes Berg
On Mon, 2016-10-24 at 14:40 +0200, Johannes Berg wrote: > From: Johannes Berg > > Instead of providing macros/inline functions to initialize > the families, make all users initialize them statically and > get rid of the macros. > > This reduces the kernel code size by about 1.6k on x86-64 > (wit

[PATCH 3/5] genetlink: statically initialize families

2016-10-24 Thread Johannes Berg
From: Johannes Berg Instead of providing macros/inline functions to initialize the families, make all users initialize them statically and get rid of the macros. This reduces the kernel code size by about 1.6k on x86-64 (with allyesconfig). Signed-off-by: Johannes Berg --- drivers/acpi/event.