diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2011-04-08 11:04:15 -0400 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2011-05-10 16:03:45 -0400 |
commit | 92138d1f254d58b818e7c3b91a1967cf57d374b5 (patch) | |
tree | 1ed9e3801d403698aa3402d10522fb9adcae5b35 /net/tipc | |
parent | 19f53d2cef97506364638c647a3aa11291819896 (diff) |
tipc: Cosmetic consolidation of internal message type definitions
Half of the #define entries in msg.h were down at the bottom
of the header, instead of up at the top before any of the static
inlines etc. Relocate them up to the top, to be consistent with
the other normal linux header file layout conventions.
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'net/tipc')
-rw-r--r-- | net/tipc/msg.h | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/net/tipc/msg.h b/net/tipc/msg.h index c5593ac3da94..005b318fd328 100644 --- a/net/tipc/msg.h +++ b/net/tipc/msg.h | |||
@@ -491,6 +491,35 @@ static inline struct tipc_msg *msg_get_wrapped(struct tipc_msg *m) | |||
491 | #define PUBLICATION 0 | 491 | #define PUBLICATION 0 |
492 | #define WITHDRAWAL 1 | 492 | #define WITHDRAWAL 1 |
493 | 493 | ||
494 | /* | ||
495 | * Segmentation message types | ||
496 | */ | ||
497 | |||
498 | #define FIRST_FRAGMENT 0 | ||
499 | #define FRAGMENT 1 | ||
500 | #define LAST_FRAGMENT 2 | ||
501 | |||
502 | /* | ||
503 | * Link management protocol message types | ||
504 | */ | ||
505 | |||
506 | #define STATE_MSG 0 | ||
507 | #define RESET_MSG 1 | ||
508 | #define ACTIVATE_MSG 2 | ||
509 | |||
510 | /* | ||
511 | * Changeover tunnel message types | ||
512 | */ | ||
513 | #define DUPLICATE_MSG 0 | ||
514 | #define ORIGINAL_MSG 1 | ||
515 | |||
516 | /* | ||
517 | * Config protocol message types | ||
518 | */ | ||
519 | |||
520 | #define DSC_REQ_MSG 0 | ||
521 | #define DSC_RESP_MSG 1 | ||
522 | |||
494 | 523 | ||
495 | /* | 524 | /* |
496 | * Word 1 | 525 | * Word 1 |
@@ -718,35 +747,6 @@ static inline void msg_set_link_tolerance(struct tipc_msg *m, u32 n) | |||
718 | msg_set_bits(m, 9, 0, 0xffff, n); | 747 | msg_set_bits(m, 9, 0, 0xffff, n); |
719 | } | 748 | } |
720 | 749 | ||
721 | /* | ||
722 | * Segmentation message types | ||
723 | */ | ||
724 | |||
725 | #define FIRST_FRAGMENT 0 | ||
726 | #define FRAGMENT 1 | ||
727 | #define LAST_FRAGMENT 2 | ||
728 | |||
729 | /* | ||
730 | * Link management protocol message types | ||
731 | */ | ||
732 | |||
733 | #define STATE_MSG 0 | ||
734 | #define RESET_MSG 1 | ||
735 | #define ACTIVATE_MSG 2 | ||
736 | |||
737 | /* | ||
738 | * Changeover tunnel message types | ||
739 | */ | ||
740 | #define DUPLICATE_MSG 0 | ||
741 | #define ORIGINAL_MSG 1 | ||
742 | |||
743 | /* | ||
744 | * Config protocol message types | ||
745 | */ | ||
746 | |||
747 | #define DSC_REQ_MSG 0 | ||
748 | #define DSC_RESP_MSG 1 | ||
749 | |||
750 | u32 tipc_msg_tot_importance(struct tipc_msg *m); | 750 | u32 tipc_msg_tot_importance(struct tipc_msg *m); |
751 | void tipc_msg_init(struct tipc_msg *m, u32 user, u32 type, | 751 | void tipc_msg_init(struct tipc_msg *m, u32 user, u32 type, |
752 | u32 hsize, u32 destnode); | 752 | u32 hsize, u32 destnode); |