Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3906553pxb; Wed, 13 Oct 2021 15:53:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwckyu5aMN0Zxp/TrHfhV6gHJRowZLeBHnEite20Uv1VndLCw5XUssegS7TKNuG71iDiDMu X-Received: by 2002:a05:6402:26d3:: with SMTP id x19mr3320128edd.291.1634165585150; Wed, 13 Oct 2021 15:53:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634165585; cv=none; d=google.com; s=arc-20160816; b=vwEY7Ya3LX+C8VkeeZNA/lpfkFv7NxyHIH1IQGxHgB/ga9HB8T0Pyw/AuxjWqVc0wV q7W0jkEM09nol9BZPREpl6o24KOjOAVpiAqRq6JAgi9Z0xCuy8Fvh/C78T7pp+ZaQ0v4 NRCdM/k/vvt3MWLNy7w9NDcxQiTwVxuVzHeRHC2BpFRYjzgoOt4JKJT6NF1baBqU7xSk 3hKcuDURwT5j77+cgjyOotLH7QTTA7XW3vzlSkP/N5az+bGk2/kvqsQbMSmTWO5jC6zT QsSYM617KZ89V2cOyKdEsvrfQFK6mr4vuXpL8b4m15ZbqCZ5a6Ad9VLrnnJ+aPGWAIwm 9SEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xM1fMd37P0GkH+ZlVvAIHq/XlgyRCHndX09GA3o6I2w=; b=Ka5cstm8xSny3qHaYPfoL6gH0ALN9WUDwlR7G8ecbpGVeJioBhgiqsMkRZ86u/giWM UpjatoWEn/PnnUj5yVxlNmNQKNS2dSMIG8muqyAuAlgajQs3BRl6UtCa0wvLVOd5H2Dp pNLeaxeUqFBPDGYb5jM6vSjYLSpB1fqN/UkOy9sCBl1vDLnnw15XSRwvvYMe13KcyzFQ udZFX8iJOW9ExrwIeEKR6NDkJsnLPIFdKT95TSEW+ehIGSypSHkiNWZIYUkpE/ON9mRs 9aYuc4j/kt5TzFwbhGNnkx/zVmvXw7dRwVVJNiTdNcjHU+Ysj7xbmXuTu1UZ6pyBHG7A KRuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20210112.gappssmtp.com header.s=20210112 header.b=sV74+qP2; 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 b4si1388289ejb.354.2021.10.13.15.52.39; Wed, 13 Oct 2021 15:53:05 -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=@vanguardiasur-com-ar.20210112.gappssmtp.com header.s=20210112 header.b=sV74+qP2; 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 S231273AbhJMWwi (ORCPT + 99 others); Wed, 13 Oct 2021 18:52:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229930AbhJMWwh (ORCPT ); Wed, 13 Oct 2021 18:52:37 -0400 Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF086C061570 for ; Wed, 13 Oct 2021 15:50:33 -0700 (PDT) Received: by mail-qt1-x82f.google.com with SMTP id w2so4233353qtn.0 for ; Wed, 13 Oct 2021 15:50:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vanguardiasur-com-ar.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=xM1fMd37P0GkH+ZlVvAIHq/XlgyRCHndX09GA3o6I2w=; b=sV74+qP2MQF6w9NmafHoTpTolVfVwa0rljewKiYT94oDqfz0A5uHEVwWv2+SmELSHc tWi6VdT69T4pL6mhUtsPnJwakwfrCd8tASkny/rtRx3bV5bZnliB+S91yJtXbcd4cJsP CEhnBkaQthmsfom4VTyB5PDG8CoKhTHAi0ufvApv/LElVrWx/9vAwQnuQ4FIx80EIjgr yeORRy5s1q4pLKS0K3IRbLLUlzgFwOrD4yiBCTNTw7+G6ykXocghAiFCj3U3+GBI2e/7 5awydk+SNqULo5yRmsVegI6pH+Cn83rFSzSS36NqX0k3ET+lDcgZ6BH/8i5vOlv2eUAo Kakw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=xM1fMd37P0GkH+ZlVvAIHq/XlgyRCHndX09GA3o6I2w=; b=rc3W9lq4oeR3q+NuMw4gWgSiRGLQBZPcNn/OVe6Voi2UjJw1CiID051Br6qp9wX5Fg mH1qG53c+EGpqO3wXsH9Ex5+FuBKmHWOvPL6+kk/GUT9RJpZWhliOK+IIC7JdUMi4PRO yBAnkhAfY19yhC02ONROwVC8Jre/9Wfsp/2170/nNIsdLf3+T8BSflbCx3ylx9YK41Jd Kum2JReao+ufDIWFjn1ePDIw11rOLGdB/thqDESAtzeOsYADxW8mqXKY+s5Yi5GtgI9i Itr7sodW1P+FAOgfYU/S0POjCBte+J9iiuA+UgEJ+yVuE+ukPNRSYSdZN14kboHqNUOy Vwnw== X-Gm-Message-State: AOAM53191OTMqVuNs3Y6jifoilzWtlLsO9plOgR52dC03wgmsdrZC0xv fDjCPVJIuWEuWynMw0gdufenTQ== X-Received: by 2002:ac8:7f44:: with SMTP id g4mr2516291qtk.130.1634165432864; Wed, 13 Oct 2021 15:50:32 -0700 (PDT) Received: from fedora ([196.32.91.248]) by smtp.gmail.com with ESMTPSA id g11sm606454qko.31.2021.10.13.15.50.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Oct 2021 15:50:31 -0700 (PDT) Date: Wed, 13 Oct 2021 19:50:27 -0300 From: Ezequiel Garcia To: Rikard Falkeborn Cc: Mauro Carvalho Chehab , Greg Kroah-Hartman , linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: media: rkvdec: Constify static struct v4l2_m2m_ops Message-ID: References: <20211012221144.30638-1-rikard.falkeborn@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211012221144.30638-1-rikard.falkeborn@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 13, 2021 at 12:11:44AM +0200, Rikard Falkeborn wrote: > 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. > > Signed-off-by: Rikard Falkeborn Reviewed-by: Ezequiel Garcia > --- > drivers/staging/media/rkvdec/rkvdec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/media/rkvdec/rkvdec.c b/drivers/staging/media/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); > } > > -static struct v4l2_m2m_ops rkvdec_m2m_ops = { > +static const struct v4l2_m2m_ops rkvdec_m2m_ops = { > .device_run = rkvdec_device_run, > }; > > -- > 2.33.0 >