From owner-freebsd-sparc64@FreeBSD.ORG Sun Jun 20 19:50:27 2004 Return-Path: Delivered-To: freebsd-sparc64@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 595AB16A4CE for ; Sun, 20 Jun 2004 19:50:27 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E17843D41 for ; Sun, 20 Jun 2004 19:50:27 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i5KJoR7G066065 for ; Sun, 20 Jun 2004 19:50:27 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i5KJoR5T066064; Sun, 20 Jun 2004 19:50:27 GMT (envelope-from gnats) Resent-Date: Sun, 20 Jun 2004 19:50:27 GMT Resent-Message-Id: <200406201950.i5KJoR5T066064@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-sparc64@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Koop Mast Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 46DD816A4CE for ; Sun, 20 Jun 2004 19:50:24 +0000 (GMT) Received: from prisma.rainbow-runner.nl (c7057.upc-c.chello.nl [212.187.7.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id DDFB843D5D for ; Sun, 20 Jun 2004 19:50:23 +0000 (GMT) (envelope-from kwm@rainbow-runner.nl) Received: by prisma.rainbow-runner.nl (Postfix, from userid 1001) id 49A352102; Sun, 20 Jun 2004 21:49:31 +0200 (CEST) Message-Id: <20040620194931.49A352102@prisma.rainbow-runner.nl> Date: Sun, 20 Jun 2004 21:49:31 +0200 (CEST) From: Koop Mast To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: sparc64/68155: Fix sparc64 kernel build when esp is included X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Koop Mast List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jun 2004 19:50:27 -0000 >Number: 68155 >Category: sparc64 >Synopsis: Fix sparc64 kernel build when esp is included >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-sparc64 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jun 20 19:50:26 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Koop Mast >Release: FreeBSD 5.2.1-RELEASE-p8 i386 >Organization: >Environment: System: FreeBSD prisma.rainbow-runner.nl 5.2.1-RELEASE-p8 FreeBSD 5.2.1-RELEASE-p8 #27: Wed Jun 9 11:46:29 CEST 2004 root@prisma.rainbow-runner.nl:/usr/obj/usr/src/sys/UnderTheRainbow i386 >Description: Fix the kernel build on sparc64 by including the missing sys/module.h. I'n not sure about the DRIVER_MODULE part, but my ultra 2 builds and runs happily with this patch. >How-To-Repeat: Build an sparc kernel with the esp driver. /usr/src/sys/dev/esp/esp_sbus.c:137: error: syntax error before "esp_sbus_mod" /usr/src/sys/dev/esp/esp_sbus.c:137: warning: type defaults to `int' in declaration of `esp_sbus_mod' /usr/src/sys/dev/esp/esp_sbus.c:137: warning: initialization makes integer from pointer without a cast /usr/src/sys/dev/esp/esp_sbus.c:137: error: initializer element is not computable at load time /usr/src/sys/dev/esp/esp_sbus.c:137: error: (near initialization for `esp_sbus_mod') /usr/src/sys/dev/esp/esp_sbus.c:137: warning: excess elements in scalar initializer /usr/src/sys/dev/esp/esp_sbus.c:137: warning: (near initialization for `esp_sbus_mod') /usr/src/sys/dev/esp/esp_sbus.c:137: warning: excess elements in scalar initializer /usr/src/sys/dev/esp/esp_sbus.c:137: warning: (near initialization for `esp_sbus_mod') /usr/src/sys/dev/esp/esp_sbus.c:137: warning: data definition has no type or storage class /usr/src/sys/dev/esp/esp_sbus.c:137: warning: type defaults to `int' in declaration of `DECLARE_MODULE' /usr/src/sys/dev/esp/esp_sbus.c:137: warning: parameter names (without types) in function declaration /usr/src/sys/dev/esp/esp_sbus.c:137: warning: data definition has no type or storage class >Fix: --- esp_sbus.c.diff begins here --- --- sys/dev/esp/esp_sbus.c.orig Sat Jun 12 05:23:37 2004 +++ sys/dev/esp/esp_sbus.c Sun Jun 20 12:22:16 2004 @@ -71,6 +71,7 @@ #include #include #include +#include #include #include #include @@ -134,7 +135,7 @@ }; static devclass_t esp_devclass; -DRIVER_MODULE(esp, sbus, esp_sbus_driver, esp_devclass, 0, 0); +DRIVER_MODULE(envctrl, sbus, esp_sbus_driver, esp_devclass, 0, 0); /* * Functions and the switch for the MI code. --- esp_sbus.c.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: