Bug 68155 - Fix sparc64 kernel build when esp is included
Summary: Fix sparc64 kernel build when esp is included
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: sparc64 (show other bugs)
Version: 5.2.1-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-sparc64 (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-20 20:50 UTC by Koop Mast
Modified: 2004-06-21 14:51 UTC (History)
0 users

See Also:


Attachments
esp_sbus.c.diff (539 bytes, patch)
2004-06-20 20:50 UTC, Koop Mast
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Koop Mast 2004-06-20 20:50:26 UTC
	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
Comment 1 Scott Long freebsd_committer freebsd_triage 2004-06-21 14:48:18 UTC
State Changed
From-To: open->closed

Added module.h.  Changes inside the DRIVER_MODULE line are not needed.