Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp645078pxb; Fri, 15 Oct 2021 12:56:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJ6l5mhy0R7N39IvT4ioknp3sSjED7xjivf5LPfxu6kur+pc3lvUebYxdvS7xYM1dU8AsV X-Received: by 2002:a17:907:3f15:: with SMTP id hq21mr9246560ejc.440.1634327787071; Fri, 15 Oct 2021 12:56:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634327787; cv=none; d=google.com; s=arc-20160816; b=oVVGHJ1bt5QTpDn2kGs0GtHOTpN0NJUBMjg4lSBmEeCy+xcQ7Fd9dJRhIxsq2WbO8F 4olsHN+paMjoufPggK0BKDCRjtog4+r9gxiJCQJi8teefOyZA9QlWVvtbEpCY1Wnf8Sh zMvH3O0I+fiv0rN49CywzkMU6cQFKXEczfaapCyG5fYRDkr4K35WDtkvnRlrHqorxpTF nviIsOIoXcE/4Y31YLUHocJ458d8IxeuKnbWB7AQMlm6gdRI/ahsl6OdHnfJYwMJof8l xGcoJBLCfkwf5wJSjF+0+Q06ysy++EAmCxH8hO+36uSFMdFr5aaFHsbE3AYe+jyYKYaI qKMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=9pF2kPRpXi3VQlkEiEVES+5nS9danADB6qwkc1QnpQw=; b=ibIre5z+m8riJnMgSzPA7tLKkYK7+4RdemuoPs+8fOn5VC5rvS7OIMENKN3Lxezn2Y 2ZvBw7PGBixFfBJ7KqrgVnU9hSr5dOe/BZCY5Qu8cqn2jjFbQk+tA2RuVjjRs1tGDqxJ EUsmMlPO+hhd+BAgJdm6HzMB55MF+N1J3NR4WE7qK0tpuDHv1dPFotwFz84VVzT9XlaY ymcO39BGJtFRO5l/8Vo/Sdf8qGNX94JsPynD71YmmPB+KU42sWe6twtP+/KlKts1/MS8 +g6PP8MGpiIXZ8upwUYglv5DZqYU1zR9nPq9/dF1htM+dAQoaS1V2hZXsQpMejphQ1T+ 1n0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=rAmuAb8y; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lj16si8357581ejb.334.2021.10.15.12.56.03; Fri, 15 Oct 2021 12:56:27 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=rAmuAb8y; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238290AbhJOLOe (ORCPT + 99 others); Fri, 15 Oct 2021 07:14:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230031AbhJOLOb (ORCPT ); Fri, 15 Oct 2021 07:14:31 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1708C061570; Fri, 15 Oct 2021 04:12:25 -0700 (PDT) Received: from pendragon.ideasonboard.com (cpc89244-aztw30-2-0-cust3082.18-1.cable.virginm.net [86.31.172.11]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 714062E3; Fri, 15 Oct 2021 13:12:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1634296343; bh=uynZabXZy8nfj/k/5uQB3ukn1EYdSOycveOzbdcINP8=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=rAmuAb8yHDL15D8KxoZTtm6i60MM2L+sydajRhUETQbJvbbeZ8XSmSdJM80LjzI/J R9S2qAJ8n6Sq/0UjLpmapaCYOVgtqTHxfvC9Hmcy17AHm6NiOOXm/e8ZdZubwLd7MG YkLvPrAuAmz/jSZOVRaegyZnHbU5L3lepJPBAKqQ= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20211012221144.30638-1-rikard.falkeborn@gmail.com> References: <20211012221144.30638-1-rikard.falkeborn@gmail.com> Subject: Re: [PATCH] staging: media: rkvdec: Constify static struct v4l2_m2m_ops From: Kieran Bingham Cc: Greg Kroah-Hartman , linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Rikard Falkeborn To: Ezequiel Garcia , Mauro Carvalho Chehab , Rikard Falkeborn Date: Fri, 15 Oct 2021 12:12:20 +0100 Message-ID: <163429634048.4171071.2327108342733912267@Monstersaurus> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Rikard Falkeborn (2021-10-12 23:11:44) > The only usage of rkvdec_m2m_ops is to pass its address to v4l2_m2m_init(= ), > which takes a pointer to const v4l2_m2m_ops as argument. Make it const > to allow the compiler to put it in read-only memory. >=20 > Signed-off-by: Rikard Falkeborn Reviewed-by: Kieran Bingham > --- > drivers/staging/media/rkvdec/rkvdec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/staging/media/rkvdec/rkvdec.c b/drivers/staging/medi= a/rkvdec/rkvdec.c > index bf00fe6534a3..28aab5c7fe33 100644 > --- a/drivers/staging/media/rkvdec/rkvdec.c > +++ b/drivers/staging/media/rkvdec/rkvdec.c > @@ -677,7 +677,7 @@ static void rkvdec_device_run(void *priv) > rkvdec_job_finish(ctx, VB2_BUF_STATE_ERROR); > } > =20 > -static struct v4l2_m2m_ops rkvdec_m2m_ops =3D { > +static const struct v4l2_m2m_ops rkvdec_m2m_ops =3D { > .device_run =3D rkvdec_device_run, > }; > =20 > --=20 > 2.33.0 >