Skip to contentSkip to conversation

Build break - arch/s390/mm/pgtable.c (INIT_RCU_HEAD)

-next Sept 10 Sachin Sant 3 participants 5 messages Sep 10, 2010 – Sep 14, 2010

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

Today's next fails to build on a s390 box with

arch/s390/mm/pgtable.c: In function 'rcu_table_freelist_finish':
arch/s390/mm/pgtable.c:79: error: implicit declaration of function 'INIT_RCU_HEAD' make[2]: *** [arch/s390/mm/pgtable.o] Error 1

This code in question was added via following commit:

commit e726023d9ff7e4968e3e0622782174a4695d68a4
S390] lockless get_user_pages_fast()

Thanks
-Sachin

Signature · 6 lines
---------------------------------
Sachin Sant
IBM Linux Technology Center
India Systems and Technology Labs
Bangalore, India
---------------------------------
#1 lore raw
Quoted 10 lines · On Fri, 10 Sep 2010 13:43:20 +0530 Sachin Sant <[email protected]> wrote:

Today's next fails to build on a s390 box with

arch/s390/mm/pgtable.c: In function 'rcu_table_freelist_finish':
arch/s390/mm/pgtable.c:79: error: implicit declaration of function 'INIT_RCU_HEAD' make[2]: *** [arch/s390/mm/pgtable.o] Error 1

This code in question was added via following commit:

commit e726023d9ff7e4968e3e0622782174a4695d68a4
S390] lockless get_user_pages_fast()

I guess that there is an #include <linux/rcupdate.h> missing in pgtable.c. I'll add it to the patch.

Signature · 4 lines
blue skies,
   Martin.

"Reality continues to ruin my life." - Calvin.
#2 lore raw
Quoted 10 lines · Martin Schwidefsky
Quoted 6 lines · On Fri, 10 Sep 2010 13:43:20 +0530 Sachin Sant <[email protected]> wrote:

Today's next fails to build on a s390 box with

arch/s390/mm/pgtable.c: In function 'rcu_table_freelist_finish':
arch/s390/mm/pgtable.c:79: error: implicit declaration of function 'INIT_RCU_HEAD' make[2]: *** [arch/s390/mm/pgtable.o] Error 1

Quoted 9 lines
Quoted 5 lines

This code in question was added via following commit:

commit e726023d9ff7e4968e3e0622782174a4695d68a4
S390] lockless get_user_pages_fast()

I guess that there is an #include <linux/rcupdate.h> missing in pgtable.c. I'll add it to the patch.

I don't see definition for INIT_RCU_HEAD in rcupdate.h so adding rcupdate.h might not help.

Infact i can't find usage/implementation of INIT_RCU_HEAD anywhere else in the code. Is this macro deprecated ?

Thanks
-Sachin

Signature · 6 lines
---------------------------------
Sachin Sant
IBM Linux Technology Center
India Systems and Technology Labs
Bangalore, India
---------------------------------
#3 lore raw

Hi Sachin, Martin,

Quoted 18 lines · On Tue, 14 Sep 2010 13:43:51 +0530 Sachin Sant <[email protected]> wrote:
Quoted 16 lines · Martin Schwidefsky
Quoted 11 lines · On Fri, 10 Sep 2010 13:43:20 +0530 Sachin Sant <[email protected]> wrote:

Today's next fails to build on a s390 box with

arch/s390/mm/pgtable.c: In function 'rcu_table_freelist_finish':
arch/s390/mm/pgtable.c:79: error: implicit declaration of function 'INIT_RCU_HEAD' make[2]: *** [arch/s390/mm/pgtable.o] Error 1

This code in question was added via following commit:

commit e726023d9ff7e4968e3e0622782174a4695d68a4
S390] lockless get_user_pages_fast()

Quoted 8 lines
Quoted 3 lines

I guess that there is an #include <linux/rcupdate.h> missing in pgtable.c. I'll add it to the patch.

I don't see definition for INIT_RCU_HEAD in rcupdate.h so adding rcupdate.h might not help.

Infact i can't find usage/implementation of INIT_RCU_HEAD anywhere else in the code. Is this macro deprecated ?

It has been removed by commit 5e8067adfdbaf97039a97540765b1e16eb8d61cc ("rcu head remove init") from the rcu and tip trees.

It was just initialising two internal pointers to NULL, so should not be needed (for non automatic definitions) even in Linus' current tree.

Signature · 3 lines
Cheers,
Stephen Rothwell                    [email protected]
http://www.canb.auug.org.au/~sfr/
#4 lore raw
Quoted 27 lines · On Tue, 14 Sep 2010 18:36:48 +1000 Stephen Rothwell <[email protected]>…

Hi Sachin, Martin,

Quoted 24 lines · On Tue, 14 Sep 2010 13:43:51 +0530 Sachin Sant <[email protected]> wrote:
Quoted 10 lines · Martin Schwidefsky
Quoted 6 lines · On Fri, 10 Sep 2010 13:43:20 +0530 Sachin Sant <[email protected]> wrote:

Today's next fails to build on a s390 box with

arch/s390/mm/pgtable.c: In function 'rcu_table_freelist_finish':
arch/s390/mm/pgtable.c:79: error: implicit declaration of function 'INIT_RCU_HEAD' make[2]: *** [arch/s390/mm/pgtable.o] Error 1

Quoted 9 lines
Quoted 5 lines

This code in question was added via following commit:

commit e726023d9ff7e4968e3e0622782174a4695d68a4
S390] lockless get_user_pages_fast()

I guess that there is an #include <linux/rcupdate.h> missing in pgtable.c. I'll add it to the patch.

I don't see definition for INIT_RCU_HEAD in rcupdate.h so adding rcupdate.h might not help.

Quoted 8 lines
Quoted 2 lines

Infact i can't find usage/implementation of INIT_RCU_HEAD anywhere else in the code. Is this macro deprecated ?

It has been removed by commit 5e8067adfdbaf97039a97540765b1e16eb8d61cc ("rcu head remove init") from the rcu and tip trees.

It was just initialising two internal pointers to NULL, so should not be needed (for non automatic definitions) even in Linus' current tree.

Ok, I'll drop the INIT_RCU_HEAD call from the patch. Without it linux-next compiles for me.

Signature · 4 lines
blue skies,
   Martin.

"Reality continues to ruin my life." - Calvin.