.. | .. |
---|
421 | 421 | static void __init create_mapping_noalloc(phys_addr_t phys, unsigned long virt, |
---|
422 | 422 | phys_addr_t size, pgprot_t prot) |
---|
423 | 423 | { |
---|
424 | | - if ((virt >= PAGE_END) && (virt < VMALLOC_START)) { |
---|
| 424 | + if (virt < PAGE_OFFSET) { |
---|
425 | 425 | pr_warn("BUG: not creating mapping for %pa at 0x%016lx - outside kernel range\n", |
---|
426 | 426 | &phys, virt); |
---|
427 | 427 | return; |
---|
.. | .. |
---|
448 | 448 | static void update_mapping_prot(phys_addr_t phys, unsigned long virt, |
---|
449 | 449 | phys_addr_t size, pgprot_t prot) |
---|
450 | 450 | { |
---|
451 | | - if ((virt >= PAGE_END) && (virt < VMALLOC_START)) { |
---|
| 451 | + if (virt < PAGE_OFFSET) { |
---|
452 | 452 | pr_warn("BUG: not updating mapping for %pa at 0x%016lx - outside kernel range\n", |
---|
453 | 453 | &phys, virt); |
---|
454 | 454 | return; |
---|