Juli Mallett
b0327095f6
Use SC_NO_CUTPASTE to protect cutpaste variables correctly, fixing the
...
-Werror build with such option, but not other combinations. LINT
misses this because syscons knobs in LINT turn off a lot of code.
Reviewed by: marcel (some time ago)
2003-06-01 04:42:14 +00:00
Poul-Henning Kamp
a3e7d3f16f
wrap macro in do {...} while(0)
2003-05-31 21:11:51 +00:00
Poul-Henning Kamp
35e1694a4d
Remove unused variable(s).
...
Add XXX comment where intent is unclear.
Found by: FlexeLint
2003-05-31 20:43:17 +00:00
Poul-Henning Kamp
bb0b8a23c0
Remove unused variable(s).
...
Found by: FlexeLint
2003-05-31 20:42:24 +00:00
Poul-Henning Kamp
00999c80d8
Eliminate mostly unused local variable.
...
Found by: FlexeLint
2003-05-31 20:41:52 +00:00
Poul-Henning Kamp
d2f30d92a7
Add /* FALLTHROUGH */
...
Remove break after return
Found by: FlexeLint
2003-05-31 20:41:08 +00:00
Poul-Henning Kamp
25371920a0
Fix indentation
...
Found by: FlexeLint
2003-05-31 20:40:12 +00:00
Poul-Henning Kamp
6f75979695
Remove unused variable(s).
...
Add /* FALLTHROUGH */
Found by: FlexeLint
2003-05-31 20:39:28 +00:00
Poul-Henning Kamp
4738f8c1a8
Remove return after goto.
...
Remove break after return;
Found by: FlexeLint
2003-05-31 20:35:32 +00:00
Poul-Henning Kamp
60db3b9e60
Remove unused variable(s).
...
Remove break after return;
Found by: FlexeLint
2003-05-31 20:34:36 +00:00
Poul-Henning Kamp
66f7a83274
Put definition of struct svr4_sockcache_entry in a .h file rather than
...
having two independent definitions in two .c files.
Fiddle surrounding details to match.
Found by: FlexeLint
2003-05-31 20:33:18 +00:00
Poul-Henning Kamp
670966596b
Remove unused variable(s).
...
Found by: FlexeLint
2003-05-31 20:29:34 +00:00
Poul-Henning Kamp
d1043f6d6a
Remove break after return
...
Found by: FlexeLint
2003-05-31 20:28:21 +00:00
Poul-Henning Kamp
85dc30cf82
Remove unused variable(s).
...
Put XXX comment where intent is unclear.
Found by: FlexeLint
2003-05-31 20:27:42 +00:00
Poul-Henning Kamp
7d4220518e
Remove break after return;
...
Found by: FlexeLint
2003-05-31 20:24:30 +00:00
Poul-Henning Kamp
f22cfda31c
Remove break after return
...
Found by: FlexeLint
2003-05-31 19:59:29 +00:00
Poul-Henning Kamp
9c96882e80
Remove unused variables.
...
Found by: FlexeLint
2003-05-31 19:58:45 +00:00
Poul-Henning Kamp
1000b87f2a
Remove now unused pointer to etherheader.
...
Found by: FlexeLint
2003-05-31 19:56:35 +00:00
Poul-Henning Kamp
a0fb4cf18d
Remove unused variables
...
Add /* FALLTHROUGH */
Found by: FlexeLint
2003-05-31 19:49:49 +00:00
Poul-Henning Kamp
19ca58475e
Remove unnecessary breaks.
...
Remove unused variables.
Add XXX comment where a break may be missing. [lxtphy.c]
Found by: FlexeLint
2003-05-31 19:48:33 +00:00
Poul-Henning Kamp
5a87a6f702
Move some FALLTHROUGH comments so they work.
...
Fix indentation error.
Make boardid string long enough.
Remove unused variable.
Found by: FlexeLint
2003-05-31 19:46:58 +00:00
Poul-Henning Kamp
16cef37ea3
Don't define memcpy() to bcopy() and in particular not memset() to
...
bzero() when we have them all already.
Found by: FlexeLint
2003-05-31 19:38:43 +00:00
Poul-Henning Kamp
b2bf0c7f48
Fix indentation.
...
Found by: FlexeLint
2003-05-31 19:38:00 +00:00
Poul-Henning Kamp
5578b9263b
Do not define memset() to bzero(). We have a memset().
...
Found by: FlexeLint
2003-05-31 19:31:46 +00:00
Poul-Henning Kamp
78b52202d0
Fix indentation.
...
Found by: FlexeLint
2003-05-31 19:02:20 +00:00
Poul-Henning Kamp
01bfa91fa2
Fix off-by-one error in range check of VC index.
...
Found by: FlexeLint
2003-05-31 19:01:08 +00:00
Poul-Henning Kamp
89e3693051
Remove extra ';'
...
Found by: FlexeLint
2003-05-31 18:57:41 +00:00
Poul-Henning Kamp
d6b602d4b2
Remove unused variable.
...
Found by: FlexeLint
2003-05-31 18:55:18 +00:00
Poul-Henning Kamp
c7b24d7dcd
Remove unused variable.
...
Found by: FlexeLint
2003-05-31 18:45:32 +00:00
Poul-Henning Kamp
777d1b3990
Fix off-by-one error in drive number check.
...
Don't return(foo(...)) in function returning void.
Found by: FlexeLint
2003-05-31 18:41:09 +00:00
Poul-Henning Kamp
0623afde6f
Remove extra unused variable.
...
Found by: FlexeLint
2003-05-31 18:39:29 +00:00
Poul-Henning Kamp
9d4b1fa40e
Remove extra ';'
...
Found by: FlexeLint
2003-05-31 18:37:30 +00:00
Poul-Henning Kamp
da507a2181
Fix \ alignment in macro.
...
Remove breaks after return.
Remove unused variable.
Found by: FlexeLint
2003-05-31 18:21:40 +00:00
Poul-Henning Kamp
f075585f67
Remove the G_CLASS_INITIALIZER, we do not need it anymore.
2003-05-31 16:59:27 +00:00
Poul-Henning Kamp
26028fee6f
Don't use return(foo(...)); in function returning void.
...
Found by: FlexeLint
2003-05-31 16:51:41 +00:00
Poul-Henning Kamp
17a1391990
The IO_NOWDRAIN and B_NOWDRAIN hacks are no longer needed to prevent
...
deadlocks with vnode backed md(4) devices because md now uses a
kthread to run the bio requests instead of doing it directly from
the bio down path.
2003-05-31 16:42:45 +00:00
Peter Wemm
151cd71608
Add the MD ifdefs for amd64 to point to the IO space bustag/handle.
...
Approved by: re ("safe" amd64 support)
2003-05-31 06:45:28 +00:00
Scott Long
9d5be300d3
Add support for the upcoming 2410SA card.
...
Approved by: re (telecon)
2003-05-30 09:22:19 +00:00
Scott Long
95c9929a3b
aic79xx.c:
...
Use the special LUNLEN_SINGLE_LEVEL constant for
post Rev A4 hardware for single byte luns. Without
this change, Rev B hardware would place the single
byte of lun data in byte 0 of the lun structure when
it should be in byte 1. Since there are few if any
devices on the market that support multiple luns in
target mode, the corrupted lun field (which was only
corrupted for non-zero luns) wasn't hurting us.
Approved by: re (rwatson)
2003-05-30 02:15:15 +00:00
Scott Long
6ee007e145
Fix a reported case of severe data corruption:
...
aic79xx.h:
aic79xx.reg:
Return the SCB_TAG field to 16byte alignment.
It seems that on some PCI systems, SCBs are not
transferred correctly to the controller with
the previous placement of the SCB_TAG field.
Approved by: re (rwatson)
2003-05-30 02:14:22 +00:00
Bernd Walter
6445c6bdf1
Correct the fix in rev 1.70
...
Some lines were misslocated
Submitted by: Jay Cornwall <jay@evilrealms.net>
Approved by: re (rwatson)
2003-05-29 23:47:12 +00:00
John Baldwin
4fb8dd97a7
Fix support for 256 MB aperture sizes on chipsets such as the 845 and
...
865. The APSIZE register has a variable-sized field of enabled bits.
To figure out how many bits a specific host bridge supports, write the
maximum width and see how many bits are set in the hardware. We then
use this mask for setting and getting the aperture size. Prior to this,
the agp(4) driver would treat an aperture size of 256 MB as 128 MB and
would not allocate enough physical memory for the GART as a result.
MFC after: 3 days
Sponsored by: The Weather Channel
Approved by: re (rwatson)
2003-05-27 20:13:44 +00:00
John Baldwin
ebca65b627
Grr, fix compile. The bane of trying to split out patches into two
...
commits.
Reported by: Lukas Ertl <l.ertl@univie.ac.at>
With hat: re
Pointy hat to: jhb
2003-05-27 19:42:18 +00:00
John Baldwin
6705889407
Fix compile: the type is spelled bus_dmasync_op_t rather than
...
bus_dmamap_sync_t.
With hat: re
2003-05-27 18:32:24 +00:00
John Baldwin
e9ff34a5e2
Add support for the Intel 865 chipset.
...
MFC after: 3 days
Sponsored by: The Weather Channel
Approved by: re (murray)
2003-05-27 18:23:56 +00:00
Scott Long
bf423d4637
Remove the redundant declaration of bus_dmasync_op_t.
2003-05-27 16:34:52 +00:00
Scott Long
7e71df9339
Bring back bus_dmasync_op_t. It is now a typedef to an int, though the
...
BUS_DMASYNC_ definitions remain as before. The does not change the ABI,
and reverts the API to be a bit more compatible and flexible. This has
survived a full 'make universe'.
Approved by: re (bmah)
2003-05-27 04:59:59 +00:00
Justin T. Gibbs
177799b596
This driver supports the 2920C not the 2920.
...
Make this clear in our card identification string.
PR: kern/50428
Approved by: RE
2003-05-26 21:45:09 +00:00
Justin T. Gibbs
8ed30d5b45
Consistently use #ifdef for testing AHC_TARGET_MODE.
...
Approved by: RE
2003-05-26 21:44:03 +00:00
Justin T. Gibbs
662152ce16
aic79xx.c:
...
aic79xx_osm.h:
aic7xxx_osm.h:
Explicitly define functions that take no arguments
with "(void)"
Approved by: RE
2003-05-26 21:43:29 +00:00