Commit e72d5c7e authored by Chris Metcalf's avatar Chris Metcalf

arch/tile: avoid unused variable warning in proc.c for tilegx

Until we push the unaligned access support for tilegx, it's silly
to have arch/tile/kernel/proc.c generate a warning about an unused
variable.  Extend the #ifdef to cover all the code and data for now.
Signed-off-by: default avatarChris Metcalf <cmetcalf@tilera.com>
parent d1640130
...@@ -146,7 +146,6 @@ static ctl_table unaligned_table[] = { ...@@ -146,7 +146,6 @@ static ctl_table unaligned_table[] = {
}, },
{} {}
}; };
#endif
static struct ctl_path tile_path[] = { static struct ctl_path tile_path[] = {
{ .procname = "tile" }, { .procname = "tile" },
...@@ -155,10 +154,9 @@ static struct ctl_path tile_path[] = { ...@@ -155,10 +154,9 @@ static struct ctl_path tile_path[] = {
static int __init proc_sys_tile_init(void) static int __init proc_sys_tile_init(void)
{ {
#ifndef __tilegx__ /* FIXME: GX: no support for unaligned access yet */
register_sysctl_paths(tile_path, unaligned_table); register_sysctl_paths(tile_path, unaligned_table);
#endif
return 0; return 0;
} }
arch_initcall(proc_sys_tile_init); arch_initcall(proc_sys_tile_init);
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment