Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hv: rename prep_negotiate_resp() to vmbus_prep_negotiate_resp()

It's a global symbol, so properly prefix it and use the proper EXPORT
value as well.

Cc: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

+10 -11
+4 -5
drivers/hv/channel_mgmt.c
··· 114 114 115 115 116 116 /** 117 - * prep_negotiate_resp() - Create default response for Hyper-V Negotiate message 117 + * vmbus_prep_negotiate_resp() - Create default response for Hyper-V Negotiate message 118 118 * @icmsghdrp: Pointer to msg header structure 119 119 * @icmsg_negotiate: Pointer to negotiate message structure 120 120 * @buf: Raw buffer channel data ··· 128 128 * 129 129 * Mainly used by Hyper-V drivers. 130 130 */ 131 - void prep_negotiate_resp(struct icmsg_hdr *icmsghdrp, 132 - struct icmsg_negotiate *negop, 133 - u8 *buf) 131 + void vmbus_prep_negotiate_resp(struct icmsg_hdr *icmsghdrp, 132 + struct icmsg_negotiate *negop, u8 *buf) 134 133 { 135 134 if (icmsghdrp->icmsgtype == ICMSGTYPE_NEGOTIATE) { 136 135 icmsghdrp->icmsgsize = 0x10; ··· 155 156 negop->icmsg_vercnt = 1; 156 157 } 157 158 } 158 - EXPORT_SYMBOL(prep_negotiate_resp); 159 + EXPORT_SYMBOL_GPL(vmbus_prep_negotiate_resp); 159 160 160 161 /* 161 162 * alloc_channel - Allocate and initialize a vmbus channel object
+1 -1
drivers/hv/hv_kvp.c
··· 260 260 sizeof(struct vmbuspipe_hdr)]; 261 261 262 262 if (icmsghdrp->icmsgtype == ICMSGTYPE_NEGOTIATE) { 263 - prep_negotiate_resp(icmsghdrp, negop, recv_buffer); 263 + vmbus_prep_negotiate_resp(icmsghdrp, negop, recv_buffer); 264 264 } else { 265 265 kvp_msg = (struct hv_kvp_msg *)&recv_buffer[ 266 266 sizeof(struct vmbuspipe_hdr) +
+3 -3
drivers/hv/hv_util.c
··· 73 73 sizeof(struct vmbuspipe_hdr)]; 74 74 75 75 if (icmsghdrp->icmsgtype == ICMSGTYPE_NEGOTIATE) { 76 - prep_negotiate_resp(icmsghdrp, negop, shut_txf_buf); 76 + vmbus_prep_negotiate_resp(icmsghdrp, negop, shut_txf_buf); 77 77 } else { 78 78 shutdown_msg = 79 79 (struct shutdown_msg_data *)&shut_txf_buf[ ··· 198 198 sizeof(struct vmbuspipe_hdr)]; 199 199 200 200 if (icmsghdrp->icmsgtype == ICMSGTYPE_NEGOTIATE) { 201 - prep_negotiate_resp(icmsghdrp, NULL, time_txf_buf); 201 + vmbus_prep_negotiate_resp(icmsghdrp, NULL, time_txf_buf); 202 202 } else { 203 203 timedatap = (struct ictimesync_data *)&time_txf_buf[ 204 204 sizeof(struct vmbuspipe_hdr) + ··· 237 237 sizeof(struct vmbuspipe_hdr)]; 238 238 239 239 if (icmsghdrp->icmsgtype == ICMSGTYPE_NEGOTIATE) { 240 - prep_negotiate_resp(icmsghdrp, NULL, hbeat_txf_buf); 240 + vmbus_prep_negotiate_resp(icmsghdrp, NULL, hbeat_txf_buf); 241 241 } else { 242 242 heartbeat_msg = 243 243 (struct heartbeat_msg_data *)&hbeat_txf_buf[
+2 -2
include/linux/hyperv.h
··· 960 960 void (*callback) (void *context); 961 961 }; 962 962 963 - extern void prep_negotiate_resp(struct icmsg_hdr *, 964 - struct icmsg_negotiate *, u8 *); 963 + extern void vmbus_prep_negotiate_resp(struct icmsg_hdr *, 964 + struct icmsg_negotiate *, u8 *); 965 965 966 966 #endif /* _HYPERV_H */