public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Sven Peter <sven@svenpeter.dev>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org, Hector Martin <marcan@marcan.st>,
	Arnd Bergmann <arnd@arndb.de>
Subject: [asahilinux:bits/050-nvme 4/9] drivers/soc/apple/sart.c:248:4: warning: format specifies type 'unsigned long long' but the argument has type 'phys_addr_t' (aka 'unsigned int')
Date: Sun, 5 Jun 2022 09:16:41 +0800	[thread overview]
Message-ID: <202206050943.yFqgZDBn-lkp@intel.com> (raw)

tree:   https://github.com/AsahiLinux/linux bits/050-nvme
head:   54dfe8ce63a23f4a11e9aa0481a09a6ec2267b2f
commit: 96470149f537ee4410acef69bb8a38d806fc98c1 [4/9] soc: apple: Add SART driver
config: hexagon-randconfig-r041-20220605 (https://download.01.org/0day-ci/archive/20220605/202206050943.yFqgZDBn-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 416a5080d89066029f9889dc23f94de47c2fa895)
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/AsahiLinux/linux/commit/96470149f537ee4410acef69bb8a38d806fc98c1
        git remote add asahilinux https://github.com/AsahiLinux/linux
        git fetch --no-tags asahilinux bits/050-nvme
        git checkout 96470149f537ee4410acef69bb8a38d806fc98c1
        # 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=hexagon SHELL=/bin/bash drivers/soc/apple/

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

All warnings (new ones prefixed by >>):

>> drivers/soc/apple/sart.c:248:4: warning: format specifies type 'unsigned long long' but the argument has type 'phys_addr_t' (aka 'unsigned int') [-Wformat]
                    paddr, size);
                    ^~~~~
   include/linux/dev_printk.h:146:70: note: expanded from macro 'dev_warn'
           dev_printk_index_wrap(_dev_warn, KERN_WARNING, dev, dev_fmt(fmt), ##__VA_ARGS__)
                                                                       ~~~     ^~~~~~~~~~~
   include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap'
                   _p_func(dev, fmt, ##__VA_ARGS__);                       \
                                ~~~    ^~~~~~~~~~~
   drivers/soc/apple/sart.c:284:4: warning: format specifies type 'unsigned long long' but the argument has type 'phys_addr_t' (aka 'unsigned int') [-Wformat]
                    paddr, size);
                    ^~~~~
   include/linux/dev_printk.h:146:70: note: expanded from macro 'dev_warn'
           dev_printk_index_wrap(_dev_warn, KERN_WARNING, dev, dev_fmt(fmt), ##__VA_ARGS__)
                                                                       ~~~     ^~~~~~~~~~~
   include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap'
                   _p_func(dev, fmt, ##__VA_ARGS__);                       \
                                ~~~    ^~~~~~~~~~~
   2 warnings generated.


vim +248 drivers/soc/apple/sart.c

   219	
   220	int apple_sart_add_allowed_region(struct apple_sart *sart, phys_addr_t paddr,
   221					  size_t size)
   222	{
   223		int i, ret;
   224	
   225		for (i = 0; i < APPLE_SART_MAX_ENTRIES; ++i) {
   226			if (test_bit(i, &sart->protected_entries))
   227				continue;
   228			if (test_and_set_bit(i, &sart->used_entries))
   229				continue;
   230	
   231			ret = sart_set_entry(sart, i, APPLE_SART_FLAGS_ALLOW, paddr,
   232					     size);
   233			if (ret) {
   234				dev_dbg(sart->dev,
   235					"unable to set entry %d to [%pa, 0x%zx]\n",
   236					i, &paddr, size);
   237				clear_bit(i, &sart->used_entries);
   238				return ret;
   239			}
   240	
   241			dev_dbg(sart->dev, "wrote [%pa, 0x%zx] to %d\n", &paddr, size,
   242				i);
   243			return 0;
   244		}
   245	
   246		dev_warn(sart->dev,
   247			 "no free entries left to add [paddr: 0x%llx, size: 0x%zx]\n",
 > 248			 paddr, size);
   249	
   250		return -EBUSY;
   251	}
   252	EXPORT_SYMBOL(apple_sart_add_allowed_region);
   253	

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

                 reply	other threads:[~2022-06-05  1:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202206050943.yFqgZDBn-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=arnd@arndb.de \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=marcan@marcan.st \
    --cc=sven@svenpeter.dev \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox