diff options
Diffstat (limited to 'net/tipc/msg.h')
-rw-r--r-- | net/tipc/msg.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/net/tipc/msg.h b/net/tipc/msg.h index 7ee6ae238147..fbcd46f24a9d 100644 --- a/net/tipc/msg.h +++ b/net/tipc/msg.h | |||
@@ -708,7 +708,7 @@ static inline void msg_set_dataoctet(struct tipc_msg *m, u32 pos) | |||
708 | #define DSC_REQ_MSG 0 | 708 | #define DSC_REQ_MSG 0 |
709 | #define DSC_RESP_MSG 1 | 709 | #define DSC_RESP_MSG 1 |
710 | 710 | ||
711 | static inline u32 msg_tot_importance(struct tipc_msg *m) | 711 | static inline u32 tipc_msg_tot_importance(struct tipc_msg *m) |
712 | { | 712 | { |
713 | if (likely(msg_isdata(m))) { | 713 | if (likely(msg_isdata(m))) { |
714 | if (likely(msg_orignode(m) == tipc_own_addr)) | 714 | if (likely(msg_orignode(m) == tipc_own_addr)) |
@@ -722,7 +722,7 @@ static inline u32 msg_tot_importance(struct tipc_msg *m) | |||
722 | } | 722 | } |
723 | 723 | ||
724 | 724 | ||
725 | static inline void msg_init(struct tipc_msg *m, u32 user, u32 type, | 725 | static inline void tipc_msg_init(struct tipc_msg *m, u32 user, u32 type, |
726 | u32 hsize, u32 destnode) | 726 | u32 hsize, u32 destnode) |
727 | { | 727 | { |
728 | memset(m, 0, hsize); | 728 | memset(m, 0, hsize); |
@@ -739,10 +739,10 @@ static inline void msg_init(struct tipc_msg *m, u32 user, u32 type, | |||
739 | } | 739 | } |
740 | 740 | ||
741 | /** | 741 | /** |
742 | * msg_calc_data_size - determine total data size for message | 742 | * tipc_msg_calc_data_size - determine total data size for message |
743 | */ | 743 | */ |
744 | 744 | ||
745 | static inline int msg_calc_data_size(struct iovec const *msg_sect, u32 num_sect) | 745 | static inline int tipc_msg_calc_data_size(struct iovec const *msg_sect, u32 num_sect) |
746 | { | 746 | { |
747 | int dsz = 0; | 747 | int dsz = 0; |
748 | int i; | 748 | int i; |
@@ -753,20 +753,20 @@ static inline int msg_calc_data_size(struct iovec const *msg_sect, u32 num_sect) | |||
753 | } | 753 | } |
754 | 754 | ||
755 | /** | 755 | /** |
756 | * msg_build - create message using specified header and data | 756 | * tipc_msg_build - create message using specified header and data |
757 | * | 757 | * |
758 | * Note: Caller must not hold any locks in case copy_from_user() is interrupted! | 758 | * Note: Caller must not hold any locks in case copy_from_user() is interrupted! |
759 | * | 759 | * |
760 | * Returns message data size or errno | 760 | * Returns message data size or errno |
761 | */ | 761 | */ |
762 | 762 | ||
763 | static inline int msg_build(struct tipc_msg *hdr, | 763 | static inline int tipc_msg_build(struct tipc_msg *hdr, |
764 | struct iovec const *msg_sect, u32 num_sect, | 764 | struct iovec const *msg_sect, u32 num_sect, |
765 | int max_size, int usrmem, struct sk_buff** buf) | 765 | int max_size, int usrmem, struct sk_buff** buf) |
766 | { | 766 | { |
767 | int dsz, sz, hsz, pos, res, cnt; | 767 | int dsz, sz, hsz, pos, res, cnt; |
768 | 768 | ||
769 | dsz = msg_calc_data_size(msg_sect, num_sect); | 769 | dsz = tipc_msg_calc_data_size(msg_sect, num_sect); |
770 | if (unlikely(dsz > TIPC_MAX_USER_MSG_SIZE)) { | 770 | if (unlikely(dsz > TIPC_MAX_USER_MSG_SIZE)) { |
771 | *buf = NULL; | 771 | *buf = NULL; |
772 | return -EINVAL; | 772 | return -EINVAL; |