summaryrefslogtreecommitdiffstats
path: root/drivers/staging/vboxvideo/vbox_drv.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-07-19 10:36:16 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-07-28 17:05:40 -0700
commitcb67fa13c6f47b233eba0a83bbcca4ed58fe54d9 (patch)
tree9898ef740052cacc57e0aff46474a68ce125b732 /drivers/staging/vboxvideo/vbox_drv.c
parent91b313d2ce1fbcae1d1ad951a5f5ad1ee7042f26 (diff)
downloadop-kernel-dev-cb67fa13c6f47b233eba0a83bbcca4ed58fe54d9.zip
op-kernel-dev-cb67fa13c6f47b233eba0a83bbcca4ed58fe54d9.tar.gz
staging: vboxvideo: make a couple of symbols static
Module parameter vbox_modeset and structure vbox_bo_driver do not need to be in global scope and hence can be made static. Cleans up a couple of sparse warnings: symbol 'vbox_modeset' was not declared. Should it be static? symbol 'vbox_bo_driver' was not declared. Should it be static? Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Michael Thayer <michael.thayer@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vboxvideo/vbox_drv.c')
-rw-r--r--drivers/staging/vboxvideo/vbox_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vboxvideo/vbox_drv.c b/drivers/staging/vboxvideo/vbox_drv.c
index 92ae156..5d9c651 100644
--- a/drivers/staging/vboxvideo/vbox_drv.c
+++ b/drivers/staging/vboxvideo/vbox_drv.c
@@ -36,7 +36,7 @@
#include "vbox_drv.h"
-int vbox_modeset = -1;
+static int vbox_modeset = -1;
MODULE_PARM_DESC(modeset, "Disable/Enable modesetting");
module_param_named(modeset, vbox_modeset, int, 0400);
OpenPOWER on IntegriCloud