All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mm: Fix build warning
@ 2019-03-30  5:42 Aneesh Kumar K.V
  2019-03-30 17:42 ` Mukesh Ojha
  0 siblings, 1 reply; 3+ messages in thread
From: Aneesh Kumar K.V @ 2019-03-30  5:42 UTC (permalink / raw)
  To: akpm; +Cc: linux-mm, linux-kernel, Aneesh Kumar K.V

mm/debug.c: In function ‘dump_mm’:
include/linux/kern_levels.h:5:18: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 19 has type ‘long int’ [-Wformat=]
              ~~~^

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
---
 mm/debug.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/debug.c b/mm/debug.c
index c0b31b6c3877..c134e76918dc 100644
--- a/mm/debug.c
+++ b/mm/debug.c
@@ -137,7 +137,7 @@ void dump_mm(const struct mm_struct *mm)
 		"mmap_base %lu mmap_legacy_base %lu highest_vm_end %lu\n"
 		"pgd %px mm_users %d mm_count %d pgtables_bytes %lu map_count %d\n"
 		"hiwater_rss %lx hiwater_vm %lx total_vm %lx locked_vm %lx\n"
-		"pinned_vm %llx data_vm %lx exec_vm %lx stack_vm %lx\n"
+		"pinned_vm %lx data_vm %lx exec_vm %lx stack_vm %lx\n"
 		"start_code %lx end_code %lx start_data %lx end_data %lx\n"
 		"start_brk %lx brk %lx start_stack %lx\n"
 		"arg_start %lx arg_end %lx env_start %lx env_end %lx\n"
-- 
2.20.1


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

* Re: [PATCH] mm: Fix build warning
  2019-03-30  5:42 [PATCH] mm: Fix build warning Aneesh Kumar K.V
@ 2019-03-30 17:42 ` Mukesh Ojha
  0 siblings, 0 replies; 3+ messages in thread
From: Mukesh Ojha @ 2019-03-30 17:42 UTC (permalink / raw)
  To: Aneesh Kumar K.V, akpm; +Cc: linux-mm, linux-kernel


On 3/30/2019 11:12 AM, Aneesh Kumar K.V wrote:
> mm/debug.c: In function ‘dump_mm’:
> include/linux/kern_levels.h:5:18: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 19 has type ‘long int’ [-Wformat=]
>                ~~~^
>
> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>

Does it come even after this patch ?
https://patchwork.kernel.org/patch/10846421/


Thanks.

Mukesh

> ---
>   mm/debug.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/mm/debug.c b/mm/debug.c
> index c0b31b6c3877..c134e76918dc 100644
> --- a/mm/debug.c
> +++ b/mm/debug.c
> @@ -137,7 +137,7 @@ void dump_mm(const struct mm_struct *mm)
>   		"mmap_base %lu mmap_legacy_base %lu highest_vm_end %lu\n"
>   		"pgd %px mm_users %d mm_count %d pgtables_bytes %lu map_count %d\n"
>   		"hiwater_rss %lx hiwater_vm %lx total_vm %lx locked_vm %lx\n"
> -		"pinned_vm %llx data_vm %lx exec_vm %lx stack_vm %lx\n"
> +		"pinned_vm %lx data_vm %lx exec_vm %lx stack_vm %lx\n"
>   		"start_code %lx end_code %lx start_data %lx end_data %lx\n"
>   		"start_brk %lx brk %lx start_stack %lx\n"
>   		"arg_start %lx arg_end %lx env_start %lx env_end %lx\n"

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

* [PATCH] mm: fix build  warning
@ 2009-02-10 23:42 hartleys
  0 siblings, 0 replies; 3+ messages in thread
From: hartleys @ 2009-02-10 23:42 UTC (permalink / raw)
  To: linux-kernel

The following patch fixes a build warning in mm/sparse.c

mm/sparse.c: In function '__section_nr':
mm/sparse.c:131: warning: 'root' is used uninitialized in this function

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>

---

diff --git a/mm/sparse.c b/mm/sparse.c
index 083f5b6..467edc1 100644
--- a/mm/sparse.c
+++ b/mm/sparse.c
@@ -117,7 +117,7 @@ static inline int sparse_index_init(unsigned long
section_nr, int nid)
 int __section_nr(struct mem_section* ms)
 {
 	unsigned long root_nr;
-	struct mem_section* root;
+	struct mem_section* root = NULL;
 
 	for (root_nr = 0; root_nr < NR_SECTION_ROOTS; root_nr++) {
 		root = __nr_to_section(root_nr * SECTIONS_PER_ROOT); 

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

end of thread, other threads:[~2019-03-30 17:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-30  5:42 [PATCH] mm: Fix build warning Aneesh Kumar K.V
2019-03-30 17:42 ` Mukesh Ojha
  -- strict thread matches above, loose matches on Subject: below --
2009-02-10 23:42 [PATCH] mm: fix " hartleys

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.