[PATCH net v3] net: Force inlining of checksum functions in net/checksum.h

Masahiro Yamada masahiroy at kernel.org
Fri Feb 18 12:35:48 AEDT 2022


On Fri, Feb 18, 2022 at 3:10 AM Segher Boessenkool
<segher at kernel.crashing.org> wrote:
>
> On Fri, Feb 18, 2022 at 02:27:16AM +0900, Masahiro Yamada wrote:
> > On Fri, Feb 18, 2022 at 1:49 AM David Laight <David.Laight at aculab.com> wrote:
> > > That description is largely fine.
> > >
> > > Inappropriate 'inline' ought to be removed.
> > > Then 'inline' means - 'really do inline this'.
> >
> > You cannot change "static inline" to "static"
> > in header files.
>
> Why not?  Those two have identical semantics!

e.g.)


[1] Open  include/linux/device.h with your favorite editor,
     then edit

static inline void *devm_kcalloc(struct device *dev,

    to

static void *devm_kcalloc(struct device *dev,


[2] Build the kernel









>
>
> Segher







-- 
Best Regards
Masahiro Yamada


More information about the Linuxppc-dev mailing list