linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Deming Wang <wangdeming@inspur.com>
To: <akpm@linux-foundation.org>
Cc: <linux-mm@kvack.org>, <linux-kernel@vger.kernel.org>,
	Deming Wang <wangdeming@inspur.com>
Subject: [PATCH] mm/gup: Fix the format of hugepte_addr_end and gup_hugepte
Date: Mon, 4 Jul 2022 08:34:58 -0400	[thread overview]
Message-ID: <20220704123458.14583-1-wangdeming@inspur.com> (raw)

Operators should be separated by spaces.

Signed-off-by: Deming Wang <wangdeming@inspur.com>
---
 mm/gup.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mm/gup.c b/mm/gup.c
index 0fa09ac3cf2f..2fd09f0820a4 100644
--- a/mm/gup.c
+++ b/mm/gup.c
@@ -2522,7 +2522,7 @@ static int record_subpages(struct page *page, unsigned long addr,
 static unsigned long hugepte_addr_end(unsigned long addr, unsigned long end,
 				      unsigned long sz)
 {
-	unsigned long __boundary = (addr + sz) & ~(sz-1);
+	unsigned long __boundary = (addr + sz) & ~(sz - 1);
 	return (__boundary - 1 < end - 1) ? __boundary : end;
 }
 
@@ -2536,7 +2536,7 @@ static int gup_hugepte(pte_t *ptep, unsigned long sz, unsigned long addr,
 	pte_t pte;
 	int refs;
 
-	pte_end = (addr + sz) & ~(sz-1);
+	pte_end = (addr + sz) & ~(sz - 1);
 	if (pte_end < end)
 		end = pte_end;
 
-- 
2.27.0



                 reply	other threads:[~2022-07-11  2:36 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=20220704123458.14583-1-wangdeming@inspur.com \
    --to=wangdeming@inspur.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.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