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

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>

authored by

Colin Ian King and committed by
Greg Kroah-Hartman
cb67fa13 91b313d2

+2 -2
+1 -1
drivers/staging/vboxvideo/vbox_drv.c
··· 36 36 37 37 #include "vbox_drv.h" 38 38 39 - int vbox_modeset = -1; 39 + static int vbox_modeset = -1; 40 40 41 41 MODULE_PARM_DESC(modeset, "Disable/Enable modesetting"); 42 42 module_param_named(modeset, vbox_modeset, int, 0400);
+1 -1
drivers/staging/vboxvideo/vbox_ttm.c
··· 230 230 ttm_pool_unpopulate(ttm); 231 231 } 232 232 233 - struct ttm_bo_driver vbox_bo_driver = { 233 + static struct ttm_bo_driver vbox_bo_driver = { 234 234 .ttm_tt_create = vbox_ttm_tt_create, 235 235 .ttm_tt_populate = vbox_ttm_tt_populate, 236 236 .ttm_tt_unpopulate = vbox_ttm_tt_unpopulate,