Skip to content

Commit

Permalink
arch/tile: avoid unused variable warning in proc.c for tilegx
Browse files Browse the repository at this point in the history
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: Chris Metcalf <cmetcalf@tilera.com>
  • Loading branch information
Chris Metcalf committed Apr 11, 2012
1 parent d164013 commit e72d5c7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arch/tile/kernel/proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ static ctl_table unaligned_table[] = {
},
{}
};
#endif

static struct ctl_path tile_path[] = {
{ .procname = "tile" },
Expand All @@ -155,10 +154,9 @@ static struct ctl_path tile_path[] = {

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);
#endif
return 0;
}

arch_initcall(proc_sys_tile_init);
#endif

0 comments on commit e72d5c7

Please sign in to comment.