From patchwork Mon Jul 5 05:39:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 12358285 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C9090C07E98 for ; Mon, 5 Jul 2021 05:40:04 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 323F5613DA for ; Mon, 5 Jul 2021 05:40:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 323F5613DA Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id E3E9B6B0011; Mon, 5 Jul 2021 01:40:03 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E15646B0036; Mon, 5 Jul 2021 01:40:03 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CB5986B005D; Mon, 5 Jul 2021 01:40:03 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0195.hostedemail.com [216.40.44.195]) by kanga.kvack.org (Postfix) with ESMTP id A994F6B0011 for ; Mon, 5 Jul 2021 01:40:03 -0400 (EDT) Received: from smtpin31.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 262E31815EB5C for ; Mon, 5 Jul 2021 05:40:03 +0000 (UTC) X-FDA: 78327433086.31.F24F31C Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf21.hostedemail.com (Postfix) with ESMTP id 69796D001A08 for ; Mon, 5 Jul 2021 05:40:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=YHWOT6TnzLftFSE6xlvKVVPG+T+zbVUgH4vkVrKNrms=; b=MlogUB/76NRl4/Xiou0k26HecO Elxvipysa5VSI95P81cZle8ne5CH7cJBFtYEM8iKROpDGD8wtmm5HuM3kqZAJdVANCHB/LZUKlq7l 1e0yJYd6s+S1+zPHUlEAiMtBfU0rq7137wYtQCnryczwcOL6953/ESz1ohIke97BJ049u+U6CMoA2 rq+hgkrEoFQlrmUYEmICdXg1lvMfkG+x89fhjc9dOh3cbfz53CKlEIa+VN4pWPbgOiSKxL9lzJBwW 5OJ1wcEZw02IN94HJapKqpds5oVq+U8P3Jcr2Ko2eAQ+Kupj6VtcAiILKRQZfvPuezez1yYgZVVtR 72LaX4Bg==; Received: from 213-225-15-202.nat.highway.a1.net ([213.225.15.202] helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1m0HKc-009v5i-R9; Mon, 05 Jul 2021 05:39:50 +0000 From: Christoph Hellwig To: akpm@linux-foundation.org Cc: linux-mm@kvack.org Subject: [PATCH] mm: fix the try_to_unmap prototype for !CONFIG_MMU Date: Mon, 5 Jul 2021 07:39:44 +0200 Message-Id: <20210705053944.885828-1-hch@lst.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b="MlogUB/7"; spf=none (imf21.hostedemail.com: domain of BATV@casper.srs.infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=BATV@casper.srs.infradead.org; dmarc=none X-Stat-Signature: mbkmgs97i1neor3n8zq5hy34qnqd31cq X-Rspamd-Queue-Id: 69796D001A08 X-Rspamd-Server: rspam06 X-HE-Tag: 1625463602-903576 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Adjust the nommu stub of try_to_unmap to match the changed protype for the full version. Turn it into an inline instead of a macro to generally improve the type checking. Fixes: 1fb08ac63bee ("mm: rmap: make try_to_unmap() void function") Signed-off-by: Christoph Hellwig --- include/linux/rmap.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/linux/rmap.h b/include/linux/rmap.h index 83fb86133fe1..c976cc6de257 100644 --- a/include/linux/rmap.h +++ b/include/linux/rmap.h @@ -291,7 +291,9 @@ static inline int page_referenced(struct page *page, int is_locked, return 0; } -#define try_to_unmap(page, refs) false +static inline void try_to_unmap(struct page *page, enum ttu_flags flags) +{ +} static inline int page_mkclean(struct page *page) {