[airlied:01.01-gsp-rm 13/180] drivers/gpu/drm/nouveau/include/nvif/printf.h:10:25: warning: format '%ld' expects argument of type 'long int', but argument 7 has type 'u32' {aka 'unsigned int'}

kernel test robot lkp at intel.com
Tue Oct 25 06:38:14 UTC 2022


tree:   git://people.freedesktop.org/~airlied/linux.git 01.01-gsp-rm
head:   6be95d5e52818808565790c5ee3fd5569263bd36
commit: 263338a7802ce9da2da54ecd134861065c03da42 [13/180] drm/nouveau/nvkm: add a replacement for nvkm_notify
config: parisc-randconfig-r036-20221024 (attached as .config)
compiler: hppa-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git remote add airlied git://people.freedesktop.org/~airlied/linux.git
        git fetch --no-tags airlied 01.01-gsp-rm
        git checkout 263338a7802ce9da2da54ecd134861065c03da42
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=parisc SHELL=/bin/bash drivers/gpu/drm/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp at intel.com>

All warnings (new ones prefixed by >>):

   In file included from drivers/gpu/drm/nouveau/nvif/event.c:23:
   drivers/gpu/drm/nouveau/nvif/event.c: In function 'nvif_event_ctor_':
>> drivers/gpu/drm/nouveau/include/nvif/printf.h:10:25: warning: format '%ld' expects argument of type 'long int', but argument 7 has type 'u32' {aka 'unsigned int'} [-Wformat=]
      10 |         _p->func->l(_o, "[%s/%08x:%s] "f"\n", _o->client->object.name, _o->handle, _o->name, ##a); \
         |                         ^~~~~~~~~~~~~~~
   drivers/gpu/drm/nouveau/include/nvif/printf.h:19:30: note: in expansion of macro 'NVIF_PRINT'
      19 | #define NVIF_ERROR(o,f,a...) NVIF_PRINT(errorf, (o), f, ##a)
         |                              ^~~~~~~~~~
   drivers/gpu/drm/nouveau/include/nvif/printf.h:24:17: note: in expansion of macro 'NVIF_ERROR'
      24 |                 NVIF_ERROR(_object, f" (ret:%d)", ##a, _cond); \
         |                 ^~~~~~~~~~
   drivers/gpu/drm/nouveau/nvif/event.c:74:9: note: in expansion of macro 'NVIF_ERRON'
      74 |         NVIF_ERRON(ret && warn, parent, "[NEW EVENT wait:%d size:%ld]",
         |         ^~~~~~~~~~
>> drivers/gpu/drm/nouveau/include/nvif/printf.h:10:25: warning: format '%ld' expects argument of type 'long int', but argument 7 has type 'u32' {aka 'unsigned int'} [-Wformat=]
      10 |         _p->func->l(_o, "[%s/%08x:%s] "f"\n", _o->client->object.name, _o->handle, _o->name, ##a); \
         |                         ^~~~~~~~~~~~~~~
   drivers/gpu/drm/nouveau/include/nvif/printf.h:14:30: note: in expansion of macro 'NVIF_PRINT'
      14 | #define NVIF_DEBUG(o,f,a...) NVIF_PRINT(debugf, (o), f, ##a)
         |                              ^~~~~~~~~~
   drivers/gpu/drm/nouveau/include/nvif/printf.h:26:17: note: in expansion of macro 'NVIF_DEBUG'
      26 |                 NVIF_DEBUG(_object, f, ##a);                   \
         |                 ^~~~~~~~~~
   drivers/gpu/drm/nouveau/nvif/event.c:74:9: note: in expansion of macro 'NVIF_ERRON'
      74 |         NVIF_ERRON(ret && warn, parent, "[NEW EVENT wait:%d size:%ld]",
         |         ^~~~~~~~~~


vim +10 drivers/gpu/drm/nouveau/include/nvif/printf.h

3e176fd0600439 Ben Skeggs 2020-06-29   6  
3e176fd0600439 Ben Skeggs 2020-06-29   7  #define NVIF_PRINT(l,o,f,a...) do {                                                                \
3e176fd0600439 Ben Skeggs 2020-06-29   8  	struct nvif_object *_o = (o);                                                              \
3e176fd0600439 Ben Skeggs 2020-06-29   9  	struct nvif_parent *_p = _o->parent;                                                       \
3e176fd0600439 Ben Skeggs 2020-06-29 @10  	_p->func->l(_o, "[%s/%08x:%s] "f"\n", _o->client->object.name, _o->handle, _o->name, ##a); \
3e176fd0600439 Ben Skeggs 2020-06-29  11  } while(0)
3e176fd0600439 Ben Skeggs 2020-06-29  12  

:::::: The code at line 10 was first introduced by commit
:::::: 3e176fd0600439a8a1e0b3e95e2f0545660ab59c drm/nouveau/nvif: add support for object-level debug output

:::::: TO: Ben Skeggs <bskeggs at redhat.com>
:::::: CC: Ben Skeggs <bskeggs at redhat.com>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 44613 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20221025/e2acd38c/attachment-0001.gz>


More information about the dri-devel mailing list