DriverDev-Devel Archive on lore.kernel.org
 help / color / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: devel@driverdev.osuosl.org, kbuild-all@lists.01.org
Subject: [driver-core:debugfs_cleanup 2/6] drivers/gpu/drm/drm_gem_vram_helper.c:1043:6: error: void value not ignored as it ought to be
Date: Wed, 4 Dec 2019 22:46:17 +0800
Message-ID: <201912042213.rjxY4c81%lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 8446 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git debugfs_cleanup
head:   d33387c085c2d53e86b2430ddf2861d48b573383
commit: 269c69a016f0c493a9932ea4bbc31bce4d64b059 [2/6] drm: make .debugfs_init and drm_debugfs_create_files() return void
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 7.5.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 269c69a016f0c493a9932ea4bbc31bce4d64b059
        # save the attached .config to linux build tree
        GCC_VERSION=7.5.0 make.cross ARCH=xtensa 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   drivers/gpu/drm/drm_gem_vram_helper.c: In function 'drm_vram_mm_debugfs_init':
>> drivers/gpu/drm/drm_gem_vram_helper.c:1043:6: error: void value not ignored as it ought to be
     ret = drm_debugfs_create_files(drm_vram_mm_debugfs_list,
         ^
--
   In file included from drivers/gpu/drm/ast/ast_drv.c:35:0:
>> include/drm/drm_gem_vram_helper.h:160:30: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
     .debugfs_init             = drm_vram_mm_debugfs_init, \
                                 ^
   drivers/gpu/drm/ast/ast_drv.c:219:2: note: in expansion of macro 'DRM_GEM_VRAM_DRIVER'
     DRM_GEM_VRAM_DRIVER
     ^~~~~~~~~~~~~~~~~~~
   include/drm/drm_gem_vram_helper.h:160:30: note: (near initialization for 'driver.debugfs_init')
     .debugfs_init             = drm_vram_mm_debugfs_init, \
                                 ^
   drivers/gpu/drm/ast/ast_drv.c:219:2: note: in expansion of macro 'DRM_GEM_VRAM_DRIVER'
     DRM_GEM_VRAM_DRIVER
     ^~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from drivers/gpu/drm/bochs/bochs.h:11:0,
                    from drivers/gpu/drm/bochs/bochs_drv.c:11:
>> include/drm/drm_gem_vram_helper.h:160:30: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
     .debugfs_init             = drm_vram_mm_debugfs_init, \
                                 ^
   drivers/gpu/drm/bochs/bochs_drv.c:71:2: note: in expansion of macro 'DRM_GEM_VRAM_DRIVER'
     DRM_GEM_VRAM_DRIVER,
     ^~~~~~~~~~~~~~~~~~~
   include/drm/drm_gem_vram_helper.h:160:30: note: (near initialization for 'bochs_driver.debugfs_init')
     .debugfs_init             = drm_vram_mm_debugfs_init, \
                                 ^
   drivers/gpu/drm/bochs/bochs_drv.c:71:2: note: in expansion of macro 'DRM_GEM_VRAM_DRIVER'
     DRM_GEM_VRAM_DRIVER,
     ^~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from drivers/gpu/drm/mgag200/mgag200_drv.h:21:0,
                    from drivers/gpu/drm/mgag200/mgag200_drv.c:18:
>> include/drm/drm_gem_vram_helper.h:160:30: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
     .debugfs_init             = drm_vram_mm_debugfs_init, \
                                 ^
   drivers/gpu/drm/mgag200/mgag200_drv.c:74:2: note: in expansion of macro 'DRM_GEM_VRAM_DRIVER'
     DRM_GEM_VRAM_DRIVER
     ^~~~~~~~~~~~~~~~~~~
   include/drm/drm_gem_vram_helper.h:160:30: note: (near initialization for 'driver.debugfs_init')
     .debugfs_init             = drm_vram_mm_debugfs_init, \
                                 ^
   drivers/gpu/drm/mgag200/mgag200_drv.c:74:2: note: in expansion of macro 'DRM_GEM_VRAM_DRIVER'
     DRM_GEM_VRAM_DRIVER
     ^~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from drivers/gpu//drm/ast/ast_drv.c:35:0:
>> include/drm/drm_gem_vram_helper.h:160:30: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
     .debugfs_init             = drm_vram_mm_debugfs_init, \
                                 ^
   drivers/gpu//drm/ast/ast_drv.c:219:2: note: in expansion of macro 'DRM_GEM_VRAM_DRIVER'
     DRM_GEM_VRAM_DRIVER
     ^~~~~~~~~~~~~~~~~~~
   include/drm/drm_gem_vram_helper.h:160:30: note: (near initialization for 'driver.debugfs_init')
     .debugfs_init             = drm_vram_mm_debugfs_init, \
                                 ^
   drivers/gpu//drm/ast/ast_drv.c:219:2: note: in expansion of macro 'DRM_GEM_VRAM_DRIVER'
     DRM_GEM_VRAM_DRIVER
     ^~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from drivers/gpu//drm/bochs/bochs.h:11:0,
                    from drivers/gpu//drm/bochs/bochs_drv.c:11:
>> include/drm/drm_gem_vram_helper.h:160:30: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
     .debugfs_init             = drm_vram_mm_debugfs_init, \
                                 ^
   drivers/gpu//drm/bochs/bochs_drv.c:71:2: note: in expansion of macro 'DRM_GEM_VRAM_DRIVER'
     DRM_GEM_VRAM_DRIVER,
     ^~~~~~~~~~~~~~~~~~~
   include/drm/drm_gem_vram_helper.h:160:30: note: (near initialization for 'bochs_driver.debugfs_init')
     .debugfs_init             = drm_vram_mm_debugfs_init, \
                                 ^
   drivers/gpu//drm/bochs/bochs_drv.c:71:2: note: in expansion of macro 'DRM_GEM_VRAM_DRIVER'
     DRM_GEM_VRAM_DRIVER,
     ^~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from drivers/gpu//drm/mgag200/mgag200_drv.h:21:0,
                    from drivers/gpu//drm/mgag200/mgag200_drv.c:18:
>> include/drm/drm_gem_vram_helper.h:160:30: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
     .debugfs_init             = drm_vram_mm_debugfs_init, \
                                 ^
   drivers/gpu//drm/mgag200/mgag200_drv.c:74:2: note: in expansion of macro 'DRM_GEM_VRAM_DRIVER'
     DRM_GEM_VRAM_DRIVER
     ^~~~~~~~~~~~~~~~~~~
   include/drm/drm_gem_vram_helper.h:160:30: note: (near initialization for 'driver.debugfs_init')
     .debugfs_init             = drm_vram_mm_debugfs_init, \
                                 ^
   drivers/gpu//drm/mgag200/mgag200_drv.c:74:2: note: in expansion of macro 'DRM_GEM_VRAM_DRIVER'
     DRM_GEM_VRAM_DRIVER
     ^~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +1043 drivers/gpu/drm/drm_gem_vram_helper.c

6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1028  
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1029  /**
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1030   * drm_vram_mm_debugfs_init() - Register VRAM MM debugfs file.
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1031   *
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1032   * @minor: drm minor device.
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1033   *
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1034   * Returns:
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1035   * 0 on success, or
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1036   * a negative error code otherwise.
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1037   */
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1038  int drm_vram_mm_debugfs_init(struct drm_minor *minor)
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1039  {
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1040  	int ret = 0;
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1041  
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1042  #if defined(CONFIG_DEBUG_FS)
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11 @1043  	ret = drm_debugfs_create_files(drm_vram_mm_debugfs_list,
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1044  				       ARRAY_SIZE(drm_vram_mm_debugfs_list),
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1045  				       minor->debugfs_root, minor);
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1046  #endif
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1047  	return ret;
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1048  }
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1049  EXPORT_SYMBOL(drm_vram_mm_debugfs_init);
6b5ce4a1fb8489 Thomas Zimmermann 2019-09-11  1050  

:::::: The code at line 1043 was first introduced by commit
:::::: 6b5ce4a1fb84898d454c0f3c34abc801f86f4145 drm/vram: Move VRAM memory manager to GEM VRAM implementation

:::::: TO: Thomas Zimmermann <tzimmermann@suse.de>
:::::: CC: Thomas Zimmermann <tzimmermann@suse.de>

---
0-DAY kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 60364 bytes --]

[-- Attachment #3: Type: text/plain, Size: 169 bytes --]

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

                 reply index

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publically to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201912042213.rjxY4c81%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

DriverDev-Devel Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/driverdev-devel/0 driverdev-devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 driverdev-devel driverdev-devel/ https://lore.kernel.org/driverdev-devel \
		driverdev-devel@linuxdriverproject.org devel@driverdev.osuosl.org
	public-inbox-index driverdev-devel

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.linuxdriverproject.driverdev-devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git