diff options
| author | Paul Burton <[email protected]> | 2017-08-23 11:17:44 -0700 |
|---|---|---|
| committer | Ralf Baechle <[email protected]> | 2017-08-29 15:21:54 +0200 |
| commit | b47e9c62f2312066df5719cfc3a6104bf854071a (patch) | |
| tree | 20152ab2be2694e347b82d49a4532d45f21ef074 /tools/perf/scripts/python | |
| parent | c59435a617a7c442d5253e42c351135672417803 (diff) | |
MIPS: generic: Include asm/bootinfo.h for plat_fdt_relocated()
arch/mips/generic/init.c provides an implementation of the
plat_fdt_relocated() function, but doesn't include the asm/bootinfo.h
header which declares it. This leads to a warning from sparse:
arch/mips/generic/init.c:94:13: warning: symbol 'plat_fdt_relocated' was
not declared. Should it be static?
Fix this by including asm/bootinfo.h to get the declaration of
plat_fdt_relocated(). We also #ifdef our definition of
plat_fdt_relocated() such that it is only provided when
CONFIG_RELOCATABLE is set, matching the header & avoiding the redundant
function for non-relocatable kernels.
Signed-off-by: Paul Burton <[email protected]>
Cc: Matt Redfearn <[email protected]>
Cc: [email protected]
Cc: [email protected]
Patchwork: https://patchwork.linux-mips.org/patch/17166/
Signed-off-by: Ralf Baechle <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions