drm: nouveau: fix nouveau_debugfs_init prototype
Subsystems (3)
PATCH 1/1 drm: nouveau: fix nouveau_debugfs_init prototype
The new debugfs initialization code fails to build when CONFIG_DEBUG_FS is disabled:
In file included from /git/arm-soc/drivers/gpu/drm/nouveau/nouveau_drm.c:57:0:drivers/gpu/drm/nouveau/nouveau_debugfs.h: In function 'nouveau_debugfs_init':drivers/gpu/drm/nouveau/nouveau_debugfs.h:37:29: error: parameter name omitted
nouveau_debugfs_init(struct nouveau_drm *)
This fixes the prototypes so we can build it again.
---
This broke when the nouveau patches got merged into drm-next on Monday. Found on ARM randconfig builds.
drivers/gpu/drm/nouveau/nouveau_debugfs.h +2 -2
@@ -34,13 +34,13 @@ nouveau_drm_debugfs_cleanup(struct drm_minor *minor) }static inline int -nouveau_debugfs_init (struct nouveau_drm *) +nouveau_debugfs_init (struct nouveau_drm *drm) {return 0 ; }static inline void -nouveau_debugfs_fini (struct nouveau_drm *) +nouveau_debugfs_fini (struct nouveau_drm *drm) { }
Quoted 5 lines
Arnd Bergmann <[email protected]> hat am 13. Januar 2016 um 14:48 geschrieben:
The new debugfs initialization code fails to build when
CONFIG_DEBUG_FSis disabled:
Quoted 7 lines
In file included from /git/arm-soc/drivers/gpu/drm/nouveau/nouveau_drm.c:57:0:
drivers/gpu/drm/nouveau/nouveau_debugfs.h: In function 'nouveau_debugfs_init':drivers/gpu/drm/nouveau/nouveau_debugfs.h:37:29: error: parameter name omitted
nouveau_debugfs_init(struct nouveau_drm *)This fixes the prototypes so we can build it again.
thanks for this. I already send a patch to the nouveau ML here:
http://lists.freedesktop.org/archives/nouveau/2016-January/023779.html
but I guess I should mail to the kernel list directly next time.
Quoted 28 lines
Signed-off-by Arnd Bergmann <[email protected]>Fixes b126a200e9db ("drm/nouveau/debugfs: we need a ctrl object for debugfs")---
This broke when the nouveau patches got merged into drm-next on Monday. Found on ARM randconfig builds.drivers/gpu/drm/nouveau/nouveau_debugfs.h +2
-2@@ -34,13 +34,13 @@ nouveau_drm_debugfs_cleanup(struct drm_minor *minor) }static inline int -nouveau_debugfs_init (struct nouveau_drm *) +nouveau_debugfs_init (struct nouveau_drm *drm) {return 0 ; }static inline void -nouveau_debugfs_fini (struct nouveau_drm *) +nouveau_debugfs_fini (struct nouveau_drm *drm) { }
Quoted 10 lines · On Wednesday 13 January 2016 14:55:47 Karol Herbst wrote:
Quoted 10 lines
Arnd Bergmann <[email protected]> hat am 13. Januar 2016 um 14:48 geschrieben:
The new debugfs initialization code fails to build when
CONFIG_DEBUG_FSis disabled:In file included from /git/arm-soc/drivers/gpu/drm/nouveau/nouveau_drm.c:57:0:
drivers/gpu/drm/nouveau/nouveau_debugfs.h: In function 'nouveau_debugfs_init':drivers/gpu/drm/nouveau/nouveau_debugfs.h:37:29: error: parameter name omitted
nouveau_debugfs_init(struct nouveau_drm *)
Quoted 5 lines
Quoted 2 lines
This fixes the prototypes so we can build it again.
thanks for this. I already send a patch to the nouveau ML here:
http://lists.freedesktop.org/archives/nouveau/2016-January/023779.html
Ok, thanks
Arnd
Quoted 11 lines · Arnd Bergmann
Quoted 10 lines · On Wednesday 13 January 2016 14:55:47 Karol Herbst wrote:
Quoted 10 lines
Arnd Bergmann <[email protected]> hat am 13. Januar 2016 um 14:48 geschrieben:
The new debugfs initialization code fails to build when
CONFIG_DEBUG_FSis disabled:In file included from /git/arm-soc/drivers/gpu/drm/nouveau/nouveau_drm.c:57:0:
drivers/gpu/drm/nouveau/nouveau_debugfs.h: In function 'nouveau_debugfs_init':drivers/gpu/drm/nouveau/nouveau_debugfs.h:37:29: error: parameter name omitted
nouveau_debugfs_init(struct nouveau_drm *)
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
This fixes the prototypes so we can build it again.
thanks for this. I already send a patch to the nouveau ML here:
http://lists.freedesktop.org/archives/nouveau/2016-January/023779.htmlOk, thanks
Fwiw Arnd's fix feels a lot better - it lacks typos, has a fixes tag, comprehensive commit message etc. etc. :-)
-Emil
Quoted 25 lines
Emil Velikov <[email protected]> hat am 15. Januar 2016 um 12:06 geschrieben:
Quoted 21 lines · Arnd Bergmann
Quoted 19 lines · On Wednesday 13 January 2016 14:55:47 Karol Herbst wrote:
Quoted 14 lines
Arnd Bergmann <[email protected]> hat am 13. Januar 2016 um 14:48 geschrieben:
The new debugfs initialization code fails to build when
CONFIG_DEBUG_FSis disabled:In file included from /git/arm-soc/drivers/gpu/drm/nouveau/nouveau_drm.c:57:0:
drivers/gpu/drm/nouveau/nouveau_debugfs.h: In function 'nouveau_debugfs_init':drivers/gpu/drm/nouveau/nouveau_debugfs.h:37:29: error: parameter name omittednouveau_debugfs_init(struct nouveau_drm *)Quoted 2 lines
This fixes the prototypes so we can build it again.
thanks for this. I already send a patch to the nouveau ML here:
http://lists.freedesktop.org/archives/nouveau/2016-January/023779.html
Quoted 6 lines
Quoted 2 lines
Ok, thanks
Fwiw Arnd's fix feels a lot better - it lacks typos, has a fixes tag, comprehensive commit message etc. etc. :-)
-Emil
no worries, I am still learning after all
Karol