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
1da97f83
Commit
1da97f83
authored
Sep 12, 2007
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BLUETOOTH]: Fix non-COMPAT build of hci_sock.c
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
577107e8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
net/bluetooth/hci_sock.c
net/bluetooth/hci_sock.c
+4
-3
No files found.
net/bluetooth/hci_sock.c
View file @
1da97f83
...
...
@@ -348,16 +348,17 @@ static inline void hci_sock_cmsg(struct sock *sk, struct msghdr *msg, struct sk_
skb_get_timestamp
(
skb
,
&
tv
);
data
=
&
tv
;
len
=
sizeof
(
tv
);
#ifdef CONFIG_COMPAT
if
(
msg
->
msg_flags
&
MSG_CMSG_COMPAT
)
{
struct
compat_timeval
ctv
;
ctv
.
tv_sec
=
tv
.
tv_sec
;
ctv
.
tv_usec
=
tv
.
tv_usec
;
data
=
&
ctv
;
len
=
sizeof
(
ctv
);
}
else
{
data
=
&
tv
;
len
=
sizeof
(
tv
);
}
#endif
put_cmsg
(
msg
,
SOL_HCI
,
HCI_CMSG_TSTAMP
,
len
,
data
);
}
...
...
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