The patch titled Subject: dma-mapping: constify attrs passed to dma_get_attr() has been added to the -mm tree. Its filename is dma-mapping-constify-attrs-passed-to-dma_get_attr.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/dma-mapping-constify-attrs-passed-to-dma_get_attr.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/dma-mapping-constify-attrs-passed-to-dma_get_attr.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Krzysztof Kozlowski <k.kozlowski@xxxxxxxxxxx> Subject: dma-mapping: constify attrs passed to dma_get_attr() The dma_get_attr() does not modify passed dma_attrs so the pointer can point to const data. Link: http://lkml.kernel.org/r/1464071290-15948-2-git-send-email-k.kozlowski@xxxxxxxxxxx Signed-off-by: Krzysztof Kozlowski <k.kozlowski@xxxxxxxxxxx> Cc: Russell King <linux@xxxxxxxxxxxxxxx> Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx> Cc: Catalin Marinas <catalin.marinas@xxxxxxx> Cc: Will Deacon <will.deacon@xxxxxxx> Cc: Joerg Roedel <joro@xxxxxxxxxx> Cc: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx> Cc: Marek Szyprowski <m.szyprowski@xxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/dma-attrs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff -puN include/linux/dma-attrs.h~dma-mapping-constify-attrs-passed-to-dma_get_attr include/linux/dma-attrs.h --- a/include/linux/dma-attrs.h~dma-mapping-constify-attrs-passed-to-dma_get_attr +++ a/include/linux/dma-attrs.h @@ -60,7 +60,8 @@ static inline void dma_set_attr(enum dma * @attr: attribute to set * @attrs: struct dma_attrs (may be NULL) */ -static inline int dma_get_attr(enum dma_attr attr, struct dma_attrs *attrs) +static inline int dma_get_attr(enum dma_attr attr, + const struct dma_attrs *attrs) { if (attrs == NULL) return 0; _ Patches currently in -mm which might be from k.kozlowski@xxxxxxxxxxx are dma-mapping-constify-attrs-passed-to-dma_get_attr.patch arm-dma-mapping-constify-attrs-passed-to-internal-functions.patch arm64-dma-mapping-constify-attrs-passed-to-internal-functions.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html