mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Fix "set but not used" for geom
Sponsored by: Rubicon Communications, LLC ("Netgate")
This commit is contained in:
parent
1c64538f58
commit
2d5d242406
|
@ -362,7 +362,7 @@ g_disk_seg_limit(bus_dma_segment_t *seg, off_t *poffset,
|
|||
static off_t
|
||||
g_disk_vlist_limit(struct disk *dp, struct bio *bp, bus_dma_segment_t **pendseg)
|
||||
{
|
||||
bus_dma_segment_t *seg, *end;
|
||||
bus_dma_segment_t *seg, *end __diagused;
|
||||
off_t residual;
|
||||
off_t offset;
|
||||
int pages;
|
||||
|
|
|
@ -726,7 +726,7 @@ u_int
|
|||
g_raid_nsubdisks(struct g_raid_volume *vol, int state)
|
||||
{
|
||||
struct g_raid_subdisk *subdisk;
|
||||
struct g_raid_softc *sc;
|
||||
struct g_raid_softc *sc __diagused;
|
||||
u_int i, n ;
|
||||
|
||||
sc = vol->v_softc;
|
||||
|
@ -751,7 +751,7 @@ struct g_raid_subdisk *
|
|||
g_raid_get_subdisk(struct g_raid_volume *vol, int state)
|
||||
{
|
||||
struct g_raid_subdisk *sd;
|
||||
struct g_raid_softc *sc;
|
||||
struct g_raid_softc *sc __diagused;
|
||||
u_int i;
|
||||
|
||||
sc = vol->v_softc;
|
||||
|
@ -1181,7 +1181,7 @@ g_raid_is_in_locked_range(struct g_raid_volume *vol, const struct bio *bp)
|
|||
static void
|
||||
g_raid_start_request(struct bio *bp)
|
||||
{
|
||||
struct g_raid_softc *sc;
|
||||
struct g_raid_softc *sc __diagused;
|
||||
struct g_raid_volume *vol;
|
||||
|
||||
sc = bp->bio_to->geom->softc;
|
||||
|
@ -1258,7 +1258,7 @@ g_raid_finish_with_locked_ranges(struct g_raid_volume *vol, struct bio *bp)
|
|||
void
|
||||
g_raid_iodone(struct bio *bp, int error)
|
||||
{
|
||||
struct g_raid_softc *sc;
|
||||
struct g_raid_softc *sc __diagused;
|
||||
struct g_raid_volume *vol;
|
||||
|
||||
sc = bp->bio_to->geom->softc;
|
||||
|
|
Loading…
Reference in a new issue