From owner-freebsd-mobile@FreeBSD.ORG Fri Sep 14 22:02:54 2007 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA25F16A476; Fri, 14 Sep 2007 22:02:54 +0000 (UTC) (envelope-from SRS0=689b31d93095b6e46b5e8988ac514a49d3ce52e0=458=es.net=oberman@es.net) Received: from postal1.es.net (postal4.es.net [IPv6:2001:400:6000:1::66]) by mx1.freebsd.org (Postfix) with ESMTP id C51E713C4CE; Fri, 14 Sep 2007 22:02:51 +0000 (UTC) (envelope-from SRS0=689b31d93095b6e46b5e8988ac514a49d3ce52e0=458=es.net=oberman@es.net) Received: from ptavv.es.net (ptavv.es.net [198.128.4.29]) by postal4.es.net (Postal Node 4) with ESMTP (SSL) id TFQ29749; Fri, 14 Sep 2007 15:02:49 -0700 Received: from ptavv.es.net (ptavv.es.net [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id 636114500E; Fri, 14 Sep 2007 15:02:48 -0700 (PDT) To: "Yuri Lukin" In-Reply-To: Your message of "Fri, 14 Sep 2007 16:50:00 EDT." <20070914204724.M5826@swaggi.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1189807368_77389P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Fri, 14 Sep 2007 15:02:48 -0700 From: "Kevin Oberman" Message-Id: <20070914220248.636114500E@ptavv.es.net> X-Sender-IP: 198.128.4.29 X-Sender-Domain: es.net X-Recipent: ; ; ; X-Sender: X-To_Name: Yuri Lukin X-To_Domain: swaggi.com X-To: "Yuri Lukin" X-To_Email: lists@swaggi.com X-To_Alias: lists Cc: Hajimu UMEMOTO , freebsd-mobile@freebsd.org Subject: Re: SD/MMC (ricoh) reader on Thinkpad T61 X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Sep 2007 22:02:54 -0000 --==_Exmh_1189807368_77389P Content-Type: text/plain; charset=us-ascii Content-Disposition: inline > From: "Yuri Lukin" > Date: Fri, 14 Sep 2007 16:50:00 -0400 > Sender: owner-freebsd-mobile@freebsd.org > > On Sat, 15 Sep 2007 01:42:32 +0900, Hajimu UMEMOTO wrote > > Hi, > > > > You can just build the driver as a kernel module. > > > > I'm afraid I'm not having any luck building it: > > # make > Warning: Object directory not changed from original /usr/src/sys/modules/sdmmc > @ -> /usr/src/sys > machine -> /usr/src/sys/i386/include > :> opt_sd.h > awk -f @/tools/makeobjops.awk > /usr/src/sys/modules/sdmmc/../../dev/sdmmc/sdbus_if.m -h > awk -f @/tools/makeobjops.awk @/kern/device_if.m -h > awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h > awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h > cc -O2 -fno-strict-aliasing -pipe -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc > -I/usr/src/sys/modules/sdmmc/../../ -I. -I@ -I@/contrib/altq > -finline-limit=8000 --param inline-unit-growth=100 --param > large-function-growth=1000 -fno-common -mno-align-long-strings > -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 > -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes > -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef > -Wno-pointer-sign -fformat-extensions -c > /usr/src/sys/modules/sdmmc/../../dev/sdmmc/sdshc.c > /usr/src/sys/modules/sdmmc/../../dev/sdmmc/sdshc.c: In function 'sdshc_attach': > /usr/src/sys/modules/sdmmc/../../dev/sdmmc/sdshc.c:346: warning: passing > argument 4 of 'bus_setup_intr' from incompatible pointer type > /usr/src/sys/modules/sdmmc/../../dev/sdmmc/sdshc.c:346: warning: passing > argument 5 of 'bus_setup_intr' from incompatible pointer type > /usr/src/sys/modules/sdmmc/../../dev/sdmmc/sdshc.c:346: error: too few > arguments to function 'bus_setup_intr' > /usr/src/sys/modules/sdmmc/../../dev/sdmmc/sdshc.c: In function 'sdshc_intr': > /usr/src/sys/modules/sdmmc/../../dev/sdmmc/sdshc.c:448: warning: implicit > declaration of function 'bus_space_read_2' > /usr/src/sys/modules/sdmmc/../../dev/sdmmc/sdshc.c:448: warning: nested extern > declaration of 'bus_space_read_2' > /usr/src/sys/modules/sdmmc/../../dev/sdmmc/sdshc.c: In function 'sdshc_reset': > /usr/src/sys/modules/sdmmc/../../dev/sdmmc/sdshc.c:612: warning: implicit > declaration of function 'bus_space_write_1' > /usr/src/sys/modules/sdmmc/../../dev/sdmmc/sdshc.c:612: warning: nested extern > declaration of 'bus_space_write_1' > /usr/src/sys/modules/sdmmc/../../dev/sdmmc/sdshc.c:614: warning: implicit > declaration of function 'bus_space_read_1' > /usr/src/sys/modules/sdmmc/../../dev/sdmmc/sdshc.c:614: warning: nested extern > declaration of 'bus_space_read_1' > *** Error code 1 > > Stop in /usr/src/sys/modules/sdmmc. > > > > I also tried building it from the original directory where I untarred the > sources but got the same error. What am I doing wrong? Did you 'make depend'? (Not that I am sure that is the only problem.) --==_Exmh_1189807368_77389P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) Comment: Exmh version 2.5 06/03/2002 iD8DBQFG6wUIkn3rs5h7N1ERAp6DAKCDfRIP7tJrmLqL5h9F+ONqsIh6twCfbOgY 800X9aNwsrG5tz7udMleAy8= =MvNx -----END PGP SIGNATURE----- --==_Exmh_1189807368_77389P--