Skip to content

Commit da0e963

Browse files
committed
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>
1 parent 407dd16 commit da0e963

4 files changed

Lines changed: 10 additions & 11 deletions

File tree

‎drivers/hv/channel_mgmt.c‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ static const uuid_le
114114

115115

116116
/**
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
118118
* @icmsghdrp: Pointer to msg header structure
119119
* @icmsg_negotiate: Pointer to negotiate message structure
120120
* @buf: Raw buffer channel data
@@ -128,9 +128,8 @@ static const uuid_le
128128
*
129129
* Mainly used by Hyper-V drivers.
130130
*/
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)
134133
{
135134
if (icmsghdrp->icmsgtype == ICMSGTYPE_NEGOTIATE) {
136135
icmsghdrp->icmsgsize = 0x10;
@@ -156,7 +155,7 @@ void prep_negotiate_resp(struct icmsg_hdr *icmsghdrp,
156155
negop->icmsg_vercnt = 1;
157156
}
158157
}
159-
EXPORT_SYMBOL(prep_negotiate_resp);
158+
EXPORT_SYMBOL_GPL(vmbus_prep_negotiate_resp);
160159

161160
/*
162161
* alloc_channel - Allocate and initialize a vmbus channel object

‎drivers/hv/hv_kvp.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ void hv_kvp_onchannelcallback(void *context)
260260
sizeof(struct vmbuspipe_hdr)];
261261

262262
if (icmsghdrp->icmsgtype == ICMSGTYPE_NEGOTIATE) {
263-
prep_negotiate_resp(icmsghdrp, negop, recv_buffer);
263+
vmbus_prep_negotiate_resp(icmsghdrp, negop, recv_buffer);
264264
} else {
265265
kvp_msg = (struct hv_kvp_msg *)&recv_buffer[
266266
sizeof(struct vmbuspipe_hdr) +

‎drivers/hv/hv_util.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ static void shutdown_onchannelcallback(void *context)
7373
sizeof(struct vmbuspipe_hdr)];
7474

7575
if (icmsghdrp->icmsgtype == ICMSGTYPE_NEGOTIATE) {
76-
prep_negotiate_resp(icmsghdrp, negop, shut_txf_buf);
76+
vmbus_prep_negotiate_resp(icmsghdrp, negop, shut_txf_buf);
7777
} else {
7878
shutdown_msg =
7979
(struct shutdown_msg_data *)&shut_txf_buf[
@@ -198,7 +198,7 @@ static void timesync_onchannelcallback(void *context)
198198
sizeof(struct vmbuspipe_hdr)];
199199

200200
if (icmsghdrp->icmsgtype == ICMSGTYPE_NEGOTIATE) {
201-
prep_negotiate_resp(icmsghdrp, NULL, time_txf_buf);
201+
vmbus_prep_negotiate_resp(icmsghdrp, NULL, time_txf_buf);
202202
} else {
203203
timedatap = (struct ictimesync_data *)&time_txf_buf[
204204
sizeof(struct vmbuspipe_hdr) +
@@ -237,7 +237,7 @@ static void heartbeat_onchannelcallback(void *context)
237237
sizeof(struct vmbuspipe_hdr)];
238238

239239
if (icmsghdrp->icmsgtype == ICMSGTYPE_NEGOTIATE) {
240-
prep_negotiate_resp(icmsghdrp, NULL, hbeat_txf_buf);
240+
vmbus_prep_negotiate_resp(icmsghdrp, NULL, hbeat_txf_buf);
241241
} else {
242242
heartbeat_msg =
243243
(struct heartbeat_msg_data *)&hbeat_txf_buf[

‎include/linux/hyperv.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ struct hyperv_service_callback {
960960
void (*callback) (void *context);
961961
};
962962

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 *);
965965

966966
#endif /* _HYPERV_H */

0 commit comments

Comments
 (0)