linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/8] lib: Include appropriate header file in lib/iommu-helper.c
@ 2014-02-25  7:40 Rashika Kheria
  2014-02-25  7:41 ` [PATCH 2/8] lib: Mark function as static in lib/lru_cache.c Rashika Kheria
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: Rashika Kheria @ 2014-02-25  7:40 UTC (permalink / raw)
  To: linux-kernel; +Cc: josh, rashika.kheria

Include appropriate header file include/linux/iommu-helper.h in
lib/iommu-helper.c because it has prototype declaration of function
defined in lib/iommu-helper.c.

This eliminates the following warning in lib/iommu-helper.c:
lib/iommu-helper.c:9:5: warning: no previous prototype for ‘iommu_is_span_boundary’ [-Wmissing-prototypes]
lib/iommu-helper.c:19:15: warning: no previous prototype for ‘iommu_area_alloc’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
---
 lib/iommu-helper.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/iommu-helper.c b/lib/iommu-helper.c
index c27e269..41d35fb 100644
--- a/lib/iommu-helper.c
+++ b/lib/iommu-helper.c
@@ -5,6 +5,7 @@
 #include <linux/export.h>
 #include <linux/bitmap.h>
 #include <linux/bug.h>
+#include <linux/iommu-helper.h>
 
 int iommu_is_span_boundary(unsigned int index, unsigned int nr,
 			   unsigned long shift,
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 2/8] lib: Mark function as static in lib/lru_cache.c
  2014-02-25  7:40 [PATCH 1/8] lib: Include appropriate header file in lib/iommu-helper.c Rashika Kheria
@ 2014-02-25  7:41 ` Rashika Kheria
  2014-02-25  7:44 ` [PATCH 3/8] lib: Move prototype declaration to header file include/linux/swiotlb.h Rashika Kheria
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: Rashika Kheria @ 2014-02-25  7:41 UTC (permalink / raw)
  To: linux-kernel; +Cc: Lars Ellenberg, drbd-user, josh

Mark function as static in lib/lru_cache.c because it is not used
outside this file.

This eliminates the following warning in lib/lru_cache.c:
lib/lru_cache.c:172:6: warning: no previous prototype for ‘lc_free_by_index’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
---
 lib/lru_cache.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/lru_cache.c b/lib/lru_cache.c
index 4a83ecd..6111cd1 100644
--- a/lib/lru_cache.c
+++ b/lib/lru_cache.c
@@ -169,7 +169,7 @@ out_fail:
 	return NULL;
 }
 
-void lc_free_by_index(struct lru_cache *lc, unsigned i)
+static void lc_free_by_index(struct lru_cache *lc, unsigned i)
 {
 	void *p = lc->lc_element[i];
 	WARN_ON(!p);
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 3/8] lib: Move prototype declaration to header file include/linux/swiotlb.h
  2014-02-25  7:40 [PATCH 1/8] lib: Include appropriate header file in lib/iommu-helper.c Rashika Kheria
  2014-02-25  7:41 ` [PATCH 2/8] lib: Mark function as static in lib/lru_cache.c Rashika Kheria
@ 2014-02-25  7:44 ` Rashika Kheria
  2014-02-25 20:45   ` Konrad Rzeszutek Wilk
  2014-02-25  7:46 ` [PATCH 4/8] lib: Add prototype declarations in lib/clz_ctz.c Rashika Kheria
                   ` (5 subsequent siblings)
  7 siblings, 1 reply; 10+ messages in thread
From: Rashika Kheria @ 2014-02-25  7:44 UTC (permalink / raw)
  To: linux-kernel
  Cc: Tony Luck, Fenghua Yu, Bjorn Helgaas, Thomas Gleixner,
	Ingo Molnar, H. Peter Anvin, x86, Konrad Rzeszutek Wilk,
	Rashika Kheria, Rafael J. Wysocki, Toshi Kani, Yijing Wang,
	Greg Kroah-Hartman, linux-ia64, linux-pci, josh

Move prototype declaration of function to header file
include/linux/swiotlb.h from arch/ia64/hp/common/hwsw_iommu.c,
arch/ia64/hp/common/sba_iommu.c and arch/x86/pci/sta2x11-fixup.c because
it is used by more than one file.

This eliminates the following warning in lib/swiotlb.c:
lib/swiotlb.c:240:1: warning: no previous prototype for ‘swiotlb_late_init_with_default_size’ [-Wmissing-prototypes]
lib/swiotlb.c:537:13: warning: no previous prototype for ‘map_single’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
---
 arch/ia64/hp/common/hwsw_iommu.c |    3 ---
 arch/ia64/hp/common/sba_iommu.c  |    2 --
 arch/x86/pci/sta2x11-fixup.c     |    1 -
 include/linux/swiotlb.h          |    4 +++-
 4 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/arch/ia64/hp/common/hwsw_iommu.c b/arch/ia64/hp/common/hwsw_iommu.c
index 1e4cae5..b14cab1 100644
--- a/arch/ia64/hp/common/hwsw_iommu.c
+++ b/arch/ia64/hp/common/hwsw_iommu.c
@@ -20,9 +20,6 @@
 
 extern struct dma_map_ops sba_dma_ops, swiotlb_dma_ops;
 
-/* swiotlb declarations & definitions: */
-extern int swiotlb_late_init_with_default_size (size_t size);
-
 /*
  * Note: we need to make the determination of whether or not to use
  * the sw I/O TLB based purely on the device structure.  Anything else
diff --git a/arch/ia64/hp/common/sba_iommu.c b/arch/ia64/hp/common/sba_iommu.c
index 8e858b5..b341994 100644
--- a/arch/ia64/hp/common/sba_iommu.c
+++ b/arch/ia64/hp/common/sba_iommu.c
@@ -46,8 +46,6 @@
 
 #include <asm/acpi-ext.h>
 
-extern int swiotlb_late_init_with_default_size (size_t size);
-
 #define PFX "IOC: "
 
 /*
diff --git a/arch/x86/pci/sta2x11-fixup.c b/arch/x86/pci/sta2x11-fixup.c
index 9d8a509..a39000b 100644
--- a/arch/x86/pci/sta2x11-fixup.c
+++ b/arch/x86/pci/sta2x11-fixup.c
@@ -28,7 +28,6 @@
 #include <linux/list.h>
 
 #define STA2X11_SWIOTLB_SIZE (4*1024*1024)
-extern int swiotlb_late_init_with_default_size(size_t default_size);
 
 /*
  * We build a list of bus numbers that are under the ConneXt. The
diff --git a/include/linux/swiotlb.h b/include/linux/swiotlb.h
index a5ffd32..7f419b6 100644
--- a/include/linux/swiotlb.h
+++ b/include/linux/swiotlb.h
@@ -27,7 +27,9 @@ int swiotlb_init_with_tbl(char *tlb, unsigned long nslabs, int verbose);
 extern unsigned long swiotlb_nr_tbl(void);
 unsigned long swiotlb_size_or_default(void);
 extern int swiotlb_late_init_with_tbl(char *tlb, unsigned long nslabs);
-
+int swiotlb_late_init_with_default_size (size_t );
+phys_addr_t map_single(struct device *hwdev, phys_addr_t phys, size_t size,
+		       enum dma_data_direction dir);
 /*
  * Enumeration for sync targets
  */
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 4/8] lib: Add prototype declarations in lib/clz_ctz.c
  2014-02-25  7:40 [PATCH 1/8] lib: Include appropriate header file in lib/iommu-helper.c Rashika Kheria
  2014-02-25  7:41 ` [PATCH 2/8] lib: Mark function as static in lib/lru_cache.c Rashika Kheria
  2014-02-25  7:44 ` [PATCH 3/8] lib: Move prototype declaration to header file include/linux/swiotlb.h Rashika Kheria
@ 2014-02-25  7:46 ` Rashika Kheria
  2014-02-25  7:49 ` [PATCH 5/8] lib: Include appropriate header file in lib/decompress_inflate.c Rashika Kheria
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: Rashika Kheria @ 2014-02-25  7:46 UTC (permalink / raw)
  To: linux-kernel; +Cc: Andrew Morton, Rashika Kheria, Chanho Min, josh

Add prototype declarations of functions in lib/clz_ctz.c. These
functions are required by GCC builtins and hence can not be removed
despite of their unreferenced appearance in kernel source.

This eliminates the following warning in lib/clz_ctz.c:
lib/clz_ctz.c:16:12: warning: no previous prototype for ‘__ctzsi2’ [-Wmissing-prototypes]
lib/clz_ctz.c:22:12: warning: no previous prototype for ‘__clzsi2’ [-Wmissing-prototypes]
lib/clz_ctz.c:44:12: warning: no previous prototype for ‘__clzdi2’ [-Wmissing-prototypes]
lib/clz_ctz.c:50:12: warning: no previous prototype for ‘__ctzdi2’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
---
 lib/clz_ctz.c |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/lib/clz_ctz.c b/lib/clz_ctz.c
index a8f8379..2e11e48 100644
--- a/lib/clz_ctz.c
+++ b/lib/clz_ctz.c
@@ -6,6 +6,9 @@
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 as
  * published by the Free Software Foundation.
+ * The functions in this file aren't called directly, but are required by
+ * GCC builtins such as __builtin_ctz, and therefore they can't be removed
+ * despite appearing unreferenced in kernel source.
  *
  * __c[lt]z[sd]i2 can be overridden by linking arch-specific versions.
  */
@@ -13,18 +16,22 @@
 #include <linux/export.h>
 #include <linux/kernel.h>
 
+int __weak __ctzsi2(int val);
 int __weak __ctzsi2(int val)
 {
 	return __ffs(val);
 }
 EXPORT_SYMBOL(__ctzsi2);
 
+int __weak __clzsi2(int val);
 int __weak __clzsi2(int val)
 {
 	return 32 - fls(val);
 }
 EXPORT_SYMBOL(__clzsi2);
 
+int __weak __clzdi2(long val);
+int __weak __ctzdi2(long val);
 #if BITS_PER_LONG == 32
 
 int __weak __clzdi2(long val)
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 5/8] lib: Include appropriate header file in lib/decompress_inflate.c
  2014-02-25  7:40 [PATCH 1/8] lib: Include appropriate header file in lib/iommu-helper.c Rashika Kheria
                   ` (2 preceding siblings ...)
  2014-02-25  7:46 ` [PATCH 4/8] lib: Add prototype declarations in lib/clz_ctz.c Rashika Kheria
@ 2014-02-25  7:49 ` Rashika Kheria
  2014-02-25  7:51 ` [PATCH 6/8] lib: Include appropriate header file in lib/libcrc32c.c Rashika Kheria
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: Rashika Kheria @ 2014-02-25  7:49 UTC (permalink / raw)
  To: linux-kernel; +Cc: Rashika Kheria, Andrew Morton, Alexandre Courbot, josh

Include appropriate header file include/linux/decompress/inflate.h in
lib/decompress_inflate.c because it has prototype declaration of
function defined in lib/decompress_inflate.c.

Also, fix the guard around the header file
include/linux/decompress/inflate.h to use a more unique guard symbol.
This avoids conflict with the INFLATE_H defined by
zlib_inflate/inflate.h.

This eliminates the following warning in lib/decompress_inflate.c:
lib/decompress_inflate.c:35:17: warning: no previous prototype for ‘gunzip’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
---
 include/linux/decompress/inflate.h |    4 ++--
 lib/decompress_inflate.c           |    1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/linux/decompress/inflate.h b/include/linux/decompress/inflate.h
index 8c0aef1..1d0aede 100644
--- a/include/linux/decompress/inflate.h
+++ b/include/linux/decompress/inflate.h
@@ -1,5 +1,5 @@
-#ifndef INFLATE_H
-#define INFLATE_H
+#ifndef LINUX_DECOMPRESS_INFLATE_H
+#define LINUX_DECOMPRESS_INFLATE_H
 
 int gunzip(unsigned char *inbuf, int len,
 	   int(*fill)(void*, unsigned int),
diff --git a/lib/decompress_inflate.c b/lib/decompress_inflate.c
index d619b28..0edfd74 100644
--- a/lib/decompress_inflate.c
+++ b/lib/decompress_inflate.c
@@ -19,6 +19,7 @@
 #include "zlib_inflate/inflate.h"
 
 #include "zlib_inflate/infutil.h"
+#include <linux/decompress/inflate.h>
 
 #endif /* STATIC */
 
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 6/8] lib: Include appropriate header file in lib/libcrc32c.c
  2014-02-25  7:40 [PATCH 1/8] lib: Include appropriate header file in lib/iommu-helper.c Rashika Kheria
                   ` (3 preceding siblings ...)
  2014-02-25  7:49 ` [PATCH 5/8] lib: Include appropriate header file in lib/decompress_inflate.c Rashika Kheria
@ 2014-02-25  7:51 ` Rashika Kheria
  2014-02-25  7:51 ` [PATCH 7/8] lib: Include appropriate header file in lib/decompress_unxz.c Rashika Kheria
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 10+ messages in thread
From: Rashika Kheria @ 2014-02-25  7:51 UTC (permalink / raw)
  To: linux-kernel; +Cc: josh

Include appropriate header file include/linux/crc32c.h in
lib/libcrc32c.c because it has prototype declaration of function defined
in lib/libcrc32c.c.

This eliminates the following warning in lib/libcrc32c.c:
lib/libcrc32c.c:42:5: warning: no previous prototype for ‘crc32c’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
---
 lib/libcrc32c.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/libcrc32c.c b/lib/libcrc32c.c
index 244f548..793a6a3 100644
--- a/lib/libcrc32c.c
+++ b/lib/libcrc32c.c
@@ -36,6 +36,7 @@
 #include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
+#include <linux/crc32c.h>
 
 static struct crypto_shash *tfm;
 
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 7/8] lib: Include appropriate header file in lib/decompress_unxz.c
  2014-02-25  7:40 [PATCH 1/8] lib: Include appropriate header file in lib/iommu-helper.c Rashika Kheria
                   ` (4 preceding siblings ...)
  2014-02-25  7:51 ` [PATCH 6/8] lib: Include appropriate header file in lib/libcrc32c.c Rashika Kheria
@ 2014-02-25  7:51 ` Rashika Kheria
  2014-02-25  7:53 ` [PATCH 8/8] lib: Mark function as static in lib/decompress_unlzo.c Rashika Kheria
  2014-02-27  1:44 ` Re : [PATCH 4/8] lib: Add prototype declarations in lib/clz_ctz.c 민찬호
  7 siblings, 0 replies; 10+ messages in thread
From: Rashika Kheria @ 2014-02-25  7:51 UTC (permalink / raw)
  To: linux-kernel; +Cc: josh

Include appropriate header file include/linux/decompress/unxz.h in
lib/decompress_unxz.c because it has prototype declaration of function
defined in lib/decompress_unxz.c.

This eliminates the following warning in lib/decompress_unxz.c:
lib/decompress_unxz.c:251:17: warning: no previous prototype for ‘unxz’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
---
 lib/decompress_unxz.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/decompress_unxz.c b/lib/decompress_unxz.c
index 9f34eb5..db22fcc 100644
--- a/lib/decompress_unxz.c
+++ b/lib/decompress_unxz.c
@@ -237,6 +237,8 @@ void *memmove(void *dest, const void *src, size_t size)
 
 #endif /* XZ_PREBOOT */
 
+#include <linux/decompress/unxz.h>
+
 /* Size of the input and output buffers in multi-call mode */
 #define XZ_IOBUF_SIZE 4096
 
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH 8/8] lib: Mark function as static in lib/decompress_unlzo.c
  2014-02-25  7:40 [PATCH 1/8] lib: Include appropriate header file in lib/iommu-helper.c Rashika Kheria
                   ` (5 preceding siblings ...)
  2014-02-25  7:51 ` [PATCH 7/8] lib: Include appropriate header file in lib/decompress_unxz.c Rashika Kheria
@ 2014-02-25  7:53 ` Rashika Kheria
  2014-02-27  1:44 ` Re : [PATCH 4/8] lib: Add prototype declarations in lib/clz_ctz.c 민찬호
  7 siblings, 0 replies; 10+ messages in thread
From: Rashika Kheria @ 2014-02-25  7:53 UTC (permalink / raw)
  To: linux-kernel; +Cc: josh

Mark function as static in lib/decompress_unlzo.c because it is not used
outside this file.

This eliminates the following warning in lib/decompress_unlzo.c:
lib/decompress_unlzo.c:54:24: warning: no previous prototype for ‘parse_header’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
---
 lib/decompress_unlzo.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/decompress_unlzo.c b/lib/decompress_unlzo.c
index 960183d..7ae2c04 100644
--- a/lib/decompress_unlzo.c
+++ b/lib/decompress_unlzo.c
@@ -51,7 +51,7 @@ static const unsigned char lzop_magic[] = {
 #define HEADER_SIZE_MIN       (9 + 7     + 4 + 8     + 1       + 4)
 #define HEADER_SIZE_MAX       (9 + 7 + 1 + 8 + 8 + 4 + 1 + 255 + 4)
 
-STATIC inline int INIT parse_header(u8 *input, int *skip, int in_len)
+static inline int INIT parse_header(u8 *input, int *skip, int in_len)
 {
 	int l;
 	u8 *parse = input;
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH 3/8] lib: Move prototype declaration to header file include/linux/swiotlb.h
  2014-02-25  7:44 ` [PATCH 3/8] lib: Move prototype declaration to header file include/linux/swiotlb.h Rashika Kheria
@ 2014-02-25 20:45   ` Konrad Rzeszutek Wilk
  0 siblings, 0 replies; 10+ messages in thread
From: Konrad Rzeszutek Wilk @ 2014-02-25 20:45 UTC (permalink / raw)
  To: Rashika Kheria
  Cc: linux-kernel, Tony Luck, Fenghua Yu, Bjorn Helgaas,
	Thomas Gleixner, Ingo Molnar, H. Peter Anvin, x86,
	Rafael J. Wysocki, Toshi Kani, Yijing Wang, Greg Kroah-Hartman,
	linux-ia64, linux-pci, josh

On Tue, Feb 25, 2014 at 01:14:17PM +0530, Rashika Kheria wrote:
> Move prototype declaration of function to header file
> include/linux/swiotlb.h from arch/ia64/hp/common/hwsw_iommu.c,
> arch/ia64/hp/common/sba_iommu.c and arch/x86/pci/sta2x11-fixup.c because
> it is used by more than one file.
> 
> This eliminates the following warning in lib/swiotlb.c:
> lib/swiotlb.c:240:1: warning: no previous prototype for ‘swiotlb_late_init_with_default_size’ [-Wmissing-prototypes]
> lib/swiotlb.c:537:13: warning: no previous prototype for ‘map_single’ [-Wmissing-prototypes]
> 
> Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
> Reviewed-by: Josh Triplett <josh@joshtriplett.org>

One issue below. Did you compile check it on ia64 and arm?
I presume you did it on x86 right?


> ---
>  arch/ia64/hp/common/hwsw_iommu.c |    3 ---
>  arch/ia64/hp/common/sba_iommu.c  |    2 --
>  arch/x86/pci/sta2x11-fixup.c     |    1 -
>  include/linux/swiotlb.h          |    4 +++-
>  4 files changed, 3 insertions(+), 7 deletions(-)
> 
> diff --git a/arch/ia64/hp/common/hwsw_iommu.c b/arch/ia64/hp/common/hwsw_iommu.c
> index 1e4cae5..b14cab1 100644
> --- a/arch/ia64/hp/common/hwsw_iommu.c
> +++ b/arch/ia64/hp/common/hwsw_iommu.c
> @@ -20,9 +20,6 @@
>  
>  extern struct dma_map_ops sba_dma_ops, swiotlb_dma_ops;
>  
> -/* swiotlb declarations & definitions: */
> -extern int swiotlb_late_init_with_default_size (size_t size);
> -
>  /*
>   * Note: we need to make the determination of whether or not to use
>   * the sw I/O TLB based purely on the device structure.  Anything else
> diff --git a/arch/ia64/hp/common/sba_iommu.c b/arch/ia64/hp/common/sba_iommu.c
> index 8e858b5..b341994 100644
> --- a/arch/ia64/hp/common/sba_iommu.c
> +++ b/arch/ia64/hp/common/sba_iommu.c
> @@ -46,8 +46,6 @@
>  
>  #include <asm/acpi-ext.h>
>  
> -extern int swiotlb_late_init_with_default_size (size_t size);
> -
>  #define PFX "IOC: "
>  
>  /*
> diff --git a/arch/x86/pci/sta2x11-fixup.c b/arch/x86/pci/sta2x11-fixup.c
> index 9d8a509..a39000b 100644
> --- a/arch/x86/pci/sta2x11-fixup.c
> +++ b/arch/x86/pci/sta2x11-fixup.c
> @@ -28,7 +28,6 @@
>  #include <linux/list.h>
>  
>  #define STA2X11_SWIOTLB_SIZE (4*1024*1024)
> -extern int swiotlb_late_init_with_default_size(size_t default_size);
>  
>  /*
>   * We build a list of bus numbers that are under the ConneXt. The
> diff --git a/include/linux/swiotlb.h b/include/linux/swiotlb.h
> index a5ffd32..7f419b6 100644
> --- a/include/linux/swiotlb.h
> +++ b/include/linux/swiotlb.h
> @@ -27,7 +27,9 @@ int swiotlb_init_with_tbl(char *tlb, unsigned long nslabs, int verbose);
>  extern unsigned long swiotlb_nr_tbl(void);
>  unsigned long swiotlb_size_or_default(void);
>  extern int swiotlb_late_init_with_tbl(char *tlb, unsigned long nslabs);
> -
> +int swiotlb_late_init_with_default_size (size_t );

Your editor seems to have added an extra space!

> +phys_addr_t map_single(struct device *hwdev, phys_addr_t phys, size_t size,
> +		       enum dma_data_direction dir);
>  /*
>   * Enumeration for sync targets
>   */
> -- 
> 1.7.9.5
> 

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re : [PATCH 4/8] lib: Add prototype declarations in lib/clz_ctz.c
  2014-02-25  7:40 [PATCH 1/8] lib: Include appropriate header file in lib/iommu-helper.c Rashika Kheria
                   ` (6 preceding siblings ...)
  2014-02-25  7:53 ` [PATCH 8/8] lib: Mark function as static in lib/decompress_unlzo.c Rashika Kheria
@ 2014-02-27  1:44 ` 민찬호
  7 siblings, 0 replies; 10+ messages in thread
From: 민찬호 @ 2014-02-27  1:44 UTC (permalink / raw)
  To: Rashika Kheria; +Cc: linux-kernel, Andrew Morton, Rashika Kheria, josh

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=EUC-KR, Size: 1258 bytes --]


> -----Original Message-----
> From: Rashika Kheria [mailto:rashika.kheria@gmail.com]
> Sent: Tuesday, February 25, 2014 4:46 PM
> To: linux-kernel@vger.kernel.org
> Cc: Andrew Morton; Rashika Kheria; Chanho Min; josh@joshtriplett.org
> Subject: [PATCH 4/8] lib: Add prototype declarations in lib/clz_ctz.c
>
> Add prototype declarations of functions in lib/clz_ctz.c. These
> functions are required by GCC builtins and hence can not be removed
> despite of their unreferenced appearance in kernel source.
>
> This eliminates the following warning in lib/clz_ctz.c:
> lib/clz_ctz.c:16:12: warning: no previous prototype for ¡®__ctzsi2¡¯ [-Wmissing-prototypes]
> lib/clz_ctz.c:22:12: warning: no previous prototype for ¡®__clzsi2¡¯ [-Wmissing-prototypes]
> lib/clz_ctz.c:44:12: warning: no previous prototype for ¡®__clzdi2¡¯ [-Wmissing-prototypes]
> lib/clz_ctz.c:50:12: warning: no previous prototype for ¡®__ctzdi2¡¯ [-Wmissing-prototypes]
>
> Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
> Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Acked-by: Chanho Min <chanho.min@lge.com>ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dʇڙë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-02-28 13:04 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-25  7:40 [PATCH 1/8] lib: Include appropriate header file in lib/iommu-helper.c Rashika Kheria
2014-02-25  7:41 ` [PATCH 2/8] lib: Mark function as static in lib/lru_cache.c Rashika Kheria
2014-02-25  7:44 ` [PATCH 3/8] lib: Move prototype declaration to header file include/linux/swiotlb.h Rashika Kheria
2014-02-25 20:45   ` Konrad Rzeszutek Wilk
2014-02-25  7:46 ` [PATCH 4/8] lib: Add prototype declarations in lib/clz_ctz.c Rashika Kheria
2014-02-25  7:49 ` [PATCH 5/8] lib: Include appropriate header file in lib/decompress_inflate.c Rashika Kheria
2014-02-25  7:51 ` [PATCH 6/8] lib: Include appropriate header file in lib/libcrc32c.c Rashika Kheria
2014-02-25  7:51 ` [PATCH 7/8] lib: Include appropriate header file in lib/decompress_unxz.c Rashika Kheria
2014-02-25  7:53 ` [PATCH 8/8] lib: Mark function as static in lib/decompress_unlzo.c Rashika Kheria
2014-02-27  1:44 ` Re : [PATCH 4/8] lib: Add prototype declarations in lib/clz_ctz.c 민찬호

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).