diff mbox

arm64: Add ARCH_HAS_SG_CHAIN

Message ID 1394732963-12174-1-git-send-email-lauraa@codeaurora.org (mailing list archive)
State New, archived
Headers show

Commit Message

Laura Abbott March 13, 2014, 5:49 p.m. UTC
It's useful to be able to chain scatterlists together for very large
scatter allocations. Define ARCH_HAS_SG_CHAIN to let this happen.

Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
---
 arch/arm64/include/asm/scatterlist.h | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 arch/arm64/include/asm/scatterlist.h

Comments

Will Deacon March 13, 2014, 6:01 p.m. UTC | #1
On Thu, Mar 13, 2014 at 05:49:23PM +0000, Laura Abbott wrote:
> It's useful to be able to chain scatterlists together for very large
> scatter allocations. Define ARCH_HAS_SG_CHAIN to let this happen.
> 
> Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
> ---
>  arch/arm64/include/asm/scatterlist.h | 21 +++++++++++++++++++++
>  1 file changed, 21 insertions(+)
>  create mode 100644 arch/arm64/include/asm/scatterlist.h
> 
> diff --git a/arch/arm64/include/asm/scatterlist.h b/arch/arm64/include/asm/scatterlist.h
> new file mode 100644
> index 0000000..7b2602a
> --- /dev/null
> +++ b/arch/arm64/include/asm/scatterlist.h
> @@ -0,0 +1,21 @@
> +/*
> + * Copyright (c) 2014, The Linux Foundation. All rights reserved.
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License version 2 and
> + * only version 2 as published by the Free Software Foundation.
> + *
> + * This program is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> + * GNU General Public License for more details.
> + */
> +
> +#ifndef __ASM_SCATTERLIST_H
> +#define __ASM_SCATTERLIST_H
> +
> +#include <asm-generic/scatterlist.h>
> +
> +#define ARCH_HAS_SG_CHAIN

Hmm, I wonder if this should be a Kconfig option instead, to avoid the need
for the dummy header?

Will
diff mbox

Patch

diff --git a/arch/arm64/include/asm/scatterlist.h b/arch/arm64/include/asm/scatterlist.h
new file mode 100644
index 0000000..7b2602a
--- /dev/null
+++ b/arch/arm64/include/asm/scatterlist.h
@@ -0,0 +1,21 @@ 
+/*
+ * Copyright (c) 2014, The Linux Foundation. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 and
+ * only version 2 as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef __ASM_SCATTERLIST_H
+#define __ASM_SCATTERLIST_H
+
+#include <asm-generic/scatterlist.h>
+
+#define ARCH_HAS_SG_CHAIN
+
+#endif