Re: linux-next: Tree for Nov 17 (microblaze + highmem changes)
From: Randy Dunlap
Date: Tue Nov 17 2020 - 22:57:34 EST
On 11/16/20 11:46 PM, Stephen Rothwell wrote:
> Hi all,
>
> Changes since 20201116:
>
on arch/microblaze/, without CONFIG_HIGHMEM:
also CONFIG_MMU is not set.
Note this one also:
../arch/microblaze/mm/init.c: At top level:
../arch/microblaze/mm/init.c:71:2: error: #endif without #if
In file included from ../include/linux/kernel.h:16,
from ../include/linux/list.h:9,
from ../include/linux/rculist.h:10,
from ../include/linux/pid.h:5,
from ../include/linux/sched.h:14,
from ../include/linux/ratelimit.h:6,
from ../include/linux/dev_printk.h:16,
from ../include/linux/device.h:15,
from ../include/linux/dma-mapping.h:7,
from ../include/linux/dma-map-ops.h:9,
from ../arch/microblaze/mm/init.c:10:
../arch/microblaze/mm/init.c: In function 'highmem_init':
../arch/microblaze/mm/init.c:54:24: error: 'PKMAP_BASE' undeclared (first use in this function); did you mean 'AT_BASE'?
54 | pr_debug("%x\n", (u32)PKMAP_BASE);
| ^~~~~~~~~~
../include/linux/printk.h:140:17: note: in definition of macro 'no_printk'
140 | printk(fmt, ##__VA_ARGS__); \
| ^~~~~~~~~~~
../arch/microblaze/mm/init.c:54:2: note: in expansion of macro 'pr_debug'
54 | pr_debug("%x\n", (u32)PKMAP_BASE);
| ^~~~~~~~
../arch/microblaze/mm/init.c:54:24: note: each undeclared identifier is reported only once for each function it appears in
54 | pr_debug("%x\n", (u32)PKMAP_BASE);
| ^~~~~~~~~~
../include/linux/printk.h:140:17: note: in definition of macro 'no_printk'
140 | printk(fmt, ##__VA_ARGS__); \
| ^~~~~~~~~~~
../arch/microblaze/mm/init.c:54:2: note: in expansion of macro 'pr_debug'
54 | pr_debug("%x\n", (u32)PKMAP_BASE);
| ^~~~~~~~
EXTRACT_CERTS
../arch/microblaze/mm/init.c:55:2: error: implicit declaration of function 'map_page' [-Werror=implicit-function-declaration]
55 | map_page(PKMAP_BASE, 0, 0); /* XXX gross */
| ^~~~~~~~
CC certs/blacklist.o
../arch/microblaze/mm/init.c:56:2: error: 'pkmap_page_table' undeclared (first use in this function)
56 | pkmap_page_table = virt_to_kpte(PKMAP_BASE);
| ^~~~~~~~~~~~~~~~
../arch/microblaze/mm/init.c:56:21: error: implicit declaration of function 'virt_to_kpte'; did you mean 'virt_to_pfn'? [-Werror=implicit-function-declaration]
56 | pkmap_page_table = virt_to_kpte(PKMAP_BASE);
| ^~~~~~~~~~~~
| virt_to_pfn
../arch/microblaze/mm/init.c: In function 'highmem_setup':
../arch/microblaze/mm/init.c:68:4: error: implicit declaration of function 'free_highmem_page'; did you mean 'free_unref_page'? [-Werror=implicit-function-declaration]
68 | free_highmem_page(page);
| ^~~~~~~~~~~~~~~~~
| free_unref_page
../arch/microblaze/mm/init.c: At top level:
../arch/microblaze/mm/init.c:71:2: error: #endif without #if
71 | #endif /* CONFIG_HIGHMEM */
| ^~~~~
CC arch/microblaze/kernel/cpu/cpuinfo.o
../arch/microblaze/mm/init.c:59:13: warning: 'highmem_setup' defined but not used [-Wunused-function]
59 | static void highmem_setup(void)
| ^~~~~~~~~~~~~
../arch/microblaze/mm/init.c:52:20: warning: 'highmem_init' defined but not used [-Wunused-function]
52 | static void __init highmem_init(void)
| ^~~~~~~~~~~~
cc1: some warnings being treated as errors
Kernel config file is attached.
--
~Randy
Reported-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
Attachment:
ublz.config
Description: application/config