Home
last modified time | relevance | path

Searched hist:"7 ef4783e19a84fe1e8b58f4c27b858dfdcaef207" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/arch/arm/include/asm/
H A Dpgtable-nommu.hdiff 7ef4783e19a84fe1e8b58f4c27b858dfdcaef207 Wed May 24 04:30:18 CDT 2017 Vladimir Murzin <vladimir.murzin@arm.com> ARM: 8676/1: NOMMU: provide pgprot_device() macro

NOMMU build leads to the following error:

CC drivers/pci/mmap.o
drivers/pci/mmap.c: In function 'pci_mmap_resource_range':
drivers/pci/mmap.c:60:3: error: implicit declaration of function 'pgprot_device' [-Werror=implicit-function-declaration]
vma->vm_page_prot = pgprot_device(vma->vm_page_prot);
^

cc1: some warnings being treated as errors
scripts/Makefile.build:302: recipe for target 'drivers/pci/mmap.o' failed
make[2]: *** [drivers/pci/mmap.o] Error 1
scripts/Makefile.build:561: recipe for target 'drivers/pci' failed
make[1]: *** [drivers/pci] Error 2
Makefile:1016: recipe for target 'drivers' failed
make: *** [drivers] Error 2

Fix it with support of pgprot_device() macro for NOMMU.

Fixes: 00d2904ffeac ("ARM/PCI: Use generic pci_mmap_resource_range()")
Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>