From owner-freebsd-stable@FreeBSD.ORG Mon Jun 18 11:56:14 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5F8EF16A421 for ; Mon, 18 Jun 2007 11:56:14 +0000 (UTC) (envelope-from buganini@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.246]) by mx1.freebsd.org (Postfix) with ESMTP id 120B513C455 for ; Mon, 18 Jun 2007 11:56:13 +0000 (UTC) (envelope-from buganini@gmail.com) Received: by an-out-0708.google.com with SMTP id c14so375738anc for ; Mon, 18 Jun 2007 04:56:13 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=M8ry1S/NV+cQcBj7UnpSxKk5msWw3zplEGC69vkjxZlMtCJD4CZEZg1Y2vTdU+qujI6b++TdK7MBCbaDTekPcTDjmLs3cP8zHUFI8XDssacwXJlW79sxO/1M2+VuwMfbN17fc2xiNqd47UP0X+oC9EhrO+g8bE+EBWBi5krKRec= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=QGcG9YiTS5d5E82H+vTl9AsHE3IcRvKig0AGVcHo/EJXhNgROQWyeT1XqPsxQbFeuix/G370bvEtvp/9m/T05XED1fQOFpIfk0E+ocwDJrcioOcWQN5XIqk7Zzoues4jYTBWmDACUDntFj92IHNbYOEp6neXJCo5/w5JPY/PcNU= Received: by 10.100.42.7 with SMTP id p7mr1152776anp.1182166093543; Mon, 18 Jun 2007 04:28:13 -0700 (PDT) Received: by 10.100.151.5 with HTTP; Mon, 18 Jun 2007 04:28:13 -0700 (PDT) Message-ID: Date: Mon, 18 Jun 2007 19:28:13 +0800 From: Buganini To: freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: buildkernel error about mmd/sd driver X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jun 2007 11:56:14 -0000 I add these lines in my kernel config file: device mmcsd device mmc then I got: cc -c -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I../../.. -I../../../contrib/altq -I../../../contrib/ipfilter -I../../../contrib/pf -I../../../dev/ath -I../../../contrib/ngatm -I../../../dev/twa -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Werror ../../../dev/mmc/mmc.c awk -f ../../../tools/makeobjops.awk ../../../dev/mmc/mmcbr_if.m -c awk -f ../../../tools/makeobjops.awk ../../../dev/mmc/mmcbr_if.m -c ; cc -c -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I../../.. -I../../../contrib/altq -I../../../contrib/ipfilter -I../../../contrib/pf -I../../../dev/ath -I../../../contrib/ngatm -I../../../dev/twa -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Werror mmcbr_if.c In file included from mmcbr_if.c:20: ./mmcbr_if.h:20: error: syntax error before "brdev" ./mmcbr_if.h:20: warning: function declaration isn't a prototype ./mmcbr_if.h:22: error: syntax error before "brdev" ./mmcbr_if.h:23: warning: function declaration isn't a prototype ./mmcbr_if.h: In function `MMCBR_UPDATE_IOS': ./mmcbr_if.h:25: error: `brdev' undeclared (first use in this function) ./mmcbr_if.h:25: error: (Each undeclared identifier is reported only once ./mmcbr_if.h:25: error: for each function it appears in.) ./mmcbr_if.h:26: error: `reqdev' undeclared (first use in this function) ./mmcbr_if.h: At top level: ./mmcbr_if.h:32: error: syntax error before "brdev" ./mmcbr_if.h:33: warning: function declaration isn't a prototype ./mmcbr_if.h:35: error: syntax error before "brdev" ./mmcbr_if.h:37: warning: function declaration isn't a prototype ./mmcbr_if.h: In function `MMCBR_REQUEST': ./mmcbr_if.h:39: error: `brdev' undeclared (first use in this function) ./mmcbr_if.h:40: error: `reqdev' undeclared (first use in this function) ./mmcbr_if.h:40: error: `req' undeclared (first use in this function) ./mmcbr_if.h: At top level: ./mmcbr_if.h:46: error: syntax error before "brdev" ./mmcbr_if.h:46: warning: function declaration isn't a prototype ./mmcbr_if.h:48: error: syntax error before "brdev" ./mmcbr_if.h:49: warning: function declaration isn't a prototype ./mmcbr_if.h: In function `MMCBR_GET_RO': ./mmcbr_if.h:51: error: `brdev' undeclared (first use in this function) ./mmcbr_if.h:52: error: `reqdev' undeclared (first use in this function) ./mmcbr_if.h: At top level: ./mmcbr_if.h:58: error: syntax error before "brdev" ./mmcbr_if.h:58: warning: function declaration isn't a prototype ./mmcbr_if.h:60: error: syntax error before "brdev" ./mmcbr_if.h:61: warning: function declaration isn't a prototype ./mmcbr_if.h: In function `MMCBR_ACQUIRE_HOST': ./mmcbr_if.h:63: error: `brdev' undeclared (first use in this function) ./mmcbr_if.h:64: error: `reqdev' undeclared (first use in this function) ./mmcbr_if.h: At top level: ./mmcbr_if.h:70: error: syntax error before "brdev" ./mmcbr_if.h:70: warning: function declaration isn't a prototype ./mmcbr_if.h:72: error: syntax error before "brdev" ./mmcbr_if.h:73: warning: function declaration isn't a prototype ./mmcbr_if.h: In function `MMCBR_RELEASE_HOST': ./mmcbr_if.h:75: error: `brdev' undeclared (first use in this function) ./mmcbr_if.h:76: error: `reqdev' undeclared (first use in this function) *** Error code 1 -- Oops