]> err.no Git - linux-2.6/blobdiff - arch/avr32/mm/tlb.c
cgroups: add cgroup support for enabling controllers at boot time
[linux-2.6] / arch / avr32 / mm / tlb.c
index 5d0523bbe298ad2082b3e0df33c011dae9fc7900..b835257a8fa39d88d794ad2667ef9f46a4e6028c 100644 (file)
@@ -15,7 +15,8 @@
 
 void show_dtlb_entry(unsigned int index)
 {
-       unsigned int tlbehi, tlbehi_save, tlbelo, mmucr, mmucr_save, flags;
+       unsigned int tlbehi, tlbehi_save, tlbelo, mmucr, mmucr_save;
+       unsigned long flags;
 
        local_irq_save(flags);
        mmucr_save = sysreg_read(MMUCR);
@@ -305,7 +306,8 @@ static void tlb_stop(struct seq_file *tlb, void *v)
 
 static int tlb_show(struct seq_file *tlb, void *v)
 {
-       unsigned int tlbehi, tlbehi_save, tlbelo, mmucr, mmucr_save, flags;
+       unsigned int tlbehi, tlbehi_save, tlbelo, mmucr, mmucr_save;
+       unsigned long flags;
        unsigned long *index = v;
 
        if (*index == 0)
@@ -346,7 +348,7 @@ static int tlb_show(struct seq_file *tlb, void *v)
        return 0;
 }
 
-static struct seq_operations tlb_ops = {
+static const struct seq_operations tlb_ops = {
        .start          = tlb_start,
        .next           = tlb_next,
        .stop           = tlb_stop,
@@ -358,7 +360,7 @@ static int tlb_open(struct inode *inode, struct file *file)
        return seq_open(file, &tlb_ops);
 }
 
-static struct file_operations proc_tlb_operations = {
+static const struct file_operations proc_tlb_operations = {
        .open           = tlb_open,
        .read           = seq_read,
        .llseek         = seq_lseek,