Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1233119

Re: [PATCH 01/15] avr32: convert to asm-generic/memory_model.h

From Dan Williams <dan.j.williams@intel.com>
Newsgroups linux.kernel
Subject Re: [PATCH 01/15] avr32: convert to asm-generic/memory_model.h
Date 2015-09-26 02:40 +0200
Message-ID <qcLGW-KJ-13@gated-at.bofh.it> (permalink)
References <qbKae-20h-7@gated-at.bofh.it> <qbKae-20h-17@gated-at.bofh.it> <qcgtt-6OZ-27@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Sep 24, 2015 at 8:10 AM, Christoph Hellwig <hch@infradead.org> wrote:
> On Wed, Sep 23, 2015 at 12:41:18AM -0400, Dan Williams wrote:
>> Switch avr32/include/asm/page.h to use the common defintions for
>> pfn_to_page(), page_to_pfn(), and ARCH_PFN_OFFSET.
>
> This was the last architecture not using asm-generic/memory_model.h,
> so it might be time to move it to linux/ or even fold it into an
> existing header.

I went to go attempt this, but ia64 is still a holdout, as its
DISCONTIGMEM setup can't use the generic memory_model definitions.

#ifdef CONFIG_DISCONTIGMEM
# define page_to_pfn(page)      ((unsigned long) (page - vmem_map))
# define pfn_to_page(pfn)       (vmem_map + (pfn))
#else
# include <asm-generic/memory_model.h>
#endif
#else
# include <asm-generic/memory_model.h>
#endif
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 01/15] avr32: convert to asm-generic/memory_model.h Dan Williams <dan.j.williams@intel.com> - 2015-09-23 06:50 +0200
  Re: [PATCH 01/15] avr32: convert to asm-generic/memory_model.h Christoph Hellwig <hch@infradead.org> - 2015-09-24 17:20 +0200
    Re: [PATCH 01/15] avr32: convert to asm-generic/memory_model.h Dan Williams <dan.j.williams@intel.com> - 2015-09-26 02:40 +0200
      Re: [PATCH 01/15] avr32: convert to asm-generic/memory_model.h Christoph Hellwig <hch@infradead.org> - 2015-09-26 22:20 +0200
        RE: [PATCH 01/15] avr32: convert to asm-generic/memory_model.h "Luck, Tony" <tony.luck@intel.com> - 2015-09-28 20:50 +0200

csiph-web