public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Bernhard Rosenkraenzer <bero@arklinux.org>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] 2.6.19-rc2-mm1: make net2280 compile without CONFIG_USB_GADGET_DEBUG_FILES
Date: Thu, 19 Oct 2006 17:31:07 +0200	[thread overview]
Message-ID: <200610191731.07406.bero@arklinux.org> (raw)

If CONFIG_USB_GADGET_DEBUG_FILES is disabled, net2280 #defines 
device_create_file(a,b) to do {} while (0).
Later on, it does result = device_create_file(.....)

Signed-off-by: Bernhard Rosenkraenzer <bero@arklinux.org>

--- linux-2.6.18/drivers/usb/gadget/net2280.c.ark	2006-10-19 
16:38:59.000000000 +0200
+++ linux-2.6.18/drivers/usb/gadget/net2280.c	2006-10-19 17:18:36.000000000 
+0200
@@ -1774,7 +1774,7 @@
 
 #else
 
-#define device_create_file(a,b)	do {} while (0)
+#define device_create_file(a,b)	0
 #define device_remove_file	device_create_file
 
 #endif

                 reply	other threads:[~2006-10-19 15:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=200610191731.07406.bero@arklinux.org \
    --to=bero@arklinux.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox