mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Rob Herring <robh@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	James Morse <james.morse@arm.com>
Subject: [morse:mpam/snapshot/v5.15 90/139] include/linux/cacheinfo.h:115:24: error: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '18446744073709551615' to '4294967295'
Date: Sat, 13 Nov 2021 08:30:47 +0800	[thread overview]
Message-ID: <202111130843.1iuPjrfT-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2867 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git mpam/snapshot/v5.15
head:   ce3629841262f725a5f3a327403fcaf0e604a85e
commit: 7cfc8ff4c2167d8b7da45a3a5f7f7f98de31bcde [90/139] cacheinfo: Allow for >32-bit cache 'id'
config: m68k-allyesconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 11.2.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
        # https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git/commit/?id=7cfc8ff4c2167d8b7da45a3a5f7f7f98de31bcde
        git remote add morse https://git.kernel.org/pub/scm/linux/kernel/git/morse/linux.git
        git fetch --no-tags morse mpam/snapshot/v5.15
        git checkout 7cfc8ff4c2167d8b7da45a3a5f7f7f98de31bcde
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=m68k 

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

All errors (new ones prefixed by >>):

   In file included from drivers/base/cacheinfo.c:12:
   include/linux/cacheinfo.h: In function 'get_cpu_cacheinfo_id':
>> include/linux/cacheinfo.h:115:24: error: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '18446744073709551615' to '4294967295' [-Werror=overflow]
     115 |                 return ~0ULL;
         |                        ^
   include/linux/cacheinfo.h:121:32: error: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '18446744073709551615' to '4294967295' [-Werror=overflow]
     121 |                         return ~0ULL;
         |                                ^
   include/linux/cacheinfo.h:125:16: error: conversion from 'long long unsigned int' to 'long unsigned int' changes value from '18446744073709551615' to '4294967295' [-Werror=overflow]
     125 |         return ~0ULL;
         |                ^
   cc1: all warnings being treated as errors


vim +115 include/linux/cacheinfo.h

   104	
   105	/*
   106	 * Get the id of the cache associated with @cpu at level @level.
   107	 * cpuhp lock must be held.
   108	 */
   109	static inline unsigned long get_cpu_cacheinfo_id(int cpu, int level)
   110	{
   111		struct cpu_cacheinfo *ci = get_cpu_cacheinfo(cpu);
   112		int i;
   113	
   114		if (!ci->info_list)
 > 115			return ~0ULL;
   116	
   117		for (i = 0; i < ci->num_leaves; i++) {
   118			if (ci->info_list[i].level == level) {
   119				if (ci->info_list[i].attributes & CACHE_ID)
   120					return ci->info_list[i].id;
   121				return ~0ULL;
   122			}
   123		}
   124	
   125		return ~0ULL;
   126	}
   127	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 61867 bytes --]

                 reply	other threads:[~2021-11-13  0:31 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=202111130843.1iuPjrfT-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=james.morse@arm.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh@kernel.org \
    /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

Powered by JetHome