summaryrefslogtreecommitdiffstats
path: root/drivers/staging/unisys/visorbus/visorchipset.c
diff options
context:
space:
mode:
authorDavid Kershner2016-09-19 23:09:23 +0200
committerGreg Kroah-Hartman2016-09-20 13:26:20 +0200
commit8a2853279b3316558d4a5a34b06b6890ebc65613 (patch)
treed06b62b278bf083d2560b9a200ecfc9c8fa05f61 /drivers/staging/unisys/visorbus/visorchipset.c
parentstaging: unisys: visorbus: move handle_command (diff)
downloadkernel-qcow2-linux-8a2853279b3316558d4a5a34b06b6890ebc65613.tar.gz
kernel-qcow2-linux-8a2853279b3316558d4a5a34b06b6890ebc65613.tar.xz
kernel-qcow2-linux-8a2853279b3316558d4a5a34b06b6890ebc65613.zip
staging: unisys: visorbus: move read_controlvm_event
The function read_controlvm_event needs to be moved lower in the file to avoid extraneous function prototypes. Reported-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: David Kershner <david.kershner@unisys.com> Reviewed-by: Tim Sell <Timothy.Sell@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/unisys/visorbus/visorchipset.c')
-rw-r--r--drivers/staging/unisys/visorbus/visorchipset.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/drivers/staging/unisys/visorbus/visorchipset.c b/drivers/staging/unisys/visorbus/visorchipset.c
index 168d42fca939..d8e58266c4f9 100644
--- a/drivers/staging/unisys/visorbus/visorchipset.c
+++ b/drivers/staging/unisys/visorbus/visorchipset.c
@@ -1357,27 +1357,6 @@ chipset_notready(struct controlvm_message_header *msg_hdr)
controlvm_respond(msg_hdr, rc);
}
-/**
- * read_controlvm_event() - retreives the next message from the
- * CONTROLVM_QUEUE_EVENT queue in the controlvm
- * channel
- * @msg: pointer to the retrieved message
- *
- * Return: true if a valid message was retrieved or false otherwise
- */
-static bool
-read_controlvm_event(struct controlvm_message *msg)
-{
- if (visorchannel_signalremove(controlvm_channel,
- CONTROLVM_QUEUE_EVENT, msg)) {
- /* got a message */
- if (msg->hdr.flags.test_message == 1)
- return false;
- return true;
- }
- return false;
-}
-
/*
* The general parahotplug flow works as follows. The visorchipset
* driver receives a DEVICE_CHANGESTATE message from Command
@@ -2091,6 +2070,27 @@ handle_command(struct controlvm_message inmsg, u64 channel_addr)
return true;
}
+/**
+ * read_controlvm_event() - retreives the next message from the
+ * CONTROLVM_QUEUE_EVENT queue in the controlvm
+ * channel
+ * @msg: pointer to the retrieved message
+ *
+ * Return: true if a valid message was retrieved or false otherwise
+ */
+static bool
+read_controlvm_event(struct controlvm_message *msg)
+{
+ if (visorchannel_signalremove(controlvm_channel,
+ CONTROLVM_QUEUE_EVENT, msg)) {
+ /* got a message */
+ if (msg->hdr.flags.test_message == 1)
+ return false;
+ return true;
+ }
+ return false;
+}
+
static void
controlvm_periodic_work(struct work_struct *work)
{