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 X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, 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 8D946C4727E for ; Sun, 4 Oct 2020 00:18:30 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 48146206C9 for ; Sun, 4 Oct 2020 00:18:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 48146206C9 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=perches.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id D30FC6B0062; Sat, 3 Oct 2020 20:18:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CE0D56B0068; Sat, 3 Oct 2020 20:18:29 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B8E828E0001; Sat, 3 Oct 2020 20:18:29 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0161.hostedemail.com [216.40.44.161]) by kanga.kvack.org (Postfix) with ESMTP id 822016B0062 for ; Sat, 3 Oct 2020 20:18:29 -0400 (EDT) Received: from smtpin16.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 143561EE6 for ; Sun, 4 Oct 2020 00:18:29 +0000 (UTC) X-FDA: 77332331538.16.vase54_1f024f6271b1 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin16.hostedemail.com (Postfix) with ESMTP id E04CD101373AE for ; Sun, 4 Oct 2020 00:18:28 +0000 (UTC) X-HE-Tag: vase54_1f024f6271b1 X-Filterd-Recvd-Size: 3712 Received: from smtprelay.hostedemail.com (smtprelay0134.hostedemail.com [216.40.44.134]) by imf27.hostedemail.com (Postfix) with ESMTP for ; Sun, 4 Oct 2020 00:18:28 +0000 (UTC) Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay01.hostedemail.com (Postfix) with ESMTP id 55179100E7B40; Sun, 4 Oct 2020 00:18:28 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-HE-Tag: error38_2901c78271b1 X-Filterd-Recvd-Size: 2620 Received: from joe-laptop.perches.com (unknown [47.151.133.149]) (Authenticated sender: joe@perches.com) by omf15.hostedemail.com (Postfix) with ESMTPA; Sun, 4 Oct 2020 00:18:26 +0000 (UTC) From: Joe Perches To: Seth Jennings , Dan Streetman , Vitaly Wool , Andrew Morton Cc: "Maciej S. Szmigiero" , Dan Carpenter , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/4] mm/zswap: Make struct kernel_param_ops definitions const Date: Sat, 3 Oct 2020 17:18:09 -0700 Message-Id: <1791535ee0b00f4a5c68cc4a8adada06593ad8f1.1601770305.git.joe@perches.com> X-Mailer: git-send-email 2.26.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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: These should be const, so make it so. Signed-off-by: Joe Perches --- mm/zswap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/zswap.c b/mm/zswap.c index fbb782924ccc..1eced701b3bd 100644 --- a/mm/zswap.c +++ b/mm/zswap.c @@ -81,7 +81,7 @@ static bool zswap_pool_reached_full; static bool zswap_enabled =3D IS_ENABLED(CONFIG_ZSWAP_DEFAULT_ON); static int zswap_enabled_param_set(const char *, const struct kernel_param *); -static struct kernel_param_ops zswap_enabled_param_ops =3D { +static const struct kernel_param_ops zswap_enabled_param_ops =3D { .set =3D zswap_enabled_param_set, .get =3D param_get_bool, }; @@ -91,7 +91,7 @@ module_param_cb(enabled, &zswap_enabled_param_ops, &zsw= ap_enabled, 0644); static char *zswap_compressor =3D CONFIG_ZSWAP_COMPRESSOR_DEFAULT; static int zswap_compressor_param_set(const char *, const struct kernel_param *); -static struct kernel_param_ops zswap_compressor_param_ops =3D { +static const struct kernel_param_ops zswap_compressor_param_ops =3D { .set =3D zswap_compressor_param_set, .get =3D param_get_charp, .free =3D param_free_charp, @@ -102,7 +102,7 @@ module_param_cb(compressor, &zswap_compressor_param_o= ps, /* Compressed storage zpool to use */ static char *zswap_zpool_type =3D CONFIG_ZSWAP_ZPOOL_DEFAULT; static int zswap_zpool_param_set(const char *, const struct kernel_param= *); -static struct kernel_param_ops zswap_zpool_param_ops =3D { +static const struct kernel_param_ops zswap_zpool_param_ops =3D { .set =3D zswap_zpool_param_set, .get =3D param_get_charp, .free =3D param_free_charp, --=20 2.26.0