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
abe3afac
Commit
abe3afac
authored
Apr 16, 2012
by
Roland Dreier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RDMA/ocrdma: Make needlessly global functions/structs static
Signed-off-by:
Roland Dreier
<
roland@purestorage.com
>
parent
da496438
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
drivers/infiniband/hw/ocrdma/ocrdma_hw.c
drivers/infiniband/hw/ocrdma/ocrdma_hw.c
+6
-6
drivers/infiniband/hw/ocrdma/ocrdma_main.c
drivers/infiniband/hw/ocrdma/ocrdma_main.c
+3
-3
No files found.
drivers/infiniband/hw/ocrdma/ocrdma_hw.c
View file @
abe3afac
...
...
@@ -159,7 +159,7 @@ enum ib_qp_state get_ibqp_state(enum ocrdma_qp_state qps)
return
IB_QPS_ERR
;
}
enum
ocrdma_qp_state
get_ocrdma_qp_state
(
enum
ib_qp_state
qps
)
static
enum
ocrdma_qp_state
get_ocrdma_qp_state
(
enum
ib_qp_state
qps
)
{
switch
(
qps
)
{
case
IB_QPS_RESET
:
...
...
@@ -384,7 +384,7 @@ static void ocrdma_free_eq_vect_gen2(struct ocrdma_dev *dev)
dev
->
nic_info
.
msix
.
start_vector
-=
1
;
}
int
ocrdma_mbx_delete_q
(
struct
ocrdma_dev
*
dev
,
struct
ocrdma_queue_info
*
q
,
static
int
ocrdma_mbx_delete_q
(
struct
ocrdma_dev
*
dev
,
struct
ocrdma_queue_info
*
q
,
int
queue_type
)
{
u8
opcode
=
0
;
...
...
@@ -516,7 +516,7 @@ static void ocrdma_destroy_qp_eqs(struct ocrdma_dev *dev)
ocrdma_destroy_eq
(
dev
,
&
dev
->
qp_eq_tbl
[
i
]);
}
int
ocrdma_mbx_mq_cq_create
(
struct
ocrdma_dev
*
dev
,
static
int
ocrdma_mbx_mq_cq_create
(
struct
ocrdma_dev
*
dev
,
struct
ocrdma_queue_info
*
cq
,
struct
ocrdma_queue_info
*
eq
)
{
...
...
drivers/infiniband/hw/ocrdma/ocrdma_main.c
View file @
abe3afac
...
...
@@ -58,7 +58,7 @@ static struct notifier_block ocrdma_inet6addr_notifier = {
.
notifier_call
=
ocrdma_inet6addr_event
};
int
ocrdma_get_instance
(
void
)
static
int
ocrdma_get_instance
(
void
)
{
int
instance
=
0
;
...
...
@@ -265,7 +265,7 @@ static enum rdma_link_layer ocrdma_link_layer(struct ib_device *device,
return
IB_LINK_LAYER_ETHERNET
;
}
int
ocrdma_register_device
(
struct
ocrdma_dev
*
dev
)
static
int
ocrdma_register_device
(
struct
ocrdma_dev
*
dev
)
{
strlcpy
(
dev
->
ibdev
.
name
,
"ocrdma%d"
,
IB_DEVICE_NAME_MAX
);
ocrdma_get_guid
(
dev
,
(
u8
*
)
&
dev
->
ibdev
.
node_guid
);
...
...
@@ -528,7 +528,7 @@ static void ocrdma_event_handler(struct ocrdma_dev *dev, u32 event)
};
}
struct
ocrdma_driver
ocrdma_drv
=
{
st
atic
st
ruct
ocrdma_driver
ocrdma_drv
=
{
.
name
=
"ocrdma_driver"
,
.
add
=
ocrdma_add
,
.
remove
=
ocrdma_remove
,
...
...
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