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
9cc268e9
Commit
9cc268e9
authored
Jun 03, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] PCI: make pools_lock and pci_lock static.
No one is using them outside the pci core.
parent
cc927c9a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
5 deletions
+2
-5
drivers/pci/access.c
drivers/pci/access.c
+1
-2
drivers/pci/pool.c
drivers/pci/pool.c
+1
-1
include/linux/pci.h
include/linux/pci.h
+0
-2
No files found.
drivers/pci/access.c
View file @
9cc268e9
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
* configuration space.
* configuration space.
*/
*/
spinlock_t
pci_lock
=
SPIN_LOCK_UNLOCKED
;
s
tatic
s
pinlock_t
pci_lock
=
SPIN_LOCK_UNLOCKED
;
/*
/*
* Wrappers for all PCI configuration access functions. They just check
* Wrappers for all PCI configuration access functions. They just check
...
@@ -60,4 +60,3 @@ EXPORT_SYMBOL(pci_bus_read_config_dword);
...
@@ -60,4 +60,3 @@ EXPORT_SYMBOL(pci_bus_read_config_dword);
EXPORT_SYMBOL
(
pci_bus_write_config_byte
);
EXPORT_SYMBOL
(
pci_bus_write_config_byte
);
EXPORT_SYMBOL
(
pci_bus_write_config_word
);
EXPORT_SYMBOL
(
pci_bus_write_config_word
);
EXPORT_SYMBOL
(
pci_bus_write_config_dword
);
EXPORT_SYMBOL
(
pci_bus_write_config_dword
);
EXPORT_SYMBOL
(
pci_lock
);
drivers/pci/pool.c
View file @
9cc268e9
...
@@ -31,7 +31,7 @@ struct pci_page { /* cacheable header for 'allocation' bytes */
...
@@ -31,7 +31,7 @@ struct pci_page { /* cacheable header for 'allocation' bytes */
#define POOL_TIMEOUT_JIFFIES ((100
/* msec */
* HZ) / 1000)
#define POOL_TIMEOUT_JIFFIES ((100
/* msec */
* HZ) / 1000)
#define POOL_POISON_BYTE 0xa7
#define POOL_POISON_BYTE 0xa7
DECLARE_MUTEX
(
pools_lock
);
static
DECLARE_MUTEX
(
pools_lock
);
static
ssize_t
static
ssize_t
show_pools
(
struct
device
*
dev
,
char
*
buf
)
show_pools
(
struct
device
*
dev
,
char
*
buf
)
...
...
include/linux/pci.h
View file @
9cc268e9
...
@@ -606,8 +606,6 @@ static inline int pci_write_config_dword(struct pci_dev *dev, int where, u32 val
...
@@ -606,8 +606,6 @@ static inline int pci_write_config_dword(struct pci_dev *dev, int where, u32 val
return
pci_bus_write_config_dword
(
dev
->
bus
,
dev
->
devfn
,
where
,
val
);
return
pci_bus_write_config_dword
(
dev
->
bus
,
dev
->
devfn
,
where
,
val
);
}
}
extern
spinlock_t
pci_lock
;
int
pci_enable_device
(
struct
pci_dev
*
dev
);
int
pci_enable_device
(
struct
pci_dev
*
dev
);
int
pci_enable_device_bars
(
struct
pci_dev
*
dev
,
int
mask
);
int
pci_enable_device_bars
(
struct
pci_dev
*
dev
,
int
mask
);
void
pci_disable_device
(
struct
pci_dev
*
dev
);
void
pci_disable_device
(
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