Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp645077pxb; Fri, 15 Oct 2021 12:56:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+z5SQjcfnSarlSvWZJzSY20HxpSaGCCHr69UxlpNIH5aoe/hoReiN5xsoGeKo3uukVuIm X-Received: by 2002:a17:906:fb19:: with SMTP id lz25mr9677491ejb.406.1634327787070; 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=dlvEWsrao6JY3rngqc/pEwRTexbWIh2+MlKUYGntKs0ptwTaL23rg2m9GsUBQnwsPb 20QEVh3l6SG9B2i7T6125E/QRJvVlRG51cAT9yQdnn4Tv47h7z2Id+fPRNc1qzGoscEW tYprnjsRFqxP55IHLjZUeF2DlK+LGhyDwtikveFK7pUajwGKw33AJtq1PTPDynM8x8Pw XJP1KANGrR2aurWqvktTpuBEYZoTcFaJRnWILTYCk/2mvJoW1U2kQsvEk6EZcqniM1t1 OCb3TqewzWoBGAKGp0QtSqZV/KrWDfhrKjibr01IHxDXhVpvg/mw7gmgtwg+QFcAYOwM KKMw== 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=kfOXbZN/0bToMj9NyxRCvoMluEs84fVaOlHgDTSi/F0=; b=CYAitToVc5itrLVCW5krnXXYXcIpxXaJk+Rf3QJmv2716luPb+Qx/L5Unh9sHxpek1 kC0Gd+uxfOSsOtE6P4y21sRHKlPqB3nln+YhmApaB2Fj6w1Naask/5meqzuJQ95Nn//k NYFw91QowLfw7BBHRKlWTtO8n/tIX4HAC17hsAUa1M7E8ZSeW+UOXJKciKpdWcQzgcWR T0aBLgAtMGoykU0W6RXeyYdyDOuLQOtnRFRl2C5PMMgf0HZ7A3btIr3w3H+HqYC5gYcB og8Wqq4CWLiY58F3nCBt4RamlDzI5ymJxYSX2EcZZHwk1KBjVLNHKZr3wyyTYGWVgrGi 4KpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=iQ08DwkZ; 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 f18si9407456ejc.453.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=iQ08DwkZ; 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 S234117AbhJOLPg (ORCPT + 99 others); Fri, 15 Oct 2021 07:15:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230031AbhJOLPf (ORCPT ); Fri, 15 Oct 2021 07:15:35 -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 2D9B5C061570; Fri, 15 Oct 2021 04:13:29 -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 D09C92E3; Fri, 15 Oct 2021 13:13:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1634296407; bh=tWD9NVmhN9DuN457X3NoNn6LabUJ9LwUAwP/i5PEFtw=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=iQ08DwkZqTD3TFA0XcfpaoqY/qM7OvFGnyex5XYdZBgbRjc3Mr4r4g9g5iEBUzHxy a3Gz4njG/l85k7t0hvCAANtiDs0aMgs/zrKgg99Hev78EVGKr0fRVKTFyFic2amb2L gb6bYlGZMeZZ72mCMhgw2gKvIpnC82e203yyi9kU= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20211012214703.25433-1-rikard.falkeborn@gmail.com> References: <20211012214703.25433-1-rikard.falkeborn@gmail.com> Subject: Re: [PATCH] media: imx: Constify static struct v4l2_m2m_ops From: Kieran Bingham Cc: Greg Kroah-Hartman , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Rikard Falkeborn To: Mauro Carvalho Chehab , Philipp Zabel , Rikard Falkeborn , Steve Longerbeam Date: Fri, 15 Oct 2021 12:13:25 +0100 Message-ID: <163429640538.4171071.8827493049115866396@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 22:47:03) > The only usage of 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/imx/imx-media-csc-scaler.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/staging/media/imx/imx-media-csc-scaler.c b/drivers/s= taging/media/imx/imx-media-csc-scaler.c > index eb6da9b9d8ba..1fd39a2fca98 100644 > --- a/drivers/staging/media/imx/imx-media-csc-scaler.c > +++ b/drivers/staging/media/imx/imx-media-csc-scaler.c > @@ -820,7 +820,7 @@ static const struct v4l2_file_operations ipu_csc_scal= er_fops =3D { > .mmap =3D v4l2_m2m_fop_mmap, > }; > =20 > -static struct v4l2_m2m_ops m2m_ops =3D { > +static const struct v4l2_m2m_ops m2m_ops =3D { > .device_run =3D device_run, > .job_abort =3D job_abort, > }; > --=20 > 2.33.0 >