Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
e4eacd6b
Commit
e4eacd6b
authored
Mar 18, 2018
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
alpha: switch pci syscalls to SYSCALL_DEFINE
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
0c8efd61
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
arch/alpha/kernel/pci-noop.c
arch/alpha/kernel/pci-noop.c
+7
-8
arch/alpha/kernel/pci.c
arch/alpha/kernel/pci.c
+3
-2
No files found.
arch/alpha/kernel/pci-noop.c
View file @
e4eacd6b
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
#include <linux/sched.h>
#include <linux/sched.h>
#include <linux/dma-mapping.h>
#include <linux/dma-mapping.h>
#include <linux/scatterlist.h>
#include <linux/scatterlist.h>
#include <linux/syscalls.h>
#include "proto.h"
#include "proto.h"
...
@@ -46,8 +47,8 @@ alloc_resource(void)
...
@@ -46,8 +47,8 @@ alloc_resource(void)
return
alloc_bootmem
(
sizeof
(
struct
resource
));
return
alloc_bootmem
(
sizeof
(
struct
resource
));
}
}
asmlinkage
long
SYSCALL_DEFINE3
(
pciconfig_iobase
,
long
,
which
,
unsigned
long
,
bus
,
sys_pciconfig_iobase
(
long
which
,
unsigned
long
bus
,
unsigned
long
dfn
)
unsigned
long
,
dfn
)
{
{
struct
pci_controller
*
hose
;
struct
pci_controller
*
hose
;
...
@@ -84,9 +85,8 @@ sys_pciconfig_iobase(long which, unsigned long bus, unsigned long dfn)
...
@@ -84,9 +85,8 @@ sys_pciconfig_iobase(long which, unsigned long bus, unsigned long dfn)
return
-
EOPNOTSUPP
;
return
-
EOPNOTSUPP
;
}
}
asmlinkage
long
SYSCALL_DEFINE5
(
pciconfig_read
,
unsigned
long
,
bus
,
unsigned
long
,
dfn
,
sys_pciconfig_read
(
unsigned
long
bus
,
unsigned
long
dfn
,
unsigned
long
,
off
,
unsigned
long
,
len
,
void
__user
*
,
buf
)
unsigned
long
off
,
unsigned
long
len
,
void
*
buf
)
{
{
if
(
!
capable
(
CAP_SYS_ADMIN
))
if
(
!
capable
(
CAP_SYS_ADMIN
))
return
-
EPERM
;
return
-
EPERM
;
...
@@ -94,9 +94,8 @@ sys_pciconfig_read(unsigned long bus, unsigned long dfn,
...
@@ -94,9 +94,8 @@ sys_pciconfig_read(unsigned long bus, unsigned long dfn,
return
-
ENODEV
;
return
-
ENODEV
;
}
}
asmlinkage
long
SYSCALL_DEFINE5
(
pciconfig_write
,
unsigned
long
,
bus
,
unsigned
long
,
dfn
,
sys_pciconfig_write
(
unsigned
long
bus
,
unsigned
long
dfn
,
unsigned
long
,
off
,
unsigned
long
,
len
,
void
__user
*
,
buf
)
unsigned
long
off
,
unsigned
long
len
,
void
*
buf
)
{
{
if
(
!
capable
(
CAP_SYS_ADMIN
))
if
(
!
capable
(
CAP_SYS_ADMIN
))
return
-
EPERM
;
return
-
EPERM
;
...
...
arch/alpha/kernel/pci.c
View file @
e4eacd6b
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
#include <linux/module.h>
#include <linux/module.h>
#include <linux/cache.h>
#include <linux/cache.h>
#include <linux/slab.h>
#include <linux/slab.h>
#include <linux/syscalls.h>
#include <asm/machvec.h>
#include <asm/machvec.h>
#include "proto.h"
#include "proto.h"
...
@@ -409,8 +410,8 @@ alloc_resource(void)
...
@@ -409,8 +410,8 @@ alloc_resource(void)
/* Provide information on locations of various I/O regions in physical
/* Provide information on locations of various I/O regions in physical
memory. Do this on a per-card basis so that we choose the right hose. */
memory. Do this on a per-card basis so that we choose the right hose. */
asmlinkage
long
SYSCALL_DEFINE3
(
pciconfig_iobase
,
long
,
which
,
unsigned
long
,
bus
,
sys_pciconfig_iobase
(
long
which
,
unsigned
long
bus
,
unsigned
long
dfn
)
unsigned
long
,
dfn
)
{
{
struct
pci_controller
*
hose
;
struct
pci_controller
*
hose
;
struct
pci_dev
*
dev
;
struct
pci_dev
*
dev
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment