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: <202209302024.Tf44yzku-lkp@intel.com>
Date:   Fri, 30 Sep 2022 20:42:01 +0800
From:   kernel test robot <lkp@...el.com>
To:     Alex Deucher <alexander.deucher@....com>
Cc:     llvm@...ts.linux.dev, 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:35: warning: format
 specifies type 'unsigned long long' but the argument 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: arm-randconfig-r004-20220926
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920)
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
        # install arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        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=clang make.cross W=1 O=build_dir ARCH=arm 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:212:35: warning: format specifies type 'unsigned long long' but the argument has type 'resource_size_t' (aka 'unsigned int') [-Wformat]
           return sysfs_emit(buf, "%llu\n", adev->doorbell.size);
                                   ~~~~     ^~~~~~~~~~~~~~~~~~~
                                   %u
   1 warning generated.


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" (161785 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ