Skip to content

Commit

Permalink
powerpc/platforms/85xx: fix t1042rdb_diu.c build errors & warning
Browse files Browse the repository at this point in the history
Fix build errors and warnings in t1042rdb_diu.c by adding header files
and MODULE_LICENSE().

../arch/powerpc/platforms/85xx/t1042rdb_diu.c:152:1: warning: data definition has no type or storage class
 early_initcall(t1042rdb_diu_init);
../arch/powerpc/platforms/85xx/t1042rdb_diu.c:152:1: error: type defaults to 'int' in declaration of 'early_initcall' [-Werror=implicit-int]
../arch/powerpc/platforms/85xx/t1042rdb_diu.c:152:1: warning: parameter names (without types) in function declaration

and
WARNING: modpost: missing MODULE_LICENSE() in arch/powerpc/platforms/85xx/t1042rdb_diu.o

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Scott Wood <oss@buserror.net>
Cc: Kumar Gala <galak@kernel.crashing.org>
Cc: linuxppc-dev@lists.ozlabs.org
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
  • Loading branch information
Randy Dunlap authored and Michael Ellerman committed Aug 7, 2018
1 parent 7ccc4fe commit f5daf77
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/powerpc/platforms/85xx/t1042rdb_diu.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
* option) any later version.
*/

#include <linux/init.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_address.h>

Expand Down Expand Up @@ -150,3 +152,5 @@ static int __init t1042rdb_diu_init(void)
}

early_initcall(t1042rdb_diu_init);

MODULE_LICENSE("GPL");

0 comments on commit f5daf77

Please sign in to comment.