linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 8811/11214] arch/x86/pci/amd_bus.c:59:16: sparse: sparse: cast truncates bits from constant value (fcffffffff becomes ffffffff)
@ 2023-08-30 12:02 kernel test robot
  2023-08-31 16:28 ` Andy Shevchenko
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2023-08-30 12:02 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: oe-kbuild-all, Linux Memory Management List, Andrew Morton

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   56585460cc2ec44fc5d66924f0a116f57080f0dc
commit: 7fe99c836ebd8e02d5cde4dae7d7559fa1ff2f01 [8811/11214] range.h: Move resource API and constant to respective files
config: i386-randconfig-061-20230830 (https://download.01.org/0day-ci/archive/20230830/202308301929.UtNM1sWc-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230830/202308301929.UtNM1sWc-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202308301929.UtNM1sWc-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> arch/x86/pci/amd_bus.c:59:16: sparse: sparse: cast truncates bits from constant value (fcffffffff becomes ffffffff)

vim +59 arch/x86/pci/amd_bus.c

    53	
    54	static inline resource_size_t cap_resource(u64 val)
    55	{
    56		if (val > RESOURCE_SIZE_MAX)
    57			return RESOURCE_SIZE_MAX;
    58	
  > 59		return val;
    60	}
    61	

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [linux-next:master 8811/11214] arch/x86/pci/amd_bus.c:59:16: sparse: sparse: cast truncates bits from constant value (fcffffffff becomes ffffffff)
  2023-08-30 12:02 [linux-next:master 8811/11214] arch/x86/pci/amd_bus.c:59:16: sparse: sparse: cast truncates bits from constant value (fcffffffff becomes ffffffff) kernel test robot
@ 2023-08-31 16:28 ` Andy Shevchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Andy Shevchenko @ 2023-08-31 16:28 UTC (permalink / raw)
  To: kernel test robot
  Cc: oe-kbuild-all, Linux Memory Management List, Andrew Morton

On Wed, Aug 30, 2023 at 08:02:01PM +0800, kernel test robot wrote:

...

> commit: 7fe99c836ebd8e02d5cde4dae7d7559fa1ff2f01
  range.h: Move resource API and constant to respective files

No, this is false positive. The warning was before that

include/linux/range.h:40:16: warning: cast truncates bits from constant value (fcffffffff becomes ffffffff)


-- 
With Best Regards,
Andy Shevchenko




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-08-31 16:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-30 12:02 [linux-next:master 8811/11214] arch/x86/pci/amd_bus.c:59:16: sparse: sparse: cast truncates bits from constant value (fcffffffff becomes ffffffff) kernel test robot
2023-08-31 16:28 ` Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox