From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1468EC433EF for ; Fri, 15 Oct 2021 00:47:54 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 975AB61056 for ; Fri, 15 Oct 2021 00:47:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 975AB61056 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.dev Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 9C0D1900002; Thu, 14 Oct 2021 20:47:52 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 96FB16B0071; Thu, 14 Oct 2021 20:47:52 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 85E25900002; Thu, 14 Oct 2021 20:47:52 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0183.hostedemail.com [216.40.44.183]) by kanga.kvack.org (Postfix) with ESMTP id 731996B006C for ; Thu, 14 Oct 2021 20:47:52 -0400 (EDT) Received: from smtpin19.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 31C8618099AD7 for ; Fri, 15 Oct 2021 00:47:52 +0000 (UTC) X-FDA: 78696834384.19.0832E3F Received: from out2.migadu.com (out2.migadu.com [188.165.223.204]) by imf18.hostedemail.com (Postfix) with ESMTP id 856814002085 for ; Fri, 15 Oct 2021 00:47:50 +0000 (UTC) Date: Fri, 15 Oct 2021 09:47:39 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1634258869; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ickJvln+rsXVabX/wO+mljmO4yfFMnfLFPLPT5C0Ex4=; b=IWulHE5VlIH9WX+kHlx/0BjQ7wbBYLwmPIFXRqM5DiN7UHsz8DJ58ZqnjhB+OFYDpdw2I/ gX8YRoSDuX7oG/JWx6MxZ/1l+UfysZCK1Jc4wQwz0dOIaTEpUc1jVlVM6o1UimkLG2T9Tz t7WVZLkZhdUmgofWDHtltTL0fbMz+48= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Naoya Horiguchi To: Rikard Falkeborn Cc: SeongJae Park , Andrew Morton , Naoya Horiguchi , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] mm/memory_failure: constify static mm_walk_ops Message-ID: <20211015004739.GA2055926@u2004> References: <20211014075042.17174-1-rikard.falkeborn@gmail.com> <20211014075042.17174-3-rikard.falkeborn@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20211014075042.17174-3-rikard.falkeborn@gmail.com> X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: naoya.horiguchi@linux.dev X-Rspamd-Queue-Id: 856814002085 X-Stat-Signature: 99ry5uwf8ab5h169qgn1715ocujbj869 Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=IWulHE5V; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf18.hostedemail.com: domain of naoya.horiguchi@linux.dev designates 188.165.223.204 as permitted sender) smtp.mailfrom=naoya.horiguchi@linux.dev X-Rspamd-Server: rspam02 X-HE-Tag: 1634258870-926271 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: On Thu, Oct 14, 2021 at 09:50:42AM +0200, Rikard Falkeborn wrote: > The only usage of hwp_walk_ops is to pass its address to > walk_page_range() which takes a pointer to const mm_walk_ops as > argument. Make it const to allow the compiler to put it in read-only > memory. > > Signed-off-by: Rikard Falkeborn Acked-by: Naoya Horiguchi