linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Hildenbrand <david@redhat.com>
To: Alex Shi <alex.shi@linux.alibaba.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	Pankaj gupta <pagupta@redhat.com>,
	Konstantin Khlebnikov <koct9i@gmail.com>,
	linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org
Subject: Re: [PATCH] proc: remove unused macro
Date: Tue, 21 Jan 2020 11:28:36 +0100	[thread overview]
Message-ID: <df87277c-31ff-c399-9819-0a237697efc4@redhat.com> (raw)
In-Reply-To: <1579602344-57171-1-git-send-email-alex.shi@linux.alibaba.com>

On 21.01.20 11:25, Alex Shi wrote:
> KPMBITS is never used from it was introduced. better to remove it.

I suggest

"fs/proc/page.c: remove unused macro KPMBITS

KPMBITS was never used since it was introduced in commit 3c3fc71c8cfa
("mm: introduce idle page tracking"). Let's remove it.
"

Reviewed-by: David Hildenbrand <david@redhat.com>

> 
> Signed-off-by: Alex Shi <alex.shi@linux.alibaba.com>
> Cc: Alexey Dobriyan <adobriyan@gmail.com> 
> Cc: Andrew Morton <akpm@linux-foundation.org> 
> Cc: David Hildenbrand <david@redhat.com> 
> Cc: "Michael S. Tsirkin" <mst@redhat.com> 
> Cc: Pankaj gupta <pagupta@redhat.com> 
> Cc: Konstantin Khlebnikov <koct9i@gmail.com> 
> Cc: linux-kernel@vger.kernel.org 
> Cc: linux-fsdevel@vger.kernel.org 
> ---
>  fs/proc/page.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/fs/proc/page.c b/fs/proc/page.c
> index 7c952ee732e6..c4b1005a82bc 100644
> --- a/fs/proc/page.c
> +++ b/fs/proc/page.c
> @@ -19,7 +19,6 @@
>  
>  #define KPMSIZE sizeof(u64)
>  #define KPMMASK (KPMSIZE - 1)
> -#define KPMBITS (KPMSIZE * BITS_PER_BYTE)
>  
>  /* /proc/kpagecount - an array exposing page counts
>   *
> 


-- 
Thanks,

David / dhildenb


      reply	other threads:[~2020-01-21 10:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-21 10:25 [PATCH] proc: remove unused macro Alex Shi
2020-01-21 10:28 ` David Hildenbrand [this message]

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=df87277c-31ff-c399-9819-0a237697efc4@redhat.com \
    --to=david@redhat.com \
    --cc=adobriyan@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=alex.shi@linux.alibaba.com \
    --cc=koct9i@gmail.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mst@redhat.com \
    --cc=pagupta@redhat.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).