All of lore.kernel.org
 help / color / mirror / Atom feed
From: Blaisorblade <blaisorblade@yahoo.it>
To: user-mode-linux-devel@lists.sourceforge.net
Cc: Jeff Dike <jdike@addtoit.com>
Subject: Re: [uml-devel] Real fix for rejected patch uaccess-warning
Date: Fri, 10 Mar 2006 16:22:41 +0100	[thread overview]
Message-ID: <200603101622.41518.blaisorblade@yahoo.it> (raw)
In-Reply-To: <20060309165725.GC6040@ccure.user-mode-linux.org>

On Thursday 09 March 2006 17:57, Jeff Dike wrote:
> On Tue, Mar 07, 2006 at 08:31:15PM +0100, Blaisorblade wrote:
> > To fix that, we should remove some excess constness. Try the attached
> > patch

> That's certainly a lot simpler than what I had.  I'll drop it in my tree
> and see what it does.

I've now seen that while that may fix the problem on 4.1 (and please, do test 
that), on my 3.4 it causes new warnings like:

fs/proc/proc_misc.c: In function `write_sysrq_trigger':
fs/proc/proc_misc.c:686: warning: initialization discards qualifiers from 
pointer target type

686:		if (get_user(c, buf))
where "buf" is a "const char __user *".

It's complaining because "const" was lost.

Ultimately, I think we should remove all this copying of pointers and do like 
i386 in this regard - there is only one cast to do, in put_user, as I 
mentioned in last mail.
-- 
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade

	

	
		
___________________________________ 
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
http://mail.yahoo.it



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

  reply	other threads:[~2006-03-10 15:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-07 19:31 [uml-devel] Real fix for rejected patch uaccess-warning Blaisorblade
2006-03-09 16:57 ` Jeff Dike
2006-03-10 15:22   ` Blaisorblade [this message]
2006-03-23 20:58     ` Jeff Dike
2006-03-23 23:52       ` Blaisorblade
2006-03-24  1:54         ` Jeff Dike

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=200603101622.41518.blaisorblade@yahoo.it \
    --to=blaisorblade@yahoo.it \
    --cc=jdike@addtoit.com \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /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.