lib/vsprintf: split out sprintf() and friends
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 14 Aug 2023 16:33:43 +0000 (19:33 +0300)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 21 Aug 2023 20:46:24 +0000 (13:46 -0700)
commit39ced19b9e60f6f5b80db6b72965a8cf1982439d
treedee9918072373585c6e96999acc35e1e7e0bf438
parenta7031f145257516ce725dfce38d99da598a3972d
lib/vsprintf: split out sprintf() and friends

Patch series "lib/vsprintf: Rework header inclusions", v3.

Some patches that reduce the mess with the header inclusions related to
vsprintf.c module.  Each patch has its own description, and has no
dependencies to each other, except the collisions over modifications of
the same places.  Hence the series.

This patch (of 2):

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.

Here is the attempt on cleaning it up by splitting out sprintf() and
friends.

Link: https://lkml.kernel.org/r/20230814163344.17429-1-andriy.shevchenko@linux.intel.com
Link: https://lkml.kernel.org/r/20230814163344.17429-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Marco Elver <elver@google.com>
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/kernel.h
include/linux/sprintf.h [new file with mode: 0644]
lib/test_printf.c
lib/vsprintf.c