Skip to contentSkip to conversation

drm/nouveau: sparse fixes

PATCH In review Marcin Slusarz 2 participants 2 messages Aug 19, 2012 – Aug 20, 2012 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 6/10 drm/nouveau: sparse fixes

drivers/gpu/drm/nouveau/core/core/object.c:452:22: warning: non-ANSI function declaration of function 'nouveau_object_debug'

drivers/gpu/drm/nouveau/core/subdev/device/base.c:64:10: warning: Initializer entry defined twice
drivers/gpu/drm/nouveau/core/subdev/device/base.c:73:10: also defined here

(harmless, second init had the same value)

---
 drivers/gpu/drm/nouveau/core/core/object.c        |    2 +-
 drivers/gpu/drm/nouveau/core/subdev/device/base.c |    1 -
 2 files changed, 1 insertions(+), 2 deletions(-)
drivers/gpu/drm/nouveau/core/core/object.c +1 -1
index d94cb66..0daab62 100644
@@ -449,7 +449,7 @@ nouveau_object_dec(struct nouveau_object *object, bool suspend)
 }
 
 void
-nouveau_object_debug()
+nouveau_object_debug(void)
 {
 #ifdef NOUVEAU_OBJECT_MAGIC
 	struct nouveau_object *object;
drivers/gpu/drm/nouveau/core/subdev/device/base.c +0 -1
index d4abca7..afc6be0 100644
@@ -70,7 +70,6 @@ static const u64 disable_map[] = {
 	[NVDEV_SUBDEV_VM]	= NV_DEVICE_DISABLE_CORE,
 	[NVDEV_SUBDEV_INSTMEM]	= NV_DEVICE_DISABLE_CORE,
 	[NVDEV_SUBDEV_BAR]	= NV_DEVICE_DISABLE_CORE,
-	[NVDEV_SUBDEV_GPIO]	= NV_DEVICE_DISABLE_CORE,
 	[NVDEV_SUBDEV_VOLT]	= NV_DEVICE_DISABLE_CORE,
 	[NVDEV_SUBDEV_FAN0]	= NV_DEVICE_DISABLE_CORE,
 	[NVDEV_SUBDEV_CLOCK]	= NV_DEVICE_DISABLE_CORE,
Signature · 1 line
1.7.8.6
#2 lore raw
In reply to a message not in the archive
Quoted 4 lines · Marcin Slusarz

drivers/gpu/drm/nouveau/core/core/object.c:452:22: warning: non-ANSI function declaration of function 'nouveau_object_debug'

drivers/gpu/drm/nouveau/core/subdev/device/base.c:64:10: warning: Initializer entry defined twice
drivers/gpu/drm/nouveau/core/subdev/device/base.c:73:10: also defined here

Applied the first hunk, the second I'd already fixed in my tree.

Quoted 41 lines

(harmless, second init had the same value)

---
 drivers/gpu/drm/nouveau/core/core/object.c        |    2 +-
 drivers/gpu/drm/nouveau/core/subdev/device/base.c |    1 -
 2 files changed, 1 insertions(+), 2 deletions(-)
drivers/gpu/drm/nouveau/core/core/object.c +1 -1
index d94cb66..0daab62 100644
@@ -449,7 +449,7 @@ nouveau_object_dec(struct nouveau_object *object, bool suspend)
 }
 
 void
-nouveau_object_debug()
+nouveau_object_debug(void)
 {
 #ifdef NOUVEAU_OBJECT_MAGIC
 	struct nouveau_object *object;
drivers/gpu/drm/nouveau/core/subdev/device/base.c +0 -1
index d4abca7..afc6be0 100644
@@ -70,7 +70,6 @@ static const u64 disable_map[] = {
 	[NVDEV_SUBDEV_VM]	= NV_DEVICE_DISABLE_CORE,
 	[NVDEV_SUBDEV_INSTMEM]	= NV_DEVICE_DISABLE_CORE,
 	[NVDEV_SUBDEV_BAR]	= NV_DEVICE_DISABLE_CORE,
-	[NVDEV_SUBDEV_GPIO]	= NV_DEVICE_DISABLE_CORE,
 	[NVDEV_SUBDEV_VOLT]	= NV_DEVICE_DISABLE_CORE,
 	[NVDEV_SUBDEV_FAN0]	= NV_DEVICE_DISABLE_CORE,
 	[NVDEV_SUBDEV_CLOCK]	= NV_DEVICE_DISABLE_CORE,
Signature · 6 lines
1.7.8.6

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau