From: david mosberger <dmosberger@gmail.com>
To: linux-ia64@vger.kernel.org
Subject: Re: autocompilation hosed?
Date: Wed, 13 Jul 2005 04:50:58 +0000 [thread overview]
Message-ID: <ed5aea43050712215078a868f6@mail.gmail.com> (raw)
In-Reply-To: <ed5aea4305071214283aada0f2@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 686 bytes --]
On 7/12/05, Tony Luck <tony.luck@gmail.com> wrote:
> > I'm also using gcc-4.0.1 by default now. It basically seems to work
> > (apart from lots of additional annoying warning messages). There is
> > one oddity: on my zx2000, it doesn't boot anymore without console=tty0
> > or console=ttyS0 arguments. I'm not sure yet whether that's a
> > compiler-triggered problem or whether something changed in the kernel
> > that's causing this.
>
> No ... I saw it too without gcc-4. See http://tinyurl.com/clzbu where I
> identified the patch that seems to be the cause.
Patch below fixes the problem. Moral of the story: don't add
"attributed(packed)" lightly!
--david
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: pcdp-fix.diff --]
[-- Type: text/x-patch; name="pcdp-fix.diff", Size: 606 bytes --]
[IA64] Make PCDP work again.
Mark's patch added "attribute((packed))" for pcdp_uart, without
accounting for the fact that the structure definition _relied_ on
implicit padding by 6 bytes. Fix is to make the padding explicit.
Signed-off-by: David Mosberger-Tang <David.Mosberger@acm.org>
diff --git a/drivers/firmware/pcdp.h b/drivers/firmware/pcdp.h
--- a/drivers/firmware/pcdp.h
+++ b/drivers/firmware/pcdp.h
@@ -52,6 +52,8 @@ struct pcdp_uart {
u32 clock_rate;
u8 pci_prog_intfc;
u8 flags;
+ u16 conout_index;
+ u32 reserved;
} __attribute__((packed));
#define PCDP_IF_PCI 1
next prev parent reply other threads:[~2005-07-13 4:50 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-12 21:28 autocompilation hosed? david mosberger
2005-07-12 22:26 ` Ian Wienand
2005-07-12 22:28 ` david mosberger
2005-07-13 1:40 ` Ian Wienand
2005-07-13 3:28 ` david mosberger
2005-07-13 3:45 ` Tony Luck
2005-07-13 4:50 ` david mosberger [this message]
2005-07-14 15:23 ` Magenheimer, Dan (HP Labs Fort Collins)
2005-07-14 17:43 ` david mosberger
2005-07-14 22:02 ` James E Wilson
2005-07-14 22:07 ` Magenheimer, Dan (HP Labs Fort Collins)
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=ed5aea43050712215078a868f6@mail.gmail.com \
--to=dmosberger@gmail.com \
--cc=linux-ia64@vger.kernel.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