Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
Linux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
E-EXK4 - Operating System Group
projects
Linux
Commits
5fdf1e67
Commit
5fdf1e67
authored
17 years ago
by
Mark Fasheh
Browse files
Options
Downloads
Patches
Plain Diff
ocfs2: fix sparse warnings in fs/ocfs2/cluster
Signed-off-by:
Mark Fasheh
<
mark.fasheh@oracle.com
>
parent
a7d25539
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
fs/ocfs2/cluster/heartbeat.c
+1
-1
1 addition, 1 deletion
fs/ocfs2/cluster/heartbeat.c
fs/ocfs2/cluster/tcp.c
+5
-5
5 additions, 5 deletions
fs/ocfs2/cluster/tcp.c
with
6 additions
and
6 deletions
fs/ocfs2/cluster/heartbeat.c
+
1
−
1
View file @
5fdf1e67
...
@@ -438,7 +438,7 @@ static inline void o2hb_prepare_block(struct o2hb_region *reg,
...
@@ -438,7 +438,7 @@ static inline void o2hb_prepare_block(struct o2hb_region *reg,
hb_block
));
hb_block
));
mlog
(
ML_HB_BIO
,
"our node generation = 0x%llx, cksum = 0x%x
\n
"
,
mlog
(
ML_HB_BIO
,
"our node generation = 0x%llx, cksum = 0x%x
\n
"
,
(
long
long
)
cpu_to_le64
(
generation
)
,
(
long
long
)
generation
,
le32_to_cpu
(
hb_block
->
hb_cksum
));
le32_to_cpu
(
hb_block
->
hb_cksum
));
}
}
...
...
This diff is collapsed.
Click to expand it.
fs/ocfs2/cluster/tcp.c
+
5
−
5
View file @
5fdf1e67
...
@@ -1496,7 +1496,7 @@ static void o2net_start_connect(struct work_struct *work)
...
@@ -1496,7 +1496,7 @@ static void o2net_start_connect(struct work_struct *work)
sock
->
sk
->
sk_allocation
=
GFP_ATOMIC
;
sock
->
sk
->
sk_allocation
=
GFP_ATOMIC
;
myaddr
.
sin_family
=
AF_INET
;
myaddr
.
sin_family
=
AF_INET
;
myaddr
.
sin_addr
.
s_addr
=
(
__force
u32
)
mynode
->
nd_ipv4_address
;
myaddr
.
sin_addr
.
s_addr
=
mynode
->
nd_ipv4_address
;
myaddr
.
sin_port
=
(
__force
u16
)
htons
(
0
);
/* any port */
myaddr
.
sin_port
=
(
__force
u16
)
htons
(
0
);
/* any port */
ret
=
sock
->
ops
->
bind
(
sock
,
(
struct
sockaddr
*
)
&
myaddr
,
ret
=
sock
->
ops
->
bind
(
sock
,
(
struct
sockaddr
*
)
&
myaddr
,
...
@@ -1521,8 +1521,8 @@ static void o2net_start_connect(struct work_struct *work)
...
@@ -1521,8 +1521,8 @@ static void o2net_start_connect(struct work_struct *work)
spin_unlock
(
&
nn
->
nn_lock
);
spin_unlock
(
&
nn
->
nn_lock
);
remoteaddr
.
sin_family
=
AF_INET
;
remoteaddr
.
sin_family
=
AF_INET
;
remoteaddr
.
sin_addr
.
s_addr
=
(
__force
u32
)
node
->
nd_ipv4_address
;
remoteaddr
.
sin_addr
.
s_addr
=
node
->
nd_ipv4_address
;
remoteaddr
.
sin_port
=
(
__force
u16
)
node
->
nd_ipv4_port
;
remoteaddr
.
sin_port
=
node
->
nd_ipv4_port
;
ret
=
sc
->
sc_sock
->
ops
->
connect
(
sc
->
sc_sock
,
ret
=
sc
->
sc_sock
->
ops
->
connect
(
sc
->
sc_sock
,
(
struct
sockaddr
*
)
&
remoteaddr
,
(
struct
sockaddr
*
)
&
remoteaddr
,
...
@@ -1810,8 +1810,8 @@ static int o2net_open_listening_sock(__be32 addr, __be16 port)
...
@@ -1810,8 +1810,8 @@ static int o2net_open_listening_sock(__be32 addr, __be16 port)
int
ret
;
int
ret
;
struct
sockaddr_in
sin
=
{
struct
sockaddr_in
sin
=
{
.
sin_family
=
PF_INET
,
.
sin_family
=
PF_INET
,
.
sin_addr
=
{
.
s_addr
=
(
__force
u32
)
addr
},
.
sin_addr
=
{
.
s_addr
=
addr
},
.
sin_port
=
(
__force
u16
)
port
,
.
sin_port
=
port
,
};
};
ret
=
sock_create
(
PF_INET
,
SOCK_STREAM
,
IPPROTO_TCP
,
&
sock
);
ret
=
sock_create
(
PF_INET
,
SOCK_STREAM
,
IPPROTO_TCP
,
&
sock
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment