All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: H Hartley Sweeten <hartleys@visionengravers.com>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: Re: [RFC PATCH 0/2] init: make sure syscall arguments are marked __user where needed
Date: Fri, 20 Apr 2012 16:00:39 -0700	[thread overview]
Message-ID: <20120420160039.74c49a0c.akpm@linux-foundation.org> (raw)
In-Reply-To: <201204161733.23830.hartleys@visionengravers.com>

On Mon, 16 Apr 2012 17:33:23 -0700
H Hartley Sweeten <hartleys@visionengravers.com> wrote:

> When using syscall routines in the kernel, some of the arguments
> should be user pointers but are missing the __user markup. This
> produces a number of sparse warnings of the format:    
>   
> warning: incorrect type in argument 1 (different address spaces)
>    expected char [noderef] <asn:1>*dev_name
>    got char *name 
> 
> Wrap the syscall routines in the private do_mounts.h header so that
> the appropriate __user markups are added for the init mount code.

This makes rather a mess of do_mounts.c for pretty marginal benefit.

Can we just make "make C=1" skip that file or something?

  reply	other threads:[~2012-04-20 23:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-17  0:33 [RFC PATCH 0/2] init: make sure syscall arguments are marked __user where needed H Hartley Sweeten
2012-04-20 23:00 ` Andrew Morton [this message]
2012-04-21  0:05   ` H Hartley Sweeten
2012-04-21  0:43     ` Andrew Morton
2012-04-21  0:46       ` H Hartley Sweeten

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=20120420160039.74c49a0c.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=hartleys@visionengravers.com \
    --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.