summaryrefslogtreecommitdiff
path: root/include/linux/isa.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/isa.h')
0 files changed, 0 insertions, 0 deletions
y = (phys_addr_t)x << PAGE_SHIFT - y >> PAGE_SHIFT = (phys_add_t)x - (unsigned long)(y >> PAGE_SHIFT) = x [akpm@linux-foundation.org: use macro arg name `x'] [arnd@arndb.de: include linux/pfn.h for PHYS_PFN definition] Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com> Cc: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> mm: fix type cast in __pfn_to_phys() 2015-09-19T07:58:10Z Tyler Baker tyler.baker@linaro.org 2015-09-19T07:58:10Z urn:sha1:ae4f976968896f8f41b3a7aa21be6146492211e5 The various definitions of __pfn_to_phys() have been consolidated to use a generic macro in include/asm-generic/memory_model.h. This hit mainline in the form of 012dcef3f058 "mm: move __phys_to_pfn and __pfn_to_phys to asm/generic/memory_model.h". When the generic macro was implemented the type cast to phys_addr_t was dropped which caused boot regressions on ARM platforms with more than 4GB of memory and LPAE enabled. It was suggested to use PFN_PHYS() defined in include/linux/pfn.h as provides the correct logic and avoids further duplication. Reported-by: kernelci.org bot <bot@kernelci.org> Suggested-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Tyler Baker <tyler.baker@linaro.org> Signed-off-by: Dan Williams <dan.j.williams@intel.com> mm: move __phys_to_pfn and __pfn_to_phys to asm/generic/memory_model.h 2015-08-27T23:40:58Z Christoph Hellwig hch@lst.de 2015-08-07T21:41:01Z urn:sha1:012dcef3f058385268630c0003e9b7f8dcafbeb4 Three architectures already define these, and we'll need them genericly soon. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Dan Williams <dan.j.williams@intel.com> __page_to_pfn: Fix typo in comment 2013-10-14T13:28:29Z Zhang Yanfei zhangyanfei@cn.fujitsu.com 2013-10-03T11:38:14Z urn:sha1:1a49123b34346154ffd70f0b60dce007f1605676 Fix typo in __page_to_pfn comment: s/encorded/encoded. Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz> mm: fix __page_to_pfn for a const struct page argument 2011-08-17T20:00:20Z Ian Campbell ian.campbell@citrix.com 2011-08-17T16:40:33Z urn:sha1:aa462abe8aaf2198d6aef97da20c874ac694a39f This allows the cast in lowmem_page_address (introduced as a warning fixup to 33dd4e0ec911 "mm: make some struct page's const") to be removed. Propagate const'ness to page_to_section() as well since it is required by __page_to_pfn. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Rik van Riel <riel@redhat.com> Cc: Andrea Arcangeli <aarcange@redhat.com> Cc: Michel Lespinasse <walken@google.com> Cc: Mel Gorman <mel@csn.ul.ie> Cc: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>