Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1415576

Re: [PATCH] IB/usnic: Remove unused DMA attributes

From Doug Ledford <dledford@redhat.com>
Newsgroups linux.kernel
Subject Re: [PATCH] IB/usnic: Remove unused DMA attributes
Date 2016-06-07 01:30 +0200
Message-ID <rHc81-36i-21@gated-at.bofh.it> (permalink)
References <rFxqh-4f5-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On 6/2/2016 5:45 AM, Krzysztof Kozlowski wrote:
> The DMA attributes are set but never used.
> 
> Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
> ---
>  drivers/infiniband/hw/usnic/usnic_uiom.c | 5 -----
>  1 file changed, 5 deletions(-)
> 
> diff --git a/drivers/infiniband/hw/usnic/usnic_uiom.c b/drivers/infiniband/hw/usnic/usnic_uiom.c
> index 7209fbc03ccb..a0b6ebee4d8a 100644
> --- a/drivers/infiniband/hw/usnic/usnic_uiom.c
> +++ b/drivers/infiniband/hw/usnic/usnic_uiom.c
> @@ -36,7 +36,6 @@
>  #include <linux/dma-mapping.h>
>  #include <linux/sched.h>
>  #include <linux/hugetlb.h>
> -#include <linux/dma-attrs.h>
>  #include <linux/iommu.h>
>  #include <linux/workqueue.h>
>  #include <linux/list.h>
> @@ -112,10 +111,6 @@ static int usnic_uiom_get_pages(unsigned long addr, size_t size, int writable,
>  	int i;
>  	int flags;
>  	dma_addr_t pa;
> -	DEFINE_DMA_ATTRS(attrs);
> -
> -	if (dmasync)
> -		dma_set_attr(DMA_ATTR_WRITE_BARRIER, &attrs);
>  
>  	if (!can_do_mlock())
>  		return -EPERM;
> 

Thanks, applied.

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] IB/usnic: Remove unused DMA attributes Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-06-02 11:50 +0200
  Re: [PATCH] IB/usnic: Remove unused DMA attributes Doug Ledford <dledford@redhat.com> - 2016-06-07 01:30 +0200

csiph-web