From: David Howells <dhowells@redhat.com>
To: akpm@osdl.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] Remove #ifdefs from linux/mm.h
Date: Wed, 15 Dec 2004 14:17:39 +0000 [thread overview]
Message-ID: <24248.1103120259@redhat.com> (raw)
The attached patch removes some now unnecessary #ifdefs from linux/mm.h. This
is possible because we're now using the proper vm_area_struct structure.
Signed-Off-By: David Howells <dhowells@redhat.com>
---
warthog>lsdiff nommu-ifdef-2610rc3.diff
linux-2.6.10-rc3-mm1-base/include/linux/mm.h
diff -uNrp linux-2.6.10-rc3-mm1-base/include/linux/mm.h linux-2.6.10-rc3-mm1-nommu-rb/include/linux/mm.h
--- linux-2.6.10-rc3-mm1-base/include/linux/mm.h 2004-12-13 17:34:21.000000000 +0000
+++ linux-2.6.10-rc3-mm1-nommu-rb/include/linux/mm.h 2004-12-15 13:38:04.000000000 +0000
@@ -724,14 +724,12 @@ struct vm_area_struct *vma_prio_tree_nex
for (prio_tree_iter_init(iter, root, begin, end), vma = NULL; \
(vma = vma_prio_tree_next(vma, iter)); )
-#ifdef CONFIG_MMU
static inline void vma_nonlinear_insert(struct vm_area_struct *vma,
struct list_head *list)
{
vma->shared.vm_set.parent = NULL;
list_add_tail(&vma->shared.vm_set.list, list);
}
-#endif
/* mmap.c */
extern void vma_adjust(struct vm_area_struct *vma, unsigned long start,
@@ -849,7 +847,6 @@ static inline void __vm_stat_account(str
}
#endif /* CONFIG_PROC_FS */
-#ifdef CONFIG_MMU
static inline void vm_stat_account(struct vm_area_struct *vma)
{
__vm_stat_account(vma->vm_mm, vma->vm_flags, vma->vm_file,
@@ -861,7 +858,6 @@ static inline void vm_stat_unaccount(str
__vm_stat_account(vma->vm_mm, vma->vm_flags, vma->vm_file,
-vma_pages(vma));
}
-#endif
/* update per process rss and vm hiwater data */
extern void update_mem_hiwater(void);
reply other threads:[~2004-12-15 14:18 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=24248.1103120259@redhat.com \
--to=dhowells@redhat.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox