alpha: eliminate old-style function definitions

'make ARCH=alpha W=1' reports a couple of old-style function
definitions with missing parameter list, so fix those.

  arch/alpha/kernel/pc873xx.c: In function 'pc873xx_get_base':
  arch/alpha/kernel/pc873xx.c:16:21: warning: old-style function definition [-Wold-style-definition]
   16 | unsigned int __init pc873xx_get_base()

  arch/alpha/kernel/pc873xx.c: In function 'pc873xx_get_model':
  arch/alpha/kernel/pc873xx.c:21:14: warning: old-style function definition [-Wold-style-definition]
   21 | char *__init pc873xx_get_model()

Link: https://lkml.kernel.org/r/20210421061312.30097-1-rdunlap@infradead.org
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Matt Turner <mattst88@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Randy Dunlap 2021-05-06 18:02:04 -07:00 коммит произвёл Linus Torvalds
Родитель 36f0b35d08
Коммит 543203d2e4
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -13,12 +13,12 @@ static char *pc873xx_names[] = {
static unsigned int base, model;
unsigned int __init pc873xx_get_base()
unsigned int __init pc873xx_get_base(void)
{
return base;
}
char *__init pc873xx_get_model()
char *__init pc873xx_get_model(void)
{
return pc873xx_names[model];
}