Skip to content

Commit

Permalink
powerpc: fix implicit use of cache.h in kernel/firmware.c
Browse files Browse the repository at this point in the history
This file only needs export.h to get EXPORT_SYMBOL, but in doing
so, it uncovers an implicit use of linux/cache.h as follows:

 CC      arch/powerpc/kernel/firmware.o
arch/powerpc/kernel/firmware.c:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__read_mostly'
arch/powerpc/kernel/firmware.c:21: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__used'
make[2]: *** [arch/powerpc/kernel/firmware.o] Error 1

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
  • Loading branch information
Paul Gortmaker committed Oct 31, 2011
1 parent 2a7156b commit cab2e05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/powerpc/kernel/firmware.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
* 2 of the License, or (at your option) any later version.
*/

#include <linux/module.h>
#include <linux/export.h>
#include <linux/cache.h>

#include <asm/firmware.h>

Expand Down

0 comments on commit cab2e05

Please sign in to comment.