lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Fri, 15 Oct 2021 13:55:29 +0800
From:   kernel test robot <lkp@...el.com>
To:     Ben Skeggs <bskeggs@...hat.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Lyude Paul <lyude@...hat.com>
Subject: [skeggsb:03.00-disp 56/65]
 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'}

tree:   https://github.com/skeggsb/linux 03.00-disp
head:   9d141f4c5d74118aa6e66daa9fde389857627d89
commit: ee9e44a497d467c04908c8329a305e8cd0e692e5 [56/65] drm/nouveau/nvkm: add a replacement for nvkm_notify
config: arc-randconfig-r043-20211014 (attached as .config)
compiler: arceb-elf-gcc (GCC) 11.2.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
        # https://github.com/skeggsb/linux/commit/ee9e44a497d467c04908c8329a305e8cd0e692e5
        git remote add skeggsb https://github.com/skeggsb/linux
        git fetch --no-tags skeggsb 03.00-disp
        git checkout ee9e44a497d467c04908c8329a305e8cd0e692e5
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.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:73:9: note: in expansion of macro 'NVIF_ERRON'
      73 |         NVIF_ERRON(ret, parent, "[NEW EVENT wait:%d size:%ld]", args->wait, argc - sizeof(*args));
         |         ^~~~~~~~~~
>> 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:73:9: note: in expansion of macro 'NVIF_ERRON'
      73 |         NVIF_ERRON(ret, parent, "[NEW EVENT wait:%d size:%ld]", args->wait, argc - sizeof(*args));
         |         ^~~~~~~~~~


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@...hat.com>
:::::: CC: Ben Skeggs <bskeggs@...hat.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (31752 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ