[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080923141351.GH25711@one.firstfloor.org>
Date: Tue, 23 Sep 2008 16:13:51 +0200
From: Andi Kleen <andi@...stfloor.org>
To: Christoph Hellwig <hch@...radead.org>
Cc: akpm@...ux-foundation.org, kkeil@...e.de, netdev@...r.kernel.org,
andi@...stfloor.org, ak@...ux.intel.com
Subject: Re: [patch 4/4] mISDN: misc timerdev fixes
On Tue, Sep 23, 2008 at 06:40:26AM -0400, Christoph Hellwig wrote:
> On Mon, Sep 22, 2008 at 02:51:03PM -0700, akpm@...ux-foundation.org wrote:
> > From: Andi Kleen <andi@...stfloor.org>
> >
> > - Remove noop VFS stubs. The VFS does that on a NULL pointer anyways.
>
> > -static loff_t
> > -mISDN_llseek(struct file *filep, loff_t offset, int orig)
> > -{
> > - return -ESPIPE;
> > -}
>
> > static struct file_operations mISDN_fops = {
> > - .llseek = mISDN_llseek,
>
> This is wrong. no llseek means we use default_llseek, which is
> different from returning -ESPIPE.
No it's correct. Character devices don't have FMODE_LSEEK set
and then no_llseek is the default fallback.
-Andi
--
ak@...ux.intel.com
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists