From: Andreas Schwab <schwab@suse.de>
To: linux-kernel@vger.kernel.org
Subject: Re: Broken __get_unaligned from <asm-generic/unaligned.h>
Date: Thu, 10 Nov 2005 17:20:27 +0100 [thread overview]
Message-ID: <jer79oh3uc.fsf@sykes.suse.de> (raw)
In-Reply-To: <20051110144847.GA28700@flint.arm.linux.org.uk> (Russell King's message of "Thu, 10 Nov 2005 14:48:47 +0000")
Russell King <rmk+lkml@arm.linux.org.uk> writes:
> On Thu, Nov 10, 2005 at 03:42:05PM +0100, Andreas Schwab wrote:
>> __get_unaligned can't cope with const-qualified types:
>>
>> drivers/char/vc_screen.c: In function 'vcs_write':
>> drivers/char/vc_screen.c:422: error: assignment of read-only variable 'val'
>> drivers/char/vc_screen.c:422: error: assignment of read-only variable 'val'
>> drivers/char/vc_screen.c:422: error: assignment of read-only variable 'val'
>> drivers/char/vc_screen.c:422: error: assignment of read-only variable 'val'
>
> What if get_unaligned is used with a u64 / long long type (which it is)?
Oops, I missed that, it needs a different approach.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
prev parent reply other threads:[~2005-11-10 16:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-10 14:42 Broken __get_unaligned from <asm-generic/unaligned.h> Andreas Schwab
2005-11-10 14:48 ` Russell King
2005-11-10 16:20 ` Andreas Schwab [this message]
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=jer79oh3uc.fsf@sykes.suse.de \
--to=schwab@suse.de \
--cc=linux-kernel@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 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.