From 57ddad15b59215093101ea3b0cdf3d1445b7b3d6 Mon Sep 17 00:00:00 2001 From: Alexander Viro Date: Thu, 5 Aug 2004 08:36:28 -0700 Subject: [PATCH] [PATCH] Fix ppc htab seq_file conversion *grrrrrrrr* Wrong diff sent. Sorry - normally the tree I'm working in is cp -rl'ed from the -current, but right now it's a big mess. This is the incremental fix. --- arch/ppc/kernel/ppc_htab.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/ppc/kernel/ppc_htab.c b/arch/ppc/kernel/ppc_htab.c index 74051e0d44027..29ff57bbab548 100644 --- a/arch/ppc/kernel/ppc_htab.c +++ b/arch/ppc/kernel/ppc_htab.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include @@ -104,7 +105,6 @@ static char *pmc2_lookup(unsigned long mmcr0) static int ppc_htab_show(struct seq_file *m, void *v) { unsigned long mmcr0 = 0, pmc1 = 0, pmc2 = 0; - int n = 0; #if defined(CONFIG_PPC_STD_MMU) && !defined(CONFIG_PPC64BRIDGE) unsigned int kptes = 0, uptes = 0; PTE *ptr; @@ -199,7 +199,7 @@ static ssize_t ppc_htab_write(struct file * file, const char __user * ubuffer, unsigned long tmp; char buffer[16]; - if (!capable(CAPS_SYS_ADMIN)) + if (!capable(CAP_SYS_ADMIN)) return -EACCES; if (strncpy_from_user(buffer, ubuffer, 15)) return -EFAULT; -- 2.53.0