Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 84622
b: refs/heads/master
c: aa7738a
h: refs/heads/master
v: v3
  • Loading branch information
Heiko Carstens authored and Linus Torvalds committed Feb 8, 2008
1 parent da73a5f commit 579c292
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d94afc6ccf6690b30ae112ec8101b3f10d50114e
refs/heads/master: aa7738a5f503abea5445cdd8cc2d501502c748ae
6 changes: 6 additions & 0 deletions trunk/include/asm-generic/termios.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,14 @@ static inline int kernel_termios_to_user_termio(struct termio __user *termio,
return 0;
}

#ifndef user_termios_to_kernel_termios
#define user_termios_to_kernel_termios(k, u) copy_from_user(k, u, sizeof(struct termios))
#endif

#ifndef kernel_termios_to_user_termios
#define kernel_termios_to_user_termios(u, k) copy_to_user(u, k, sizeof(struct termios))
#endif

#define user_termios_to_kernel_termios_1(k, u) copy_from_user(k, u, sizeof(struct termios))
#define kernel_termios_to_user_termios_1(u, k) copy_to_user(u, k, sizeof(struct termios))

Expand Down

0 comments on commit 579c292

Please sign in to comment.