[<prev] [next>] [day] [month] [year] [list]
Message-ID: <201803110739.0J5VoDiT%fengguang.wu@intel.com>
Date: Sun, 11 Mar 2018 07:13:43 +0800
From: kbuild test robot <fengguang.wu@...el.com>
To: Nicolas Pitre <nicolas.pitre@...aro.org>
Cc: kbuild-all@...org, linux-kernel@...r.kernel.org,
Tejun Heo <tj@...nel.org>
Subject: mm/percpu.c:2723:2: warning: #warning "the CRIS architecture has
physical and virtual addresses confused"
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 3266b5bd97eaa72793df0b6e5a106c69ccc166c4
commit: abee210500ed15a22787009d9210b9a34911afcc percpu: hack to let the CRIS architecture to boot until they clean up
date: 3 months ago
config: cris-etrax-100lx_v2_defconfig (attached as .config)
compiler: cris-linux-gcc (GCC) 7.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout abee210500ed15a22787009d9210b9a34911afcc
# save the attached .config to linux build tree
make.cross ARCH=cris
All warnings (new ones prefixed by >>):
mm/percpu.c: In function 'setup_per_cpu_areas':
>> mm/percpu.c:2723:2: warning: #warning "the CRIS architecture has physical and virtual addresses confused" [-Wcpp]
#warning "the CRIS architecture has physical and virtual addresses confused"
^~~~~~~
vim +2723 mm/percpu.c
2688
2689 /*
2690 * UP percpu area setup.
2691 *
2692 * UP always uses km-based percpu allocator with identity mapping.
2693 * Static percpu variables are indistinguishable from the usual static
2694 * variables and don't require any special preparation.
2695 */
2696 void __init setup_per_cpu_areas(void)
2697 {
2698 const size_t unit_size =
2699 roundup_pow_of_two(max_t(size_t, PCPU_MIN_UNIT_SIZE,
2700 PERCPU_DYNAMIC_RESERVE));
2701 struct pcpu_alloc_info *ai;
2702 void *fc;
2703
2704 ai = pcpu_alloc_alloc_info(1, 1);
2705 fc = memblock_virt_alloc_from_nopanic(unit_size,
2706 PAGE_SIZE,
2707 __pa(MAX_DMA_ADDRESS));
2708 if (!ai || !fc)
2709 panic("Failed to allocate memory for percpu areas.");
2710 /* kmemleak tracks the percpu allocations separately */
2711 kmemleak_free(fc);
2712
2713 ai->dyn_size = unit_size;
2714 ai->unit_size = unit_size;
2715 ai->atom_size = unit_size;
2716 ai->alloc_size = unit_size;
2717 ai->groups[0].nr_units = 1;
2718 ai->groups[0].cpu_map[0] = 0;
2719
2720 if (pcpu_setup_first_chunk(ai, fc) < 0)
2721 panic("Failed to initialize percpu areas.");
2722 #ifdef CONFIG_CRIS
> 2723 #warning "the CRIS architecture has physical and virtual addresses confused"
2724 #else
2725 pcpu_free_alloc_info(ai);
2726 #endif
2727 }
2728
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Download attachment ".config.gz" of type "application/gzip" (9113 bytes)
Powered by blists - more mailing lists