From: Vitaly Bordug <vbordug@ru.mvista.com>
To: hs@denx.de
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: Compile Error using SMC1 on a MPC8272 for 2.6.19-rc4
Date: Sat, 11 Nov 2006 00:15:27 +0300 [thread overview]
Message-ID: <20061111001527.1274c7f4@localhost.localdomain> (raw)
In-Reply-To: <1163159594.6319.56.camel@Zeus.EmbLux>
[-- Attachment #1: Type: text/plain, Size: 1385 bytes --]
On Fri, 10 Nov 2006 12:53:14 +0100
Heiko Schocher wrote:
> Hello,
>
> I tried to compile the Linux Kernel 2.6.19-rc5 with a MPC8272 CPU and
> a console on SMC1, and get the following Compile Error:
>
> CC drivers/serial/cpm_uart/cpm_uart_cpm2.o
> drivers/serial/cpm_uart/cpm_uart_cpm2.c: In function
> 'cpm_uart_init_portdesc':
> drivers/serial/cpm_uart/cpm_uart_cpm2.c:364: warning: assignment makes
> integer from pointer without a cast
> drivers/serial/cpm_uart/cpm_uart_cpm2.c:368: error: invalid type
> argument of 'unary *'
> make[3]: *** [drivers/serial/cpm_uart/cpm_uart_cpm2.o] Error 1
> make[2]: *** [drivers/serial/cpm_uart] Error 2
> make[1]: *** [drivers/serial] Error 2
> make: *** [drivers] Error 2
>
> The following Code solves the problem:
>
> diff --git a/drivers/serial/cpm_uart/cpm_uart_cpm2.c
> b/drivers/serial/cpm_uart/cpm_uart_cpm2.c
> index 0599030..bb0a6c1 100644
> --- a/drivers/serial/cpm_uart/cpm_uart_cpm2.c
> +++ b/drivers/serial/cpm_uart/cpm_uart_cpm2.c
> @@ -349,7 +349,7 @@ void cpm_uart_freebuf(struct uart_cpm_po
> int cpm_uart_init_portdesc(void)
> {
> #if defined(CONFIG_SERIAL_CPM_SMC1) ||
> defined(CONFIG_SERIAL_CPM_SMC2)
> - u32 addr;
> + u32 *addr;
> #endif
> pr_debug("CPM uart[-]:init portdesc\n");
>
Yes, but that is not the only issue. I am working on that.
Thanks,
-Vitaly
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2006-11-10 21:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-10 11:53 Compile Error using SMC1 on a MPC8272 for 2.6.19-rc4 Heiko Schocher
2006-11-10 21:15 ` Vitaly Bordug [this message]
2006-12-04 12:09 ` Heiko Schocher
2006-12-04 15:00 ` Vitaly Bordug
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=20061111001527.1274c7f4@localhost.localdomain \
--to=vbordug@ru.mvista.com \
--cc=hs@denx.de \
--cc=linuxppc-embedded@ozlabs.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 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.