]> git.baikalelectronics.ru Git - kernel.git/commit
[MIPS] Always use virt_to_phys() when translating kernel addresses
authorFranck Bui-Huu <fbuihuu@gmail.com>
Mon, 19 Mar 2007 16:36:42 +0000 (17:36 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Sat, 24 Mar 2007 17:01:49 +0000 (17:01 +0000)
commit99dbe7633def23d4fc029e79ec56e951bfd6be06
tree95f051515a704367604db3d814e48f9b54de3ea1
parent4f52dd43605152e0a0049086e57b6a2f210daea5
[MIPS] Always use virt_to_phys() when translating kernel addresses

This patch fixes two places where we used plain 'x - PAGE_OFFSET' to
achieve virtual to physical address convertions. This type of convertion
is no more allowed since commit c2fa231aac51336fd92a8e8a5f9a750ba9fdb2e8.

Reported-by: Maxime Bizon <mbizon@freebox.fr>
Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
[Build fixes for machines that don't use the generic dma-coherence.h]

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mm/dma-default.c
include/asm-mips/pgtable-64.h
include/asm-mips/pgtable.h