X-Received: by 2002:a17:90a:6809:b0:1b9:bc46:fdd7 with SMTP id p9-20020a17090a680900b001b9bc46fdd7mr12217715pjj.148.1645668660128; Wed, 23 Feb 2022 18:11:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645668660; cv=none; d=google.com; s=arc-20160816; b=CanEHqdHrPElLDwn6UtLhG00xCdH90NWrB4aXoX9pXmajc0IPQed7r+8bTH9EcbEIg YqN5J2KjYpeGALJ55hoa9w+Dera/MeMfCpnI9I7AhiL1HqomHskD/5QnvaFICmZrIIm1 xTXoQsm/BEn9gs62K/j48hE63gewCnTs4DCIL1HqErYNZetO5VTvEVbSLULMeA9Wrbib RwQ4KWUgY9ov5aTNcxK8sU7TBkhHg2ljMLSQnKcwv/cbmONGtxKflc/wigGYB2mnTs/7 gnnZYq05uaLwAkmRpiJpmqNxNnOrApbLV4+rHFEhy6hK5UtPanHtESSgO4IKZpYnmcVB XK7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=xyw64Hb0/HI44JbTFve0Z4oeRPtFU5qA3O5IOaQrDj8=; b=jzpWFDyfH6nXy9BhU2r3eiSzYDQXPeTGX3uABc1278RC6CgB+oeoMy4uC2swMLFfkW zV5MHD0yHxB1TSyeYNY1zPCtfU5NQVAuve8XNkL5I9PxIlUO8sfydKdSfROR78hxD4Tm ej10eIT+GJWMjRGrLSO18qTuOK+GnaFPG+QxuUXKeynGMSB7f2/8Aqo8fM5QY4ktdh8w iVa7h1/KQHkuqe0VGWFdtkEeVRmFr8Z+MGcXtiY5BAi93xp0Q61Lcv/ReVjU/DFSigyJ WLgCJ2cCqRAIy6K24IRp1EV/wnLRzwcMgeL65k7K+whgnBGqpUcazJJK1OWCvH6VDLl9 peKA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 67si1223496pga.632.2022.02.23.18.10.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Feb 2022 18:11:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 229F4105AA9; Wed, 23 Feb 2022 17:44:00 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229739AbiBXBoW (ORCPT + 99 others); Wed, 23 Feb 2022 20:44:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229747AbiBXBoT (ORCPT ); Wed, 23 Feb 2022 20:44:19 -0500 Received: from out199-11.us.a.mail.aliyun.com (out199-11.us.a.mail.aliyun.com [47.90.199.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87889FBF16 for ; Wed, 23 Feb 2022 17:43:49 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R201e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04423;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0V5LKxlS_1645667025; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0V5LKxlS_1645667025) by smtp.aliyun-inc.com(127.0.0.1); Thu, 24 Feb 2022 09:43:45 +0800 From: Yang Li To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next] mm/rmap: Fix argument list that the kdoc format and script verified. Date: Thu, 24 Feb 2022 09:43:44 +0800 Message-Id: <20220224014344.99537-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The warnings were found by running scripts/kernel-doc, which is caused by using 'make W=1'. mm/rmap.c:1684: warning: Function parameter or member 'folio' not described in 'try_to_unmap' mm/rmap.c:1684: warning: Excess function parameter 'page' description in 'try_to_unmap' mm/rmap.c:2086: warning: Function parameter or member 'folio' not described in 'folio_make_device_exclusive' mm/rmap.c:2086: warning: expecting prototype for page_make_device_exclusive(). Prototype was for folio_make_device_exclusive() instead Reported-by: Abaci Robot Signed-off-by: Yang Li --- mm/rmap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/rmap.c b/mm/rmap.c index d27d79ec11b7..ebcf17d8ac1c 100644 --- a/mm/rmap.c +++ b/mm/rmap.c @@ -1671,7 +1671,7 @@ static int page_not_mapped(struct folio *folio) /** * try_to_unmap - try to remove all page table mappings to a page - * @page: the page to get unmapped + * @folio: The folio we're currently operating on. * @flags: action and flags * * Tries to remove all the page table entries which are mapping this @@ -2068,8 +2068,8 @@ static bool page_make_device_exclusive_one(struct folio *folio, } /** - * page_make_device_exclusive - mark the page exclusively owned by a device - * @page: the page to replace page table entries for + * folio_make_device_exclusive - mark the page exclusively owned by a device + * @folio: The folio we're currently operating on. * @mm: the mm_struct where the page is expected to be mapped * @address: address where the page is expected to be mapped * @owner: passed to MMU_NOTIFY_EXCLUSIVE range notifier callbacks -- 2.20.1.7.g153144c