]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
arch/tile: avoid unused variable warning in proc.c for tilegx
authorChris Metcalf <cmetcalf@tilera.com>
Wed, 11 Apr 2012 16:45:20 +0000 (12:45 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Wed, 11 Apr 2012 16:45:20 +0000 (12:45 -0400)
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>
arch/tile/kernel/proc.c

index 7a93270464045753c76caa4032716ea6981c082c..446a7f52cc11f3a6380b7e6cfbf2181abca046a0 100644 (file)
@@ -146,7 +146,6 @@ static ctl_table unaligned_table[] = {
        },
        {}
 };
-#endif
 
 static struct ctl_path tile_path[] = {
        { .procname = "tile" },
@@ -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