Re: [PATCH v2 2/3] lib/vsprintf: Split out sprintf() and friends
From: Andy Shevchenko
Date: Tue Aug 08 2023 - 11:58:39 EST
On Sat, Aug 05, 2023 at 11:43:04AM -0700, Andrew Morton wrote:
> On Sat, 5 Aug 2023 20:50:26 +0300 Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:
>
> > kernel.h is being used as a dump for all kinds of stuff for a long time.
> > sprintf() and friends are used in many drivers without need of the full
> > kernel.h dependency train with it.
>
> There seems little point in this unless someone signs up to convert
> lots of code to include sprintf.h instead of kernel.h?
You can say it to any cleanup work that starts from the baby steps.
> And such conversions will presumably cause all sorts of nasties
> which require additional work?
>
> So... what's the plan here?
My main goal is to get rid from kernel.h in the _headers_ first.
The secondary goal as discussed with Jonathan to have IIO subsystem
be cleaned up from kernel.h (meaning C files as well) at some point.
FWIW, I have started kernel.h cleanup due to impossibility to
make bitmap_*alloc() being static inline.
--
With Best Regards,
Andy Shevchenko