public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andreas Steinmetz <ast@domdv.de>
To: linux-kernel <linux-kernel@vger.kernel.org>
Subject: 2.4.20pre5 trivial compiler warning fix for dv1394.c
Date: Thu, 05 Sep 2002 22:40:20 +0200	[thread overview]
Message-ID: <3D77C134.2010709@domdv.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 149 bytes --]

attached is a trivial fix for conpiler warnings for dv1394.c if
CONFIG_DEVFS_FS is not defined.
-- 
Andreas Steinmetz
D.O.M. Datenverarbeitung GmbH


[-- Attachment #2: dv1394.c.diff --]
[-- Type: text/plain, Size: 627 bytes --]

--- drivers/ieee1394/dv1394.c.orig	2002-09-05 22:31:43.000000000 +0200
+++ drivers/ieee1394/dv1394.c	2002-09-05 22:32:10.000000000 +0200
@@ -2580,6 +2580,7 @@
 	return NULL;
 }
 
+#ifdef CONFIG_DEVFS_FS
 static int dv1394_devfs_add_entry(struct video_card *video)
 {
 	char buf[32];
@@ -2674,6 +2675,7 @@
  err:
 	return -ENOMEM;
 }
+#endif
 
 void dv1394_devfs_del( char *name)
 {
@@ -2852,7 +2854,9 @@
 {
 	struct ti_ohci *ohci;
 	char buf[16];
+#ifdef CONFIG_DEVFS_FS
 	struct dv1394_devfs_entry *devfs_entry;
+#endif
 
 	/* We only work with the OHCI-1394 driver */
 	if (strcmp(host->driver->name, OHCI1394_DRIVER_NAME))


                 reply	other threads:[~2002-09-05 21:52 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=3D77C134.2010709@domdv.de \
    --to=ast@domdv.de \
    --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