Skip to contentSkip to conversation

linux-next: build failure after merge of the powerpc tree

PATCH Applied Stephen Rothwell 3 participants 5 messages Jan 7, 2016 – Jan 13, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the powerpc tree, today's linux-next build (powerpc64 allnoconfig) failed like this:

arch/powerpc/mm/hash_utils_64.c: In function 'get_paca_psize':
arch/powerpc/mm/hash_utils_64.c:869:19: error: 'struct paca_struct' has no member named 'context'

  return get_paca()->context.user_psize;
                   ^

arch/powerpc/mm/hash_utils_64.c:870:1: error: control reaches end of non-void function [-Werror=return-type]
}
^

Caused by commit

2fc251a8dda5 ("powerpc: Copy only required pieces of the mm_context_t to the paca")

This build has CONFIG_PPC_MM_SLICES not set ...

I have applied the following patch for today:

From: Stephen Rothwell <[email protected]>
Date: Thu, 7 Jan 2016 19:07:18 +1100
Subject: [PATCH] powerpc: restore the user_psize member of the mm_context_t in
the paca

It is used when CONFIG_PPC_MM_SLICES is not set.

Fixes 2fc251a8dda5 ("powerpc: Copy only required pieces of the mm_context_t to the paca")
---
 arch/powerpc/include/asm/paca.h | 2 ++
 arch/powerpc/mm/hash_utils_64.c | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
arch/powerpc/include/asm/paca.h +2 -0
index ef78c288c712..546540b91095 100644
@@ -138,6 +138,7 @@ struct paca_struct {
 	u64 mm_ctx_low_slices_psize;
 	unsigned char mm_ctx_high_slices_psize[SLICE_ARRAY_SIZE];
 #else
+	u16 mm_ctx_user_psize;
 	u16 mm_ctx_sllp;
 #endif
 #endif
@@ -212,6 +213,7 @@ static inline void copy_mm_to_paca(mm_context_t *context)
 	memcpy(&get_paca()->mm_ctx_high_slices_psize,
 	       &context->high_slices_psize, SLICE_ARRAY_SIZE);
 #else
+	get_paca()->mm_ctx_user_psize = context->user_psize;
 	get_paca()->mm_ctx_sllp = context->sllp;
 #endif
 }
arch/powerpc/mm/hash_utils_64.c +1 -1
index db744576d730..ba59d5977f34 100644
@@ -866,7 +866,7 @@ static unsigned int get_paca_psize(unsigned long addr)
 #else
 unsigned int get_paca_psize(unsigned long addr)
 {
-	return get_paca()->context.user_psize;
+	return get_paca()->mm_ctx_user_psize;
 }
 #endif
 
Signature · 5 lines
2.6.4

-- 
Cheers,
Stephen Rothwell                    [email protected]
#1 lore raw
Quoted 9 lines · Stephen Rothwell

Hi all,

After merging the powerpc tree, today's linux-next build (powerpc64 allnoconfig) failed like this:

arch/powerpc/mm/hash_utils_64.c: In function 'get_paca_psize':
arch/powerpc/mm/hash_utils_64.c:869:19: error: 'struct paca_struct' has no member named 'context'

  return get_paca()->context.user_psize;
                   ^
Quoted 7 lines

arch/powerpc/mm/hash_utils_64.c:870:1: error: control reaches end of non-void function [-Werror=return-type]
}
^

Caused by commit

2fc251a8dda5 ("powerpc: Copy only required pieces of the mm_context_t to the paca")

Well that's rather embarrassing, for Mikey ;D

Quoted 1 line

This build has CONFIG_PPC_MM_SLICES not set ...

Ugh, but it would seem none of our defconfigs do :/

Quoted 1 line

I have applied the following patch for today:

Thanks.

I'll merge it or something similar once I get a chance to test it.

cheers

#2 lore raw
Quoted 16 lines · Michael Ellerman
Quoted 15 lines · Stephen Rothwell

Hi all,

After merging the powerpc tree, today's linux-next build (powerpc64 allnoconfig) failed like this:

arch/powerpc/mm/hash_utils_64.c: In function 'get_paca_psize':
arch/powerpc/mm/hash_utils_64.c:869:19: error: 'struct paca_struct' has no member named 'context'

  return get_paca()->context.user_psize;
                   ^

arch/powerpc/mm/hash_utils_64.c:870:1: error: control reaches end of non-void function [-Werror=return-type]
}
^

Caused by commit

Quoted 7 lines
Quoted 1 line

2fc251a8dda5 ("powerpc: Copy only required pieces of the mm_context_t to the paca")

Well that's rather embarrassing, for Mikey ;D

Quoted 1 line

This build has CONFIG_PPC_MM_SLICES not set ...

Ugh, but it would seem none of our defconfigs do :/

4K page size with hugetlb disabled will get that

-aneesh

#3 lore raw
Quoted 17 lines · Aneesh Kumar K.V
Quoted 16 lines · Michael Ellerman
Quoted 14 lines · Stephen Rothwell

After merging the powerpc tree, today's linux-next build (powerpc64 allnoconfig) failed like this:

arch/powerpc/mm/hash_utils_64.c: In function 'get_paca_psize':
arch/powerpc/mm/hash_utils_64.c:869:19: error: 'struct paca_struct' has no member named 'context'

  return get_paca()->context.user_psize;
                   ^

arch/powerpc/mm/hash_utils_64.c:870:1: error: control reaches end of non-void function [-Werror=return-type]
}
^

Caused by commit

2fc251a8dda5 ("powerpc: Copy only required pieces of the mm_context_t to the paca")

Quoted 7 lines
Quoted 5 lines

Well that's rather embarrassing, for Mikey ;D

Quoted 1 line

This build has CONFIG_PPC_MM_SLICES not set ...

Ugh, but it would seem none of our defconfigs do :/

4K page size with hugetlb disabled will get that

Yeah, but none of our defconfigs do that.

I've got a kisskb target for it now:

http://kisskb.ellerman.id.au/kisskb/target/28577/

cheers

reviewer Applied
#4 lore raw
In reply to Stephen Rothwell
Quoted 26 lines · Stephen Rothwell

Hi all,

After merging the powerpc tree, today's linux-next build (powerpc64 allnoconfig) failed like this:

arch/powerpc/mm/hash_utils_64.c: In function 'get_paca_psize':
arch/powerpc/mm/hash_utils_64.c:869:19: error: 'struct paca_struct' has no member named 'context'

  return get_paca()->context.user_psize;
                   ^

arch/powerpc/mm/hash_utils_64.c:870:1: error: control reaches end of non-void function [-Werror=return-type]
}
^

Caused by commit

2fc251a8dda5 ("powerpc: Copy only required pieces of the mm_context_t to the paca")

This build has CONFIG_PPC_MM_SLICES not set ...

I have applied the following patch for today:

From: Stephen Rothwell <[email protected]>
Date: Thu, 7 Jan 2016 19:07:18 +1100
Subject: [PATCH] powerpc: restore the user_psize member of the mm_context_t in
the paca

Quoted 4 lines

It is used when CONFIG_PPC_MM_SLICES is not set.

Fixes 2fc251a8dda5 ("powerpc: Copy only required pieces of the mm_context_t to the paca")

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/c33e54fafacaf83b3e345aae0e

cheers