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
9c22f1bc
Commit
9c22f1bc
authored
Apr 14, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix incorrect 'flags' usage pointed out by stricter type checking.
parent
81da5c11
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
8 deletions
+9
-8
arch/i386/kernel/io_apic.c
arch/i386/kernel/io_apic.c
+2
-1
drivers/acpi/bus.c
drivers/acpi/bus.c
+2
-2
drivers/scsi/scsi.c
drivers/scsi/scsi.c
+1
-1
drivers/scsi/scsi_lib.c
drivers/scsi/scsi_lib.c
+2
-2
drivers/scsi/scsi_scan.c
drivers/scsi/scsi_scan.c
+2
-2
No files found.
arch/i386/kernel/io_apic.c
View file @
9c22f1bc
...
@@ -1479,7 +1479,8 @@ void print_all_local_APICs (void)
...
@@ -1479,7 +1479,8 @@ void print_all_local_APICs (void)
void
/*__init*/
print_PIC
(
void
)
void
/*__init*/
print_PIC
(
void
)
{
{
extern
spinlock_t
i8259A_lock
;
extern
spinlock_t
i8259A_lock
;
unsigned
int
v
,
flags
;
unsigned
int
v
;
unsigned
long
flags
;
printk
(
KERN_DEBUG
"
\n
printing PIC contents
\n
"
);
printk
(
KERN_DEBUG
"
\n
printing PIC contents
\n
"
);
...
...
drivers/acpi/bus.c
View file @
9c22f1bc
...
@@ -281,7 +281,7 @@ acpi_bus_generate_event (
...
@@ -281,7 +281,7 @@ acpi_bus_generate_event (
int
data
)
int
data
)
{
{
struct
acpi_bus_event
*
event
=
NULL
;
struct
acpi_bus_event
*
event
=
NULL
;
u
32
flags
=
0
;
u
nsigned
long
flags
=
0
;
ACPI_FUNCTION_TRACE
(
"acpi_bus_generate_event"
);
ACPI_FUNCTION_TRACE
(
"acpi_bus_generate_event"
);
...
@@ -314,7 +314,7 @@ int
...
@@ -314,7 +314,7 @@ int
acpi_bus_receive_event
(
acpi_bus_receive_event
(
struct
acpi_bus_event
*
event
)
struct
acpi_bus_event
*
event
)
{
{
u
32
flags
=
0
;
u
nsigned
long
flags
=
0
;
struct
acpi_bus_event
*
entry
=
NULL
;
struct
acpi_bus_event
*
entry
=
NULL
;
DECLARE_WAITQUEUE
(
wait
,
current
);
DECLARE_WAITQUEUE
(
wait
,
current
);
...
...
drivers/scsi/scsi.c
View file @
9c22f1bc
...
@@ -815,7 +815,7 @@ void scsi_finish_command(Scsi_Cmnd * SCpnt)
...
@@ -815,7 +815,7 @@ void scsi_finish_command(Scsi_Cmnd * SCpnt)
struct
Scsi_Host
*
host
;
struct
Scsi_Host
*
host
;
Scsi_Device
*
device
;
Scsi_Device
*
device
;
Scsi_Request
*
SRpnt
;
Scsi_Request
*
SRpnt
;
unsigned
int
flags
;
unsigned
long
flags
;
host
=
SCpnt
->
device
->
host
;
host
=
SCpnt
->
device
->
host
;
device
=
SCpnt
->
device
;
device
=
SCpnt
->
device
;
...
...
drivers/scsi/scsi_lib.c
View file @
9c22f1bc
...
@@ -336,7 +336,7 @@ void scsi_setup_cmd_retry(struct scsi_cmnd *cmd)
...
@@ -336,7 +336,7 @@ void scsi_setup_cmd_retry(struct scsi_cmnd *cmd)
static
void
scsi_single_lun_run
(
struct
scsi_device
*
current_sdev
)
static
void
scsi_single_lun_run
(
struct
scsi_device
*
current_sdev
)
{
{
struct
scsi_device
*
sdev
;
struct
scsi_device
*
sdev
;
unsigned
int
flags
,
flags2
;
unsigned
long
flags
,
flags2
;
spin_lock_irqsave
(
current_sdev
->
host
->
host_lock
,
flags
);
spin_lock_irqsave
(
current_sdev
->
host
->
host_lock
,
flags
);
WARN_ON
(
!
current_sdev
->
sdev_target
->
starget_sdev_user
);
WARN_ON
(
!
current_sdev
->
sdev_target
->
starget_sdev_user
);
...
@@ -1155,7 +1155,7 @@ static void scsi_request_fn(request_queue_t *q)
...
@@ -1155,7 +1155,7 @@ static void scsi_request_fn(request_queue_t *q)
struct
Scsi_Host
*
shost
=
sdev
->
host
;
struct
Scsi_Host
*
shost
=
sdev
->
host
;
struct
scsi_cmnd
*
cmd
;
struct
scsi_cmnd
*
cmd
;
struct
request
*
req
;
struct
request
*
req
;
unsigned
int
flags
;
unsigned
long
flags
;
/*
/*
* To start with, we keep looping until the queue is empty, or until
* To start with, we keep looping until the queue is empty, or until
...
...
drivers/scsi/scsi_scan.c
View file @
9c22f1bc
...
@@ -485,7 +485,7 @@ static struct scsi_device *scsi_alloc_sdev(struct Scsi_Host *shost,
...
@@ -485,7 +485,7 @@ static struct scsi_device *scsi_alloc_sdev(struct Scsi_Host *shost,
**/
**/
static
void
scsi_free_sdev
(
struct
scsi_device
*
sdev
)
static
void
scsi_free_sdev
(
struct
scsi_device
*
sdev
)
{
{
unsigned
int
flags
;
unsigned
long
flags
;
list_del
(
&
sdev
->
siblings
);
list_del
(
&
sdev
->
siblings
);
list_del
(
&
sdev
->
same_target_siblings
);
list_del
(
&
sdev
->
same_target_siblings
);
...
@@ -1142,7 +1142,7 @@ static int scsi_add_lun(Scsi_Device *sdev, Scsi_Request *sreq,
...
@@ -1142,7 +1142,7 @@ static int scsi_add_lun(Scsi_Device *sdev, Scsi_Request *sreq,
{
{
struct
scsi_device
*
sdev_sibling
;
struct
scsi_device
*
sdev_sibling
;
struct
scsi_target
*
starget
;
struct
scsi_target
*
starget
;
unsigned
int
flags
;
unsigned
long
flags
;
/*
/*
* XXX do not save the inquiry, since it can change underneath us,
* XXX do not save the inquiry, since it can change underneath us,
...
...
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