Messages in this thread | | | From | Miguel Ojeda <> | Date | Tue, 13 Jul 2021 20:39:22 +0200 | Subject | Re: [PATCH v1 3/3] kernel.h: Split out container_of() and typeof_memeber() macros |
| |
On Tue, Jul 13, 2021 at 1:23 PM Greg Kroah-Hartman <gregkh@linuxfoundation.org> wrote: > > Life is messy and can not easily be partitioned into tiny pieces. That > way usually ends up being even messier in the end...
I agree measurements would be ideal.
Having said that, even if it makes no performance difference, I think it is reasonable to split things (within reason) and makes a bunch of other things easier, plus sometimes one can enforce particular conventions in the separate header (like I did when introducing `compiler_attributes.h`).
Cheers, Miguel
| |