lkml.org 
[lkml]   [2014]   [Feb]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] c6x: Include init.h in asm/cache.h
Date
arch/c6x/include/asm/cache.h uses __init and thus needs to include init.h.
This fixes the following c6x build error.

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

Problem was inadvertendly introduced with commit c28aa1f
(printk/cache: mark printk_once test variable __read_mostly).

Cc: Joe Perches <joe@perches.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
arch/c6x/include/asm/cache.h | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/c6x/include/asm/cache.h b/arch/c6x/include/asm/cache.h
index 09c5a0f..86648c0 100644
--- a/arch/c6x/include/asm/cache.h
+++ b/arch/c6x/include/asm/cache.h
@@ -12,6 +12,7 @@
#define _ASM_C6X_CACHE_H

#include <linux/irqflags.h>
+#include <linux/init.h>

/*
* Cache line size
--
1.7.9.7


\
 
 \ /
  Last update: 2014-02-07 15:41    [W:0.642 / U:0.408 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site