From: David Brownell <david-b@pacbell.net>
To: Miles Lane <miles.lane@attbi.com>
Cc: Greg KH <greg@kroah.com>, LKML <linux-kernel@vger.kernel.org>,
Linus Torvalds <torvalds@transmeta.com>,
usb devel <linux-usb-devel@lists.sourceforge.net>
Subject: Re: 2.5.54 -- ohci-dbg.c: 358: In function `show_list': `data1' undeclared (first use in this function)
Date: Thu, 02 Jan 2003 16:39:57 -0800 [thread overview]
Message-ID: <3E14DBDD.4080907@pacbell.net> (raw)
In-Reply-To: 3E145998.6020607@pacbell.net
[-- Attachment #1: Type: text/plain, Size: 305 bytes --]
The attached patch just reverts the "always provide sysfs debug files"
part of Greg's patch. Gets rid of that compile error as well as
keeping the driver object size smaller.
If we want to have debug files without CONFIG_USB_DEBUG, I'd rather
have them controlled by some other Kconfig option.
- Dave
[-- Attachment #2: ohci-0102.patch --]
[-- Type: text/plain, Size: 950 bytes --]
--- ./drivers/usb-dist/host/ohci-dbg.c Thu Jan 2 13:18:42 2003
+++ ./drivers/usb/host/ohci-dbg.c Thu Jan 2 15:04:38 2003
@@ -318,6 +318,10 @@
}
}
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,32)
+# define DRIVERFS_DEBUG_FILES
+#endif
+
#else
static inline void ohci_dump (struct ohci_hcd *controller, int verbose) {}
@@ -325,6 +329,8 @@
/*-------------------------------------------------------------------------*/
+#ifdef DRIVERFS_DEBUG_FILES
+
static ssize_t
show_list (struct ohci_hcd *ohci, char *buf, size_t count, struct ed *ed)
{
@@ -522,5 +528,12 @@
device_remove_file (bus->hcd.controller, &dev_attr_periodic);
}
+#else /* empty stubs for creating those files */
+
+static inline void create_debug_files (struct ohci_hcd *bus) { }
+static inline void remove_debug_files (struct ohci_hcd *bus) { }
+
+#endif /* DRIVERFS_DEBUG_FILES */
+
/*-------------------------------------------------------------------------*/
next prev parent reply other threads:[~2003-01-03 0:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-02 6:12 2.5.54 -- ohci-dbg.c: 358: In function `show_list': `data1' undeclared (first use in this function) Miles Lane
2003-01-02 15:24 ` David Brownell
2003-01-03 0:39 ` David Brownell [this message]
2003-01-03 4:44 ` Greg KH
2003-01-03 6:07 ` [linux-usb-devel] " David Brownell
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=3E14DBDD.4080907@pacbell.net \
--to=david-b@pacbell.net \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb-devel@lists.sourceforge.net \
--cc=miles.lane@attbi.com \
--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