All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Rongwei Wang <rongwei.wang@linux.alibaba.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH RFC 2/5] mm: percpu: fix variable type of cpu
Date: Wed, 18 Oct 2023 15:58:03 +0800	[thread overview]
Message-ID: <202310181554.HybMih8u-lkp@intel.com> (raw)
In-Reply-To: <20231012024842.99703-3-rongwei.wang@linux.alibaba.com>

Hi Rongwei,

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

[auto build test ERROR on driver-core/driver-core-testing]
[also build test ERROR on driver-core/driver-core-next driver-core/driver-core-linus tip/x86/mm linus/master v6.6-rc6]
[cannot apply to akpm-mm/mm-everything next-20231018]
[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/Rongwei-Wang/mm-percpu-fix-variable-type-of-cpu/20231017-102250
base:   driver-core/driver-core-testing
patch link:    https://lore.kernel.org/r/20231012024842.99703-3-rongwei.wang%40linux.alibaba.com
patch subject: [PATCH RFC 2/5] mm: percpu: fix variable type of cpu
config: loongarch-randconfig-001-20231018 (https://download.01.org/0day-ci/archive/20231018/202310181554.HybMih8u-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231018/202310181554.HybMih8u-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/202310181554.HybMih8u-lkp@intel.com/

All errors (new ones prefixed by >>):

   arch/loongarch/kernel/numa.c: In function 'setup_per_cpu_areas':
>> arch/loongarch/kernel/numa.c:93:64: error: passing argument 5 of 'pcpu_embed_first_chunk' from incompatible pointer type [-Werror=incompatible-pointer-types]
      93 |                                             pcpu_cpu_distance, pcpu_cpu_to_node);
         |                                                                ^~~~~~~~~~~~~~~~
         |                                                                |
         |                                                                int (*)(int)
   In file included from include/linux/prandom.h:13,
                    from include/linux/random.h:153,
                    from include/linux/nodemask.h:97,
                    from include/linux/mmzone.h:18,
                    from include/linux/gfp.h:7,
                    from include/linux/mm.h:7,
                    from arch/loongarch/kernel/numa.c:10:
   include/linux/percpu.h:116:58: note: expected 'int (*)(unsigned int)' but argument is of type 'int (*)(int)'
     116 |                                 pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn);
         |                                 ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
>> arch/loongarch/kernel/numa.c:99:67: error: passing argument 2 of 'pcpu_page_first_chunk' from incompatible pointer type [-Werror=incompatible-pointer-types]
      99 |                 rc = pcpu_page_first_chunk(PERCPU_MODULE_RESERVE, pcpu_cpu_to_node);
         |                                                                   ^~~~~~~~~~~~~~~~
         |                                                                   |
         |                                                                   int (*)(int)
   include/linux/percpu.h:121:58: note: expected 'int (*)(unsigned int)' but argument is of type 'int (*)(int)'
     121 |                                 pcpu_fc_cpu_to_node_fn_t cpu_to_nd_fn);
         |                                 ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/pcpu_embed_first_chunk +93 arch/loongarch/kernel/numa.c

d4b6f1562a3c32 Huacai Chen 2022-05-31   72  
d4b6f1562a3c32 Huacai Chen 2022-05-31   73  void __init setup_per_cpu_areas(void)
d4b6f1562a3c32 Huacai Chen 2022-05-31   74  {
d4b6f1562a3c32 Huacai Chen 2022-05-31   75  	unsigned long delta;
d4b6f1562a3c32 Huacai Chen 2022-05-31   76  	unsigned int cpu;
d4b6f1562a3c32 Huacai Chen 2022-05-31   77  	int rc = -EINVAL;
d4b6f1562a3c32 Huacai Chen 2022-05-31   78  
d4b6f1562a3c32 Huacai Chen 2022-05-31   79  	if (pcpu_chosen_fc == PCPU_FC_AUTO) {
d4b6f1562a3c32 Huacai Chen 2022-05-31   80  		if (nr_node_ids >= 8)
d4b6f1562a3c32 Huacai Chen 2022-05-31   81  			pcpu_chosen_fc = PCPU_FC_PAGE;
d4b6f1562a3c32 Huacai Chen 2022-05-31   82  		else
d4b6f1562a3c32 Huacai Chen 2022-05-31   83  			pcpu_chosen_fc = PCPU_FC_EMBED;
d4b6f1562a3c32 Huacai Chen 2022-05-31   84  	}
d4b6f1562a3c32 Huacai Chen 2022-05-31   85  
d4b6f1562a3c32 Huacai Chen 2022-05-31   86  	/*
d4b6f1562a3c32 Huacai Chen 2022-05-31   87  	 * Always reserve area for module percpu variables.  That's
d4b6f1562a3c32 Huacai Chen 2022-05-31   88  	 * what the legacy allocator did.
d4b6f1562a3c32 Huacai Chen 2022-05-31   89  	 */
d4b6f1562a3c32 Huacai Chen 2022-05-31   90  	if (pcpu_chosen_fc != PCPU_FC_PAGE) {
d4b6f1562a3c32 Huacai Chen 2022-05-31   91  		rc = pcpu_embed_first_chunk(PERCPU_MODULE_RESERVE,
d4b6f1562a3c32 Huacai Chen 2022-05-31   92  					    PERCPU_DYNAMIC_RESERVE, PMD_SIZE,
d4b6f1562a3c32 Huacai Chen 2022-05-31  @93  					    pcpu_cpu_distance, pcpu_cpu_to_node);
d4b6f1562a3c32 Huacai Chen 2022-05-31   94  		if (rc < 0)
d4b6f1562a3c32 Huacai Chen 2022-05-31   95  			pr_warn("%s allocator failed (%d), falling back to page size\n",
d4b6f1562a3c32 Huacai Chen 2022-05-31   96  				pcpu_fc_names[pcpu_chosen_fc], rc);
d4b6f1562a3c32 Huacai Chen 2022-05-31   97  	}
d4b6f1562a3c32 Huacai Chen 2022-05-31   98  	if (rc < 0)
d4b6f1562a3c32 Huacai Chen 2022-05-31  @99  		rc = pcpu_page_first_chunk(PERCPU_MODULE_RESERVE, pcpu_cpu_to_node);
d4b6f1562a3c32 Huacai Chen 2022-05-31  100  	if (rc < 0)
d4b6f1562a3c32 Huacai Chen 2022-05-31  101  		panic("cannot initialize percpu area (err=%d)", rc);
d4b6f1562a3c32 Huacai Chen 2022-05-31  102  
d4b6f1562a3c32 Huacai Chen 2022-05-31  103  	delta = (unsigned long)pcpu_base_addr - (unsigned long)__per_cpu_start;
d4b6f1562a3c32 Huacai Chen 2022-05-31  104  	for_each_possible_cpu(cpu)
d4b6f1562a3c32 Huacai Chen 2022-05-31  105  		__per_cpu_offset[cpu] = delta + pcpu_unit_offsets[cpu];
d4b6f1562a3c32 Huacai Chen 2022-05-31  106  }
d4b6f1562a3c32 Huacai Chen 2022-05-31  107  #endif
d4b6f1562a3c32 Huacai Chen 2022-05-31  108  

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

  reply	other threads:[~2023-10-18  7:58 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-12  2:48 [PATCH RFC 0/5] support NUMA emulation for arm64 Rongwei Wang
2023-10-12  2:48 ` Rongwei Wang
2023-10-12  2:48 ` [PATCH RFC 1/5] mm/numa: move numa emulation APIs into generic files Rongwei Wang
2023-10-12  2:48   ` Rongwei Wang
2023-10-12  6:05   ` Ingo Molnar
2023-10-12  6:05     ` Ingo Molnar
2023-10-17 14:47   ` kernel test robot
2023-10-18 20:02   ` kernel test robot
2023-10-12  2:48 ` [PATCH RFC 2/5] mm: percpu: fix variable type of cpu Rongwei Wang
2023-10-12  2:48   ` Rongwei Wang
2023-10-18  7:58   ` kernel test robot [this message]
2023-10-12  2:48 ` [PATCH RFC 3/5] arch_numa: remove __init in early_cpu_to_node() Rongwei Wang
2023-10-12  2:48   ` Rongwei Wang
2023-10-12  2:48 ` [PATCH RFC 4/5] mm/numa: support CONFIG_NUMA_EMU for arm64 Rongwei Wang
2023-10-12  2:48   ` Rongwei Wang
2023-10-20 15:31   ` kernel test robot
2023-10-12  2:48 ` [PATCH RFC 5/5] mm/numa: migrate leftover numa emulation into mm/numa.c Rongwei Wang
2023-10-12  2:48   ` Rongwei Wang
2023-10-20 16:23   ` kernel test robot
2023-10-20 17:40   ` kernel test robot
2023-10-12 12:37 ` [PATCH RFC 0/5] support NUMA emulation for arm64 Pierre Gondois
2023-10-12 12:37   ` Pierre Gondois
2023-10-12 13:30   ` Rongwei Wang
2023-10-12 13:30     ` Rongwei Wang
2023-10-23 13:03     ` Pierre Gondois
2023-10-23 13:03       ` Pierre Gondois
2024-02-20 11:36 ` [PATCH v1 0/2] support NUMA emulation for genertic arch Rongwei Wang
2024-02-20 11:36   ` Rongwei Wang
2024-02-20 11:36   ` [PATCH v1 1/2] arch_numa: remove __init for early_cpu_to_node Rongwei Wang
2024-02-20 11:36     ` Rongwei Wang
2024-02-20 11:36   ` [PATCH v1 2/2] numa: introduce numa emulation for genertic arch Rongwei Wang
2024-02-20 11:36     ` Rongwei Wang
2024-02-21  6:12   ` [PATCH v1 0/2] support NUMA " Mike Rapoport
2024-02-21  6:12     ` Mike Rapoport
2024-02-21 15:51     ` Pierre Gondois
2024-02-21 15:51       ` Pierre Gondois
2024-02-29  3:26       ` Rongwei Wang
2024-02-29  3:26         ` Rongwei Wang

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=202310181554.HybMih8u-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=rongwei.wang@linux.alibaba.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.