#include <linux/bug.h> #include <linux/export.h> #include <linux/types.h> #include <linux/mmdebug.h> #include <linux/mm.h> #include <asm/sections.h> #include <asm/memory.h> #include <asm/fixmap.h> #include <asm/dma.h> #include "mm.h"
static inline bool __virt_addr_valid(unsigned long x) { /* * high_memory does not get immediately defined, and there * are early callers of __pa() against PAGE_OFFSET */ if (!high_memory && x >= PAGE_OFFSET) return true; if (high_memory && x >= PAGE_OFFSET && x < (unsigned long)high_memory) return true; /* * MAX_DMA_ADDRESS is a virtual address that may not correspond to an * actual physical address. Enough code relies on __pa(MAX_DMA_ADDRESS) * that we just need to work around it and always return true. */ if (x == MAX_DMA_ADDRESS) return true; return false; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Florian Fainelli | 56 | 100.00% | 1 | 100.00% |
Total | 56 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Florian Fainelli | 38 | 100.00% | 1 | 100.00% |
Total | 38 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Florian Fainelli | 35 | 100.00% | 1 | 100.00% |
Total | 35 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Florian Fainelli | 169 | 100.00% | 1 | 100.00% |
Total | 169 | 100.00% | 1 | 100.00% |