]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/proc/kcore.c
Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/davej/cpufreq
[karo-tx-linux.git] / fs / proc / kcore.c
index d245cb23dd726206806304022d0c83a0ab784656..86c67eee439fbbc4770591e0b82cb3882a168317 100644 (file)
@@ -157,7 +157,8 @@ static int kcore_update_ram(void)
 
 #ifdef CONFIG_SPARSEMEM_VMEMMAP
 /* calculate vmemmap's address from given system ram pfn and register it */
-int get_sparsemem_vmemmap_info(struct kcore_list *ent, struct list_head *head)
+static int
+get_sparsemem_vmemmap_info(struct kcore_list *ent, struct list_head *head)
 {
        unsigned long pfn = __pa(ent->addr) >> PAGE_SHIFT;
        unsigned long nr_pages = ent->size >> PAGE_SHIFT;
@@ -189,7 +190,8 @@ int get_sparsemem_vmemmap_info(struct kcore_list *ent, struct list_head *head)
 
 }
 #else
-int get_sparsemem_vmemmap_info(struct kcore_list *ent, struct list_head *head)
+static int
+get_sparsemem_vmemmap_info(struct kcore_list *ent, struct list_head *head)
 {
        return 1;
 }
@@ -513,7 +515,7 @@ read_kcore(struct file *file, char __user *buffer, size_t buflen, loff_t *fpos)
 
                                n = copy_to_user(buffer, (char *)start, tsz);
                                /*
-                                * We cannot distingush between fault on source
+                                * We cannot distinguish between fault on source
                                 * and fault on destination. When this happens
                                 * we clear too and hope it will trigger the
                                 * EFAULT again.