mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Stephen Rothwell <sfr@canb.auug.org.au>
To: Pavel Machek <pavel@ucw.cz>
Cc: torvalds@transmeta.com, linux-kernel@vger.kernel.org
Subject: Re: sys32_ioctl -> compat_ioctl -- generic
Date: Wed, 5 Mar 2003 10:36:19 +1100	[thread overview]
Message-ID: <20030305103619.52ccdfe2.sfr@canb.auug.org.au> (raw)
In-Reply-To: <20030303232122.GA24018@elf.ucw.cz>

On Tue, 4 Mar 2003 00:21:22 +0100 Pavel Machek <pavel@ucw.cz> wrote:
>
> +asmlinkage long compat_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg)

For consistancy, this should be called compat_sys_ioctl.

> +{
> +	struct file * filp;

> +	filp = fget(fd);

> +			/* find the name of the device. */
> +			if (path) {
> +				struct file *f = fget(fd); 

Is it really necessary to do another fget(fd) ?

Also, if you are adding this much code, you should add a copyright notice
to the top of the file ...

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

  parent reply	other threads:[~2003-03-04 23:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-03 23:21 Pavel Machek
2003-03-04 23:28 ` Stephen Rothwell
2003-03-05 21:43   ` Pavel Machek
2003-03-04 23:36 ` Stephen Rothwell [this message]
2003-03-06 23:37   ` Pavel Machek
2003-03-09 22:44     ` Stephen Rothwell
2003-03-10 11:28     ` Andi Kleen

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=20030305103619.52ccdfe2.sfr@canb.auug.org.au \
    --to=sfr@canb.auug.org.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@ucw.cz \
    --cc=torvalds@transmeta.com \
    /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

all inboxes | Powered by JetHome®