]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/prom_init: Move custom isspace() to its own namespace
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 10 May 2021 14:49:25 +0000 (17:49 +0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 15 Jun 2021 07:12:27 +0000 (17:12 +1000)
commita526bbfdec0f7a3d042d1be53d54dacf36acf88f
tree4f1034e7bd7b9391cecebf877480d3622bf2a0a3
parent2aba6c1f6e58c7a0e41789863d2c47339f84c4db
powerpc/prom_init: Move custom isspace() to its own namespace

If by some reason any of the headers will include ctype.h
we will have a name collision. Avoid this by moving isspace()
to the dedicate namespace.

First appearance of the code is in the commit a3b35662adba
("powerpc/prom_init: Evaluate mem kernel parameter for early allocation").

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
[mpe: Reformat prom_isxdigit() now that we allow longer lines]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210510144925.58195-1-andriy.shevchenko@linux.intel.com
arch/powerpc/kernel/prom_init.c