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]
Message-ID: <202209290156.wKhZug3r-lkp@intel.com>
Date:   Thu, 29 Sep 2022 02:00:16 +0800
From:   kernel test robot <lkp@...el.com>
To:     Alex Deucher <alexander.deucher@....com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [agd5f:userq 248/255]
 drivers/gpu/drm/amd/amdgpu/amdgpu_bar_mgr.c:212:36: warning: format '%llu'
 expects argument of type 'long long unsigned int', but argument 3 has type
 'resource_size_t' {aka 'unsigned int'}

tree:   https://gitlab.freedesktop.org/agd5f/linux.git userq
head:   f52aea8d32970543839b867a1d0e2bc6381e7ee9
commit: f114e3257a4c2f7eac06a206ac8ed242be642e23 [248/255] drm/amdgpu: add doorbell support to amdgpu_bar_mgr
config: mips-allyesconfig
compiler: mips-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 agd5f https://gitlab.freedesktop.org/agd5f/linux.git
        git fetch --no-tags agd5f userq
        git checkout f114e3257a4c2f7eac06a206ac8ed242be642e23
        # 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=mips SHELL=/bin/bash drivers/gpu/drm/amd/amdgpu/

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

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/amdgpu_bar_mgr.c: In function 'amdgpu_mem_info_doorbell_total_show':
>> drivers/gpu/drm/amd/amdgpu/amdgpu_bar_mgr.c:212:36: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'resource_size_t' {aka 'unsigned int'} [-Wformat=]
     212 |         return sysfs_emit(buf, "%llu\n", adev->doorbell.size);
         |                                 ~~~^     ~~~~~~~~~~~~~~~~~~~
         |                                    |                   |
         |                                    |                   resource_size_t {aka unsigned int}
         |                                    long long unsigned int
         |                                 %u


vim +212 drivers/gpu/drm/amd/amdgpu/amdgpu_bar_mgr.c

   197	
   198	/**
   199	 * DOC: mem_info_doorbell_total
   200	 *
   201	 * The amdgpu driver provides a sysfs API for reporting current total DOORBELL
   202	 * available on the device
   203	 * The file mem_info_vram_total is used for this and returns the total
   204	 * amount of DOORBELL in bytes
   205	 */
   206	static ssize_t amdgpu_mem_info_doorbell_total_show(struct device *dev,
   207			struct device_attribute *attr, char *buf)
   208	{
   209		struct drm_device *ddev = dev_get_drvdata(dev);
   210		struct amdgpu_device *adev = drm_to_adev(ddev);
   211	
 > 212		return sysfs_emit(buf, "%llu\n", adev->doorbell.size);
   213	}
   214	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

View attachment "config" of type "text/plain" (323852 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ