[PATCH] ehci-hcd.c needs to include <linux/bitops.h>

Richard Curnow (Richard.Curnow@superh.com)
Tue, 13 May 2003 16:53:41 +0100


When I try to configure in EHCI support without this patch, I get
generic_ffs undefined at link time. (This is with 2.4.21-rc2 on our
sh64 (SH-5) port). Perhaps there are other ways to achieve this, but
this worked for me.

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
# ChangeSet 1.1212 -> 1.1213
# drivers/usb/host/ehci-hcd.c 1.12 -> 1.13
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/05/13 curnowr@linsvr6.uk.superh.com 1.1213
# ehci-hcd.c needs to include <linux/bitops.h>, otherwise the inline
# definition of generic_ffs is not visible and it becomes an undefined
# symbol at link time.
# --------------------------------------------
#
diff -Nru a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
--- a/drivers/usb/host/ehci-hcd.c Tue May 13 16:50:22 2003
+++ b/drivers/usb/host/ehci-hcd.c Tue May 13 16:50:22 2003
@@ -31,6 +31,7 @@
#include <linux/list.h>
#include <linux/interrupt.h>
#include <linux/reboot.h>
+#include <linux/bitops.h> /* for generic_ffs */

#ifdef CONFIG_USB_DEBUG
#define DEBUG

-- 
Richard \\\ SuperH Core+Debug Architect /// .. At home ..
  P.    /// richard.curnow@superh.com  ///  rc@rc0.org.uk
Curnow  \\\ http://www.superh.com/    ///  www.rc0.org.uk
Speaking for myself, not on behalf of SuperH
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/