* Subject: [PATCH] powerpc: remove compat_sys_pciconfig_*
2006-01-09 16:27 sys_pciconfig_{read,write} Matthew Wilcox
@ 2006-01-09 23:36 ` Stephen Rothwell
2006-01-09 23:37 ` sys_pciconfig_{read,write} Stephen Rothwell
2006-01-20 10:00 ` sys_pciconfig_{read,write} David S. Miller
2 siblings, 0 replies; 5+ messages in thread
From: Stephen Rothwell @ 2006-01-09 23:36 UTC (permalink / raw)
To: Matthew Wilcox
Cc: linux-arch, linux-pci, cneira, linuxppc64-dev, paulus, anton
Matthew Wilcox wondered why we need these functions. We don't.
Remove them and just use the "normnal" versions.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
arch/powerpc/kernel/sys_ppc32.c | 24 ------------------------
arch/powerpc/kernel/systbl.S | 6 +++---
2 files changed, 3 insertions(+), 27 deletions(-)
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
a588565777a0563a1997e2d515db43f9882cb628
diff --git a/arch/powerpc/kernel/sys_ppc32.c b/arch/powerpc/kernel/sys_ppc32.c
index 9c921d1..9b6d965 100644
--- a/arch/powerpc/kernel/sys_ppc32.c
+++ b/arch/powerpc/kernel/sys_ppc32.c
@@ -552,30 +552,6 @@ asmlinkage long compat_sys_sched_rr_get_
return ret;
}
-asmlinkage int compat_sys_pciconfig_read(u32 bus, u32 dfn, u32 off, u32 len, u32 ubuf)
-{
- return sys_pciconfig_read((unsigned long) bus,
- (unsigned long) dfn,
- (unsigned long) off,
- (unsigned long) len,
- compat_ptr(ubuf));
-}
-
-asmlinkage int compat_sys_pciconfig_write(u32 bus, u32 dfn, u32 off, u32 len, u32 ubuf)
-{
- return sys_pciconfig_write((unsigned long) bus,
- (unsigned long) dfn,
- (unsigned long) off,
- (unsigned long) len,
- compat_ptr(ubuf));
-}
-
-asmlinkage int compat_sys_pciconfig_iobase(u32 which, u32 in_bus, u32 in_devfn)
-{
- return sys_pciconfig_iobase(which, in_bus, in_devfn);
-}
-
-
/* Note: it is necessary to treat mode as an unsigned int,
* with the corresponding cast to a signed int to insure that the
* proper conversion (sign extension) between the register representation of a signed int (msr in 32-bit mode)
diff --git a/arch/powerpc/kernel/systbl.S b/arch/powerpc/kernel/systbl.S
index 65463a1..c3ae74b 100644
--- a/arch/powerpc/kernel/systbl.S
+++ b/arch/powerpc/kernel/systbl.S
@@ -239,9 +239,9 @@ SYS32ONLY(ftruncate64)
SYSX(sys_ni_syscall,sys_stat64,sys_stat64)
SYSX(sys_ni_syscall,sys_lstat64,sys_lstat64)
SYSX(sys_ni_syscall,sys_fstat64,sys_fstat64)
-COMPAT_SYS(pciconfig_read)
-COMPAT_SYS(pciconfig_write)
-COMPAT_SYS(pciconfig_iobase)
+SYSCALL(pciconfig_read)
+SYSCALL(pciconfig_write)
+SYSCALL(pciconfig_iobase)
SYSCALL(ni_syscall)
SYSCALL(getdents64)
SYSCALL(pivot_root)
--
1.0.6
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: sys_pciconfig_{read,write}
2006-01-09 16:27 sys_pciconfig_{read,write} Matthew Wilcox
2006-01-09 23:36 ` Subject: [PATCH] powerpc: remove compat_sys_pciconfig_* Stephen Rothwell
@ 2006-01-09 23:37 ` Stephen Rothwell
2006-01-20 10:00 ` sys_pciconfig_{read,write} David S. Miller
2 siblings, 0 replies; 5+ messages in thread
From: Stephen Rothwell @ 2006-01-09 23:37 UTC (permalink / raw)
To: Matthew Wilcox; +Cc: linux-arch, linux-pci, cneira
[-- Attachment #1: Type: text/plain, Size: 383 bytes --]
On Mon, 9 Jan 2006 09:27:18 -0700 Matthew Wilcox <matthew@wil.cx> wrote:
>
> I bet most people don't even know we have these syscalls. But they're
> built into every arch except X86, and only hooked up on alpha, arm,
> ia64, ppc32, sparc and sparc64.
and ppc64 ...
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: sys_pciconfig_{read,write}
2006-01-09 16:27 sys_pciconfig_{read,write} Matthew Wilcox
2006-01-09 23:36 ` Subject: [PATCH] powerpc: remove compat_sys_pciconfig_* Stephen Rothwell
2006-01-09 23:37 ` sys_pciconfig_{read,write} Stephen Rothwell
@ 2006-01-20 10:00 ` David S. Miller
2006-01-20 12:10 ` sys_pciconfig_{read,write} Geert Uytterhoeven
2 siblings, 1 reply; 5+ messages in thread
From: David S. Miller @ 2006-01-20 10:00 UTC (permalink / raw)
To: matthew; +Cc: linux-arch, linux-pci, cneira
From: Matthew Wilcox <matthew@wil.cx>
Date: Mon, 9 Jan 2006 09:27:18 -0700
[ Going through some old emails I intended to get to before
heading off to linux.conf.au :-) ]
> So I propose the following three patches:
>
> 1/ New Kconfig symbol CONFIG_PCI_SYSCALLS to be defined by the above
> architectures. Makefile altered accordingly.
>
> 2/ Removal of BKL from syscall implementation.
>
> 3/ Removal of !CONFIG_PCI pciconfig stubs from alpha, ia64 and sparc64
> (we already have cond_syscalls for them).
Sounds fine to me.
> I don't quite understand why we need
> compat_sys_pciconfig_{read,write,iobase} on ppc64. Can't these just
> call the normal versions?
I don't see this in the current tree, were they removed as
a result of this observation?
^ permalink raw reply [flat|nested] 5+ messages in thread