]> git.baikalelectronics.ru Git - kernel.git/commit
tee: tee_shm: Constify dma_buf_ops structures.
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Sat, 1 Jul 2017 12:26:06 +0000 (17:56 +0530)
committerJens Wiklander <jens.wiklander@linaro.org>
Fri, 4 Aug 2017 08:30:27 +0000 (10:30 +0200)
commitecae9ff484ff6a147fdc1ab1e89273ac6940f742
treec40ad74fe44768fee9a9c33062a38256ebce3bfd
parent49de20194ff10fd50918ac3713ba38fc9d45c8a3
tee: tee_shm: Constify dma_buf_ops structures.

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>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
drivers/tee/tee_shm.c