All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Rob Clark <robdclark@gmail.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: Re: [RFC 1/2] drm: Add fdinfo memory stats
Date: Fri, 7 Apr 2023 12:17:46 +0800	[thread overview]
Message-ID: <202304071241.sHlGa8UH-lkp@intel.com> (raw)
In-Reply-To: <20230406215917.1475704-2-robdclark@gmail.com>

Hi Rob,

[This is a private test report for your RFC patch.]
kernel test robot noticed the following build warnings:

[auto build test WARNING on drm-misc/drm-misc-next]
[also build test WARNING on drm/drm-next drm-exynos/exynos-drm-next drm-intel/for-linux-next drm-intel/for-linux-next-fixes drm-tip/drm-tip linus/master v6.3-rc5 next-20230406]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Rob-Clark/drm-Add-fdinfo-memory-stats/20230407-060118
base:   git://anongit.freedesktop.org/drm/drm-misc drm-misc-next
patch link:    https://lore.kernel.org/r/20230406215917.1475704-2-robdclark%40gmail.com
patch subject: [RFC 1/2] drm: Add fdinfo memory stats
config: i386-randconfig-a002-20230403 (https://download.01.org/0day-ci/archive/20230407/202304071241.sHlGa8UH-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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/intel-lab-lkp/linux/commit/eebbb3ec0a196240e1084554563ac4ae7e85dbb3
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Rob-Clark/drm-Add-fdinfo-memory-stats/20230407-060118
        git checkout eebbb3ec0a196240e1084554563ac4ae7e85dbb3
        # 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=i386 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/gpu/drm/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304071241.sHlGa8UH-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/drm_file.c:883:39: warning: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned int') [-Wformat]
           drm_printf(p, "%s:\t%lu %s\n", stat, sz, units[u]);
                               ~~~              ^~
                               %zu
   1 warning generated.


vim +883 drivers/gpu/drm/drm_file.c

   871	
   872	static void print_size(struct drm_printer *p, const char *stat, size_t sz)
   873	{
   874		const char *units[] = {"B", "KiB", "MiB", "GiB"};
   875		unsigned u;
   876	
   877		for (u = 0; u < ARRAY_SIZE(units) - 1; u++) {
   878			if (sz < SZ_1K)
   879				break;
   880			sz /= SZ_1K;
   881		}
   882	
 > 883		drm_printf(p, "%s:\t%lu %s\n", stat, sz, units[u]);
   884	}
   885	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

  parent reply	other threads:[~2023-04-07  4:18 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-06 21:59 [RFC 0/2] drm: fdinfo memory stats Rob Clark
2023-04-06 21:59 ` Rob Clark
2023-04-06 21:59 ` [RFC 1/2] drm: Add " Rob Clark
2023-04-06 21:59   ` Rob Clark
2023-04-07  0:21   ` kernel test robot
2023-04-07  4:17   ` kernel test robot [this message]
2023-04-08 12:20   ` Emil Velikov
2023-04-08 12:20     ` Emil Velikov
2023-04-10 19:01     ` Rob Clark
2023-04-10 19:01       ` Rob Clark
2023-04-11  7:54   ` Boris Brezillon
2023-04-11  7:54     ` Boris Brezillon
2023-04-06 21:59 ` [RFC 2/2] drm/msm: Add memory stats to fdinfo Rob Clark
2023-04-06 21:59   ` Rob Clark
2023-04-08 12:28   ` Emil Velikov
2023-04-08 12:28     ` Emil Velikov
2023-04-09 15:59     ` Rob Clark
2023-04-09 15:59       ` Rob Clark

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202304071241.sHlGa8UH-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=robdclark@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.