linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH linux-next] fix s390 compile error due to smp_call_function
@ 2008-07-08 14:25 Christian Borntraeger
  2008-07-09 14:36 ` Heiko Carstens
  0 siblings, 1 reply; 3+ messages in thread
From: Christian Borntraeger @ 2008-07-08 14:25 UTC (permalink / raw)
  To: Jens Axboe; +Cc: Stephen Rothwell, linux-next, linux-s390, Heiko Carstens

Hello Jens,

the following patch in linux-next (v2.6.26-rc9-7220-g5e36ed1)

commit 8691e5a8f691cc2a4fda0651e8d307aaba0e7d68
Author: Jens Axboe <jens.axboe@oracle.com>
Date:   Fri Jun 6 11:18:06 2008 +0200
smp_call_function: get rid of the unused nonatomic/retry argument

causes a build error on s390.
  CC      arch/s390/kernel/time.o
arch/s390/kernel/time.c: In function 'stp_work_fn':
arch/s390/kernel/time.c:1448: error: too many arguments to 
function 'smp_call_function'
arch/s390/kernel/time.c:1481: error: too many arguments to 
function 'smp_call_function'

The fix is simple and obvious, remove the unneeded argument.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>

---
 arch/s390/kernel/time.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: linux-next/arch/s390/kernel/time.c
===================================================================
--- linux-next.orig/arch/s390/kernel/time.c
+++ linux-next/arch/s390/kernel/time.c
@@ -1445,7 +1445,7 @@ static void stp_work_fn(struct work_stru
 	 */
 	memset(&stp_sync, 0, sizeof(stp_sync));
 	preempt_disable();
-	smp_call_function(clock_sync_cpu_start, &stp_sync, 0, 0);
+	smp_call_function(clock_sync_cpu_start, &stp_sync, 0);
 	local_irq_disable();
 	enable_sync_clock();
 
@@ -1478,7 +1478,7 @@ static void stp_work_fn(struct work_stru
 		stp_sync.in_sync = 1;
 
 	local_irq_enable();
-	smp_call_function(clock_sync_cpu_end, NULL, 0, 0);
+	smp_call_function(clock_sync_cpu_end, NULL, 0);
 	preempt_enable();
 }
 

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

* Re: [PATCH linux-next] fix s390 compile error due to smp_call_function
  2008-07-08 14:25 [PATCH linux-next] fix s390 compile error due to smp_call_function Christian Borntraeger
@ 2008-07-09 14:36 ` Heiko Carstens
  2008-07-09 16:21   ` Stephen Rothwell
  0 siblings, 1 reply; 3+ messages in thread
From: Heiko Carstens @ 2008-07-09 14:36 UTC (permalink / raw)
  To: Christian Borntraeger
  Cc: Jens Axboe, Stephen Rothwell, linux-next, linux-s390

On Tue, Jul 08, 2008 at 04:25:50PM +0200, Christian Borntraeger wrote:
> Hello Jens,
> 
> the following patch in linux-next (v2.6.26-rc9-7220-g5e36ed1)
> 
> commit 8691e5a8f691cc2a4fda0651e8d307aaba0e7d68
> Author: Jens Axboe <jens.axboe@oracle.com>
> Date:   Fri Jun 6 11:18:06 2008 +0200
> smp_call_function: get rid of the unused nonatomic/retry argument
> 
> causes a build error on s390.
>   CC      arch/s390/kernel/time.o
> arch/s390/kernel/time.c: In function 'stp_work_fn':
> arch/s390/kernel/time.c:1448: error: too many arguments to 
> function 'smp_call_function'
> arch/s390/kernel/time.c:1481: error: too many arguments to 
> function 'smp_call_function'
> 
> The fix is simple and obvious, remove the unneeded argument.
> 
> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
> 
> ---
>  arch/s390/kernel/time.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> Index: linux-next/arch/s390/kernel/time.c
> ===================================================================
> --- linux-next.orig/arch/s390/kernel/time.c
> +++ linux-next/arch/s390/kernel/time.c
> @@ -1445,7 +1445,7 @@ static void stp_work_fn(struct work_stru
>  	 */
>  	memset(&stp_sync, 0, sizeof(stp_sync));
>  	preempt_disable();
> -	smp_call_function(clock_sync_cpu_start, &stp_sync, 0, 0);
> +	smp_call_function(clock_sync_cpu_start, &stp_sync, 0);
>  	local_irq_disable();
>  	enable_sync_clock();
> 
> @@ -1478,7 +1478,7 @@ static void stp_work_fn(struct work_stru
>  		stp_sync.in_sync = 1;
> 
>  	local_irq_enable();
> -	smp_call_function(clock_sync_cpu_end, NULL, 0, 0);
> +	smp_call_function(clock_sync_cpu_end, NULL, 0);
>  	preempt_enable();
>  }

Stephen, could you add this patch to your build fixes?
Currently it won't fit into git-s390 or Jens' smp_call_function
tree, since these two call sites are introduced with a new
patch in git-s390 (stp support).

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

* Re: [PATCH linux-next] fix s390 compile error due to smp_call_function
  2008-07-09 14:36 ` Heiko Carstens
@ 2008-07-09 16:21   ` Stephen Rothwell
  0 siblings, 0 replies; 3+ messages in thread
From: Stephen Rothwell @ 2008-07-09 16:21 UTC (permalink / raw)
  To: Heiko Carstens; +Cc: Christian Borntraeger, Jens Axboe, linux-next, linux-s390

[-- Attachment #1: Type: text/plain, Size: 445 bytes --]

Hi Heiko,

On Wed, 9 Jul 2008 16:36:39 +0200 Heiko Carstens <heiko.carstens@de.ibm.com> wrote:
>
> Stephen, could you add this patch to your build fixes?
> Currently it won't fit into git-s390 or Jens' smp_call_function
> tree, since these two call sites are introduced with a new
> patch in git-s390 (stp support).

Will do.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

end of thread, other threads:[~2008-07-09 16:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-08 14:25 [PATCH linux-next] fix s390 compile error due to smp_call_function Christian Borntraeger
2008-07-09 14:36 ` Heiko Carstens
2008-07-09 16:21   ` Stephen Rothwell

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).