Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp902431pxj; Fri, 21 May 2021 01:40:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRNAErY1H+feUlmPXTGtMNrUkRqG10IyymXDsJcvTTG1ZXkTAjopIMr88eRUI4682UKqhh X-Received: by 2002:aa7:d455:: with SMTP id q21mr9876066edr.2.1621586404681; Fri, 21 May 2021 01:40:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621586404; cv=none; d=google.com; s=arc-20160816; b=mUi4rRmDzH6FZmk/meu1xZ9G0VSIZXpj2ss0Oci7JBO8mlNqwb0rvTWzxV31CavMUD ZJ4UnSxLryB6OzbBt6u8jtxM71F/LjPzohyFiVZNEEiiVNNkm44VnGzf5d7/rX6/udWt mvWhRVlXzOq5bv/ZKxoXHSDBDm+PBxNglyjly4/BvlrocjkqXakFxEPaDZe4y9yf3p/j iYhO/4zMBiY4OkkCSViDPMuaWUqSMwD5M8vy+tGHzc9pKODzP0Smfdj9ertFEP5OSiD2 nnUimBuEsrAXBrNrUn+OQfTv1BUNKjU8FUTcN6Cp+FXKfK+2GF58m8JyCcFSujDgn6do 57bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=99Is1Ox+Utl3amtJ0W3WXbULjI/XXbGGwaImoB8VLO0=; b=S+hiIWEsN3Up9EH7zcBkVDSe3b+CjvI6oFtLOxgwounQXJ63ayQBN+BWz4A5KBffbR oLO0VSn5u6kk7ZFLs3TWLZzhQqTCJELFU66CUhILknYNS4/OglFWD8qHkEs/h35YTDDX aom51WfEMgz1Z8TcM6LJ4pWoQ3tCuGSiJFlcYhlXdwHRYGXzDcwPVp4vhIOldqraLx29 qazZd4ZrBs+y8J1EIpDwCPm7PUMOVxkjQqQPAJsiUUT79Qxxp+Fu/COBZRwu7irg5E69 qHSh4gwnDe2mLlpW07wDFJyaYA3kd0dtNb8Foa9qwQOxSbligj8VQ6RNL4zwcIRWveKQ 1EZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b=SBhG7LJd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chrisdown.name Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o13si4932698edi.135.2021.05.21.01.39.40; Fri, 21 May 2021 01:40:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chrisdown.name header.s=google header.b=SBhG7LJd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chrisdown.name Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233944AbhETXZr (ORCPT + 99 others); Thu, 20 May 2021 19:25:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233032AbhETXZr (ORCPT ); Thu, 20 May 2021 19:25:47 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1284BC061574 for ; Thu, 20 May 2021 16:24:24 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id n17-20020a7bc5d10000b0290169edfadac9so6363681wmk.1 for ; Thu, 20 May 2021 16:24:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chrisdown.name; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=99Is1Ox+Utl3amtJ0W3WXbULjI/XXbGGwaImoB8VLO0=; b=SBhG7LJdDG6oVaDdeb1V/wPcz2OpmKfA0emiiCx8sx7w7QGGe+nk2Gbui8dplk3ueG JCAs/hx4f7hpDdW1E8Ycp+FbSStIqraiwdWD9CyXXvW3T4mu1RQWok0sn24AeMKWT0HP 9ObBbfleQHRmT9vl8GHFsOlCtoDtGn8WdgZSI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=99Is1Ox+Utl3amtJ0W3WXbULjI/XXbGGwaImoB8VLO0=; b=UlrCVSLNZsJef9sVGunEt4uwWKBaOhxoDcdVTNXPzFofZkbfQolidwhYnhzZKPLOE5 OyWEHmIsciwgtFWKNhRoT5oRkUCxX6OponEEhjXOp9jRSg+SM9URHITF2t6zG8gaBjKk wMTVFAfMEs38ahGiKh5YRFiX5mIU+q6oOLUWM4vV5ctyrr1Dbp74zIfiEFSLz2HWjZ2o t3SCnJeMWnPB4bTtdbVG1lyE+z1xKiG1ISxNU/4NloAYvMEbluF7huLj/nt+gEXgJ6hI fKutY++voG6TA26aoj+0mCpFRsBlH8TxZDYWJ/eF5jqIYbuKe0LOZdy3IC24cZU92vf+ Hkbg== X-Gm-Message-State: AOAM532QI8NbBX47dAEBuwnN6CQ7BnHnqzCv5jXw0aSR5ndBX/Khn7yD Xb33onssQsb6KSTVjk9F5MxmDw== X-Received: by 2002:a05:600c:4fd6:: with SMTP id o22mr5693192wmq.83.1621553062636; Thu, 20 May 2021 16:24:22 -0700 (PDT) Received: from localhost ([2620:10d:c093:400::5:ab33]) by smtp.gmail.com with ESMTPSA id f188sm10606713wmf.24.2021.05.20.16.24.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 May 2021 16:24:22 -0700 (PDT) Date: Fri, 21 May 2021 00:24:21 +0100 From: Chris Down To: Mel Gorman Cc: Andrew Morton , Michal Hocko , David Hildenbrand , Vlastimil Babka , Dan Streetman , Yang Shi , Linux-MM , LKML Subject: Re: [PATCH 06/14] mm/memcontrol.c: Fix kerneldoc comment for mem_cgroup_calculate_protection Message-ID: References: <20210520084809.8576-1-mgorman@techsingularity.net> <20210520084809.8576-7-mgorman@techsingularity.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20210520084809.8576-7-mgorman@techsingularity.net> User-Agent: Mutt/2.0.7 (481f3800) (2021-05-04) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mel Gorman writes: >make W=1 generates the following warning for mem_cgroup_calculate_protection > > mm/memcontrol.c:6468: warning: expecting prototype for mem_cgroup_protected(). Prototype was for mem_cgroup_calculate_protection() instead > >Commit 45c7f7e1ef17 ("mm, memcg: decouple e{low,min} state mutations from >protection checks") changed the function definition but not the associated >kerneldoc comment. > >Fixes: 45c7f7e1ef17 ("mm, memcg: decouple e{low,min} state mutations from protection checks") >Signed-off-by: Mel Gorman Whoops, thanks. Acked-by: Chris Down >--- > mm/memcontrol.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/mm/memcontrol.c b/mm/memcontrol.c >index 64ada9e650a5..030c1dc131ce 100644 >--- a/mm/memcontrol.c >+++ b/mm/memcontrol.c >@@ -6456,7 +6456,7 @@ static unsigned long effective_protection(unsigned long usage, > } > > /** >- * mem_cgroup_protected - check if memory consumption is in the normal range >+ * mem_cgroup_calculate_protection - check if memory consumption is in the normal range > * @root: the top ancestor of the sub-tree being checked > * @memcg: the memory cgroup to check > * >-- >2.26.2 > >