linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jens Wiklander <jens.wiklander@linaro.org>
To: Arvind Yadav <arvind.yadav.cs@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] tee: tee_shm: Constify dma_buf_ops structures.
Date: Wed, 5 Jul 2017 08:58:03 +0200	[thread overview]
Message-ID: <20170705065801.GB22143@jax> (raw)
In-Reply-To: <4fa3727c8a72f01b25081162de3e3ada0356c01d.1498911878.git.arvind.yadav.cs@gmail.com>

On Sat, Jul 01, 2017 at 05:56:06PM +0530, Arvind Yadav wrote:
> dma_buf_ops are not supposed to change at runtime. All functions
> working with dma_buf_ops provided by <linux/dma-buf.h> work with
> const dma_buf_ops. So mark the non-const structs as const.
> 
> File size before:
>    text	   data	    bss	    dec	    hex	filename
>    2026	    112	      0	   2138	    85a	drivers/tee/tee_shm.o
> 
> File size After adding 'const':
>    text	   data	    bss	    dec	    hex	filename
>    2138	      0	      0	   2138	    85a	drivers/tee/tee_shm.o
> 
> Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>

Looks good to me, queueing this.

Thanks,
Jens

      reply	other threads:[~2017-07-05  6:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-01 12:26 [PATCH] tee: tee_shm: Constify dma_buf_ops structures Arvind Yadav
2017-07-05  6:58 ` Jens Wiklander [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170705065801.GB22143@jax \
    --to=jens.wiklander@linaro.org \
    --cc=arvind.yadav.cs@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).