[drm-misc:drm-misc-next 3/3] drivers/gpu/drm/tegra/dsi.c:259:43: error: passing argument 3 of 'drm_debugfs_remove_files' from incompatible pointer type
kernel test robot
lkp at intel.com
Tue Sep 5 18:06:25 UTC 2023
tree: git://anongit.freedesktop.org/drm/drm-misc drm-misc-next
head: f45acf7acf75921c0409d452f0165f51a19a74fd
commit: 8e455145d8f163aefa6b9cc29478e0a9f82276e6 [3/3] drm/debugfs: rework drm_debugfs_create_files implementation v2
config: openrisc-randconfig-r015-20230906 (https://download.01.org/0day-ci/archive/20230906/202309060212.6xvtSNAB-lkp@intel.com/config)
compiler: or1k-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230906/202309060212.6xvtSNAB-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202309060212.6xvtSNAB-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/gpu/drm/tegra/dsi.c: In function 'tegra_dsi_early_unregister':
>> drivers/gpu/drm/tegra/dsi.c:259:43: error: passing argument 3 of 'drm_debugfs_remove_files' from incompatible pointer type [-Werror=incompatible-pointer-types]
259 | connector->debugfs_entry,
| ~~~~~~~~~^~~~~~~~~~~~~~~
| |
| struct dentry *
In file included from drivers/gpu/drm/tegra/dsi.c:21:
include/drm/drm_debugfs.h:163:73: note: expected 'struct drm_minor *' but argument is of type 'struct dentry *'
163 | int count, struct drm_minor *minor)
| ~~~~~~~~~~~~~~~~~~^~~~~
>> drivers/gpu/drm/tegra/dsi.c:258:9: error: too many arguments to function 'drm_debugfs_remove_files'
258 | drm_debugfs_remove_files(dsi->debugfs_files, count,
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_debugfs.h:162:19: note: declared here
162 | static inline int drm_debugfs_remove_files(const struct drm_info_list *files,
| ^~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
drivers/gpu/drm/tegra/dc.c: In function 'tegra_dc_early_unregister':
>> drivers/gpu/drm/tegra/dc.c:1757:60: error: passing argument 3 of 'drm_debugfs_remove_files' from incompatible pointer type [-Werror=incompatible-pointer-types]
1757 | drm_debugfs_remove_files(dc->debugfs_files, count, root, minor);
| ^~~~
| |
| struct dentry *
In file included from drivers/gpu/drm/tegra/dc.c:27:
include/drm/drm_debugfs.h:163:73: note: expected 'struct drm_minor *' but argument is of type 'struct dentry *'
163 | int count, struct drm_minor *minor)
| ~~~~~~~~~~~~~~~~~~^~~~~
>> drivers/gpu/drm/tegra/dc.c:1757:9: error: too many arguments to function 'drm_debugfs_remove_files'
1757 | drm_debugfs_remove_files(dc->debugfs_files, count, root, minor);
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_debugfs.h:162:19: note: declared here
162 | static inline int drm_debugfs_remove_files(const struct drm_info_list *files,
| ^~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
drivers/gpu/drm/tegra/hdmi.c: In function 'tegra_hdmi_early_unregister':
>> drivers/gpu/drm/tegra/hdmi.c:1120:43: error: passing argument 3 of 'drm_debugfs_remove_files' from incompatible pointer type [-Werror=incompatible-pointer-types]
1120 | connector->debugfs_entry, minor);
| ~~~~~~~~~^~~~~~~~~~~~~~~
| |
| struct dentry *
In file included from drivers/gpu/drm/tegra/hdmi.c:26:
include/drm/drm_debugfs.h:163:73: note: expected 'struct drm_minor *' but argument is of type 'struct dentry *'
163 | int count, struct drm_minor *minor)
| ~~~~~~~~~~~~~~~~~~^~~~~
>> drivers/gpu/drm/tegra/hdmi.c:1119:9: error: too many arguments to function 'drm_debugfs_remove_files'
1119 | drm_debugfs_remove_files(hdmi->debugfs_files, count,
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_debugfs.h:162:19: note: declared here
162 | static inline int drm_debugfs_remove_files(const struct drm_info_list *files,
| ^~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
drivers/gpu/drm/tegra/sor.c: In function 'tegra_sor_early_unregister':
>> drivers/gpu/drm/tegra/sor.c:1711:43: error: passing argument 3 of 'drm_debugfs_remove_files' from incompatible pointer type [-Werror=incompatible-pointer-types]
1711 | connector->debugfs_entry,
| ~~~~~~~~~^~~~~~~~~~~~~~~
| |
| struct dentry *
In file included from drivers/gpu/drm/tegra/sor.c:22:
include/drm/drm_debugfs.h:163:73: note: expected 'struct drm_minor *' but argument is of type 'struct dentry *'
163 | int count, struct drm_minor *minor)
| ~~~~~~~~~~~~~~~~~~^~~~~
>> drivers/gpu/drm/tegra/sor.c:1710:9: error: too many arguments to function 'drm_debugfs_remove_files'
1710 | drm_debugfs_remove_files(sor->debugfs_files, count,
| ^~~~~~~~~~~~~~~~~~~~~~~~
include/drm/drm_debugfs.h:162:19: note: declared here
162 | static inline int drm_debugfs_remove_files(const struct drm_info_list *files,
| ^~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/drm_debugfs_remove_files +259 drivers/gpu/drm/tegra/dsi.c
251
252 static void tegra_dsi_early_unregister(struct drm_connector *connector)
253 {
254 struct tegra_output *output = connector_to_output(connector);
255 unsigned int count = ARRAY_SIZE(debugfs_files);
256 struct tegra_dsi *dsi = to_dsi(output);
257
> 258 drm_debugfs_remove_files(dsi->debugfs_files, count,
> 259 connector->debugfs_entry,
260 connector->dev->primary);
261 kfree(dsi->debugfs_files);
262 dsi->debugfs_files = NULL;
263 }
264
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
More information about the dri-devel
mailing list