From: Johannes Weiner <hannes@cmpxchg.org>
To: Bob Liu <lliubbo@gmail.com>
Cc: akpm@linux-foundation.org, linux-mm@kvack.org, mpm@selenic.com
Subject: Re: [PATCH] slob: remove unused funtion
Date: Sat, 10 Jul 2010 12:57:00 +0200 [thread overview]
Message-ID: <20100710105700.GD25806@cmpxchg.org> (raw)
In-Reply-To: <1278756353-6884-1-git-send-email-lliubbo@gmail.com>
On Sat, Jul 10, 2010 at 06:05:53PM +0800, Bob Liu wrote:
> funtion struct_slob_page_wrong_size() is not used anymore, remove it
>
> Signed-off-by: Bob Liu <lliubbo@gmail.com>
> ---
> mm/slob.c | 2 --
> 1 files changed, 0 insertions(+), 2 deletions(-)
>
> diff --git a/mm/slob.c b/mm/slob.c
> index d582171..832d2b5 100644
> --- a/mm/slob.c
> +++ b/mm/slob.c
> @@ -109,8 +109,6 @@ struct slob_page {
> struct page page;
> };
> };
> -static inline void struct_slob_page_wrong_size(void)
> -{ BUILD_BUG_ON(sizeof(struct slob_page) != sizeof(struct page)); }
It is not unused! Try `make mm/slob.o' with the following patch
applied:
diff --git a/mm/slob.c b/mm/slob.c
index 23631e2..d50ff8e 100644
--- a/mm/slob.c
+++ b/mm/slob.c
@@ -106,6 +106,7 @@ struct slob_page {
};
struct page page;
};
+ unsigned long foo;
};
static inline void struct_slob_page_wrong_size(void)
{ BUILD_BUG_ON(sizeof(struct slob_page) != sizeof(struct page)); }
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2010-07-10 10:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-10 10:05 Bob Liu
2010-07-10 10:57 ` Johannes Weiner [this message]
2010-07-10 13:26 ` Bob Liu
2010-07-10 14:57 ` Matt Mackall
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=20100710105700.GD25806@cmpxchg.org \
--to=hannes@cmpxchg.org \
--cc=akpm@linux-foundation.org \
--cc=linux-mm@kvack.org \
--cc=lliubbo@gmail.com \
--cc=mpm@selenic.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox