Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1681314
| From | Jens Wiklander <jens.wiklander@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] tee: tee_shm: Constify dma_buf_ops structures. |
| Date | 2017-07-05 09:00 +0200 |
| Message-ID | <tZMs2-2Ms-13@gated-at.bofh.it> (permalink) |
| References | <tYpHc-39b-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: [PATCH] tee: tee_shm: Constify dma_buf_ops structures. Jens Wiklander <jens.wiklander@linaro.org> - 2017-07-05 09:00 +0200
csiph-web