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


Groups > linux.kernel > #1266651 > unrolled thread

Re: [RESEND PATCH] swiotlb: Make linux/swiotlb.h standalone includible

Started byThierry Reding <thierry.reding@gmail.com>
First post2015-11-10 18:20 +0100
Last post2015-11-10 18:20 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [RESEND PATCH] swiotlb: Make linux/swiotlb.h standalone  includible Thierry Reding <thierry.reding@gmail.com> - 2015-11-10 18:20 +0100

#1266651 — Re: [RESEND PATCH] swiotlb: Make linux/swiotlb.h standalone includible

FromThierry Reding <thierry.reding@gmail.com>
Date2015-11-10 18:20 +0100
SubjectRe: [RESEND PATCH] swiotlb: Make linux/swiotlb.h standalone includible
Message-ID<qtkKl-7Wr-1@gated-at.bofh.it>

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

On Wed, Jul 01, 2015 at 02:17:58PM +0200, Thierry Reding wrote:
> From: Thierry Reding <treding@nvidia.com>
> 
> This header file uses the enum dma_data_direction and struct page types
> without explicitly including the corresponding header files. This makes
> it rely on the includer to have included the proper headers before.
> 
> To fix this, include linux/dma-direction.h and forward-declare struct
> page. The swiotlb_free() function is also annotated __init, therefore
> requires linux/init.h to be included as well.
> 
> Signed-off-by: Thierry Reding <treding@nvidia.com>
> ---
> Hi Konrad,
> 
> I sent this about a year ago and at the time you said you had queued it
> up, but it never disappeared from my local stack of patches, so here it
> is again.
> 
> Thierry
> 
>  include/linux/swiotlb.h | 3 +++
>  1 file changed, 3 insertions(+)

Ping?

> 
> diff --git a/include/linux/swiotlb.h b/include/linux/swiotlb.h
> index e7a018eaf3a2..017fced60242 100644
> --- a/include/linux/swiotlb.h
> +++ b/include/linux/swiotlb.h
> @@ -1,10 +1,13 @@
>  #ifndef __LINUX_SWIOTLB_H
>  #define __LINUX_SWIOTLB_H
>  
> +#include <linux/dma-direction.h>
> +#include <linux/init.h>
>  #include <linux/types.h>
>  
>  struct device;
>  struct dma_attrs;
> +struct page;
>  struct scatterlist;
>  
>  extern int swiotlb_force;
> -- 
> 2.4.1
> 

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web