drm: Silence sparse warnings
Subsystems (3)
PATCH 1/1 drm: Silence sparse warnings
From: Ville Syrjälä <[email protected]>
../drivers/gpu/drm/drm_vm.c:405:6: warning: symbol 'drm_vm_open_locked' was not declared. Should it be static? ../drivers/gpu/drm/drm_vm.c:431:6: warning: symbol 'drm_vm_close_locked' was not declared. Should it be static? ../drivers/gpu/drm/drm_vm.c:681:5: warning: symbol 'drm_vma_info' was not declared. Should it be static?
../drivers/gpu/drm/drm_pci.c:146:5: warning: symbol 'drm_pci_set_unique' was not declared. Should it be static? ../drivers/gpu/drm/drm_pci.c:216:5: warning: symbol 'drm_irq_by_busid' was not declared. Should it be static?
../drivers/gpu/drm/drm_info.c:47:5: warning: symbol 'drm_name_info' was not declared. Should it be static? ../drivers/gpu/drm/drm_info.c:72:5: warning: symbol 'drm_vm_info' was not declared. Should it be static? ../drivers/gpu/drm/drm_info.c:116:5: warning: symbol 'drm_bufs_info' was not declared. Should it be static? ../drivers/gpu/drm/drm_info.c:159:5: warning: symbol 'drm_clients_info' was not declared. Should it be static? ../drivers/gpu/drm/drm_info.c:209:5: warning: symbol 'drm_gem_name_info' was not declared. Should it be static?
../drivers/gpu/drm/drm_ioc32.c:1019:20: warning: symbol 'drm_compat_ioctls' was not declared. Should it be static?
../drivers/gpu/drm/drm_bridge.c:52:12: warning: function 'drm_bridge_attach' with external linkage has definition
--- drivers/gpu/drm/drm_bridge.c | 2 +- drivers/gpu/drm/drm_info.c | 1 + drivers/gpu/drm/drm_ioc32.c | 2 +- drivers/gpu/drm/drm_pci.c | 1 + drivers/gpu/drm/drm_vm.c | 1 + 5 files changed, 5 insertions(+), 2 deletions(-)
drivers/gpu/drm/drm_bridge.c +1 -1
@@ -49,7 +49,7 @@ void drm_bridge_remove(struct drm_bridge *bridge) }EXPORT_SYMBOL (drm_bridge_remove); -extern int drm_bridge_attach (struct drm_device *dev,struct drm_bridge *bridge) +int drm_bridge_attach (struct drm_device *dev,struct drm_bridge *bridge) {if (!dev || !bridge)return -EINVAL ;
drivers/gpu/drm/drm_info.c +1 -0
@@ -37,6 +37,7 @@#include <drm/drmP.h> #include <drm/drm_gem.h> +#include "drm_internal.h" #include "drm_legacy.h" /**
drivers/gpu/drm/drm_ioc32.c +1 -1
@@ -1016,7 +1016,7 @@ static int compat_drm_wait_vblank(struct file *file, unsigned int cmd,return 0 ; } -drm_ioctl_compat_t *drm_compat_ioctls[] = { +static drm_ioctl_compat_t *drm_compat_ioctls[] = { [DRM_IOCTL_NR (DRM_IOCTL_VERSION32 )] = compat_drm_version, [DRM_IOCTL_NR (DRM_IOCTL_GET_UNIQUE32 )] = compat_drm_getunique, [DRM_IOCTL_NR (DRM_IOCTL_GET_MAP32 )] = compat_drm_getmap,
drivers/gpu/drm/drm_pci.c +1 -0
@@ -27,6 +27,7 @@#include <linux/dma-mapping.h> #include <linux/export.h> #include <drm/drmP.h> +#include "drm_internal.h" #include "drm_legacy.h" /**
drivers/gpu/drm/drm_vm.c +1 -0
@@ -41,6 +41,7 @@#include <linux/slab.h> #endif #include <asm/pgtable.h> +#include "drm_internal.h" #include "drm_legacy.h" struct drm_vma_entry {
Signature · 6 lines
2.0.5 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Daniel Vetter
AppliedQuoted 15 lines · On Fri, Mar 13, 2015 at 02:51:25PM +0200, [email protected] wrote:
From: Ville Syrjälä <[email protected]>
../drivers/gpu/drm/drm_vm.c:405:6: warning: symbol 'drm_vm_open_locked' was not declared. Should it be static?../drivers/gpu/drm/drm_vm.c:431:6: warning: symbol 'drm_vm_close_locked' was not declared. Should it be static?../drivers/gpu/drm/drm_vm.c:681:5: warning: symbol 'drm_vma_info' was not declared. Should it be static?
../drivers/gpu/drm/drm_pci.c:146:5: warning: symbol 'drm_pci_set_unique' was not declared. Should it be static?../drivers/gpu/drm/drm_pci.c:216:5: warning: symbol 'drm_irq_by_busid' was not declared. Should it be static?
../drivers/gpu/drm/drm_info.c:47:5: warning: symbol 'drm_name_info' was not declared. Should it be static?../drivers/gpu/drm/drm_info.c:72:5: warning: symbol 'drm_vm_info' was not declared. Should it be static?../drivers/gpu/drm/drm_info.c:116:5: warning: symbol 'drm_bufs_info' was not declared. Should it be static?../drivers/gpu/drm/drm_info.c:159:5: warning: symbol 'drm_clients_info' was not declared. Should it be static?../drivers/gpu/drm/drm_info.c:209:5: warning: symbol 'drm_gem_name_info' was not declared. Should it be static?
Quoted 5 lines
../drivers/gpu/drm/drm_ioc32.c:1019:20: warning: symbol 'drm_compat_ioctls' was not declared. Should it be static?
../drivers/gpu/drm/drm_bridge.c:52:12: warning: function 'drm_bridge_attach' with external linkage has definitionSigned-off-by Ville Syrjälä <[email protected]>
Applied to drm-misc, thanks.
-Daniel
Quoted 77 lines
--- drivers/gpu/drm/drm_bridge.c | 2 +- drivers/gpu/drm/drm_info.c | 1 + drivers/gpu/drm/drm_ioc32.c | 2 +- drivers/gpu/drm/drm_pci.c | 1 + drivers/gpu/drm/drm_vm.c | 1 + 5 files changed, 5 insertions(+), 2 deletions(-)drivers/gpu/drm/drm_bridge.c +1
-1@@ -49,7 +49,7 @@ void drm_bridge_remove(struct drm_bridge *bridge) }EXPORT_SYMBOL (drm_bridge_remove); -extern int drm_bridge_attach (struct drm_device *dev,struct drm_bridge *bridge) +int drm_bridge_attach (struct drm_device *dev,struct drm_bridge *bridge) {if (!dev || !bridge)return -EINVAL ;drivers/gpu/drm/drm_info.c +1
-0@@ -37,6 +37,7 @@#include <drm/drmP.h> #include <drm/drm_gem.h> +#include "drm_internal.h" #include "drm_legacy.h" /** drivers/gpu/drm/drm_ioc32.c +1
-1@@ -1016,7 +1016,7 @@ static int compat_drm_wait_vblank(struct file *file, unsigned int cmd,return 0 ; } -drm_ioctl_compat_t *drm_compat_ioctls[] = { +static drm_ioctl_compat_t *drm_compat_ioctls[] = { [DRM_IOCTL_NR (DRM_IOCTL_VERSION32 )] = compat_drm_version, [DRM_IOCTL_NR (DRM_IOCTL_GET_UNIQUE32 )] = compat_drm_getunique, [DRM_IOCTL_NR (DRM_IOCTL_GET_MAP32 )] = compat_drm_getmap,drivers/gpu/drm/drm_pci.c +1
-0@@ -27,6 +27,7 @@#include <linux/dma-mapping.h> #include <linux/export.h> #include <drm/drmP.h> +#include "drm_internal.h" #include "drm_legacy.h" /** drivers/gpu/drm/drm_vm.c +1
-0@@ -41,6 +41,7 @@#include <linux/slab.h> #endif #include <asm/pgtable.h> +#include "drm_internal.h" #include "drm_legacy.h" struct drm_vma_entry {Signature · 6 lines
2.0.5 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel