]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 8655/1: improve NOMMU definition of pgprot_*()
authorArnd Bergmann <arnd@arndb.de>
Thu, 2 Feb 2017 12:30:40 +0000 (13:30 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Tue, 28 Feb 2017 11:06:19 +0000 (11:06 +0000)
commit918d3b1d3fa5f91fbcaf64760f0ac6954f69644e
tree46eb8074ebca867766775836adab5d9f09020496
parentd4b72691f09c1e0618bf7492fccea3e2b9bfb2f6
ARM: 8655/1: improve NOMMU definition of pgprot_*()

The tegra DRM driver produces a harmless warning when built for NOMMU:

drivers/gpu/drm/tegra/gem.c: In function 'tegra_drm_mmap':
drivers/gpu/drm/tegra/gem.c:508:12: unused variable 'prot'

This is because pgprot_writecombine() on ARM returns a constant and
ignores its argument. The version in asm-generic doesn't have that
problem, so let's use that one instead. We don't actually care
about the value on NOMMU, and this is consistent with what some
other architectures do.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/include/asm/pgtable-nommu.h