lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20240422032725.41452-1-gehao@kylinos.cn>
Date: Mon, 22 Apr 2024 11:27:25 +0800
From: Hao Ge <gehao@...inos.cn>
To: akpm@...ux-foundation.org,
	willy@...radead.org
Cc: david@...hat.com,
	lrh2000@....edu.cn,
	josef@...icpanda.com,
	vishal.moola@...il.com,
	gehao618@....com,
	linux-mm@...ck.org,
	linux-kernel@...r.kernel.org,
	Hao Ge <gehao@...inos.cn>
Subject: [PATCH] mm/page-flags: make PageUptodate return bool

make PageUptodate return bool to align the return
values of folio_test_uptodate function

Signed-off-by: Hao Ge <gehao@...inos.cn>
---
 include/linux/page-flags.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h
index 652d77805e99..497ec781a681 100644
--- a/include/linux/page-flags.h
+++ b/include/linux/page-flags.h
@@ -764,7 +764,7 @@ static inline bool folio_test_uptodate(const struct folio *folio)
 	return ret;
 }
 
-static inline int PageUptodate(const struct page *page)
+static inline bool PageUptodate(const struct page *page)
 {
 	return folio_test_uptodate(page_folio(page));
 }
-- 
2.25.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ