Re: [PATCH] iommu/vt-d: constify intel_dma_ops.

2017-06-28 Thread Joerg Roedel
On Wed, Jun 28, 2017 at 03:31:16PM +0530, Arvind Yadav wrote: > Most dma_map_ops structures are never modified. Constify these > structures such that these can be write-protected. This file size diff > will show the difference between data and text segment. I know what the diff shows, but it doesn

Re: [PATCH] iommu/vt-d: constify intel_dma_ops.

2017-06-28 Thread Arvind Yadav
Hi, Most dma_map_ops structures are never modified. Constify these structures such that these can be write-protected. This file size diff will show the difference between data and text segment. Thanks, ~arvind On Wednesday 28 June 2017 02:23 PM, Joerg Roedel wrote: On Tue, Jun 13, 2017 at 03:4

Re: [PATCH] iommu/vt-d: constify intel_dma_ops.

2017-06-28 Thread Joerg Roedel
On Tue, Jun 13, 2017 at 03:48:34PM +0530, Arvind Yadav wrote: > File size before: >text data bss dec hex filename > 32765 7581824 353478a13 drivers/iommu/intel-iommu.o > > File size After adding 'const': >text data bss dec hex

[PATCH] iommu/vt-d: constify intel_dma_ops.

2017-06-13 Thread Arvind Yadav
File size before: textdata bss dec hex filename 32765 7581824 353478a13 drivers/iommu/intel-iommu.o File size After adding 'const': textdata bss dec hex filename 32925 5981824 353478a13 drivers/iommu/intel-iommu.o Signed-off-by