All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jan Beulich" <jbeulich@novell.com>
To: xen-devel@lists.xensource.com
Subject: [PATCH 6/8] 2.6.17: no need for include/linux/pfn.h
Date: Wed, 14 Feb 2007 15:59:58 +0000	[thread overview]
Message-ID: <45D3400E.76E4.0078.0@novell.com> (raw)

One less common file needing changes (and hence presence in the sparse
tree).

Signed-off-by: Jan Beulich <jbeulich@novell.com>

Index: head-2007-02-08/arch/i386/mach-xen/setup.c
===================================================================
--- head-2007-02-08.orig/arch/i386/mach-xen/setup.c	2007-02-08 17:07:13.000000000 +0100
+++ head-2007-02-08/arch/i386/mach-xen/setup.c	2007-02-08 17:09:47.000000000 +0100
@@ -67,7 +67,7 @@ char * __init machine_specific_memory_se
 	if ( rc == -ENOSYS ) {
 		memmap.nr_entries = 1;
 		map[0].addr = 0ULL;
-		map[0].size = PFN_PHYS(xen_start_info->nr_pages);
+		map[0].size = PFN_PHYS((unsigned long long)xen_start_info->nr_pages);
 		/* 8MB slack (to balance backend allocations). */
 		map[0].size += 8ULL << 20;
 		map[0].type = E820_RAM;
Index: head-2007-02-08/include/linux/pfn.h
===================================================================
--- head-2007-02-08.orig/include/linux/pfn.h	2007-02-08 17:07:13.000000000 +0100
+++ /dev/null
@@ -1,9 +0,0 @@
-#ifndef _LINUX_PFN_H_
-#define _LINUX_PFN_H_
-
-#define PFN_ALIGN(x)	(((unsigned long long)(x) + (PAGE_SIZE - 1)) & PAGE_MASK)
-#define PFN_UP(x)	(((x) + PAGE_SIZE-1) >> PAGE_SHIFT)
-#define PFN_DOWN(x)	((x) >> PAGE_SHIFT)
-#define PFN_PHYS(x)	((unsigned long long)(x) << PAGE_SHIFT)
-
-#endif

                 reply	other threads:[~2007-02-14 15:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45D3400E.76E4.0078.0@novell.com \
    --to=jbeulich@novell.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.