]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
c6x: fix build failure caused by cache.h
authorMark Salter <msalter@redhat.com>
Mon, 11 Nov 2013 13:28:33 +0000 (08:28 -0500)
committerMark Salter <msalter@redhat.com>
Tue, 4 Mar 2014 22:21:58 +0000 (17:21 -0500)
A patch to linux/irqflags.h uncovered a problem with c6x asm/cache.h
which causes a build failure:

/arch/c6x/include/asm/cache.h:63:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘c6x_cache_init’
 extern void __init c6x_cache_init(void);

The asm/cache.h was relying on linux/irqflags.h to pull in linux/init.h
but the recent patch changed that. The c6x header should have included
linux/init.h all along.

Signed-off-by: Mark Salter <msalter@redhat.com>
arch/c6x/include/asm/cache.h

index 09c5a0f5f4d1778156a5ee83715e6a2aec7f0441..86648c083bb4b1297275dc2bc4ceb3ecd949aa5b 100644 (file)
@@ -12,6 +12,7 @@
 #define _ASM_C6X_CACHE_H
 
 #include <linux/irqflags.h>
+#include <linux/init.h>
 
 /*
  * Cache line size