From: Bob Liu <lliubbo@gmail.com>
To: Johannes Weiner <hannes@cmpxchg.org>
Cc: akpm@linux-foundation.org, linux-mm@kvack.org, mpm@selenic.com
Subject: Re: [PATCH] slob: remove unused funtion
Date: Sat, 10 Jul 2010 21:26:53 +0800 [thread overview]
Message-ID: <AANLkTimSde6WsI0ySznpmeKqShJfLpimikjrHN9RTpx8@mail.gmail.com> (raw)
In-Reply-To: <20100710105700.GD25806@cmpxchg.org>
On Sat, Jul 10, 2010 at 6:57 PM, Johannes Weiner <hannes@cmpxchg.org> wrote:
> 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:
>
Why ?
And I can compile it successfully after remove this funtion.
Thanks.
> 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)); }
>
--
Regards,
--Bob
--
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 13:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-10 10:05 [PATCH] slob: remove unused funtion Bob Liu
2010-07-10 10:57 ` Johannes Weiner
2010-07-10 13:26 ` Bob Liu [this message]
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=AANLkTimSde6WsI0ySznpmeKqShJfLpimikjrHN9RTpx8@mail.gmail.com \
--to=lliubbo@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=hannes@cmpxchg.org \
--cc=linux-mm@kvack.org \
--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;
as well as URLs for NNTP newsgroup(s).