From: Srinivasa Ds <srinivasa@in.ibm.com>
To: Andrew Morton <akpm@linux-foundation.org>,
linux-kernel@vger.kernel.org, johannes@sipsolutions.net,
linuxppc-dev@ozlabs.org, paulus@samba.org
Subject: [PATCH] Build break on ppc64 for 2.6.21-rc6-mm1
Date: Tue, 10 Apr 2007 18:20:47 +0530 [thread overview]
Message-ID: <200704101820.47509.srinivasa@in.ibm.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2506 bytes --]
When I tried to compile 2.6.21-rc6-mm1 on ppc64, I got the below error
message.
======================
arch/powerpc/sysdev/timer.c:51: error: variable ‘timer_sysclass’ has
initializer but incomplete type
arch/powerpc/sysdev/timer.c:52: error: unknown field ‘resume’ specified in
initializer
arch/powerpc/sysdev/timer.c:52: warning: excess elements in struct initializer
arch/powerpc/sysdev/timer.c:52: warning: (near initialization
for ‘timer_sysclass’)
arch/powerpc/sysdev/timer.c:53: error: unknown field ‘suspend’ specified in
initializer
arch/powerpc/sysdev/timer.c:53: warning: excess elements in struct initializer
arch/powerpc/sysdev/timer.c:53: warning: (near initialization
for ‘timer_sysclass’)
arch/powerpc/sysdev/timer.c:54: error: unknown field ‘kset’ specified in
initializer
arch/powerpc/sysdev/timer.c:54: error: extra brace group at end of initializer
arch/powerpc/sysdev/timer.c:54: error: (near initialization
for ‘timer_sysclass’)
arch/powerpc/sysdev/timer.c:54: error: extra brace group at end of initializer
arch/powerpc/sysdev/timer.c:54: error: (near initialization
for ‘timer_sysclass’)
arch/powerpc/sysdev/timer.c:54: warning: excess elements in struct initializer
arch/powerpc/sysdev/timer.c:54: warning: (near initialization
for ‘timer_sysclass’)
arch/powerpc/sysdev/timer.c:57: error: variable ‘device_timer’ has initializer
but incomplete type
arch/powerpc/sysdev/timer.c:58: error: unknown field ‘id’ specified in
initializer
arch/powerpc/sysdev/timer.c:58: warning: excess elements in struct initializer
arch/powerpc/sysdev/timer.c:58: warning: (near initialization
for ‘device_timer’)
arch/powerpc/sysdev/timer.c:59: error: unknown field ‘cls’ specified in
initializer
arch/powerpc/sysdev/timer.c:59: warning: excess elements in struct initializer
arch/powerpc/sysdev/timer.c:59: warning: (near initialization
for ‘device_timer’)
arch/powerpc/sysdev/timer.c: In function ‘time_init_device’:
arch/powerpc/sysdev/timer.c:64: warning: implicit declaration of
function ‘sysdev_class_register’
arch/powerpc/sysdev/timer.c:66: warning: implicit declaration of
function ‘sysdev_register’
make[1]: *** [arch/powerpc/sysdev/timer.o] Error 1
make: *** [arch/powerpc/sysdev] Error 2
=======================================
Below patch fixes this problem. please let me know comments on this.
Signed-off-by: Srinivasa Ds <srinivasa@in.ibm.com>
[-- Attachment #2: build.patch --]
[-- Type: text/x-diff, Size: 437 bytes --]
---
arch/powerpc/sysdev/timer.c | 1 +
1 file changed, 1 insertion(+)
Index: linux-2.6.21-rc6/arch/powerpc/sysdev/timer.c
===================================================================
--- linux-2.6.21-rc6.orig/arch/powerpc/sysdev/timer.c
+++ linux-2.6.21-rc6/arch/powerpc/sysdev/timer.c
@@ -7,6 +7,7 @@
*/
#include <linux/time.h>
+#include <linux/sysdev.h>
#include <asm/rtc.h>
static unsigned long suspend_rtc_time;
next reply other threads:[~2007-04-10 12:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-10 12:50 Srinivasa Ds [this message]
2007-04-10 13:45 ` [PATCH] Build break on ppc64 for 2.6.21-rc6-mm1 Johannes Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200704101820.47509.srinivasa@in.ibm.com \
--to=srinivasa@in.ibm.com \
--cc=akpm@linux-foundation.org \
--cc=johannes@sipsolutions.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=paulus@samba.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).