public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Prototype error in <linux/debugfs.h>
@ 2005-04-12  8:35 Chen, Kenneth W
  2005-04-12  8:43 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Chen, Kenneth W @ 2005-04-12  8:35 UTC (permalink / raw)
  To: 'Greg KH'; +Cc: linux-kernel

To lazy to write a patch, the inline debugfs function declaration
for the following three functions disagree between CONFIG_DEBUG_FS
and !CONFIG_DEBUG_FS

4th argument mismatch, looks like an obvious copy-n-paste error.
u16, u32, and u32?


static inline struct dentry *debugfs_create_u16(const char *name, mode_t mode,
                                                struct dentry *parent,
                                                u8 *value)
{
        return ERR_PTR(-ENODEV);
}

static inline struct dentry *debugfs_create_u32(const char *name, mode_t mode,
                                                struct dentry *parent,
                                                u8 *value)
{
        return ERR_PTR(-ENODEV);
}

static inline struct dentry *debugfs_create_bool(const char *name, mode_t mode,
                                                 struct dentry *parent,
                                                 u8 *value)
{
        return ERR_PTR(-ENODEV);
}



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-04-12  8:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-12  8:35 Prototype error in <linux/debugfs.h> Chen, Kenneth W
2005-04-12  8:43 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox