diff options
author | Vladimir Murzin <[email protected]> | 2021-11-30 17:29:54 +0000 |
---|---|---|
committer | Dennis Zhou <[email protected]> | 2021-12-06 12:45:09 -0500 |
commit | 3583521aabac76e58675297cead02f9ecac518b6 (patch) | |
tree | 8e395593ecc3082a5c4c37416a5c29227e6dbe67 /scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h | |
parent | 0fcfb00b28c0b7884635dacf38e46d60bf3d4eb1 (diff) |
percpu: km: ensure it is used with NOMMU (either UP or SMP)
Currently, NOMMU pull km allocator via !SMP dependency because most of
them are UP, yet for SMP+NOMMU vm allocator gets pulled which:
* may lead to broken build [1]
* ...or not working runtime due to [2]
It looks like SMP+NOMMU case was overlooked in bbddff054587 ("percpu:
use percpu allocator on UP too") so restore that.
[1]
For ARM SMP+NOMMU (R-class cores)
arm-none-linux-gnueabihf-ld: mm/percpu.o: in function `pcpu_post_unmap_tlb_flush':
mm/percpu-vm.c:188: undefined reference to `flush_tlb_kernel_range'
[2]
static inline
int vmap_pages_range_noflush(unsigned long addr, unsigned long end,
pgprot_t prot, struct page **pages, unsigned int page_shift)
{
return -EINVAL;
}
Signed-off-by: Vladimir Murzin <[email protected]>
Tested-by: Rob Landley <[email protected]>
Tested-by: Rich Felker <[email protected]>
[Dennis: use depends instead of default for condition]
Signed-off-by: Dennis Zhou <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h')
0 files changed, 0 insertions, 0 deletions