diff options
author | Eric Moore <emoore@FreeBSD.org> | 2002-12-11 20:59:46 +0000 |
---|---|---|
committer | Eric Moore <emoore@FreeBSD.org> | 2002-12-11 20:59:46 +0000 |
commit | d6b32def6c61c428076df93608fb866e10078dcc (patch) | |
tree | 426e232feefcc8a33a07b7c836ee1b8494879e60 /sys/dev/amr/amr_disk.c | |
parent | a5297d2a512c5cb1c1b689c3792036e843c7a143 (diff) | |
download | src-d6b32def6c61c428076df93608fb866e10078dcc.tar.gz src-d6b32def6c61c428076df93608fb866e10078dcc.zip |
(1) Problem: PANIC when loading/unloading driver
as module. This also fix's issue kern/45713.
Fix - polling was implemented incorrectly for
adapter enquiry and adapter flush.
(2) Problem: PANIC when unloading driver
as module.
Fix - device nodes are not destroyed for amr0,
and amrd* when driver is unloaded
(3) Problem: PANIC from loading driver when
3ware adapter present, error message "Warning
"amrd is usurping twed's bmaj"
Fix - put #idef freebsd version < 500000 for
bmaj -1 -> amrd_cdevsw
(4) Problem: warnings in driver when compiling
with DAMR_DEBUG param enabled in Makefile
Fix - fix the warnings so driver can compile
when -Werror is present in Makefile.
Approved by: jhb
MFC: 7 days
Notes
Notes:
svn path=/head/; revision=107756
Diffstat (limited to 'sys/dev/amr/amr_disk.c')
-rw-r--r-- | sys/dev/amr/amr_disk.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/amr/amr_disk.c b/sys/dev/amr/amr_disk.c index d6d139a0c41d..1aa1fc68536d 100644 --- a/sys/dev/amr/amr_disk.c +++ b/sys/dev/amr/amr_disk.c @@ -105,6 +105,9 @@ static struct cdevsw amrd_cdevsw = { /* dump */ nodump, /* psize */ nopsize, /* flags */ D_DISK, +#if __FreeBSD_version < 500000 + /* bmaj */ -1 +#endif }; static devclass_t amrd_devclass; |