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
76ae908a
Commit
76ae908a
authored
Jun 03, 2004
by
Alexander Viro
Committed by
Linus Torvalds
Jun 03, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] sparse: sscape annotation
parent
0fff631b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
include/sound/sscape_ioctl.h
include/sound/sscape_ioctl.h
+1
-1
sound/isa/sscape.c
sound/isa/sscape.c
+6
-6
No files found.
include/sound/sscape_ioctl.h
View file @
76ae908a
...
...
@@ -12,7 +12,7 @@ struct sscape_bootblock
struct
sscape_microcode
{
unsigned
char
*
code
;
unsigned
char
__user
*
code
;
};
#define SND_SSCAPE_LOAD_BOOTB _IOWR('P', 100, struct sscape_bootblock)
...
...
sound/isa/sscape.c
View file @
76ae908a
...
...
@@ -455,7 +455,7 @@ static int host_startup_ack(struct soundscape *s, unsigned timeout)
* Upload a byte-stream into the SoundScape using DMA channel A.
*/
static
int
upload_dma_data
(
struct
soundscape
*
s
,
const
unsigned
char
*
data
,
const
unsigned
char
__user
*
data
,
size_t
size
)
{
unsigned
long
flags
;
...
...
@@ -569,7 +569,7 @@ static int upload_dma_data(struct soundscape *s,
* However, we have already verified its memory
* addresses by the time we get here.
*/
static
int
sscape_upload_bootblock
(
struct
soundscape
*
sscape
,
struct
sscape_bootblock
*
bb
)
static
int
sscape_upload_bootblock
(
struct
soundscape
*
sscape
,
struct
sscape_bootblock
__user
*
bb
)
{
unsigned
long
flags
;
int
data
=
0
;
...
...
@@ -604,10 +604,10 @@ static int sscape_upload_bootblock(struct soundscape *sscape, struct sscape_boot
* SPACE, and save ourselves from copying it at all.
*/
static
int
sscape_upload_microcode
(
struct
soundscape
*
sscape
,
const
struct
sscape_microcode
*
mc
)
const
struct
sscape_microcode
__user
*
mc
)
{
unsigned
long
flags
;
char
*
code
;
char
__user
*
code
;
int
err
,
ret
;
/*
...
...
@@ -683,7 +683,7 @@ static int sscape_hw_ioctl(snd_hwdep_t * hw, struct file *file,
switch
(
cmd
)
{
case
SND_SSCAPE_LOAD_BOOTB
:
{
register
struct
sscape_bootblock
*
bb
=
(
struct
sscape_bootblock
*
)
arg
;
register
struct
sscape_bootblock
__user
*
bb
=
(
struct
sscape_bootblock
__user
*
)
arg
;
/*
* We are going to have to copy this data into a special
...
...
@@ -705,7 +705,7 @@ static int sscape_hw_ioctl(snd_hwdep_t * hw, struct file *file,
case
SND_SSCAPE_LOAD_MCODE
:
{
register
const
struct
sscape_microcode
*
mc
=
(
const
struct
sscape_microcode
*
)
arg
;
register
const
struct
sscape_microcode
__user
*
mc
=
(
const
struct
sscape_microcode
__user
*
)
arg
;
err
=
sscape_upload_microcode
(
sscape
,
mc
);
}
...
...
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