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
Kirill Smelkov
linux
Commits
1b30301d
Commit
1b30301d
authored
Feb 12, 2003
by
Dave Jones
Committed by
Linus Torvalds
Feb 12, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] nwflash driver uses wrong types in llseek methods
from 2.4
parent
1c1af371
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drivers/char/nwflash.c
drivers/char/nwflash.c
+3
-3
No files found.
drivers/char/nwflash.c
View file @
1b30301d
...
@@ -47,7 +47,7 @@ static int write_block(unsigned long p, const char *buf, int count);
...
@@ -47,7 +47,7 @@ static int write_block(unsigned long p, const char *buf, int count);
static
int
flash_ioctl
(
struct
inode
*
inodep
,
struct
file
*
filep
,
unsigned
int
cmd
,
unsigned
long
arg
);
static
int
flash_ioctl
(
struct
inode
*
inodep
,
struct
file
*
filep
,
unsigned
int
cmd
,
unsigned
long
arg
);
static
ssize_t
flash_read
(
struct
file
*
file
,
char
*
buf
,
size_t
count
,
loff_t
*
ppos
);
static
ssize_t
flash_read
(
struct
file
*
file
,
char
*
buf
,
size_t
count
,
loff_t
*
ppos
);
static
ssize_t
flash_write
(
struct
file
*
file
,
const
char
*
buf
,
size_t
count
,
loff_t
*
ppos
);
static
ssize_t
flash_write
(
struct
file
*
file
,
const
char
*
buf
,
size_t
count
,
loff_t
*
ppos
);
static
lo
ng
long
flash_llseek
(
struct
file
*
file
,
long
long
offset
,
int
orig
);
static
lo
ff_t
flash_llseek
(
struct
file
*
file
,
loff_t
offset
,
int
orig
);
#define KFLASH_SIZE 1024*1024 //1 Meg
#define KFLASH_SIZE 1024*1024 //1 Meg
#define KFLASH_SIZE4 4*1024*1024 //4 Meg
#define KFLASH_SIZE4 4*1024*1024 //4 Meg
...
@@ -301,9 +301,9 @@ static ssize_t flash_write(struct file *file, const char *buf, size_t size, loff
...
@@ -301,9 +301,9 @@ static ssize_t flash_write(struct file *file, const char *buf, size_t size, loff
* also note that seeking relative to the "end of file" isn't supported:
* also note that seeking relative to the "end of file" isn't supported:
* it has no meaning, so it returns -EINVAL.
* it has no meaning, so it returns -EINVAL.
*/
*/
static
lo
ng
long
flash_llseek
(
struct
file
*
file
,
long
long
offset
,
int
orig
)
static
lo
ff_t
flash_llseek
(
struct
file
*
file
,
loff_t
offset
,
int
orig
)
{
{
lo
ng
long
ret
;
lo
ff_t
ret
;
lock_kernel
();
lock_kernel
();
if
(
flashdebug
)
if
(
flashdebug
)
...
...
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