View | Details | Raw Unified | Return to bug 168979
Collapse All | Expand All

(-)/usr/src/sys/ufs/ffs/ffs_softdep.c (-1 / +1 lines)
Lines 12849-12855 Link Here
12849
	struct thread *td;
12849
	struct thread *td;
12850
{
12850
{
12851
	struct inodedep_hashhead *inodedephd;
12851
	struct inodedep_hashhead *inodedephd;
12852
	struct inodedep *inodedep;
12852
	struct inodedep *inodedep = NULL;
12853
	static int next = 0;
12853
	static int next = 0;
12854
	struct mount *mp;
12854
	struct mount *mp;
12855
	struct vnode *vp;
12855
	struct vnode *vp;
(-)/usr/src/sys/ufs/ufs/ufs_bmap.c (-1 / +1 lines)
Lines 69-75 Link Here
69
		int *a_runb;
69
		int *a_runb;
70
	} */ *ap;
70
	} */ *ap;
71
{
71
{
72
	ufs2_daddr_t blkno;
72
	ufs2_daddr_t blkno = 0;
73
	int error;
73
	int error;
74
74
75
	/*
75
	/*
(-)/usr/src/sys/ufs/ufs/ufs_quota.c (-6 / +6 lines)
Lines 912-918 Link Here
912
getquota32(struct thread *td, struct mount *mp, u_long id, int type, void *addr)
912
getquota32(struct thread *td, struct mount *mp, u_long id, int type, void *addr)
913
{
913
{
914
	struct dqblk32 dqb32;
914
	struct dqblk32 dqb32;
915
	struct dqblk64 dqb64;
915
	struct dqblk64 dqb64 = {};
916
	int error;
916
	int error;
917
917
918
	error = _getquota(td, mp, id, type, &dqb64);
918
	error = _getquota(td, mp, id, type, &dqb64);
Lines 927-933 Link Here
927
setquota32(struct thread *td, struct mount *mp, u_long id, int type, void *addr)
927
setquota32(struct thread *td, struct mount *mp, u_long id, int type, void *addr)
928
{
928
{
929
	struct dqblk32 dqb32;
929
	struct dqblk32 dqb32;
930
	struct dqblk64 dqb64;
930
	struct dqblk64 dqb64 = {};
931
	int error;
931
	int error;
932
932
933
	error = copyin(addr, &dqb32, sizeof(dqb32));
933
	error = copyin(addr, &dqb32, sizeof(dqb32));
Lines 942-948 Link Here
942
setuse32(struct thread *td, struct mount *mp, u_long id, int type, void *addr)
942
setuse32(struct thread *td, struct mount *mp, u_long id, int type, void *addr)
943
{
943
{
944
	struct dqblk32 dqb32;
944
	struct dqblk32 dqb32;
945
	struct dqblk64 dqb64;
945
	struct dqblk64 dqb64 = {};
946
	int error;
946
	int error;
947
947
948
	error = copyin(addr, &dqb32, sizeof(dqb32));
948
	error = copyin(addr, &dqb32, sizeof(dqb32));
Lines 956-962 Link Here
956
int
956
int
957
getquota(struct thread *td, struct mount *mp, u_long id, int type, void *addr)
957
getquota(struct thread *td, struct mount *mp, u_long id, int type, void *addr)
958
{
958
{
959
	struct dqblk64 dqb64;
959
	struct dqblk64 dqb64 = {};
960
	int error;
960
	int error;
961
961
962
	error = _getquota(td, mp, id, type, &dqb64);
962
	error = _getquota(td, mp, id, type, &dqb64);
Lines 969-975 Link Here
969
int
969
int
970
setquota(struct thread *td, struct mount *mp, u_long id, int type, void *addr)
970
setquota(struct thread *td, struct mount *mp, u_long id, int type, void *addr)
971
{
971
{
972
	struct dqblk64 dqb64;
972
	struct dqblk64 dqb64 = {};
973
	int error;
973
	int error;
974
974
975
	error = copyin(addr, &dqb64, sizeof(dqb64));
975
	error = copyin(addr, &dqb64, sizeof(dqb64));
Lines 982-988 Link Here
982
int
982
int
983
setuse(struct thread *td, struct mount *mp, u_long id, int type, void *addr)
983
setuse(struct thread *td, struct mount *mp, u_long id, int type, void *addr)
984
{
984
{
985
	struct dqblk64 dqb64;
985
	struct dqblk64 dqb64 = {};
986
	int error;
986
	int error;
987
987
988
	error = copyin(addr, &dqb64, sizeof(dqb64));
988
	error = copyin(addr, &dqb64, sizeof(dqb64));
(-)/usr/src/sys/kern/kern_resource.c (-1 / +1 lines)
Lines 410-416 Link Here
410
		if (uap->pid == 0) {
410
		if (uap->pid == 0) {
411
			pri_to_rtp(td, &rtp);
411
			pri_to_rtp(td, &rtp);
412
		} else {
412
		} else {
413
			struct rtprio rtp2;
413
			struct rtprio rtp2 = {};
414
414
415
			rtp.type = RTP_PRIO_IDLE;
415
			rtp.type = RTP_PRIO_IDLE;
416
			rtp.prio = RTP_PRIO_MAX;
416
			rtp.prio = RTP_PRIO_MAX;
(-)/usr/src/sys/kern/kern_sysctl.c (-1 / +1 lines)
Lines 1271-1277 Link Here
1271
    void *new, size_t newlen, size_t *retval, int flags)
1271
    void *new, size_t newlen, size_t *retval, int flags)
1272
{
1272
{
1273
        int oid[CTL_MAXNAME];
1273
        int oid[CTL_MAXNAME];
1274
        size_t oidlen, plen;
1274
        size_t oidlen, plen = 0;
1275
	int error;
1275
	int error;
1276
1276
1277
	oid[0] = 0;		/* sysctl internal magic */
1277
	oid[0] = 0;		/* sysctl internal magic */
(-)/usr/src/sys/kern/kern_cpuset.c (-1 / +1 lines)
Lines 851-857 Link Here
851
sys_cpuset(struct thread *td, struct cpuset_args *uap)
851
sys_cpuset(struct thread *td, struct cpuset_args *uap)
852
{
852
{
853
	struct cpuset *root;
853
	struct cpuset *root;
854
	struct cpuset *set;
854
	struct cpuset *set = NULL;
855
	int error;
855
	int error;
856
856
857
	thread_lock(td);
857
	thread_lock(td);
(-)/usr/src/sys/kern/subr_rman.c (-1 / +1 lines)
Lines 708-714 Link Here
708
rman_await_resource(struct resource *re, int pri, int timo)
708
rman_await_resource(struct resource *re, int pri, int timo)
709
{
709
{
710
	int	rv;
710
	int	rv;
711
	struct	resource_i *r, *whohas;
711
	struct	resource_i *r, *whohas = NULL;
712
	struct	rman *rm;
712
	struct	rman *rm;
713
713
714
	r = re->__r_i;
714
	r = re->__r_i;
(-)/usr/src/sys/kern/kern_conf.c (-4 / +4 lines)
Lines 808-814 Link Here
808
make_dev(struct cdevsw *devsw, int unit, uid_t uid, gid_t gid, int mode,
808
make_dev(struct cdevsw *devsw, int unit, uid_t uid, gid_t gid, int mode,
809
    const char *fmt, ...)
809
    const char *fmt, ...)
810
{
810
{
811
	struct cdev *dev;
811
	struct cdev *dev = NULL;
812
	va_list ap;
812
	va_list ap;
813
	int res;
813
	int res;
814
814
Lines 825-831 Link Here
825
make_dev_cred(struct cdevsw *devsw, int unit, struct ucred *cr, uid_t uid,
825
make_dev_cred(struct cdevsw *devsw, int unit, struct ucred *cr, uid_t uid,
826
    gid_t gid, int mode, const char *fmt, ...)
826
    gid_t gid, int mode, const char *fmt, ...)
827
{
827
{
828
	struct cdev *dev;
828
	struct cdev *dev = NULL;
829
	va_list ap;
829
	va_list ap;
830
	int res;
830
	int res;
831
831
Lines 842-848 Link Here
842
make_dev_credf(int flags, struct cdevsw *devsw, int unit, struct ucred *cr,
842
make_dev_credf(int flags, struct cdevsw *devsw, int unit, struct ucred *cr,
843
    uid_t uid, gid_t gid, int mode, const char *fmt, ...)
843
    uid_t uid, gid_t gid, int mode, const char *fmt, ...)
844
{
844
{
845
	struct cdev *dev;
845
	struct cdev *dev = NULL;
846
	va_list ap;
846
	va_list ap;
847
	int res;
847
	int res;
848
848
Lines 938-944 Link Here
938
struct cdev *
938
struct cdev *
939
make_dev_alias(struct cdev *pdev, const char *fmt, ...)
939
make_dev_alias(struct cdev *pdev, const char *fmt, ...)
940
{
940
{
941
	struct cdev *dev;
941
	struct cdev *dev = NULL;
942
	va_list ap;
942
	va_list ap;
943
	int res;
943
	int res;
944
944
(-)/usr/src/sys/kern/kern_fork.c (-4 / +4 lines)
Lines 105-111 Link Here
105
sys_fork(struct thread *td, struct fork_args *uap)
105
sys_fork(struct thread *td, struct fork_args *uap)
106
{
106
{
107
	int error;
107
	int error;
108
	struct proc *p2;
108
	struct proc *p2 = NULL;
109
109
110
	error = fork1(td, RFFDG | RFPROC, 0, &p2, NULL, 0);
110
	error = fork1(td, RFFDG | RFPROC, 0, &p2, NULL, 0);
111
	if (error == 0) {
111
	if (error == 0) {
Lines 123-129 Link Here
123
{
123
{
124
#ifdef PROCDESC
124
#ifdef PROCDESC
125
	int error, fd;
125
	int error, fd;
126
	struct proc *p2;
126
	struct proc *p2 = NULL;
127
127
128
	/*
128
	/*
129
	 * It is necessary to return fd by reference because 0 is a valid file
129
	 * It is necessary to return fd by reference because 0 is a valid file
Lines 148-154 Link Here
148
sys_vfork(struct thread *td, struct vfork_args *uap)
148
sys_vfork(struct thread *td, struct vfork_args *uap)
149
{
149
{
150
	int error, flags;
150
	int error, flags;
151
	struct proc *p2;
151
	struct proc *p2 = NULL;
152
152
153
#ifdef XEN
153
#ifdef XEN
154
	flags = RFFDG | RFPROC; /* validate that this is still an issue */
154
	flags = RFFDG | RFPROC; /* validate that this is still an issue */
Lines 166-172 Link Here
166
int
166
int
167
sys_rfork(struct thread *td, struct rfork_args *uap)
167
sys_rfork(struct thread *td, struct rfork_args *uap)
168
{
168
{
169
	struct proc *p2;
169
	struct proc *p2 = NULL;
170
	int error;
170
	int error;
171
171
172
	/* Don't allow kernel-only flags. */
172
	/* Don't allow kernel-only flags. */
(-)/usr/src/sys/kern/kern_linker.c (-3 / +3 lines)
Lines 1007-1013 Link Here
1007
	struct pmckern_map_in pkm;
1007
	struct pmckern_map_in pkm;
1008
#endif
1008
#endif
1009
	const char *kldname, *modname;
1009
	const char *kldname, *modname;
1010
	linker_file_t lf;
1010
	linker_file_t lf = {};
1011
	int error;
1011
	int error;
1012
1012
1013
	if ((error = securelevel_gt(td->td_ucred, 0)) != 0)
1013
	if ((error = securelevel_gt(td->td_ucred, 0)) != 0)
Lines 1063-1069 Link Here
1063
sys_kldload(struct thread *td, struct kldload_args *uap)
1063
sys_kldload(struct thread *td, struct kldload_args *uap)
1064
{
1064
{
1065
	char *pathname = NULL;
1065
	char *pathname = NULL;
1066
	int error, fileid;
1066
	int error, fileid = 0;
1067
1067
1068
	td->td_retval[0] = -1;
1068
	td->td_retval[0] = -1;
1069
1069
Lines 1998-2004 Link Here
1998
    struct linker_file *parent, struct mod_depend *verinfo,
1998
    struct linker_file *parent, struct mod_depend *verinfo,
1999
    struct linker_file **lfpp)
1999
    struct linker_file **lfpp)
2000
{
2000
{
2001
	linker_file_t lfdep;
2001
	linker_file_t lfdep = {};
2002
	const char *filename;
2002
	const char *filename;
2003
	char *pathname;
2003
	char *pathname;
2004
	int error;
2004
	int error;
(-)/usr/src/sys/kern/kern_proc.c (-15 / +15 lines)
Lines 1243-1249 Link Here
1243
{
1243
{
1244
	int *name = (int *)arg1;
1244
	int *name = (int *)arg1;
1245
	u_int namelen = arg2;
1245
	u_int namelen = arg2;
1246
	struct proc *p;
1246
	struct proc *p = NULL;
1247
	int flags, doingzomb, oid_number;
1247
	int flags, doingzomb, oid_number;
1248
	int error = 0;
1248
	int error = 0;
1249
1249
Lines 1668-1676 Link Here
1668
get_ps_strings(struct thread *td, struct proc *p, struct sbuf *sb,
1668
get_ps_strings(struct thread *td, struct proc *p, struct sbuf *sb,
1669
    enum proc_vector_type type)
1669
    enum proc_vector_type type)
1670
{
1670
{
1671
	size_t done, len, nchr, vsize;
1671
	size_t done, len, nchr, vsize = 0;
1672
	int error, i;
1672
	int error, i;
1673
	char **proc_vector, *sptr;
1673
	char **proc_vector = NULL, *sptr;
1674
	char pss_string[GET_PS_STRINGS_CHUNK_SZ];
1674
	char pss_string[GET_PS_STRINGS_CHUNK_SZ];
1675
1675
1676
	PROC_ASSERT_HELD(p);
1676
	PROC_ASSERT_HELD(p);
Lines 1738-1744 Link Here
1738
	int *name = (int *)arg1;
1738
	int *name = (int *)arg1;
1739
	u_int namelen = arg2;
1739
	u_int namelen = arg2;
1740
	struct pargs *newpa, *pa;
1740
	struct pargs *newpa, *pa;
1741
	struct proc *p;
1741
	struct proc *p = NULL;
1742
	struct sbuf sb;
1742
	struct sbuf sb;
1743
	int flags, error = 0, error2;
1743
	int flags, error = 0, error2;
1744
1744
Lines 1798-1804 Link Here
1798
{
1798
{
1799
	int *name = (int *)arg1;
1799
	int *name = (int *)arg1;
1800
	u_int namelen = arg2;
1800
	u_int namelen = arg2;
1801
	struct proc *p;
1801
	struct proc *p = NULL;
1802
	struct sbuf sb;
1802
	struct sbuf sb;
1803
	int error, error2;
1803
	int error, error2;
1804
1804
Lines 1830-1836 Link Here
1830
{
1830
{
1831
	int *name = (int *)arg1;
1831
	int *name = (int *)arg1;
1832
	u_int namelen = arg2;
1832
	u_int namelen = arg2;
1833
	struct proc *p;
1833
	struct proc *p = NULL;
1834
	size_t vsize, size;
1834
	size_t vsize, size;
1835
	char **auxv;
1835
	char **auxv;
1836
	int error;
1836
	int error;
Lines 1871-1877 Link Here
1871
{
1871
{
1872
	pid_t *pidp = (pid_t *)arg1;
1872
	pid_t *pidp = (pid_t *)arg1;
1873
	unsigned int arglen = arg2;
1873
	unsigned int arglen = arg2;
1874
	struct proc *p;
1874
	struct proc *p = NULL;
1875
	struct vnode *vp;
1875
	struct vnode *vp;
1876
	char *retbuf, *freebuf;
1876
	char *retbuf, *freebuf;
1877
	int error, vfslocked;
1877
	int error, vfslocked;
Lines 1909-1915 Link Here
1909
static int
1909
static int
1910
sysctl_kern_proc_sv_name(SYSCTL_HANDLER_ARGS)
1910
sysctl_kern_proc_sv_name(SYSCTL_HANDLER_ARGS)
1911
{
1911
{
1912
	struct proc *p;
1912
	struct proc *p = NULL;
1913
	char *sv_name;
1913
	char *sv_name;
1914
	int *name;
1914
	int *name;
1915
	int namelen;
1915
	int namelen;
Lines 1944-1950 Link Here
1944
	struct ucred *cred;
1944
	struct ucred *cred;
1945
	int error, *name;
1945
	int error, *name;
1946
	struct vnode *vp;
1946
	struct vnode *vp;
1947
	struct proc *p;
1947
	struct proc *p = NULL;
1948
	vm_map_t map;
1948
	vm_map_t map;
1949
	struct vmspace *vm;
1949
	struct vmspace *vm;
1950
1950
Lines 2113-2119 Link Here
2113
	struct ucred *cred;
2113
	struct ucred *cred;
2114
	int error, *name;
2114
	int error, *name;
2115
	struct vnode *vp;
2115
	struct vnode *vp;
2116
	struct proc *p;
2116
	struct proc *p = NULL;
2117
	struct vmspace *vm;
2117
	struct vmspace *vm;
2118
	vm_map_t map;
2118
	vm_map_t map;
2119
2119
Lines 2291-2297 Link Here
2291
	struct thread *td;
2291
	struct thread *td;
2292
	struct stack *st;
2292
	struct stack *st;
2293
	struct sbuf sb;
2293
	struct sbuf sb;
2294
	struct proc *p;
2294
	struct proc *p = NULL;
2295
2295
2296
	name = (int *)arg1;
2296
	name = (int *)arg1;
2297
	error = pget((pid_t)name[0], PGET_NOTINEXEC | PGET_WANTREAD, &p);
2297
	error = pget((pid_t)name[0], PGET_NOTINEXEC | PGET_WANTREAD, &p);
Lines 2416-2422 Link Here
2416
	int *name = (int *)arg1;
2416
	int *name = (int *)arg1;
2417
	u_int namelen = arg2;
2417
	u_int namelen = arg2;
2418
	struct rlimit rlim;
2418
	struct rlimit rlim;
2419
	struct proc *p;
2419
	struct proc *p = NULL;
2420
	u_int which;
2420
	u_int which;
2421
	int flags, error;
2421
	int flags, error;
2422
2422
Lines 2474-2480 Link Here
2474
{
2474
{
2475
	int *name = (int *)arg1;
2475
	int *name = (int *)arg1;
2476
	u_int namelen = arg2;
2476
	u_int namelen = arg2;
2477
	struct proc *p;
2477
	struct proc *p = NULL;
2478
	vm_offset_t ps_strings;
2478
	vm_offset_t ps_strings;
2479
	int error;
2479
	int error;
2480
#ifdef COMPAT_FREEBSD32
2480
#ifdef COMPAT_FREEBSD32
Lines 2514-2520 Link Here
2514
{
2514
{
2515
	int *name = (int *)arg1;
2515
	int *name = (int *)arg1;
2516
	u_int namelen = arg2;
2516
	u_int namelen = arg2;
2517
	struct proc *p;
2517
	struct proc *p = NULL;
2518
	int error;
2518
	int error;
2519
	u_short fd_cmask;
2519
	u_short fd_cmask;
2520
2520
Lines 2542-2548 Link Here
2542
{
2542
{
2543
	int *name = (int *)arg1;
2543
	int *name = (int *)arg1;
2544
	u_int namelen = arg2;
2544
	u_int namelen = arg2;
2545
	struct proc *p;
2545
	struct proc *p = NULL;
2546
	int flags, error, osrel;
2546
	int flags, error, osrel;
2547
2547
2548
	if (namelen != 1)
2548
	if (namelen != 1)
(-)/usr/src/sys/kern/link_elf.c (-3 / +3 lines)
Lines 494-500 Link Here
494
static int
494
static int
495
parse_dpcpu(elf_file_t ef)
495
parse_dpcpu(elf_file_t ef)
496
{ 
496
{ 
497
	int count;
497
	int count = 0;
498
	int error;
498
	int error;
499
499
500
	ef->pcpu_start = 0;
500
	ef->pcpu_start = 0;
Lines 523-529 Link Here
523
static int
523
static int
524
parse_vnet(elf_file_t ef)
524
parse_vnet(elf_file_t ef)
525
{ 
525
{ 
526
	int count;
526
	int count = 0;
527
	int error;
527
	int error;
528
528
529
	ef->vnet_start = 0;
529
	ef->vnet_start = 0;
Lines 1296-1302 Link Here
1296
    void ***startp, void ***stopp, int *countp)
1296
    void ***startp, void ***stopp, int *countp)
1297
{
1297
{
1298
	c_linker_sym_t sym;
1298
	c_linker_sym_t sym;
1299
	linker_symval_t symval;
1299
	linker_symval_t symval = {};
1300
	char *setsym;
1300
	char *setsym;
1301
	void **start, **stop;
1301
	void **start, **stop;
1302
	int len, error = 0, count;
1302
	int len, error = 0, count;
(-)/usr/src/sys/kern/sys_process.c (-2 / +2 lines)
Lines 334-340 Link Here
334
	struct vmspace *vm;
334
	struct vmspace *vm;
335
	struct vnode *vp;
335
	struct vnode *vp;
336
	char *freepath, *fullpath;
336
	char *freepath, *fullpath;
337
	u_int pathlen;
337
	u_int pathlen = 0;
338
	int error, index, vfslocked;
338
	int error, index, vfslocked;
339
339
340
	error = 0;
340
	error = 0;
Lines 442-448 Link Here
442
ptrace_vm_entry32(struct thread *td, struct proc *p,
442
ptrace_vm_entry32(struct thread *td, struct proc *p,
443
    struct ptrace_vm_entry32 *pve32)
443
    struct ptrace_vm_entry32 *pve32)
444
{
444
{
445
	struct ptrace_vm_entry pve;
445
	struct ptrace_vm_entry pve = {};
446
	int error;
446
	int error;
447
447
448
	pve.pve_entry = pve32->pve_entry;
448
	pve.pve_entry = pve32->pve_entry;
(-)/usr/src/sys/kern/uipc_syscalls.c (-1 / +1 lines)
Lines 1827-1833 Link Here
1827
kern_sendfile(struct thread *td, struct sendfile_args *uap,
1827
kern_sendfile(struct thread *td, struct sendfile_args *uap,
1828
    struct uio *hdr_uio, struct uio *trl_uio, int compat)
1828
    struct uio *hdr_uio, struct uio *trl_uio, int compat)
1829
{
1829
{
1830
	struct file *sock_fp;
1830
	struct file *sock_fp = NULL;
1831
	struct vnode *vp;
1831
	struct vnode *vp;
1832
	struct vm_object *obj = NULL;
1832
	struct vm_object *obj = NULL;
1833
	struct socket *so = NULL;
1833
	struct socket *so = NULL;
(-)/usr/src/sys/kern/vfs_cache.c (-2 / +2 lines)
Lines 1065-1071 Link Here
1065
int
1065
int
1066
kern___getcwd(struct thread *td, u_char *buf, enum uio_seg bufseg, u_int buflen)
1066
kern___getcwd(struct thread *td, u_char *buf, enum uio_seg bufseg, u_int buflen)
1067
{
1067
{
1068
	char *bp, *tmpbuf;
1068
	char *bp = NULL, *tmpbuf;
1069
	struct filedesc *fdp;
1069
	struct filedesc *fdp;
1070
	struct vnode *cdir, *rdir;
1070
	struct vnode *cdir, *rdir;
1071
	int error, vfslocked;
1071
	int error, vfslocked;
Lines 1449-1455 Link Here
1449
{
1449
{
1450
	struct nameidata nd;
1450
	struct nameidata nd;
1451
	struct vnode *vp1;
1451
	struct vnode *vp1;
1452
	char *rpath, *fbuf;
1452
	char *rpath = NULL, *fbuf = NULL;
1453
	int error, vfslocked;
1453
	int error, vfslocked;
1454
1454
1455
	VFS_ASSERT_GIANT(vp->v_mount);
1455
	VFS_ASSERT_GIANT(vp->v_mount);
(-)/usr/src/sys/kern/vfs_default.c (-2 / +2 lines)
Lines 315-321 Link Here
315
static int
315
static int
316
dirent_exists(struct vnode *vp, const char *dirname, struct thread *td)
316
dirent_exists(struct vnode *vp, const char *dirname, struct thread *td)
317
{
317
{
318
	char *dirbuf, *cpos;
318
	char *dirbuf, *cpos = NULL;
319
	int error, eofflag, dirbuflen, len, found;
319
	int error, eofflag, dirbuflen, len, found;
320
	off_t off;
320
	off_t off;
321
	struct dirent *dp;
321
	struct dirent *dp;
Lines 746-752 Link Here
746
	struct ucred *cred = ap->a_cred;
746
	struct ucred *cred = ap->a_cred;
747
	char *buf = ap->a_buf;
747
	char *buf = ap->a_buf;
748
	int *buflen = ap->a_buflen;
748
	int *buflen = ap->a_buflen;
749
	char *dirbuf, *cpos;
749
	char *dirbuf, *cpos = NULL;
750
	int i, error, eofflag, dirbuflen, flags, locked, len, covered;
750
	int i, error, eofflag, dirbuflen, flags, locked, len, covered;
751
	off_t off;
751
	off_t off;
752
	ino_t fileno;
752
	ino_t fileno;
(-)/usr/src/sys/kern/vfs_mount.c (-1 / +1 lines)
Lines 531-537 Link Here
531
int
531
int
532
vfs_donmount(struct thread *td, uint64_t fsflags, struct uio *fsoptions)
532
vfs_donmount(struct thread *td, uint64_t fsflags, struct uio *fsoptions)
533
{
533
{
534
	struct vfsoptlist *optlist;
534
	struct vfsoptlist *optlist = NULL;
535
	struct vfsopt *opt, *tmp_opt;
535
	struct vfsopt *opt, *tmp_opt;
536
	char *fstype, *fspath, *errmsg;
536
	char *fstype, *fspath, *errmsg;
537
	int error, fstypelen, fspathlen, errmsg_len, errmsg_pos;
537
	int error, fstypelen, fspathlen, errmsg_len, errmsg_pos;
(-)/usr/src/sys/kern/kern_fail.c (-1 / +1 lines)
Lines 469-475 Link Here
469
469
470
	/* ( (<float> "%") | (<integer> "*" ) )* */
470
	/* ( (<float> "%") | (<integer> "*" ) )* */
471
	while (isdigit(*p) || *p == '.') {
471
	while (isdigit(*p) || *p == '.') {
472
		int units, decimal;
472
		int units, decimal = 0;
473
473
474
		p = parse_number(&units, &decimal, p);
474
		p = parse_number(&units, &decimal, p);
475
		if (p == NULL)
475
		if (p == NULL)
(-)/usr/src/sys/dev/usb/usb_busdma.c (-6 / +6 lines)
Lines 136-142 Link Here
136
usbd_copy_in(struct usb_page_cache *cache, usb_frlength_t offset,
136
usbd_copy_in(struct usb_page_cache *cache, usb_frlength_t offset,
137
    const void *ptr, usb_frlength_t len)
137
    const void *ptr, usb_frlength_t len)
138
{
138
{
139
	struct usb_page_search buf_res;
139
	struct usb_page_search buf_res = {};
140
140
141
	while (len != 0) {
141
	while (len != 0) {
142
142
Lines 165-171 Link Here
165
usbd_copy_in_user(struct usb_page_cache *cache, usb_frlength_t offset,
165
usbd_copy_in_user(struct usb_page_cache *cache, usb_frlength_t offset,
166
    const void *ptr, usb_frlength_t len)
166
    const void *ptr, usb_frlength_t len)
167
{
167
{
168
	struct usb_page_search buf_res;
168
	struct usb_page_search buf_res = {};
169
	int error;
169
	int error;
170
170
171
	while (len != 0) {
171
	while (len != 0) {
Lines 225-231 Link Here
225
usb_uiomove(struct usb_page_cache *pc, struct uio *uio,
225
usb_uiomove(struct usb_page_cache *pc, struct uio *uio,
226
    usb_frlength_t pc_offset, usb_frlength_t len)
226
    usb_frlength_t pc_offset, usb_frlength_t len)
227
{
227
{
228
	struct usb_page_search res;
228
	struct usb_page_search res = {};
229
	int error = 0;
229
	int error = 0;
230
230
231
	while (len != 0) {
231
	while (len != 0) {
Lines 258-264 Link Here
258
usbd_copy_out(struct usb_page_cache *cache, usb_frlength_t offset,
258
usbd_copy_out(struct usb_page_cache *cache, usb_frlength_t offset,
259
    void *ptr, usb_frlength_t len)
259
    void *ptr, usb_frlength_t len)
260
{
260
{
261
	struct usb_page_search res;
261
	struct usb_page_search res = {};
262
262
263
	while (len != 0) {
263
	while (len != 0) {
264
264
Lines 287-293 Link Here
287
usbd_copy_out_user(struct usb_page_cache *cache, usb_frlength_t offset,
287
usbd_copy_out_user(struct usb_page_cache *cache, usb_frlength_t offset,
288
    void *ptr, usb_frlength_t len)
288
    void *ptr, usb_frlength_t len)
289
{
289
{
290
	struct usb_page_search res;
290
	struct usb_page_search res = {};
291
	int error;
291
	int error;
292
292
293
	while (len != 0) {
293
	while (len != 0) {
Lines 316-322 Link Here
316
usbd_frame_zero(struct usb_page_cache *cache, usb_frlength_t offset,
316
usbd_frame_zero(struct usb_page_cache *cache, usb_frlength_t offset,
317
    usb_frlength_t len)
317
    usb_frlength_t len)
318
{
318
{
319
	struct usb_page_search res;
319
	struct usb_page_search res = {};
320
320
321
	while (len != 0) {
321
	while (len != 0) {
322
322
(-)/usr/src/sys/netinet6/in6_mcast.c (-2 / +2 lines)
Lines 897-903 Link Here
897
static int
897
static int
898
in6m_merge(struct in6_multi *inm, /*const*/ struct in6_mfilter *imf)
898
in6m_merge(struct in6_multi *inm, /*const*/ struct in6_mfilter *imf)
899
{
899
{
900
	struct ip6_msource	*ims, *nims;
900
	struct ip6_msource	*ims, *nims = NULL;
901
	struct in6_msource	*lims;
901
	struct in6_msource	*lims;
902
	int			 schanged, error;
902
	int			 schanged, error;
903
	int			 nsrc0, nsrc1;
903
	int			 nsrc0, nsrc1;
Lines 1804-1810 Link Here
1804
	struct ifnet			*ifp;
1804
	struct ifnet			*ifp;
1805
	struct in6_mfilter		*imf;
1805
	struct in6_mfilter		*imf;
1806
	struct ip6_moptions		*imo;
1806
	struct ip6_moptions		*imo;
1807
	struct in6_multi		*inm;
1807
	struct in6_multi		*inm = NULL;
1808
	struct in6_msource		*lims;
1808
	struct in6_msource		*lims;
1809
	size_t				 idx;
1809
	size_t				 idx;
1810
	int				 error, is_new;
1810
	int				 error, is_new;
(-)/usr/src/sys/net/if_vlan.c (-1 / +1 lines)
Lines 846-852 Link Here
846
	int wildcard;
846
	int wildcard;
847
	int unit;
847
	int unit;
848
	int error;
848
	int error;
849
	int tag;
849
	int tag = 0;
850
	int ethertag;
850
	int ethertag;
851
	struct ifvlan *ifv;
851
	struct ifvlan *ifv;
852
	struct ifnet *ifp;
852
	struct ifnet *ifp;
(-)/usr/src/sys/net/bpf.c (-1 / +1 lines)
Lines 2126-2132 Link Here
2126
	do_timestamp = tstype != BPF_T_NONE;
2126
	do_timestamp = tstype != BPF_T_NONE;
2127
#ifndef BURN_BRIDGES
2127
#ifndef BURN_BRIDGES
2128
	if (tstype == BPF_T_NONE || BPF_T_FORMAT(tstype) == BPF_T_MICROTIME) {
2128
	if (tstype == BPF_T_NONE || BPF_T_FORMAT(tstype) == BPF_T_MICROTIME) {
2129
		struct bpf_ts ts;
2129
		struct bpf_ts ts = {};
2130
		if (do_timestamp)
2130
		if (do_timestamp)
2131
			bpf_bintime2ts(bt, &ts, tstype);
2131
			bpf_bintime2ts(bt, &ts, tstype);
2132
#ifdef COMPAT_FREEBSD32
2132
#ifdef COMPAT_FREEBSD32
(-)/usr/src/sys/geom/geom_event.c (-1 / +1 lines)
Lines 409-415 Link Here
409
g_waitfor_event(g_event_t *func, void *arg, int flag, ...)
409
g_waitfor_event(g_event_t *func, void *arg, int flag, ...)
410
{
410
{
411
	va_list ap;
411
	va_list ap;
412
	struct g_event *ep;
412
	struct g_event *ep = NULL;
413
	int error;
413
	int error;
414
414
415
	g_topology_assert_not();
415
	g_topology_assert_not();
(-)/usr/src/sys/arm/arm/busdma_machdep.c (-1 / +1 lines)
Lines 1091-1097 Link Here
1091
bus_dmamap_sync_buf(void *buf, int len, bus_dmasync_op_t op)
1091
bus_dmamap_sync_buf(void *buf, int len, bus_dmasync_op_t op)
1092
{
1092
{
1093
	char _tmp_cl[arm_dcache_align], _tmp_clend[arm_dcache_align];
1093
	char _tmp_cl[arm_dcache_align], _tmp_clend[arm_dcache_align];
1094
	register_t s;
1094
	register_t s = 0;
1095
	int partial; 
1095
	int partial; 
1096
1096
1097
	if ((op & BUS_DMASYNC_PREWRITE) && !(op & BUS_DMASYNC_PREREAD)) {
1097
	if ((op & BUS_DMASYNC_PREWRITE) && !(op & BUS_DMASYNC_PREREAD)) {
(-)/usr/src/sys/netinet/in_mcast.c (-3 / +3 lines)
Lines 904-910 Link Here
904
static int
904
static int
905
inm_merge(struct in_multi *inm, /*const*/ struct in_mfilter *imf)
905
inm_merge(struct in_multi *inm, /*const*/ struct in_mfilter *imf)
906
{
906
{
907
	struct ip_msource	*ims, *nims;
907
	struct ip_msource	*ims, *nims = NULL;
908
	struct in_msource	*lims;
908
	struct in_msource	*lims;
909
	int			 schanged, error;
909
	int			 schanged, error;
910
	int			 nsrc0, nsrc1;
910
	int			 nsrc0, nsrc1;
Lines 1250-1256 Link Here
1250
struct in_multi *
1250
struct in_multi *
1251
in_addmulti(struct in_addr *ap, struct ifnet *ifp)
1251
in_addmulti(struct in_addr *ap, struct ifnet *ifp)
1252
{
1252
{
1253
	struct in_multi *pinm;
1253
	struct in_multi *pinm = NULL;
1254
	int error;
1254
	int error;
1255
1255
1256
	KASSERT(IN_LOCAL_GROUP(ntohl(ap->s_addr)),
1256
	KASSERT(IN_LOCAL_GROUP(ntohl(ap->s_addr)),
Lines 1850-1856 Link Here
1850
	struct ifnet			*ifp;
1850
	struct ifnet			*ifp;
1851
	struct in_mfilter		*imf;
1851
	struct in_mfilter		*imf;
1852
	struct ip_moptions		*imo;
1852
	struct ip_moptions		*imo;
1853
	struct in_multi			*inm;
1853
	struct in_multi			*inm = NULL;
1854
	struct in_msource		*lims;
1854
	struct in_msource		*lims;
1855
	size_t				 idx;
1855
	size_t				 idx;
1856
	int				 error, is_new;
1856
	int				 error, is_new;
(-)/usr/src/sys/dev/aha/aha.c (-2 / +2 lines)
Lines 1347-1353 Link Here
1347
ahareset(struct aha_softc* aha, int hard_reset)
1347
ahareset(struct aha_softc* aha, int hard_reset)
1348
{
1348
{
1349
	struct	 ccb_hdr *ccb_h;
1349
	struct	 ccb_hdr *ccb_h;
1350
	u_int	 status;
1350
	u_int	 status = 0;
1351
	u_int	 timeout;
1351
	u_int	 timeout;
1352
	uint8_t reset_type;
1352
	uint8_t reset_type;
1353
1353
Lines 1442-1448 Link Here
1442
	u_int cmd_timeout)
1442
	u_int cmd_timeout)
1443
{
1443
{
1444
	u_int	timeout;
1444
	u_int	timeout;
1445
	u_int	status;
1445
	u_int	status = 0;
1446
	u_int	saved_status;
1446
	u_int	saved_status;
1447
	u_int	intstat;
1447
	u_int	intstat;
1448
	u_int	reply_buf_size;
1448
	u_int	reply_buf_size;
(-)/usr/src/sys/dev/amr/amr.c (-1 / +1 lines)
Lines 998-1004 Link Here
998
    struct amr_prodinfo	*ap;
998
    struct amr_prodinfo	*ap;
999
    struct amr_enquiry	*ae;
999
    struct amr_enquiry	*ae;
1000
    int			ldrv;
1000
    int			ldrv;
1001
    int			status;
1001
    int			status = 0;
1002
1002
1003
    /*
1003
    /*
1004
     * Greater than 10 byte cdb support
1004
     * Greater than 10 byte cdb support
(-)/usr/src/sys/cam/scsi/scsi_sa.c (-7 / +7 lines)
Lines 916-923 Link Here
916
		 * and ask the drive again what it's set to.
916
		 * and ask the drive again what it's set to.
917
		 */
917
		 */
918
		if (!SA_IS_CTRL(dev) && !softc->open_pending_mount) {
918
		if (!SA_IS_CTRL(dev) && !softc->open_pending_mount) {
919
			u_int8_t write_protect;
919
			u_int8_t write_protect = 0;
920
			int comp_enabled, comp_supported;
920
			int comp_enabled = 0, comp_supported = 0;
921
			error = sagetparams(periph, SA_PARAM_ALL,
921
			error = sagetparams(periph, SA_PARAM_ALL,
922
			    &softc->media_blksize, &softc->media_density,
922
			    &softc->media_blksize, &softc->media_density,
923
			    &softc->media_numblks, &softc->buffer_mode,
923
			    &softc->media_numblks, &softc->buffer_mode,
Lines 1884-1891 Link Here
1884
1884
1885
	if ((softc->flags & SA_FLAG_TAPE_MOUNTED) == 0) {
1885
	if ((softc->flags & SA_FLAG_TAPE_MOUNTED) == 0) {
1886
		struct scsi_read_block_limits_data *rblim = NULL;
1886
		struct scsi_read_block_limits_data *rblim = NULL;
1887
		int comp_enabled, comp_supported;
1887
		int comp_enabled = 0, comp_supported = 0;
1888
		u_int8_t write_protect, guessing = 0;
1888
		u_int8_t write_protect = 0, guessing = 0;
1889
1889
1890
		/*
1890
		/*
1891
		 * Clear out old state.
1891
		 * Clear out old state.
Lines 2722-2731 Link Here
2722
	    u_int32_t sense_flags)
2722
	    u_int32_t sense_flags)
2723
{
2723
{
2724
	struct sa_softc *softc;
2724
	struct sa_softc *softc;
2725
	u_int32_t current_blocksize;
2725
	u_int32_t current_blocksize = 0;
2726
	u_int32_t current_calg;
2726
	u_int32_t current_calg;
2727
	u_int8_t current_density;
2727
	u_int8_t current_density = 0;
2728
	u_int8_t current_speed;
2728
	u_int8_t current_speed = 0;
2729
	int comp_enabled, comp_supported;
2729
	int comp_enabled, comp_supported;
2730
	void *mode_buffer;
2730
	void *mode_buffer;
2731
	int mode_buffer_len;
2731
	int mode_buffer_len;
(-)/usr/src/sys/dev/ath/ath_hal/ah_regdomain.c (-2 / +2 lines)
Lines 719-726 Link Here
719
    struct ieee80211_channel chans[], int nchans,
719
    struct ieee80211_channel chans[], int nchans,
720
    HAL_CTRY_CODE cc, HAL_REG_DOMAIN rd)
720
    HAL_CTRY_CODE cc, HAL_REG_DOMAIN rd)
721
{
721
{
722
	COUNTRY_CODE_TO_ENUM_RD *country;
722
	COUNTRY_CODE_TO_ENUM_RD *country = NULL;
723
	REG_DOMAIN *rd5GHz, *rd2GHz;
723
	REG_DOMAIN *rd5GHz = NULL, *rd2GHz = NULL;
724
	HAL_STATUS status;
724
	HAL_STATUS status;
725
725
726
	switch (rd) {
726
	switch (rd) {
(-)/usr/src/sys/dev/ath/ath_hal/ar5210/ar5210_reset.c (-1 / +1 lines)
Lines 732-738 Link Here
732
	uint16_t freq = ath_hal_gethwchannel(ah, chan);
732
	uint16_t freq = ath_hal_gethwchannel(ah, chan);
733
	const HAL_EEPROM_v1 *ee = AH_PRIVATE(ah)->ah_eeprom;
733
	const HAL_EEPROM_v1 *ee = AH_PRIVATE(ah)->ah_eeprom;
734
	uint8_t gainFRD, gainF36, gainF48, gainF54;
734
	uint8_t gainFRD, gainF36, gainF48, gainF54;
735
	uint8_t dBmRD, dBm36, dBm48, dBm54, dontcare;
735
	uint8_t dBmRD = 0, dBm36 = 0, dBm48 = 0, dBm54 = 0, dontcare = 0;
736
	uint32_t rd, group;
736
	uint32_t rd, group;
737
	const struct tpcMap  *pRD;
737
	const struct tpcMap  *pRD;
738
738
(-)/usr/src/sys/dev/ath/ath_hal/ar5211/ar5211_beacon.c (-1 / +1 lines)
Lines 64-70 Link Here
64
ar5211BeaconInit(struct ath_hal *ah,
64
ar5211BeaconInit(struct ath_hal *ah,
65
	uint32_t next_beacon, uint32_t beacon_period)
65
	uint32_t next_beacon, uint32_t beacon_period)
66
{
66
{
67
	HAL_BEACON_TIMERS bt;
67
	HAL_BEACON_TIMERS bt = {};
68
68
69
	bt.bt_nexttbtt = next_beacon;
69
	bt.bt_nexttbtt = next_beacon;
70
	/* 
70
	/* 
(-)/usr/src/sys/dev/ath/ath_hal/ar5211/ar5211_reset.c (-6 / +6 lines)
Lines 1503-1510 Link Here
1503
		{ 0, 3, 6, 9, MAX_RATE_POWER };
1503
		{ 0, 3, 6, 9, MAX_RATE_POWER };
1504
1504
1505
	uint16_t	*pRatesPower;
1505
	uint16_t	*pRatesPower;
1506
	uint16_t	lowerChannel, lowerIndex=0, lowerPower=0;
1506
	uint16_t	lowerChannel = 0, lowerIndex=0, lowerPower=0;
1507
	uint16_t	upperChannel, upperIndex=0, upperPower=0;
1507
	uint16_t	upperChannel = 0, upperIndex=0, upperPower=0;
1508
	uint16_t	twiceMaxEdgePower=63;
1508
	uint16_t	twiceMaxEdgePower=63;
1509
	uint16_t	twicePower = 0;
1509
	uint16_t	twicePower = 0;
1510
	uint16_t	i, numEdges;
1510
	uint16_t	i, numEdges;
Lines 1695-1704 Link Here
1695
	const PCDACS_EEPROM *pSrcStruct)
1695
	const PCDACS_EEPROM *pSrcStruct)
1696
{
1696
{
1697
	uint16_t powerValue;
1697
	uint16_t powerValue;
1698
	uint16_t lFreq, rFreq;		/* left and right frequency values */
1698
	uint16_t lFreq = 0, rFreq = 0;	/* left and right frequency values */
1699
	uint16_t llPcdac, ulPcdac;	/* lower and upper left pcdac values */
1699
	uint16_t llPcdac = 0, ulPcdac = 0; /* lower and upper left pcdac values */
1700
	uint16_t lrPcdac, urPcdac;	/* lower and upper right pcdac values */
1700
	uint16_t lrPcdac = 0, urPcdac = 0; /* lower and upper right pcdac values */
1701
	uint16_t lPwr, uPwr;		/* lower and upper temp pwr values */
1701
	uint16_t lPwr = 0, uPwr = 0;	/* lower and upper temp pwr values */
1702
	uint16_t lScaledPwr, rScaledPwr; /* left and right scaled power */
1702
	uint16_t lScaledPwr, rScaledPwr; /* left and right scaled power */
1703
1703
1704
	if (ar5211FindValueInList(channel, pcdacValue, pSrcStruct, &powerValue))
1704
	if (ar5211FindValueInList(channel, pcdacValue, pSrcStruct, &powerValue))
(-)/usr/src/sys/dev/ath/ath_hal/ar5212/ar5212_beacon.c (-1 / +1 lines)
Lines 77-83 Link Here
77
ar5212BeaconInit(struct ath_hal *ah,
77
ar5212BeaconInit(struct ath_hal *ah,
78
	uint32_t next_beacon, uint32_t beacon_period)
78
	uint32_t next_beacon, uint32_t beacon_period)
79
{
79
{
80
	HAL_BEACON_TIMERS bt;
80
	HAL_BEACON_TIMERS bt = {};
81
81
82
	bt.bt_nexttbtt = next_beacon;
82
	bt.bt_nexttbtt = next_beacon;
83
	/* 
83
	/* 
(-)/usr/src/sys/cam/scsi/scsi_ses.c (-3 / +3 lines)
Lines 990-996 Link Here
990
static int
990
static int
991
ses_get_encstat(ses_softc_t *ssc, int slpflag)
991
ses_get_encstat(ses_softc_t *ssc, int slpflag)
992
{
992
{
993
	SesComStat ComStat;
993
	SesComStat ComStat = {};
994
	int status;
994
	int status;
995
995
996
	if ((status = ses_getputstat(ssc, -1, &ComStat, slpflag, 1)) != 0) {
996
	if ((status = ses_getputstat(ssc, -1, &ComStat, slpflag, 1)) != 0) {
Lines 1003-1009 Link Here
1003
static int
1003
static int
1004
ses_set_encstat(ses_softc_t *ssc, uint8_t encstat, int slpflag)
1004
ses_set_encstat(ses_softc_t *ssc, uint8_t encstat, int slpflag)
1005
{
1005
{
1006
	SesComStat ComStat;
1006
	SesComStat ComStat = {};
1007
	int status;
1007
	int status;
1008
1008
1009
	ComStat.comstatus = encstat & 0xf;
1009
	ComStat.comstatus = encstat & 0xf;
Lines 1020-1026 Link Here
1020
	int i = (int)obp->obj_id;
1020
	int i = (int)obp->obj_id;
1021
1021
1022
	if (ssc->ses_objmap[i].svalid == 0) {
1022
	if (ssc->ses_objmap[i].svalid == 0) {
1023
		SesComStat ComStat;
1023
		SesComStat ComStat = {};
1024
		int err = ses_getputstat(ssc, i, &ComStat, slpflag, 1);
1024
		int err = ses_getputstat(ssc, i, &ComStat, slpflag, 1);
1025
		if (err)
1025
		if (err)
1026
			return (err);
1026
			return (err);
(-)/usr/src/sys/dev/ath/ath_hal/ar5212/ar5111.c (-1 / +1 lines)
Lines 544-550 Link Here
544
	uint16_t lFreq, rFreq;		/* left and right frequency values */
544
	uint16_t lFreq, rFreq;		/* left and right frequency values */
545
	uint16_t llPcdac, ulPcdac;	/* lower and upper left pcdac values */
545
	uint16_t llPcdac, ulPcdac;	/* lower and upper left pcdac values */
546
	uint16_t lrPcdac, urPcdac;	/* lower and upper right pcdac values */
546
	uint16_t lrPcdac, urPcdac;	/* lower and upper right pcdac values */
547
	uint16_t lPwr, uPwr;		/* lower and upper temp pwr values */
547
	uint16_t lPwr = 0, uPwr = 0;	/* lower and upper temp pwr values */
548
	uint16_t lScaledPwr, rScaledPwr; /* left and right scaled power */
548
	uint16_t lScaledPwr, rScaledPwr; /* left and right scaled power */
549
549
550
	if (ar5212FindValueInList(channel, pcdacValue, pSrcStruct, &powerValue)) {
550
	if (ar5212FindValueInList(channel, pcdacValue, pSrcStruct, &powerValue)) {
(-)/usr/src/sys/dev/ath/ath_hal/ar5212/ar5212_reset.c (-2 / +2 lines)
Lines 2344-2350 Link Here
2344
{
2344
{
2345
	/* temp array for holding edge channels */
2345
	/* temp array for holding edge channels */
2346
	uint16_t tempChannelList[NUM_EDGES];
2346
	uint16_t tempChannelList[NUM_EDGES];
2347
	uint16_t clo, chi, twiceMaxEdgePower;
2347
	uint16_t clo = 0, chi = 0, twiceMaxEdgePower;
2348
	int i, numEdges;
2348
	int i, numEdges;
2349
2349
2350
	/* Get the edge power */
2350
	/* Get the edge power */
Lines 2423-2429 Link Here
2423
	uint16_t freq = ath_hal_gethwchannel(ah, chan);
2423
	uint16_t freq = ath_hal_gethwchannel(ah, chan);
2424
	/* temp array for holding target power channels */
2424
	/* temp array for holding target power channels */
2425
	uint16_t tempChannelList[NUM_TEST_FREQUENCIES];
2425
	uint16_t tempChannelList[NUM_TEST_FREQUENCIES];
2426
	uint16_t clo, chi, ixlo, ixhi;
2426
	uint16_t clo = 0, chi = 0, ixlo, ixhi;
2427
	int i;
2427
	int i;
2428
2428
2429
	/* Copy the target powers into the temp channel list */
2429
	/* Copy the target powers into the temp channel list */
(-)/usr/src/sys/contrib/dev/acpica/utilities/uteval.c (-3 / +3 lines)
Lines 220-226 Link Here
220
    ACPI_NAMESPACE_NODE     *DeviceNode,
220
    ACPI_NAMESPACE_NODE     *DeviceNode,
221
    UINT64                  *Value)
221
    UINT64                  *Value)
222
{
222
{
223
    ACPI_OPERAND_OBJECT     *ObjDesc;
223
    ACPI_OPERAND_OBJECT     *ObjDesc = NULL;
224
    ACPI_STATUS             Status;
224
    ACPI_STATUS             Status;
225
225
226
226
Lines 266-272 Link Here
266
    ACPI_NAMESPACE_NODE     *DeviceNode,
266
    ACPI_NAMESPACE_NODE     *DeviceNode,
267
    UINT32                  *Flags)
267
    UINT32                  *Flags)
268
{
268
{
269
    ACPI_OPERAND_OBJECT     *ObjDesc;
269
    ACPI_OPERAND_OBJECT     *ObjDesc = NULL;
270
    ACPI_STATUS             Status;
270
    ACPI_STATUS             Status;
271
271
272
272
Lines 326-332 Link Here
326
    UINT8                   MethodCount,
326
    UINT8                   MethodCount,
327
    UINT8                   *OutValues)
327
    UINT8                   *OutValues)
328
{
328
{
329
    ACPI_OPERAND_OBJECT     *ObjDesc;
329
    ACPI_OPERAND_OBJECT     *ObjDesc = NULL;
330
    ACPI_STATUS             Status;
330
    ACPI_STATUS             Status;
331
    ACPI_STATUS             FinalStatus = AE_NOT_FOUND;
331
    ACPI_STATUS             FinalStatus = AE_NOT_FOUND;
332
    UINT32                  i;
332
    UINT32                  i;
(-)/usr/src/sys/dev/ath/ath_hal/ar5212/ar2413.c (-2 / +2 lines)
Lines 295-301 Link Here
295
	uint16_t ii, jj, kk;
295
	uint16_t ii, jj, kk;
296
	int16_t currPwr = (int16_t)(2*Pmin);
296
	int16_t currPwr = (int16_t)(2*Pmin);
297
	/* since Pmin is pwr*2 and pwrList is 4*pwr */
297
	/* since Pmin is pwr*2 and pwrList is 4*pwr */
298
	uint32_t  idxL, idxR;
298
	uint32_t idxL = 0, idxR = 0;
299
299
300
	ii = 0;
300
	ii = 0;
301
	jj = 0;
301
	jj = 0;
Lines 360-366 Link Here
360
#define	VpdTable_I	priv->vpdTable_I
360
#define	VpdTable_I	priv->vpdTable_I
361
	uint32_t ii, jj, kk;
361
	uint32_t ii, jj, kk;
362
	int32_t ss;/* potentially -ve index for taking care of pdGainOverlap */
362
	int32_t ss;/* potentially -ve index for taking care of pdGainOverlap */
363
	uint32_t idxL, idxR;
363
	uint32_t idxL = 0, idxR = 0;
364
	uint32_t numPdGainsUsed = 0;
364
	uint32_t numPdGainsUsed = 0;
365
	/* 
365
	/* 
366
	 * If desired to support -ve power levels in future, just
366
	 * If desired to support -ve power levels in future, just
(-)/usr/src/sys/dev/ath/ath_hal/ar5212/ar2425.c (-2 / +2 lines)
Lines 297-303 Link Here
297
	uint16_t ii, jj, kk;
297
	uint16_t ii, jj, kk;
298
	int16_t currPwr = (int16_t)(2*Pmin);
298
	int16_t currPwr = (int16_t)(2*Pmin);
299
	/* since Pmin is pwr*2 and pwrList is 4*pwr */
299
	/* since Pmin is pwr*2 and pwrList is 4*pwr */
300
	uint32_t  idxL, idxR;
300
	uint32_t idxL = 0, idxR = 0;
301
301
302
	ii = 0;
302
	ii = 0;
303
	jj = 0;
303
	jj = 0;
Lines 359-365 Link Here
359
    /* Note the items statically allocated below are to reduce stack usage */
359
    /* Note the items statically allocated below are to reduce stack usage */
360
	uint32_t ii, jj, kk;
360
	uint32_t ii, jj, kk;
361
	int32_t ss;/* potentially -ve index for taking care of pdGainOverlap */
361
	int32_t ss;/* potentially -ve index for taking care of pdGainOverlap */
362
	uint32_t idxL, idxR;
362
	uint32_t idxL = 0, idxR = 0;
363
	uint32_t numPdGainsUsed = 0;
363
	uint32_t numPdGainsUsed = 0;
364
        static uint16_t VpdTable_L[MAX_NUM_PDGAINS_PER_CHANNEL][MAX_PWR_RANGE_IN_HALF_DB];
364
        static uint16_t VpdTable_L[MAX_NUM_PDGAINS_PER_CHANNEL][MAX_PWR_RANGE_IN_HALF_DB];
365
	/* filled out Vpd table for all pdGains (chanL) */
365
	/* filled out Vpd table for all pdGains (chanL) */
(-)/usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_beacon.c (-2 / +1 lines)
Lines 80-86 Link Here
80
ar5416BeaconInit(struct ath_hal *ah,
80
ar5416BeaconInit(struct ath_hal *ah,
81
	uint32_t next_beacon, uint32_t beacon_period)
81
	uint32_t next_beacon, uint32_t beacon_period)
82
{
82
{
83
	HAL_BEACON_TIMERS bt;
83
	HAL_BEACON_TIMERS bt = {};
84
84
85
	bt.bt_nexttbtt = next_beacon;
85
	bt.bt_nexttbtt = next_beacon;
86
	/* 
86
	/* 
Lines 89-95 Link Here
89
	 * TIMER2: in AP mode, it controls the SBA beacon alert
89
	 * TIMER2: in AP mode, it controls the SBA beacon alert
90
	 * interrupt; otherwise it sets the start of the next CFP.
90
	 * interrupt; otherwise it sets the start of the next CFP.
91
	 */
91
	 */
92
	bt.bt_flags = 0;
93
	switch (AH_PRIVATE(ah)->ah_opmode) {
92
	switch (AH_PRIVATE(ah)->ah_opmode) {
94
	case HAL_M_STA:
93
	case HAL_M_STA:
95
	case HAL_M_MONITOR:
94
	case HAL_M_MONITOR:
(-)/usr/src/sys/dev/ath/ath_hal/ar5212/ar5413.c (-2 / +2 lines)
Lines 339-345 Link Here
339
	uint16_t ii, jj, kk;
339
	uint16_t ii, jj, kk;
340
	int16_t currPwr = (int16_t)(2*Pmin);
340
	int16_t currPwr = (int16_t)(2*Pmin);
341
	/* since Pmin is pwr*2 and pwrList is 4*pwr */
341
	/* since Pmin is pwr*2 and pwrList is 4*pwr */
342
	uint32_t  idxL, idxR;
342
	uint32_t idxL = 0, idxR = 0;
343
343
344
	ii = 0;
344
	ii = 0;
345
	jj = 0;
345
	jj = 0;
Lines 404-410 Link Here
404
#define	VpdTable_I	priv->vpdTable_I
404
#define	VpdTable_I	priv->vpdTable_I
405
	uint32_t ii, jj, kk;
405
	uint32_t ii, jj, kk;
406
	int32_t ss;/* potentially -ve index for taking care of pdGainOverlap */
406
	int32_t ss;/* potentially -ve index for taking care of pdGainOverlap */
407
	uint32_t idxL, idxR;
407
	uint32_t idxL = 0, idxR = 0;
408
	uint32_t numPdGainsUsed = 0;
408
	uint32_t numPdGainsUsed = 0;
409
	/* 
409
	/* 
410
	 * If desired to support -ve power levels in future, just
410
	 * If desired to support -ve power levels in future, just
(-)/usr/src/sys/kern/sysv_msg.c (-1 / +1 lines)
Lines 1477-1483 Link Here
1477
freebsd32_msgrcv(struct thread *td, struct freebsd32_msgrcv_args *uap)
1477
freebsd32_msgrcv(struct thread *td, struct freebsd32_msgrcv_args *uap)
1478
{
1478
{
1479
	void *msgp;
1479
	void *msgp;
1480
	long mtype;
1480
	long mtype = 0;
1481
	int32_t mtype32;
1481
	int32_t mtype32;
1482
	int error;
1482
	int error;
1483
1483
(-)/usr/src/sys/kern/sysv_sem.c (-4 / +4 lines)
Lines 522-528 Link Here
522
{
522
{
523
	struct semid_ds dsbuf;
523
	struct semid_ds dsbuf;
524
	union semun arg, semun;
524
	union semun arg, semun;
525
	register_t rval;
525
	register_t rval = 0;
526
	int error;
526
	int error;
527
527
528
	switch (uap->cmd) {
528
	switch (uap->cmd) {
Lines 1431-1437 Link Here
1431
	struct semid_ds dsbuf;
1431
	struct semid_ds dsbuf;
1432
	union semun_old arg;
1432
	union semun_old arg;
1433
	union semun semun;
1433
	union semun semun;
1434
	register_t rval;
1434
	register_t rval = 0;
1435
	int error;
1435
	int error;
1436
1436
1437
	switch (uap->cmd) {
1437
	switch (uap->cmd) {
Lines 1527-1533 Link Here
1527
	struct semid_ds dsbuf;
1527
	struct semid_ds dsbuf;
1528
	union semun semun;
1528
	union semun semun;
1529
	union semun32 arg;
1529
	union semun32 arg;
1530
	register_t rval;
1530
	register_t rval = 0;
1531
	int error;
1531
	int error;
1532
1532
1533
	switch (uap->cmd) {
1533
	switch (uap->cmd) {
Lines 1599-1605 Link Here
1599
	struct semid_ds dsbuf;
1599
	struct semid_ds dsbuf;
1600
	union semun semun;
1600
	union semun semun;
1601
	union semun32 arg;
1601
	union semun32 arg;
1602
	register_t rval;
1602
	register_t rval = 0;
1603
	int error;
1603
	int error;
1604
1604
1605
	switch (uap->cmd) {
1605
	switch (uap->cmd) {
(-)/usr/src/sys/netinet/sctp_pcb.c (-1 / +1 lines)
Lines 6097-6103 Link Here
6097
	 * packet and the offset points to the beginning of the parameters.
6097
	 * packet and the offset points to the beginning of the parameters.
6098
	 */
6098
	 */
6099
	struct sctp_inpcb *inp;
6099
	struct sctp_inpcb *inp;
6100
	struct sctp_nets *net, *nnet, *net_tmp;
6100
	struct sctp_nets *net, *nnet, *net_tmp = NULL;
6101
	struct ip *iph;
6101
	struct ip *iph;
6102
	struct sctp_paramhdr *phdr, parm_buf;
6102
	struct sctp_paramhdr *phdr, parm_buf;
6103
	struct sctp_tcb *stcb_tmp;
6103
	struct sctp_tcb *stcb_tmp;
(-)/usr/src/sys/dev/bxe/bxe_link.c (-70 / +58 lines)
Lines 1057-1063 Link Here
1057
bxe_set_master_ln(struct link_params *params)
1057
bxe_set_master_ln(struct link_params *params)
1058
{
1058
{
1059
	struct bxe_softc *sc;
1059
	struct bxe_softc *sc;
1060
	uint16_t new_master_ln, ser_lane;
1060
	uint16_t new_master_ln = 0, ser_lane;
1061
1061
1062
	sc = params->sc;
1062
	sc = params->sc;
1063
	ser_lane = ((params->lane_config &
1063
	ser_lane = ((params->lane_config &
Lines 1078-1084 Link Here
1078
bxe_reset_unicore(struct link_params *params)
1078
bxe_reset_unicore(struct link_params *params)
1079
{
1079
{
1080
	struct bxe_softc *sc;
1080
	struct bxe_softc *sc;
1081
	uint16_t mii_control;
1081
	uint16_t mii_control = 0;
1082
	uint16_t i;
1082
	uint16_t i;
1083
1083
1084
	sc = params->sc;
1084
	sc = params->sc;
Lines 1158-1164 Link Here
1158
bxe_set_parallel_detection(struct link_params *params, uint8_t phy_flags)
1158
bxe_set_parallel_detection(struct link_params *params, uint8_t phy_flags)
1159
{
1159
{
1160
	struct bxe_softc *sc;
1160
	struct bxe_softc *sc;
1161
	uint16_t control2;
1161
	uint16_t control2 = 0;
1162
1162
1163
	sc = params->sc;
1163
	sc = params->sc;
1164
	CL45_RD_OVER_CL22(sc, params->port, params->phy_addr,
1164
	CL45_RD_OVER_CL22(sc, params->port, params->phy_addr,
Lines 1210-1216 Link Here
1210
    uint8_t enable_cl73)
1210
    uint8_t enable_cl73)
1211
{
1211
{
1212
	struct bxe_softc *sc;
1212
	struct bxe_softc *sc;
1213
	uint16_t reg_val;
1213
	uint16_t reg_val = 0;
1214
1214
1215
	sc = params->sc;
1215
	sc = params->sc;
1216
	/* CL37 Autoneg */
1216
	/* CL37 Autoneg */
Lines 1303-1309 Link Here
1303
bxe_program_serdes(struct link_params *params, struct link_vars *vars)
1303
bxe_program_serdes(struct link_params *params, struct link_vars *vars)
1304
{
1304
{
1305
	struct bxe_softc *sc;
1305
	struct bxe_softc *sc;
1306
	uint16_t reg_val;
1306
	uint16_t reg_val = 0;
1307
1307
1308
	sc = params->sc;
1308
	sc = params->sc;
1309
	/* Program duplex, disable autoneg and sgmii.*/
1309
	/* Program duplex, disable autoneg and sgmii.*/
Lines 1351-1360 Link Here
1351
bxe_set_brcm_cl37_advertisment(struct link_params *params)
1351
bxe_set_brcm_cl37_advertisment(struct link_params *params)
1352
{
1352
{
1353
	struct bxe_softc *sc;
1353
	struct bxe_softc *sc;
1354
	uint16_t val;
1354
	uint16_t val = 0;
1355
1355
1356
	sc = params->sc;
1356
	sc = params->sc;
1357
	val = 0;
1358
1357
1359
	/* Configure the 48 bits for BAM AN. */
1358
	/* Configure the 48 bits for BAM AN. */
1360
1359
Lines 1407-1413 Link Here
1407
bxe_set_ieee_aneg_advertisment(struct link_params *params, uint16_t ieee_fc)
1406
bxe_set_ieee_aneg_advertisment(struct link_params *params, uint16_t ieee_fc)
1408
{
1407
{
1409
	struct bxe_softc *sc;
1408
	struct bxe_softc *sc;
1410
	uint16_t val;
1409
	uint16_t val = 0;
1411
1410
1412
	sc = params->sc;
1411
	sc = params->sc;
1413
1412
Lines 1427-1433 Link Here
1427
bxe_restart_autoneg(struct link_params *params, uint8_t enable_cl73)
1426
bxe_restart_autoneg(struct link_params *params, uint8_t enable_cl73)
1428
{
1427
{
1429
	struct bxe_softc *sc;
1428
	struct bxe_softc *sc;
1430
	uint16_t mii_control;
1429
	uint16_t mii_control = 0;
1431
1430
1432
	sc = params->sc;
1431
	sc = params->sc;
1433
	DBPRINT(sc, BXE_VERBOSE_PHY, "bxe_restart_autoneg\n");
1432
	DBPRINT(sc, BXE_VERBOSE_PHY, "bxe_restart_autoneg\n");
Lines 1460-1466 Link Here
1460
bxe_initialize_sgmii_process(struct link_params *params, struct link_vars *vars)
1459
bxe_initialize_sgmii_process(struct link_params *params, struct link_vars *vars)
1461
{
1460
{
1462
	struct bxe_softc *sc;
1461
	struct bxe_softc *sc;
1463
	uint16_t control1, mii_control;
1462
	uint16_t control1 = 0, mii_control = 0;
1464
1463
1465
	sc = params->sc;
1464
	sc = params->sc;
1466
	/* In SGMII mode, the unicore is always slave. */
1465
	/* In SGMII mode, the unicore is always slave. */
Lines 1554-1567 Link Here
1554
	struct bxe_softc *sc;
1553
	struct bxe_softc *sc;
1555
	uint32_t ext_phy_type;
1554
	uint32_t ext_phy_type;
1556
	uint8_t ext_phy_addr;
1555
	uint8_t ext_phy_addr;
1557
	uint16_t ld_pause;   /* local */
1556
	uint16_t ld_pause = 0;   /* local */
1558
	uint16_t lp_pause;   /* link partner */
1557
	uint16_t lp_pause = 0;   /* link partner */
1559
	uint16_t pause_result;
1558
	uint16_t pause_result;
1560
	uint8_t port, ret;
1559
	uint8_t port, ret;
1561
1560
1562
	sc = params->sc;
1561
	sc = params->sc;
1563
	ret = 0;
1564
	port = params->port;
1562
	port = params->port;
1563
	ret = 0;
1565
	/* Read twice. */
1564
	/* Read twice. */
1566
	ext_phy_addr = XGXS_EXT_PHY_ADDR(params->ext_phy_config);
1565
	ext_phy_addr = XGXS_EXT_PHY_ADDR(params->ext_phy_config);
1567
	ext_phy_type = XGXS_EXT_PHY_TYPE(params->ext_phy_config);
1566
	ext_phy_type = XGXS_EXT_PHY_TYPE(params->ext_phy_config);
Lines 1603-1609 Link Here
1603
bxe_direct_parallel_detect_used(struct link_params *params)
1602
bxe_direct_parallel_detect_used(struct link_params *params)
1604
{
1603
{
1605
	struct bxe_softc *sc;
1604
	struct bxe_softc *sc;
1606
	uint16_t pd_10g, status2_1000x;
1605
	uint16_t pd_10g = 0, status2_1000x = 0;
1607
1606
1608
	sc = params->sc;
1607
	sc = params->sc;
1609
	if (params->req_line_speed != SPEED_AUTO_NEG)
1608
	if (params->req_line_speed != SPEED_AUTO_NEG)
Lines 1635-1642 Link Here
1635
    uint32_t gp_status)
1634
    uint32_t gp_status)
1636
{
1635
{
1637
	struct bxe_softc *sc;
1636
	struct bxe_softc *sc;
1638
	uint16_t ld_pause;   /* local driver */
1637
	uint16_t ld_pause = 0;   /* local driver */
1639
	uint16_t lp_pause;   /* link partner */
1638
	uint16_t lp_pause = 0;   /* link partner */
1640
	uint16_t pause_result;
1639
	uint16_t pause_result;
1641
1640
1642
	sc = params->sc;
1641
	sc = params->sc;
Lines 1699-1705 Link Here
1699
bxe_check_fallback_to_cl37(struct link_params *params)
1698
bxe_check_fallback_to_cl37(struct link_params *params)
1700
{
1699
{
1701
	struct bxe_softc *sc;
1700
	struct bxe_softc *sc;
1702
	uint16_t rx_status, ustat_val, cl37_fsm_recieved;
1701
	uint16_t rx_status = 0, ustat_val = 0, cl37_fsm_recieved = 0;
1703
1702
1704
	sc = params->sc;
1703
	sc = params->sc;
1705
1704
Lines 1757-1763 Link Here
1757
{
1756
{
1758
	struct bxe_softc *sc;
1757
	struct bxe_softc *sc;
1759
	uint32_t ext_phy_type;
1758
	uint32_t ext_phy_type;
1760
	uint16_t val;
1759
	uint16_t val = 0;
1761
	uint8_t ext_phy_addr;
1760
	uint8_t ext_phy_addr;
1762
1761
1763
	sc = params->sc;
1762
	sc = params->sc;
Lines 1990-1997 Link Here
1990
bxe_set_gmii_tx_driver(struct link_params *params)
1989
bxe_set_gmii_tx_driver(struct link_params *params)
1991
{
1990
{
1992
	struct bxe_softc *sc;
1991
	struct bxe_softc *sc;
1993
	uint16_t lp_up2;
1992
	uint16_t lp_up2 = 0;
1994
	uint16_t tx_driver;
1993
	uint16_t tx_driver = 0;
1995
	uint16_t bank;
1994
	uint16_t bank;
1996
1995
1997
	sc = params->sc;
1996
	sc = params->sc;
Lines 2227-2236 Link Here
2227
bxe_save_bcm_spirom_ver(struct bxe_softc *sc, uint8_t port,
2226
bxe_save_bcm_spirom_ver(struct bxe_softc *sc, uint8_t port,
2228
    uint32_t ext_phy_type, uint8_t ext_phy_addr, uint32_t shmem_base)
2227
    uint32_t ext_phy_type, uint8_t ext_phy_addr, uint32_t shmem_base)
2229
{
2228
{
2230
	uint16_t fw_ver1, fw_ver2;
2229
	uint16_t fw_ver1 = 0, fw_ver2 = 0;
2231
	uint8_t status;
2230
	uint8_t status = 0;
2232
2231
2233
	status = 0;
2234
	status = bxe_cl45_read(sc, port, ext_phy_type, ext_phy_addr,
2232
	status = bxe_cl45_read(sc, port, ext_phy_type, ext_phy_addr,
2235
	    MDIO_PMA_DEVAD, MDIO_PMA_REG_ROM_VER1, &fw_ver1);
2233
	    MDIO_PMA_DEVAD, MDIO_PMA_REG_ROM_VER1, &fw_ver1);
2236
	status |= bxe_cl45_read(sc, port, ext_phy_type, ext_phy_addr,
2234
	status |= bxe_cl45_read(sc, port, ext_phy_type, ext_phy_addr,
Lines 2247-2253 Link Here
2247
bxe_save_8481_spirom_version(struct bxe_softc *sc, uint8_t port,
2245
bxe_save_8481_spirom_version(struct bxe_softc *sc, uint8_t port,
2248
    uint8_t ext_phy_addr, uint32_t shmem_base)
2246
    uint8_t ext_phy_addr, uint32_t shmem_base)
2249
{
2247
{
2250
	uint16_t val, fw_ver1, fw_ver2, cnt;
2248
	uint16_t val = 0, fw_ver1 = 0, fw_ver2 = 0, cnt;
2251
	/*
2249
	/*
2252
	 * For the 32 bits registers in 8481, access via MDIO2ARM interface.
2250
	 * For the 32 bits registers in 8481, access via MDIO2ARM interface.
2253
	 * (1) set register 0xc200_0014(SPI_BRIDGE_CTRL_2) to 0x03000000.
2251
	 * (1) set register 0xc200_0014(SPI_BRIDGE_CTRL_2) to 0x03000000.
Lines 2357-2363 Link Here
2357
{
2355
{
2358
	struct bxe_softc *sc;
2356
	struct bxe_softc *sc;
2359
	uint8_t ext_phy_addr;
2357
	uint8_t ext_phy_addr;
2360
	uint16_t val;
2358
	uint16_t val = 0;
2361
2359
2362
	sc = params->sc;
2360
	sc = params->sc;
2363
	ext_phy_addr = XGXS_EXT_PHY_ADDR(params->ext_phy_config);
2361
	ext_phy_addr = XGXS_EXT_PHY_ADDR(params->ext_phy_config);
Lines 2385-2391 Link Here
2385
bxe_bcm8073_xaui_wa(struct link_params *params)
2383
bxe_bcm8073_xaui_wa(struct link_params *params)
2386
{
2384
{
2387
	struct bxe_softc *sc;
2385
	struct bxe_softc *sc;
2388
	uint16_t cnt, cnt1, val;
2386
	uint16_t cnt, cnt1, val = 0;
2389
	uint8_t ext_phy_addr;
2387
	uint8_t ext_phy_addr;
2390
2388
2391
	sc = params->sc;
2389
	sc = params->sc;
Lines 2552-2558 Link Here
2552
bxe_sfp_set_transmitter(struct bxe_softc *sc, uint8_t port,
2550
bxe_sfp_set_transmitter(struct bxe_softc *sc, uint8_t port,
2553
    uint32_t ext_phy_type, uint8_t ext_phy_addr, uint8_t tx_en)
2551
    uint32_t ext_phy_type, uint8_t ext_phy_addr, uint8_t tx_en)
2554
{
2552
{
2555
	uint16_t val;
2553
	uint16_t val = 0;
2556
2554
2557
	DBPRINT(sc, BXE_VERBOSE_PHY,
2555
	DBPRINT(sc, BXE_VERBOSE_PHY,
2558
	    "Setting transmitter tx_en=%x for port %x\n", tx_en, port);
2556
	    "Setting transmitter tx_en=%x for port %x\n", tx_en, port);
Lines 2575-2585 Link Here
2575
{
2573
{
2576
	struct bxe_softc *sc;
2574
	struct bxe_softc *sc;
2577
	uint32_t ext_phy_type;
2575
	uint32_t ext_phy_type;
2578
	uint16_t i, val;
2576
	uint16_t i, val = 0;
2579
	uint8_t ext_phy_addr, port;
2577
	uint8_t ext_phy_addr, port;
2580
2578
2581
	sc = params->sc;
2579
	sc = params->sc;
2582
	val = 0;
2583
	port = params->port;
2580
	port = params->port;
2584
	ext_phy_addr = XGXS_EXT_PHY_ADDR(params->ext_phy_config);
2581
	ext_phy_addr = XGXS_EXT_PHY_ADDR(params->ext_phy_config);
2585
	ext_phy_type = XGXS_EXT_PHY_TYPE(params->ext_phy_config);
2582
	ext_phy_type = XGXS_EXT_PHY_TYPE(params->ext_phy_config);
Lines 2645-2651 Link Here
2645
{
2642
{
2646
	struct bxe_softc *sc;
2643
	struct bxe_softc *sc;
2647
	uint32_t ext_phy_type;
2644
	uint32_t ext_phy_type;
2648
	uint16_t val, i;
2645
	uint16_t val = 0, i;
2649
	uint8_t ext_phy_addr, port;
2646
	uint8_t ext_phy_addr, port;
2650
2647
2651
	sc = params->sc;
2648
	sc = params->sc;
Lines 2746-2756 Link Here
2746
#ifdef BXE_DEBUG
2743
#ifdef BXE_DEBUG
2747
	struct bxe_softc *sc = params->sc;
2744
	struct bxe_softc *sc = params->sc;
2748
#endif
2745
#endif
2749
	uint8_t copper_module_type;
2746
	uint8_t copper_module_type = 0;
2750
	uint8_t options[SFP_EEPROM_OPTIONS_SIZE];
2747
	uint8_t options[SFP_EEPROM_OPTIONS_SIZE];
2751
	uint8_t val, check_limiting_mode;
2748
	uint8_t val = 0, check_limiting_mode = 0;
2752
2749
2753
	check_limiting_mode = 0;
2754
	*edc_mode = EDC_MODE_LIMITING;
2750
	*edc_mode = EDC_MODE_LIMITING;
2755
2751
2756
	/* First check for copper cable. */
2752
	/* First check for copper cable. */
Lines 2869-2875 Link Here
2869
bxe_bcm8726_set_limiting_mode(struct link_params *params, uint16_t edc_mode)
2865
bxe_bcm8726_set_limiting_mode(struct link_params *params, uint16_t edc_mode)
2870
{
2866
{
2871
	struct bxe_softc *sc;
2867
	struct bxe_softc *sc;
2872
	uint16_t cur_limiting_mode;
2868
	uint16_t cur_limiting_mode = 0;
2873
	uint8_t ext_phy_addr, port;
2869
	uint8_t ext_phy_addr, port;
2874
2870
2875
	sc = params->sc;
2871
	sc = params->sc;
Lines 2918-2925 Link Here
2918
{
2914
{
2919
	struct bxe_softc *sc;
2915
	struct bxe_softc *sc;
2920
	uint8_t ext_phy_addr, port;
2916
	uint8_t ext_phy_addr, port;
2921
	uint16_t phy_identifier;
2917
	uint16_t phy_identifier = 0;
2922
	uint16_t rom_ver2_val;
2918
	uint16_t rom_ver2_val = 0;
2923
2919
2924
	sc = params->sc;
2920
	sc = params->sc;
2925
	port = params->port;
2921
	port = params->port;
Lines 2952-2958 Link Here
2952
{
2948
{
2953
	struct bxe_softc *sc;
2949
	struct bxe_softc *sc;
2954
	uint16_t timeout;
2950
	uint16_t timeout;
2955
	uint8_t val;
2951
	uint8_t val = 0;
2956
2952
2957
	sc = params->sc;
2953
	sc = params->sc;
2958
	/*
2954
	/*
Lines 3015-3025 Link Here
3015
{
3011
{
3016
	struct bxe_softc *sc;
3012
	struct bxe_softc *sc;
3017
	uint32_t ext_phy_type, val;
3013
	uint32_t ext_phy_type, val;
3018
	uint16_t edc_mode;
3014
	uint16_t edc_mode = 0;
3019
	uint8_t ext_phy_addr, rc;
3015
	uint8_t ext_phy_addr, rc = 0;
3020
3016
3021
	sc = params->sc;
3017
	sc = params->sc;
3022
	rc = 0;
3023
	ext_phy_addr = XGXS_EXT_PHY_ADDR(params->ext_phy_config);
3018
	ext_phy_addr = XGXS_EXT_PHY_ADDR(params->ext_phy_config);
3024
	ext_phy_type = XGXS_EXT_PHY_TYPE(params->ext_phy_config);
3019
	ext_phy_type = XGXS_EXT_PHY_TYPE(params->ext_phy_config);
3025
	val = REG_RD(sc, params->shmem_base + offsetof(struct shmem_region,
3020
	val = REG_RD(sc, params->shmem_base + offsetof(struct shmem_region,
Lines 3156-3162 Link Here
3156
{
3151
{
3157
	struct bxe_softc *sc;
3152
	struct bxe_softc *sc;
3158
	uint32_t ext_phy_type;
3153
	uint32_t ext_phy_type;
3159
	uint16_t val;
3154
	uint16_t val = 0;
3160
	uint8_t ext_phy_addr, port;
3155
	uint8_t ext_phy_addr, port;
3161
3156
3162
	sc = params->sc;
3157
	sc = params->sc;
Lines 3220-3226 Link Here
3220
{
3215
{
3221
	struct bxe_softc *sc;
3216
	struct bxe_softc *sc;
3222
	uint32_t ext_phy_type;
3217
	uint32_t ext_phy_type;
3223
	uint16_t cl37_val;
3218
	uint16_t cl37_val = 0;
3224
	uint8_t ext_phy_addr;
3219
	uint8_t ext_phy_addr;
3225
3220
3226
	sc = params->sc;
3221
	sc = params->sc;
Lines 3255-3261 Link Here
3255
{
3250
{
3256
	struct bxe_softc *sc;
3251
	struct bxe_softc *sc;
3257
	uint32_t ext_phy_type;
3252
	uint32_t ext_phy_type;
3258
	uint16_t val;
3253
	uint16_t val = 0;
3259
	uint8_t ext_phy_addr;
3254
	uint8_t ext_phy_addr;
3260
3255
3261
	sc = params->sc;
3256
	sc = params->sc;
Lines 3343-3349 Link Here
3343
    uint8_t ext_phy_addr)
3338
    uint8_t ext_phy_addr)
3344
{
3339
{
3345
	struct bxe_softc *sc;
3340
	struct bxe_softc *sc;
3346
	uint16_t val1;
3341
	uint16_t val1 = 0;
3347
3342
3348
	sc = params->sc;
3343
	sc = params->sc;
3349
	/*
3344
	/*
Lines 3437-3454 Link Here
3437
{
3432
{
3438
	struct bxe_softc *sc;
3433
	struct bxe_softc *sc;
3439
	uint32_t ext_phy_type;
3434
	uint32_t ext_phy_type;
3440
	uint16_t cnt, ctrl, reg, val;
3435
	uint16_t cnt, ctrl = 0, reg, val = 0;
3441
	uint16_t fw_ver1, fw_ver2;
3436
	uint16_t fw_ver1 = 0, fw_ver2 = 0;
3442
	uint16_t lasi_ctrl_val, rx_alarm_ctrl_val, tmp1;
3437
	uint16_t lasi_ctrl_val, rx_alarm_ctrl_val, tmp1 = 0;
3443
	uint16_t mod_abs, phy_ver;
3438
	uint16_t mod_abs = 0, phy_ver = 0;
3444
	uint16_t autoneg_val, an_1000_val, an_10_100_val;
3439
	uint16_t autoneg_val = 0, an_1000_val = 0, an_10_100_val = 0;
3445
	uint16_t autoneg_ctrl, pma_ctrl;
3440
	uint16_t autoneg_ctrl = 0, pma_ctrl = 0;
3446
	uint8_t ext_phy_addr, i, rc;
3441
	uint8_t ext_phy_addr, i, rc = 0;
3447
3442
3448
	sc = params->sc;
3443
	sc = params->sc;
3449
	ctrl = 0;
3450
	val = 0;
3451
	rc = 0;
3452
3444
3453
	if (vars->phy_flags & PHY_XGXS_FLAG) {
3445
	if (vars->phy_flags & PHY_XGXS_FLAG) {
3454
		ext_phy_addr = XGXS_EXT_PHY_ADDR(params->ext_phy_config);
3446
		ext_phy_addr = XGXS_EXT_PHY_ADDR(params->ext_phy_config);
Lines 4234-4240 Link Here
4234
{
4226
{
4235
	struct bxe_softc *sc;
4227
	struct bxe_softc *sc;
4236
	uint32_t val;
4228
	uint32_t val;
4237
	uint16_t mod_abs, rx_alarm_status;
4229
	uint16_t mod_abs = 0, rx_alarm_status = 0;
4238
	uint8_t ext_phy_addr;
4230
	uint8_t ext_phy_addr;
4239
4231
4240
	sc = params->sc;
4232
	sc = params->sc;
Lines 4323-4338 Link Here
4323
{
4315
{
4324
	struct bxe_softc *sc;
4316
	struct bxe_softc *sc;
4325
	uint32_t ext_phy_type;
4317
	uint32_t ext_phy_type;
4326
	uint16_t val1, val2;
4318
	uint16_t val1 = 0, val2 = 0;
4327
	uint16_t rx_sd, pcs_status;
4319
	uint16_t rx_sd = 0, pcs_status = 0;
4328
	uint16_t link_status;
4320
	uint16_t link_status = 0;
4329
	uint16_t rx_alarm_status;
4321
	uint16_t rx_alarm_status = 0;
4330
	uint16_t an1000_status;
4322
	uint16_t an1000_status = 0;
4331
	uint16_t legacy_status, legacy_speed;
4323
	uint16_t legacy_status = 0, legacy_speed = 0;
4332
	uint8_t ext_phy_addr, ext_phy_link_up, port;
4324
	uint8_t ext_phy_addr, ext_phy_link_up, port;
4333
4325
4334
	sc = params->sc;
4326
	sc = params->sc;
4335
	val1 = 0;
4336
	ext_phy_link_up = 0;
4327
	ext_phy_link_up = 0;
4337
	port = params->port;
4328
	port = params->port;
4338
4329
Lines 4930-4936 Link Here
4930
{
4921
{
4931
	uint32_t latch_status, is_mi_int_status;
4922
	uint32_t latch_status, is_mi_int_status;
4932
4923
4933
	latch_status = 0;
4934
4924
4935
	/*
4925
	/*
4936
	 * Disable the MI INT ( external phy int )
4926
	 * Disable the MI INT ( external phy int )
Lines 5119-5125 Link Here
5119
{
5109
{
5120
	struct bxe_softc *sc;
5110
	struct bxe_softc *sc;
5121
	uint32_t md_devad;
5111
	uint32_t md_devad;
5122
	uint16_t mii_control;
5112
	uint16_t mii_control = 0;
5123
	uint8_t port;
5113
	uint8_t port;
5124
5114
5125
	sc = params->sc;
5115
	sc = params->sc;
Lines 5825-5839 Link Here
5825
{
5815
{
5826
	struct bxe_softc *sc;
5816
	struct bxe_softc *sc;
5827
	uint32_t ext_phy_type;
5817
	uint32_t ext_phy_type;
5828
	uint16_t gp_status;
5818
	uint16_t gp_status = 0;
5829
	uint8_t link_10g, port;
5819
	uint8_t link_10g, port;
5830
	uint8_t ext_phy_link_up, rc;
5820
	uint8_t ext_phy_link_up, rc;
5831
	uint8_t is_mi_int;
5821
	uint8_t is_mi_int;
5832
5822
5833
	sc = params->sc;
5823
	sc = params->sc;
5834
	port = params->port;
5824
	port = params->port;
5835
	rc = 0;
5836
	is_mi_int = 0;
5837
5825
5838
	DBPRINT(sc, BXE_VERBOSE_PHY, "port %x, XGXS?%x, int_status 0x%x\n",
5826
	DBPRINT(sc, BXE_VERBOSE_PHY, "port %x, XGXS?%x, int_status 0x%x\n",
5839
	    port, (vars->phy_flags & PHY_XGXS_FLAG), REG_RD(sc,
5827
	    port, (vars->phy_flags & PHY_XGXS_FLAG), REG_RD(sc,
Lines 5906-5912 Link Here
5906
bxe_8073_common_init_phy(struct bxe_softc *sc, uint32_t shmem_base)
5894
bxe_8073_common_init_phy(struct bxe_softc *sc, uint32_t shmem_base)
5907
{
5895
{
5908
	uint32_t ext_phy_config;
5896
	uint32_t ext_phy_config;
5909
	uint16_t fw_ver1, val;
5897
	uint16_t fw_ver1 = 0, val = 0;
5910
	uint8_t ext_phy_addr[PORT_MAX];
5898
	uint8_t ext_phy_addr[PORT_MAX];
5911
	int port;
5899
	int port;
5912
5900
Lines 6005-6011 Link Here
6005
{
5993
{
6006
	uint32_t swap_val, swap_override;
5994
	uint32_t swap_val, swap_override;
6007
	uint32_t ext_phy_config;
5995
	uint32_t ext_phy_config;
6008
	uint16_t fw_ver1;
5996
	uint16_t fw_ver1 = 0;
6009
	uint8_t ext_phy_addr[PORT_MAX];
5997
	uint8_t ext_phy_addr[PORT_MAX];
6010
	uint8_t port, first_port, i;
5998
	uint8_t port, first_port, i;
6011
5999
Lines 6152-6158 Link Here
6152
void
6140
void
6153
bxe_sfx7101_sp_sw_reset(struct bxe_softc *sc, uint8_t port, uint8_t phy_addr)
6141
bxe_sfx7101_sp_sw_reset(struct bxe_softc *sc, uint8_t port, uint8_t phy_addr)
6154
{
6142
{
6155
	uint16_t val, cnt;
6143
	uint16_t val = 0, cnt;
6156
6144
6157
	bxe_cl45_read(sc, port, PORT_HW_CFG_XGXS_EXT_PHY_TYPE_SFX7101, phy_addr,
6145
	bxe_cl45_read(sc, port, PORT_HW_CFG_XGXS_EXT_PHY_TYPE_SFX7101, phy_addr,
6158
	    MDIO_PMA_DEVAD, MDIO_PMA_REG_7101_RESET, &val);
6146
	    MDIO_PMA_DEVAD, MDIO_PMA_REG_7101_RESET, &val);
(-)/usr/src/sys/dev/bwn/if_bwn.c (-2 / +2 lines)
Lines 11112-11118 Link Here
11112
	struct ifnet *ifp = sc->sc_ifp;
11112
	struct ifnet *ifp = sc->sc_ifp;
11113
	struct ieee80211com *ic = ifp->if_l2com;
11113
	struct ieee80211com *ic = ifp->if_l2com;
11114
	const struct bwn_rxcompco *rc = NULL;
11114
	const struct bwn_rxcompco *rc = NULL;
11115
	struct bwn_txgain ogain;
11115
	struct bwn_txgain ogain = {};
11116
	int i, omode, oafeovr, orf, obbmult;
11116
	int i, omode, oafeovr, orf, obbmult;
11117
	uint8_t mode, fc = 0;
11117
	uint8_t mode, fc = 0;
11118
11118
Lines 12822-12828 Link Here
12822
	else								\
12822
	else								\
12823
		_v = (_y << (31 - _x)) / (_z << -_t);			\
12823
		_v = (_y << (31 - _x)) / (_z << -_t);			\
12824
} while (0)
12824
} while (0)
12825
	struct bwn_phy_lp_iq_est ie;
12825
	struct bwn_phy_lp_iq_est ie = {};
12826
	uint16_t v0, v1;
12826
	uint16_t v0, v1;
12827
	int tmp[2], ret;
12827
	int tmp[2], ret;
12828
12828
(-)/usr/src/sys/xdr/xdr.c (-1 / +1 lines)
Lines 620-626 Link Here
620
xdr_string(XDR *xdrs, char **cpp, u_int maxsize)
620
xdr_string(XDR *xdrs, char **cpp, u_int maxsize)
621
{
621
{
622
	char *sp = *cpp;  /* sp is the actual string pointer */
622
	char *sp = *cpp;  /* sp is the actual string pointer */
623
	u_int size;
623
	u_int size = 0;
624
	u_int nodesize;
624
	u_int nodesize;
625
625
626
	/*
626
	/*
(-)/usr/src/sys/dev/aic7xxx/aic7xxx_pci.c (-1 / +1 lines)
Lines 2133-2139 Link Here
2133
			     ahc->bus_softc.pci_softc.csize_lattime,
2133
			     ahc->bus_softc.pci_softc.csize_lattime,
2134
			     /*bytes*/1);
2134
			     /*bytes*/1);
2135
	if ((ahc->flags & AHC_HAS_TERM_LOGIC) != 0) {
2135
	if ((ahc->flags & AHC_HAS_TERM_LOGIC) != 0) {
2136
		struct	seeprom_descriptor sd;
2136
		struct	seeprom_descriptor sd = {};
2137
		u_int	sxfrctl1;
2137
		u_int	sxfrctl1;
2138
2138
2139
		sd.sd_ahc = ahc;
2139
		sd.sd_ahc = ahc;
(-)/usr/src/sys/geom/raid/md_intel.c (-1 / +1 lines)
Lines 2111-2117 Link Here
2111
{
2111
{
2112
	struct g_raid_softc *sc;
2112
	struct g_raid_softc *sc;
2113
	struct g_raid_volume *vol;
2113
	struct g_raid_volume *vol;
2114
	struct g_raid_subdisk *sd;
2114
	struct g_raid_subdisk *sd = NULL;
2115
	struct g_raid_disk *disk;
2115
	struct g_raid_disk *disk;
2116
	struct g_raid_md_intel_object *mdi;
2116
	struct g_raid_md_intel_object *mdi;
2117
	struct g_raid_md_intel_perdisk *pd;
2117
	struct g_raid_md_intel_perdisk *pd;
(-)/usr/src/sys/dev/bwn/if_bwn.c (-1 / +1 lines)
Lines 12193-12199 Link Here
12193
	struct bwn_phy_lp *plp = &mac->mac_phy.phy_lp;
12193
	struct bwn_phy_lp *plp = &mac->mac_phy.phy_lp;
12194
	struct bwn_softc *sc = mac->mac_sc;
12194
	struct bwn_softc *sc = mac->mac_sc;
12195
	struct bwn_phy_lp_iq_est ie;
12195
	struct bwn_phy_lp_iq_est ie;
12196
	struct bwn_txgain tx_gains;
12196
	struct bwn_txgain tx_gains = {};
12197
	static const uint32_t pwrtbl[21] = {
12197
	static const uint32_t pwrtbl[21] = {
12198
		0x10000, 0x10557, 0x10e2d, 0x113e0, 0x10f22, 0x0ff64,
12198
		0x10000, 0x10557, 0x10e2d, 0x113e0, 0x10f22, 0x0ff64,
12199
		0x0eda2, 0x0e5d4, 0x0efd1, 0x0fbe8, 0x0b7b8, 0x04b35,
12199
		0x0eda2, 0x0e5d4, 0x0efd1, 0x0fbe8, 0x0b7b8, 0x04b35,
(-)/usr/src/sys/dev/ciss/ciss.c (-2 / +2 lines)
Lines 1752-1758 Link Here
1752
static int
1752
static int
1753
ciss_get_ldrive_status(struct ciss_softc *sc,  struct ciss_ldrive *ld)
1753
ciss_get_ldrive_status(struct ciss_softc *sc,  struct ciss_ldrive *ld)
1754
{
1754
{
1755
    struct ciss_request		*cr;
1755
    struct ciss_request		*cr = NULL;
1756
    struct ciss_command		*cc;
1756
    struct ciss_command		*cc;
1757
    struct ciss_bmic_cdb	*cbc;
1757
    struct ciss_bmic_cdb	*cbc;
1758
    int				error, command_status;
1758
    int				error, command_status;
Lines 1838-1844 Link Here
1838
static int
1838
static int
1839
ciss_accept_media(struct ciss_softc *sc, struct ciss_ldrive *ld)
1839
ciss_accept_media(struct ciss_softc *sc, struct ciss_ldrive *ld)
1840
{
1840
{
1841
    struct ciss_request		*cr;
1841
    struct ciss_request		*cr = NULL;
1842
    struct ciss_command		*cc;
1842
    struct ciss_command		*cc;
1843
    struct ciss_bmic_cdb	*cbc;
1843
    struct ciss_bmic_cdb	*cbc;
1844
    int				command_status;
1844
    int				command_status;
(-)/usr/src/sys/geom/raid/md_promise.c (-1 / +1 lines)
Lines 618-624 Link Here
618
	struct promise_raid_conf *meta;
618
	struct promise_raid_conf *meta;
619
	off_t size;
619
	off_t size;
620
	int disk_pos, md_disk_pos, i, resurrection = 0;
620
	int disk_pos, md_disk_pos, i, resurrection = 0;
621
	uint32_t eoff, esize;
621
	uint32_t eoff = 0, esize = 0;
622
622
623
	sc = disk->d_softc;
623
	sc = disk->d_softc;
624
	pd = (struct g_raid_md_promise_perdisk *)disk->d_md_data;
624
	pd = (struct g_raid_md_promise_perdisk *)disk->d_md_data;
(-)/usr/src/sys/opencrypto/crypto.c (-1 / +1 lines)
Lines 1016-1022 Link Here
1016
#endif
1016
#endif
1017
	if (cap->cc_flags & CRYPTOCAP_F_CLEANUP) {
1017
	if (cap->cc_flags & CRYPTOCAP_F_CLEANUP) {
1018
		struct cryptodesc *crd;
1018
		struct cryptodesc *crd;
1019
		u_int64_t nid;
1019
		u_int64_t nid = 0;
1020
1020
1021
		/*
1021
		/*
1022
		 * Driver has unregistered; migrate the session and return
1022
		 * Driver has unregistered; migrate the session and return
(-)/usr/src/sys/dev/cxgbe/t4_sge.c (-1 / +1 lines)
Lines 1228-1234 Link Here
1228
	struct buf_ring *br = txq->br;
1228
	struct buf_ring *br = txq->br;
1229
	struct mbuf *next;
1229
	struct mbuf *next;
1230
	int rc, coalescing, can_reclaim;
1230
	int rc, coalescing, can_reclaim;
1231
	struct txpkts txpkts;
1231
	struct txpkts txpkts = {};
1232
	struct sgl sgl;
1232
	struct sgl sgl;
1233
1233
1234
	TXQ_LOCK_ASSERT_OWNED(txq);
1234
	TXQ_LOCK_ASSERT_OWNED(txq);
(-)/usr/src/sys/dev/cxgbe/common/t4_hw.c (-1 / +1 lines)
Lines 4740-4746 Link Here
4740
	u8 addr[6];
4740
	u8 addr[6];
4741
	int ret, i, j;
4741
	int ret, i, j;
4742
	struct fw_port_cmd c;
4742
	struct fw_port_cmd c;
4743
	unsigned int rss_size;
4743
	unsigned int rss_size = 0;
4744
	adapter_t *adap = p->adapter;
4744
	adapter_t *adap = p->adapter;
4745
4745
4746
	memset(&c, 0, sizeof(c));
4746
	memset(&c, 0, sizeof(c));
(-)/usr/src/sys/dev/drm/drm_bufs.c (-1 / +1 lines)
Lines 273-279 Link Here
273
		     struct drm_file *file_priv)
273
		     struct drm_file *file_priv)
274
{
274
{
275
	struct drm_map *request = data;
275
	struct drm_map *request = data;
276
	drm_local_map_t *map;
276
	drm_local_map_t *map = NULL;
277
	int err;
277
	int err;
278
278
279
	if (!(dev->flags & (FREAD|FWRITE)))
279
	if (!(dev->flags & (FREAD|FWRITE)))
(-)/usr/src/sys/dev/drm/via_dmablit.c (-1 / +1 lines)
Lines 426-432 Link Here
426
426
427
	drm_via_private_t *dev_priv = (drm_via_private_t *)dev->dev_private;
427
	drm_via_private_t *dev_priv = (drm_via_private_t *)dev->dev_private;
428
	drm_via_blitq_t *blitq = dev_priv->blit_queues + engine;
428
	drm_via_blitq_t *blitq = dev_priv->blit_queues + engine;
429
	wait_queue_head_t *queue;
429
	wait_queue_head_t *queue = NULL;
430
	int ret = 0;
430
	int ret = 0;
431
431
432
	if (via_dmablit_active(blitq, engine, handle, &queue)) {
432
	if (via_dmablit_active(blitq, engine, handle, &queue)) {
(-)/usr/src/sys/dev/buslogic/bt.c (-2 / +2 lines)
Lines 1802-1808 Link Here
1802
btreset(struct bt_softc* bt, int hard_reset)
1802
btreset(struct bt_softc* bt, int hard_reset)
1803
{
1803
{
1804
	struct	 ccb_hdr *ccb_h;
1804
	struct	 ccb_hdr *ccb_h;
1805
	u_int	 status;
1805
	u_int	 status = 0;
1806
	u_int	 timeout;
1806
	u_int	 timeout;
1807
	u_int8_t reset_type;
1807
	u_int8_t reset_type;
1808
1808
Lines 1897-1903 Link Here
1897
      u_int8_t *reply_data, u_int reply_len, u_int cmd_timeout)
1897
      u_int8_t *reply_data, u_int reply_len, u_int cmd_timeout)
1898
{
1898
{
1899
	u_int	timeout;
1899
	u_int	timeout;
1900
	u_int	status;
1900
	u_int	status = 0;
1901
	u_int	saved_status;
1901
	u_int	saved_status;
1902
	u_int	intstat;
1902
	u_int	intstat;
1903
	u_int	reply_buf_size;
1903
	u_int	reply_buf_size;
(-)/usr/src/sys/netinet/ipfw/ip_dn_io.c (-1 / +1 lines)
Lines 487-493 Link Here
487
static struct mbuf *
487
static struct mbuf *
488
serve_sched(struct mq *q, struct dn_sch_inst *si, uint64_t now)
488
serve_sched(struct mq *q, struct dn_sch_inst *si, uint64_t now)
489
{
489
{
490
	struct mq def_q;
490
	struct mq def_q = {};
491
	struct dn_schk *s = si->sched;
491
	struct dn_schk *s = si->sched;
492
	struct mbuf *m = NULL;
492
	struct mbuf *m = NULL;
493
	int delay_line_idle = (si->dline.mq.head == NULL);
493
	int delay_line_idle = (si->dline.mq.head == NULL);
(-)/usr/src/sys/dev/e1000/e1000_phy.c (-9 / +9 lines)
Lines 1657-1663 Link Here
1657
s32 e1000_setup_copper_link_generic(struct e1000_hw *hw)
1657
s32 e1000_setup_copper_link_generic(struct e1000_hw *hw)
1658
{
1658
{
1659
	s32 ret_val;
1659
	s32 ret_val;
1660
	bool link;
1660
	bool link = 0;
1661
1661
1662
	DEBUGFUNC("e1000_setup_copper_link_generic");
1662
	DEBUGFUNC("e1000_setup_copper_link_generic");
1663
1663
Lines 1716-1722 Link Here
1716
	struct e1000_phy_info *phy = &hw->phy;
1716
	struct e1000_phy_info *phy = &hw->phy;
1717
	s32 ret_val;
1717
	s32 ret_val;
1718
	u16 phy_data;
1718
	u16 phy_data;
1719
	bool link;
1719
	bool link = 0;
1720
1720
1721
	DEBUGFUNC("e1000_phy_force_speed_duplex_igp");
1721
	DEBUGFUNC("e1000_phy_force_speed_duplex_igp");
1722
1722
Lines 1786-1792 Link Here
1786
	struct e1000_phy_info *phy = &hw->phy;
1786
	struct e1000_phy_info *phy = &hw->phy;
1787
	s32 ret_val;
1787
	s32 ret_val;
1788
	u16 phy_data;
1788
	u16 phy_data;
1789
	bool link;
1789
	bool link = 0;
1790
1790
1791
	DEBUGFUNC("e1000_phy_force_speed_duplex_m88");
1791
	DEBUGFUNC("e1000_phy_force_speed_duplex_m88");
1792
1792
Lines 1905-1911 Link Here
1905
	struct e1000_phy_info *phy = &hw->phy;
1905
	struct e1000_phy_info *phy = &hw->phy;
1906
	s32 ret_val;
1906
	s32 ret_val;
1907
	u16 data;
1907
	u16 data;
1908
	bool link;
1908
	bool link = 0;
1909
1909
1910
	DEBUGFUNC("e1000_phy_force_speed_duplex_ife");
1910
	DEBUGFUNC("e1000_phy_force_speed_duplex_ife");
1911
1911
Lines 2577-2583 Link Here
2577
	struct e1000_phy_info *phy = &hw->phy;
2577
	struct e1000_phy_info *phy = &hw->phy;
2578
	s32  ret_val;
2578
	s32  ret_val;
2579
	u16 phy_data;
2579
	u16 phy_data;
2580
	bool link;
2580
	bool link = 0;
2581
2581
2582
	DEBUGFUNC("e1000_get_phy_info_m88");
2582
	DEBUGFUNC("e1000_get_phy_info_m88");
2583
2583
Lines 2655-2661 Link Here
2655
	struct e1000_phy_info *phy = &hw->phy;
2655
	struct e1000_phy_info *phy = &hw->phy;
2656
	s32 ret_val;
2656
	s32 ret_val;
2657
	u16 data;
2657
	u16 data;
2658
	bool link;
2658
	bool link = 0;
2659
2659
2660
	DEBUGFUNC("e1000_get_phy_info_igp");
2660
	DEBUGFUNC("e1000_get_phy_info_igp");
2661
2661
Lines 2719-2725 Link Here
2719
	struct e1000_phy_info *phy = &hw->phy;
2719
	struct e1000_phy_info *phy = &hw->phy;
2720
	s32 ret_val;
2720
	s32 ret_val;
2721
	u16 data;
2721
	u16 data;
2722
	bool link;
2722
	bool link = 0;
2723
2723
2724
	DEBUGFUNC("e1000_get_phy_info_ife");
2724
	DEBUGFUNC("e1000_get_phy_info_ife");
2725
2725
Lines 3879-3885 Link Here
3879
	struct e1000_phy_info *phy = &hw->phy;
3879
	struct e1000_phy_info *phy = &hw->phy;
3880
	s32 ret_val;
3880
	s32 ret_val;
3881
	u16 phy_data;
3881
	u16 phy_data;
3882
	bool link;
3882
	bool link = 0;
3883
3883
3884
	DEBUGFUNC("e1000_phy_force_speed_duplex_82577");
3884
	DEBUGFUNC("e1000_phy_force_speed_duplex_82577");
3885
3885
Lines 3931-3937 Link Here
3931
	struct e1000_phy_info *phy = &hw->phy;
3931
	struct e1000_phy_info *phy = &hw->phy;
3932
	s32 ret_val;
3932
	s32 ret_val;
3933
	u16 data;
3933
	u16 data;
3934
	bool link;
3934
	bool link = 0;
3935
3935
3936
	DEBUGFUNC("e1000_get_phy_info_82577");
3936
	DEBUGFUNC("e1000_get_phy_info_82577");
3937
3937
(-)/usr/src/sys/dev/e1000/e1000_80003es2lan.c (-1 / +1 lines)
Lines 908-914 Link Here
908
	struct e1000_mac_info *mac = &hw->mac;
908
	struct e1000_mac_info *mac = &hw->mac;
909
	u32 reg_data;
909
	u32 reg_data;
910
	s32 ret_val;
910
	s32 ret_val;
911
	u16 kum_reg_data;
911
	u16 kum_reg_data = 0;
912
	u16 i;
912
	u16 i;
913
913
914
	DEBUGFUNC("e1000_init_hw_80003es2lan");
914
	DEBUGFUNC("e1000_init_hw_80003es2lan");
(-)/usr/src/sys/dev/e1000/e1000_ich8lan.c (-3 / +3 lines)
Lines 2334-2340 Link Here
2334
	u32 act_offset;
2334
	u32 act_offset;
2335
	s32 ret_val = E1000_SUCCESS;
2335
	s32 ret_val = E1000_SUCCESS;
2336
	u32 bank = 0;
2336
	u32 bank = 0;
2337
	u16 i, word;
2337
	u16 i, word = 0;
2338
2338
2339
	DEBUGFUNC("e1000_read_nvm_ich8lan");
2339
	DEBUGFUNC("e1000_read_nvm_ich8lan");
2340
2340
Lines 2684-2690 Link Here
2684
	struct e1000_dev_spec_ich8lan *dev_spec = &hw->dev_spec.ich8lan;
2684
	struct e1000_dev_spec_ich8lan *dev_spec = &hw->dev_spec.ich8lan;
2685
	u32 i, act_offset, new_bank_offset, old_bank_offset, bank;
2685
	u32 i, act_offset, new_bank_offset, old_bank_offset, bank;
2686
	s32 ret_val;
2686
	s32 ret_val;
2687
	u16 data;
2687
	u16 data = 0;
2688
2688
2689
	DEBUGFUNC("e1000_update_nvm_checksum_ich8lan");
2689
	DEBUGFUNC("e1000_update_nvm_checksum_ich8lan");
2690
2690
Lines 2842-2848 Link Here
2842
static s32 e1000_validate_nvm_checksum_ich8lan(struct e1000_hw *hw)
2842
static s32 e1000_validate_nvm_checksum_ich8lan(struct e1000_hw *hw)
2843
{
2843
{
2844
	s32 ret_val = E1000_SUCCESS;
2844
	s32 ret_val = E1000_SUCCESS;
2845
	u16 data;
2845
	u16 data = 0;
2846
2846
2847
	DEBUGFUNC("e1000_validate_nvm_checksum_ich8lan");
2847
	DEBUGFUNC("e1000_validate_nvm_checksum_ich8lan");
2848
2848
(-)/usr/src/sys/fs/ext2fs/ext2_bmap.c (-1 / +1 lines)
Lines 66-72 Link Here
66
		int *a_runb;
66
		int *a_runb;
67
	} */ *ap;
67
	} */ *ap;
68
{
68
{
69
	int32_t blkno;
69
	int32_t blkno = 0;
70
	int error;
70
	int error;
71
71
72
	/*
72
	/*
(-)/usr/src/sys/dev/fatm/if_fatm.c (-1 / +1 lines)
Lines 711-717 Link Here
711
static int
711
static int
712
fatm_init_cmd(struct fatm_softc *sc)
712
fatm_init_cmd(struct fatm_softc *sc)
713
{
713
{
714
	int w, c;
714
	int w, c = 0;
715
	u_char *statp;
715
	u_char *statp;
716
	uint32_t card_stat;
716
	uint32_t card_stat;
717
	u_int cnt;
717
	u_int cnt;
(-)/usr/src/sys/dev/fdc/fdc.c (-5 / +5 lines)
Lines 552-558 Link Here
552
static int
552
static int
553
fdc_sense_drive(struct fdc_data *fdc, int *st3p)
553
fdc_sense_drive(struct fdc_data *fdc, int *st3p)
554
{
554
{
555
	int st3;
555
	int st3 = 0;
556
556
557
	if (fdc_cmd(fdc, 2, NE7CMD_SENSED, fdc->fd->fdsu, 1, &st3))
557
	if (fdc_cmd(fdc, 2, NE7CMD_SENSED, fdc->fd->fdsu, 1, &st3))
558
		return (fdc_err(fdc, "Sense Drive Status failed\n"));
558
		return (fdc_err(fdc, "Sense Drive Status failed\n"));
Lines 564-570 Link Here
564
static int
564
static int
565
fdc_sense_int(struct fdc_data *fdc, int *st0p, int *cylp)
565
fdc_sense_int(struct fdc_data *fdc, int *st0p, int *cylp)
566
{
566
{
567
	int cyl, st0, ret;
567
	int cyl = 0, st0 = 0, ret;
568
568
569
	ret = fdc_cmd(fdc, 1, NE7CMD_SENSEI, 1, &st0);
569
	ret = fdc_cmd(fdc, 1, NE7CMD_SENSEI, 1, &st0);
570
	if (ret) {
570
	if (ret) {
Lines 594-600 Link Here
594
static int
594
static int
595
fdc_read_status(struct fdc_data *fdc)
595
fdc_read_status(struct fdc_data *fdc)
596
{
596
{
597
	int i, ret, status;
597
	int i, ret, status = 0;
598
598
599
	for (i = ret = 0; i < 7; i++) {
599
	for (i = ret = 0; i < 7; i++) {
600
		ret = fdc_in(fdc, &status);
600
		ret = fdc_in(fdc, &status);
Lines 758-764 Link Here
758
	struct fd_data *fd;
758
	struct fd_data *fd;
759
	struct bio *bp;
759
	struct bio *bp;
760
	int i, nsect;
760
	int i, nsect;
761
	int st0, st3, cyl, mfm, steptrac, cylinder, descyl, sec;
761
	int st0 = 0, st3 = 0, cyl = 0, mfm, steptrac, cylinder, descyl, sec;
762
	int head;
762
	int head;
763
	static int need_recal;
763
	static int need_recal;
764
	struct fdc_readid *idp;
764
	struct fdc_readid *idp;
Lines 1191-1197 Link Here
1191
fd_probe_disk(struct fd_data *fd, int *recal)
1191
fd_probe_disk(struct fd_data *fd, int *recal)
1192
{
1192
{
1193
	struct fdc_data *fdc;
1193
	struct fdc_data *fdc;
1194
	int st0, st3, cyl;
1194
	int st0 = 0, st3 = 0, cyl = 0;
1195
	int oopts, ret;
1195
	int oopts, ret;
1196
1196
1197
	fdc = fd->fdc;
1197
	fdc = fd->fdc;
(-)/usr/src/sys/fs/fdescfs/fdesc_vnops.c (-1 / +1 lines)
Lines 268-274 Link Here
268
	int nlen = cnp->cn_namelen;
268
	int nlen = cnp->cn_namelen;
269
	u_int fd, fd1;
269
	u_int fd, fd1;
270
	int error;
270
	int error;
271
	struct vnode *fvp;
271
	struct vnode *fvp = NULL;
272
272
273
	if ((cnp->cn_flags & ISLASTCN) &&
273
	if ((cnp->cn_flags & ISLASTCN) &&
274
	    (cnp->cn_nameiop == DELETE || cnp->cn_nameiop == RENAME)) {
274
	    (cnp->cn_nameiop == DELETE || cnp->cn_nameiop == RENAME)) {
(-)/usr/src/sys/dev/firewire/sbp_targ.c (-1 / +1 lines)
Lines 982-988 Link Here
982
sbp_targ_action1(struct cam_sim *sim, union ccb *ccb)
982
sbp_targ_action1(struct cam_sim *sim, union ccb *ccb)
983
{
983
{
984
	struct sbp_targ_softc *sc;
984
	struct sbp_targ_softc *sc;
985
	struct sbp_targ_lstate *lstate;
985
	struct sbp_targ_lstate *lstate = NULL;
986
	cam_status status;
986
	cam_status status;
987
	u_int ccb_dir;
987
	u_int ccb_dir;
988
988
(-)/usr/src/sys/dev/hwpmc/hwpmc_piv.c (-1 / +1 lines)
Lines 915-921 Link Here
915
{
915
{
916
	int found, n, m;
916
	int found, n, m;
917
	uint32_t caps, cccrvalue, escrvalue, tflags;
917
	uint32_t caps, cccrvalue, escrvalue, tflags;
918
	enum pmc_p4escr escr;
918
	enum pmc_p4escr escr = P4_ESCR_NONE;
919
	struct p4_cpu *pc;
919
	struct p4_cpu *pc;
920
	struct p4_event_descr *pevent;
920
	struct p4_event_descr *pevent;
921
	const struct p4pmc_descr *pd;
921
	const struct p4pmc_descr *pd;
(-)/usr/src/sys/dev/mfi/mfi.c (-1 / +1 lines)
Lines 1597-1603 Link Here
1597
static int
1597
static int
1598
mfi_aen_register(struct mfi_softc *sc, int seq, int locale)
1598
mfi_aen_register(struct mfi_softc *sc, int seq, int locale)
1599
{
1599
{
1600
	struct mfi_command *cm;
1600
	struct mfi_command *cm = NULL;
1601
	struct mfi_dcmd_frame *dcmd;
1601
	struct mfi_dcmd_frame *dcmd;
1602
	union mfi_evt current_aen, prior_aen;
1602
	union mfi_evt current_aen, prior_aen;
1603
	struct mfi_evt_detail *ed = NULL;
1603
	struct mfi_evt_detail *ed = NULL;
(-)/usr/src/sys/pci/amdsmb.c (-3 / +3 lines)
Lines 280-286 Link Here
280
static int
280
static int
281
amdsmb_wait(struct amdsmb_softc *sc)
281
amdsmb_wait(struct amdsmb_softc *sc)
282
{
282
{
283
	u_char sts, temp;
283
	u_char sts = 0, temp = 0;
284
	int error, count;
284
	int error, count;
285
285
286
	AMDSMB_LOCK_ASSERT(sc);
286
	AMDSMB_LOCK_ASSERT(sc);
Lines 468-474 Link Here
468
amdsmb_readw(device_t dev, u_char slave, char cmd, short *word)
468
amdsmb_readw(device_t dev, u_char slave, char cmd, short *word)
469
{
469
{
470
	struct amdsmb_softc *sc = (struct amdsmb_softc *)device_get_softc(dev);
470
	struct amdsmb_softc *sc = (struct amdsmb_softc *)device_get_softc(dev);
471
	u_char temp[2];
471
	u_char temp[2] = {};
472
	int error;
472
	int error;
473
473
474
	AMDSMB_LOCK(sc);
474
	AMDSMB_LOCK(sc);
Lines 520-526 Link Here
520
amdsmb_bread(device_t dev, u_char slave, char cmd, u_char *count, char *buf)
520
amdsmb_bread(device_t dev, u_char slave, char cmd, u_char *count, char *buf)
521
{
521
{
522
	struct amdsmb_softc *sc = (struct amdsmb_softc *)device_get_softc(dev);
522
	struct amdsmb_softc *sc = (struct amdsmb_softc *)device_get_softc(dev);
523
	u_char data, len, i;
523
	u_char data = 0, len = 0, i;
524
	int error;
524
	int error;
525
525
526
	if (*count < 1 || *count > 32)
526
	if (*count < 1 || *count > 32)
(-)/usr/src/sys/kgssapi/krb5/krb5_mech.c (-1 / +1 lines)
Lines 1602-1608 Link Here
1602
	OM_uint32 res;
1602
	OM_uint32 res;
1603
	struct mbuf *m, *mlast, *hm, *cm;
1603
	struct mbuf *m, *mlast, *hm, *cm;
1604
	uint8_t *p, dir;
1604
	uint8_t *p, dir;
1605
	size_t mlen, tlen, elen, datalen, padlen;
1605
	size_t mlen, tlen, elen = 0, datalen, padlen;
1606
	size_t cklen;
1606
	size_t cklen;
1607
	uint8_t buf[32];
1607
	uint8_t buf[32];
1608
	uint32_t seq;
1608
	uint32_t seq;
(-)/usr/src/sys/compat/linux/linux_futex.c (-2 / +2 lines)
Lines 449-455 Link Here
449
{
449
{
450
	int clockrt, nrwake, op_ret, ret, val;
450
	int clockrt, nrwake, op_ret, ret, val;
451
	struct linux_emuldata *em;
451
	struct linux_emuldata *em;
452
	struct waiting_proc *wp;
452
	struct waiting_proc *wp = NULL;
453
	struct futex *f, *f2;
453
	struct futex *f, *f2;
454
	int error;
454
	int error;
455
	uint32_t flags;
455
	uint32_t flags;
Lines 843-849 Link Here
843
release_futexes(struct proc *p)
843
release_futexes(struct proc *p)
844
{
844
{
845
	struct linux_robust_list_head *head = NULL;
845
	struct linux_robust_list_head *head = NULL;
846
	struct linux_robust_list *entry, *next_entry, *pending;
846
	struct linux_robust_list *entry, *next_entry = NULL, *pending;
847
	unsigned int limit = 2048, pi, next_pi, pip;
847
	unsigned int limit = 2048, pi, next_pi, pip;
848
	struct linux_emuldata *em;
848
	struct linux_emuldata *em;
849
	l_long futex_offset;
849
	l_long futex_offset;
(-)/usr/src/sys/compat/linux/linux_signal.c (-1 / +1 lines)
Lines 175-181 Link Here
175
int
175
int
176
linux_signal(struct thread *td, struct linux_signal_args *args)
176
linux_signal(struct thread *td, struct linux_signal_args *args)
177
{
177
{
178
	l_sigaction_t nsa, osa;
178
	l_sigaction_t nsa = {}, osa = {0};
179
	int error;
179
	int error;
180
180
181
#ifdef DEBUG
181
#ifdef DEBUG
(-)/usr/src/sys/compat/linux/linux_socket.c (-3 / +3 lines)
Lines 528-534 Link Here
528
linux_sendit(struct thread *td, int s, struct msghdr *mp, int flags,
528
linux_sendit(struct thread *td, int s, struct msghdr *mp, int flags,
529
    struct mbuf *control, enum uio_seg segflg)
529
    struct mbuf *control, enum uio_seg segflg)
530
{
530
{
531
	struct sockaddr *to;
531
	struct sockaddr *to = NULL;
532
	int error;
532
	int error;
533
533
534
	if (mp->msg_name != NULL) {
534
	if (mp->msg_name != NULL) {
Lines 701-707 Link Here
701
static int
701
static int
702
linux_bind(struct thread *td, struct linux_bind_args *args)
702
linux_bind(struct thread *td, struct linux_bind_args *args)
703
{
703
{
704
	struct sockaddr *sa;
704
	struct sockaddr *sa = NULL;
705
	int error;
705
	int error;
706
706
707
	error = linux_getsockaddr(&sa, PTRIN(args->name),
707
	error = linux_getsockaddr(&sa, PTRIN(args->name),
Lines 727-733 Link Here
727
linux_connect(struct thread *td, struct linux_connect_args *args)
727
linux_connect(struct thread *td, struct linux_connect_args *args)
728
{
728
{
729
	struct socket *so;
729
	struct socket *so;
730
	struct sockaddr *sa;
730
	struct sockaddr *sa = NULL;
731
	u_int fflag;
731
	u_int fflag;
732
	int error;
732
	int error;
733
733
(-)/usr/src/sys/dev/mcd/mcd.c (-1 / +1 lines)
Lines 778-784 Link Here
778
	struct mcd_mbx *mbx;
778
	struct mcd_mbx *mbx;
779
	struct bio *bp;
779
	struct bio *bp;
780
	int rm, i, k;
780
	int rm, i, k;
781
	struct mcd_read2 rbuf;
781
	struct mcd_read2 rbuf = {};
782
	int blknum;
782
	int blknum;
783
	caddr_t	addr;
783
	caddr_t	addr;
784
784
(-)/usr/src/sys/dev/mly/mly.c (-5 / +5 lines)
Lines 752-758 Link Here
752
mly_get_controllerinfo(struct mly_softc *sc)
752
mly_get_controllerinfo(struct mly_softc *sc)
753
{
753
{
754
    struct mly_command_ioctl	mci;
754
    struct mly_command_ioctl	mci;
755
    u_int8_t			status;
755
    u_int8_t			status = 0;
756
    int				error;
756
    int				error;
757
757
758
    debug_called(1);
758
    debug_called(1);
Lines 984-990 Link Here
984
{
984
{
985
    struct mly_command_ioctl	mci;
985
    struct mly_command_ioctl	mci;
986
    struct mly_health_status	*mh;
986
    struct mly_health_status	*mh;
987
    u_int8_t			status;
987
    u_int8_t			status = 0;
988
    int				error;
988
    int				error;
989
989
990
    /* build the gethealthstatus ioctl and send it */
990
    /* build the gethealthstatus ioctl and send it */
Lines 1018-1024 Link Here
1018
mly_enable_mmbox(struct mly_softc *sc)
1018
mly_enable_mmbox(struct mly_softc *sc)
1019
{
1019
{
1020
    struct mly_command_ioctl	mci;
1020
    struct mly_command_ioctl	mci;
1021
    u_int8_t			*sp, status;
1021
    u_int8_t			*sp, status = 0;
1022
    int				error;
1022
    int				error;
1023
1023
1024
    debug_called(1);
1024
    debug_called(1);
Lines 1062-1068 Link Here
1062
mly_flush(struct mly_softc *sc)
1062
mly_flush(struct mly_softc *sc)
1063
{
1063
{
1064
    struct mly_command_ioctl	mci;
1064
    struct mly_command_ioctl	mci;
1065
    u_int8_t			status;
1065
    u_int8_t			status = 0;
1066
    int				error;
1066
    int				error;
1067
1067
1068
    debug_called(1);
1068
    debug_called(1);
Lines 2875-2881 Link Here
2875
static int
2875
static int
2876
mly_user_command(struct mly_softc *sc, struct mly_user_command *uc)
2876
mly_user_command(struct mly_softc *sc, struct mly_user_command *uc)
2877
{
2877
{
2878
    struct mly_command	*mc;
2878
    struct mly_command	*mc = NULL;
2879
    int			error, s;
2879
    int			error, s;
2880
2880
2881
    /* allocate a command */
2881
    /* allocate a command */
(-)/usr/src/sys/dev/mps/mps_mapping.c (-2 / +2 lines)
Lines 326-332 Link Here
326
{
326
{
327
	u32 map_idx, high_idx = MPS_ENCTABLE_BAD_IDX;
327
	u32 map_idx, high_idx = MPS_ENCTABLE_BAD_IDX;
328
	u8 high_missing_count = 0;
328
	u8 high_missing_count = 0;
329
	u32 start_idx, end_idx, start_idx_ir, end_idx_ir;
329
	u32 start_idx, end_idx, start_idx_ir = 0, end_idx_ir = 0;
330
	struct dev_mapping_table *mt_entry;
330
	struct dev_mapping_table *mt_entry;
331
	u16 ioc_pg8_flags = le16toh(sc->ioc_pg8.Flags);
331
	u16 ioc_pg8_flags = le16toh(sc->ioc_pg8.Flags);
332
332
Lines 1464-1470 Link Here
1464
{
1464
{
1465
	u8 missing_cnt, enc_idx;
1465
	u8 missing_cnt, enc_idx;
1466
	u16 slot_id, entry_num, num_slots;
1466
	u16 slot_id, entry_num, num_slots;
1467
	u32 map_idx, dev_idx, start_idx, end_idx;
1467
	u32 map_idx, dev_idx, start_idx = 0, end_idx = 0;
1468
	struct dev_mapping_table *mt_entry;
1468
	struct dev_mapping_table *mt_entry;
1469
	Mpi2DriverMap0Entry_t *dpm_entry;
1469
	Mpi2DriverMap0Entry_t *dpm_entry;
1470
	u16 ioc_pg8_flags = le16toh(sc->ioc_pg8.Flags);
1470
	u16 ioc_pg8_flags = le16toh(sc->ioc_pg8.Flags);
(-)/usr/src/sys/dev/mpt/mpt.c (-3 / +3 lines)
Lines 1742-1748 Link Here
1742
		    int sleep_ok, int timeout_ms)
1742
		    int sleep_ok, int timeout_ms)
1743
{
1743
{
1744
	request_t  *req;
1744
	request_t  *req;
1745
	cfgparms_t params;
1745
	cfgparms_t params = {};
1746
	MSG_CONFIG *cfgp;
1746
	MSG_CONFIG *cfgp;
1747
	int	    error;
1747
	int	    error;
1748
1748
Lines 1799-1805 Link Here
1799
		  int timeout_ms)
1799
		  int timeout_ms)
1800
{
1800
{
1801
	request_t    *req;
1801
	request_t    *req;
1802
	cfgparms_t    params;
1802
	cfgparms_t    params = {};
1803
	int	      error;
1803
	int	      error;
1804
1804
1805
	req = mpt_get_request(mpt, sleep_ok);
1805
	req = mpt_get_request(mpt, sleep_ok);
Lines 1839-1845 Link Here
1839
		   int timeout_ms)
1839
		   int timeout_ms)
1840
{
1840
{
1841
	request_t    *req;
1841
	request_t    *req;
1842
	cfgparms_t    params;
1842
	cfgparms_t    params = {};
1843
	u_int	      hdr_attr;
1843
	u_int	      hdr_attr;
1844
	int	      error;
1844
	int	      error;
1845
1845
(-)/usr/src/sys/fs/msdosfs/msdosfs_fat.c (-3 / +3 lines)
Lines 855-861 Link Here
855
{
855
{
856
	int error;
856
	int error;
857
	struct buf *bp = NULL;
857
	struct buf *bp = NULL;
858
	u_long bn, bo, bsize, byteoffset;
858
	u_long bn = 0, bo, bsize, byteoffset;
859
	u_long readcn, lbn = -1;
859
	u_long readcn, lbn = -1;
860
860
861
	MSDOSFS_LOCK_MP(pmp);
861
	MSDOSFS_LOCK_MP(pmp);
Lines 991-1000 Link Here
991
{
991
{
992
	int error;
992
	int error;
993
	u_long frcn;
993
	u_long frcn;
994
	u_long cn, got;
994
	u_long cn, got = 0;
995
	struct msdosfsmount *pmp = dep->de_pmp;
995
	struct msdosfsmount *pmp = dep->de_pmp;
996
	struct buf *bp;
996
	struct buf *bp;
997
	daddr_t blkno;
997
	daddr_t blkno = 0;
998
998
999
	/*
999
	/*
1000
	 * Don't try to extend the root directory
1000
	 * Don't try to extend the root directory
(-)/usr/src/sys/dev/mxge/if_mxge.c (-13 / +13 lines)
Lines 1043-1049 Link Here
1043
static int
1043
static int
1044
mxge_update_mac_address(mxge_softc_t *sc)
1044
mxge_update_mac_address(mxge_softc_t *sc)
1045
{
1045
{
1046
	mxge_cmd_t cmd;
1046
	mxge_cmd_t cmd = {};
1047
	uint8_t *addr = sc->mac_addr;
1047
	uint8_t *addr = sc->mac_addr;
1048
	int status;
1048
	int status;
1049
1049
Lines 1060-1066 Link Here
1060
static int
1060
static int
1061
mxge_change_pause(mxge_softc_t *sc, int pause)
1061
mxge_change_pause(mxge_softc_t *sc, int pause)
1062
{	
1062
{	
1063
	mxge_cmd_t cmd;
1063
	mxge_cmd_t cmd = {};
1064
	int status;
1064
	int status;
1065
1065
1066
	if (pause)
1066
	if (pause)
Lines 1081-1087 Link Here
1081
static void
1081
static void
1082
mxge_change_promisc(mxge_softc_t *sc, int promisc)
1082
mxge_change_promisc(mxge_softc_t *sc, int promisc)
1083
{	
1083
{	
1084
	mxge_cmd_t cmd;
1084
	mxge_cmd_t cmd = {};
1085
	int status;
1085
	int status;
1086
1086
1087
	if (mxge_always_promisc)
1087
	if (mxge_always_promisc)
Lines 1102-1108 Link Here
1102
static void
1102
static void
1103
mxge_set_multicast_list(mxge_softc_t *sc)
1103
mxge_set_multicast_list(mxge_softc_t *sc)
1104
{
1104
{
1105
	mxge_cmd_t cmd;
1105
	mxge_cmd_t cmd = {};
1106
	struct ifmultiaddr *ifma;
1106
	struct ifmultiaddr *ifma;
1107
	struct ifnet *ifp = sc->ifp;
1107
	struct ifnet *ifp = sc->ifp;
1108
	int err;
1108
	int err;
Lines 1170-1176 Link Here
1170
static int
1170
static int
1171
mxge_max_mtu(mxge_softc_t *sc)
1171
mxge_max_mtu(mxge_softc_t *sc)
1172
{
1172
{
1173
	mxge_cmd_t cmd;
1173
	mxge_cmd_t cmd = {};
1174
	int status;
1174
	int status;
1175
1175
1176
	if (MJUMPAGESIZE - MXGEFW_PAD >  MXGEFW_MAX_MTU)
1176
	if (MJUMPAGESIZE - MXGEFW_PAD >  MXGEFW_MAX_MTU)
Lines 1335-1341 Link Here
1335
static int
1335
static int
1336
mxge_change_throttle(SYSCTL_HANDLER_ARGS)
1336
mxge_change_throttle(SYSCTL_HANDLER_ARGS)
1337
{
1337
{
1338
	mxge_cmd_t cmd;
1338
	mxge_cmd_t cmd = {};
1339
	mxge_softc_t *sc;
1339
	mxge_softc_t *sc;
1340
	int err;
1340
	int err;
1341
	unsigned int throttle;
1341
	unsigned int throttle;
Lines 2864-2870 Link Here
2864
static void
2864
static void
2865
mxge_media_probe(mxge_softc_t *sc)
2865
mxge_media_probe(mxge_softc_t *sc)
2866
{
2866
{
2867
	mxge_cmd_t cmd;
2867
	mxge_cmd_t cmd = {};
2868
	char *cage_type;
2868
	char *cage_type;
2869
2869
2870
	struct mxge_media_type *mxge_media_types = NULL;
2870
	struct mxge_media_type *mxge_media_types = NULL;
Lines 3385-3391 Link Here
3385
static int
3385
static int
3386
mxge_alloc_rings(mxge_softc_t *sc)
3386
mxge_alloc_rings(mxge_softc_t *sc)
3387
{
3387
{
3388
	mxge_cmd_t cmd;
3388
	mxge_cmd_t cmd = {};
3389
	int tx_ring_size;
3389
	int tx_ring_size;
3390
	int tx_ring_entries, rx_ring_entries;
3390
	int tx_ring_entries, rx_ring_entries;
3391
	int err, slice;
3391
	int err, slice;
Lines 3459-3465 Link Here
3459
mxge_slice_open(struct mxge_slice_state *ss, int nbufs, int cl_size)
3459
mxge_slice_open(struct mxge_slice_state *ss, int nbufs, int cl_size)
3460
{
3460
{
3461
	mxge_softc_t *sc;
3461
	mxge_softc_t *sc;
3462
	mxge_cmd_t cmd;
3462
	mxge_cmd_t cmd = {};
3463
	bus_dmamap_t map;
3463
	bus_dmamap_t map;
3464
	struct lro_entry *lro_entry;	
3464
	struct lro_entry *lro_entry;	
3465
	int err, i, slice;
3465
	int err, i, slice;
Lines 3548-3554 Link Here
3548
static int 
3548
static int 
3549
mxge_open(mxge_softc_t *sc)
3549
mxge_open(mxge_softc_t *sc)
3550
{
3550
{
3551
	mxge_cmd_t cmd;
3551
	mxge_cmd_t cmd = {};
3552
	int err, big_bytes, nbufs, slice, cl_size, i;
3552
	int err, big_bytes, nbufs, slice, cl_size, i;
3553
	bus_addr_t bus;
3553
	bus_addr_t bus;
3554
	volatile uint8_t *itable;
3554
	volatile uint8_t *itable;
Lines 3695-3701 Link Here
3695
static int
3695
static int
3696
mxge_close(mxge_softc_t *sc, int down)
3696
mxge_close(mxge_softc_t *sc, int down)
3697
{
3697
{
3698
	mxge_cmd_t cmd;
3698
	mxge_cmd_t cmd = {};
3699
	int err, old_down_cnt;
3699
	int err, old_down_cnt;
3700
#ifdef IFNET_BUF_RING
3700
#ifdef IFNET_BUF_RING
3701
	struct mxge_slice_state *ss;	
3701
	struct mxge_slice_state *ss;	
Lines 4274-4280 Link Here
4274
static int
4274
static int
4275
mxge_alloc_slices(mxge_softc_t *sc)
4275
mxge_alloc_slices(mxge_softc_t *sc)
4276
{
4276
{
4277
	mxge_cmd_t cmd;
4277
	mxge_cmd_t cmd = {};
4278
	struct mxge_slice_state *ss;
4278
	struct mxge_slice_state *ss;
4279
	size_t bytes;
4279
	size_t bytes;
4280
	int err, i, max_intr_slots;
4280
	int err, i, max_intr_slots;
Lines 4340-4346 Link Here
4340
static void
4340
static void
4341
mxge_slice_probe(mxge_softc_t *sc)
4341
mxge_slice_probe(mxge_softc_t *sc)
4342
{
4342
{
4343
	mxge_cmd_t cmd;
4343
	mxge_cmd_t cmd = {};
4344
	char *old_fw;
4344
	char *old_fw;
4345
	int msix_cnt, status, max_intr_slots;
4345
	int msix_cnt, status, max_intr_slots;
4346
4346
(-)/usr/src/sys/fs/nfsclient/nfs_clstate.c (-1 / +1 lines)
Lines 899-905 Link Here
899
{
899
{
900
	struct nfscllockowner *lp;
900
	struct nfscllockowner *lp;
901
	struct nfsclopen *op;
901
	struct nfsclopen *op;
902
	struct nfsclclient *clp;
902
	struct nfsclclient *clp = NULL;
903
	struct nfscllockowner *nlp;
903
	struct nfscllockowner *nlp;
904
	struct nfscllock *nlop, *otherlop;
904
	struct nfscllock *nlop, *otherlop;
905
	struct nfscldeleg *dp = NULL, *ldp = NULL;
905
	struct nfscldeleg *dp = NULL, *ldp = NULL;
(-)/usr/src/sys/fs/nfsclient/nfs_clrpcops.c (-1 / +1 lines)
Lines 113-119 Link Here
113
    NFSPROC_T *p, struct nfsvattr *nap, int *attrflagp)
113
    NFSPROC_T *p, struct nfsvattr *nap, int *attrflagp)
114
{
114
{
115
	int error;
115
	int error;
116
	u_int32_t mode, rmode;
116
	u_int32_t mode, rmode = 0;
117
117
118
	if (acmode & VREAD)
118
	if (acmode & VREAD)
119
		mode = NFSACCESS_READ;
119
		mode = NFSACCESS_READ;
(-)/usr/src/sys/fs/nfsclient/nfs_clvnops.c (-1 / +1 lines)
Lines 345-351 Link Here
345
{
345
{
346
	struct vnode *vp = ap->a_vp;
346
	struct vnode *vp = ap->a_vp;
347
	int error = 0, i, gotahit;
347
	int error = 0, i, gotahit;
348
	u_int32_t mode, wmode, rmode;
348
	u_int32_t mode, wmode, rmode = 0;
349
	int v34 = NFS_ISV34(vp);
349
	int v34 = NFS_ISV34(vp);
350
	struct nfsnode *np = VTONFS(vp);
350
	struct nfsnode *np = VTONFS(vp);
351
351
(-)/usr/src/sys/nfsclient/nfs_vnops.c (-1 / +1 lines)
Lines 351-357 Link Here
351
{
351
{
352
	struct vnode *vp = ap->a_vp;
352
	struct vnode *vp = ap->a_vp;
353
	int error = 0, i, gotahit;
353
	int error = 0, i, gotahit;
354
	u_int32_t mode, rmode, wmode;
354
	u_int32_t mode, rmode = 0, wmode;
355
	int v3 = NFS_ISV3(vp);
355
	int v3 = NFS_ISV3(vp);
356
	struct nfsnode *np = VTONFS(vp);
356
	struct nfsnode *np = VTONFS(vp);
357
357
(-)/usr/src/sys/fs/nfs/nfs_commonsubs.c (-1 / +1 lines)
Lines 780-786 Link Here
780
{
780
{
781
	u_int32_t *tl;
781
	u_int32_t *tl;
782
	int i = 0, j, k, l = 0, m, bitpos, attrsum = 0;
782
	int i = 0, j, k, l = 0, m, bitpos, attrsum = 0;
783
	int error, tfhsize, aceerr, attrsize, cnt, retnotsup;
783
	int error, tfhsize, aceerr, attrsize, cnt = 0, retnotsup = 0;
784
	u_char *cp, *cp2, namestr[NFSV4_SMALLSTR + 1];
784
	u_char *cp, *cp2, namestr[NFSV4_SMALLSTR + 1];
785
	nfsattrbit_t attrbits, retattrbits, checkattrbits;
785
	nfsattrbit_t attrbits, retattrbits, checkattrbits;
786
	struct nfsfh *tnfhp;
786
	struct nfsfh *tnfhp;
(-)/usr/src/sys/fs/nfsserver/nfs_nfsdstate.c (-6 / +6 lines)
Lines 1312-1318 Link Here
1312
	int specialid = 0;
1312
	int specialid = 0;
1313
	struct nfslockfile *lfp;
1313
	struct nfslockfile *lfp;
1314
	struct nfslock *other_lop = NULL;
1314
	struct nfslock *other_lop = NULL;
1315
	struct nfsstate *stp, *lckstp = NULL;
1315
	struct nfsstate *stp = NULL, *lckstp = NULL;
1316
	struct nfsclient *clp = NULL;
1316
	struct nfsclient *clp = NULL;
1317
	u_int32_t bits;
1317
	u_int32_t bits;
1318
	int error = 0, haslock = 0, ret, reterr;
1318
	int error = 0, haslock = 0, ret, reterr;
Lines 1951-1957 Link Here
1951
	struct nfsstate *stp, *nstp;
1951
	struct nfsstate *stp, *nstp;
1952
	struct nfsclient *clp;
1952
	struct nfsclient *clp;
1953
	struct nfsstate *ownerstp;
1953
	struct nfsstate *ownerstp;
1954
	struct nfslockfile *lfp, *new_lfp;
1954
	struct nfslockfile *lfp = NULL, *new_lfp;
1955
	int error = 0, haslock = 0, ret, readonly = 0, getfhret = 0;
1955
	int error = 0, haslock = 0, ret, readonly = 0, getfhret = 0;
1956
1956
1957
	if ((new_stp->ls_flags & NFSLCK_SHAREBITS) == NFSLCK_READACCESS)
1957
	if ((new_stp->ls_flags & NFSLCK_SHAREBITS) == NFSLCK_READACCESS)
Lines 2201-2207 Link Here
2201
	struct nfsstate *new_stp = *new_stpp;
2201
	struct nfsstate *new_stp = *new_stpp;
2202
	struct nfsstate *stp, *nstp;
2202
	struct nfsstate *stp, *nstp;
2203
	struct nfsstate *openstp = NULL, *new_open, *ownerstp, *new_deleg;
2203
	struct nfsstate *openstp = NULL, *new_open, *ownerstp, *new_deleg;
2204
	struct nfslockfile *lfp, *new_lfp;
2204
	struct nfslockfile *lfp = NULL, *new_lfp;
2205
	struct nfsclient *clp;
2205
	struct nfsclient *clp;
2206
	int error = 0, haslock = 0, ret, delegate = 1, writedeleg = 1;
2206
	int error = 0, haslock = 0, ret, delegate = 1, writedeleg = 1;
2207
	int readonly = 0, cbret = 1, getfhret = 0;
2207
	int readonly = 0, cbret = 1, getfhret = 0;
Lines 2857-2863 Link Here
2857
nfsrv_openupdate(vnode_t vp, struct nfsstate *new_stp, nfsquad_t clientid,
2857
nfsrv_openupdate(vnode_t vp, struct nfsstate *new_stp, nfsquad_t clientid,
2858
    nfsv4stateid_t *stateidp, struct nfsrv_descript *nd, NFSPROC_T *p)
2858
    nfsv4stateid_t *stateidp, struct nfsrv_descript *nd, NFSPROC_T *p)
2859
{
2859
{
2860
	struct nfsstate *stp, *ownerstp;
2860
	struct nfsstate *stp = NULL, *ownerstp;
2861
	struct nfsclient *clp;
2861
	struct nfsclient *clp;
2862
	struct nfslockfile *lfp;
2862
	struct nfslockfile *lfp;
2863
	u_int32_t bits;
2863
	u_int32_t bits;
Lines 2999-3006 Link Here
2999
nfsrv_delegupdate(nfsquad_t clientid, nfsv4stateid_t *stateidp,
2999
nfsrv_delegupdate(nfsquad_t clientid, nfsv4stateid_t *stateidp,
3000
    vnode_t vp, int op, struct ucred *cred, NFSPROC_T *p)
3000
    vnode_t vp, int op, struct ucred *cred, NFSPROC_T *p)
3001
{
3001
{
3002
	struct nfsstate *stp;
3002
	struct nfsstate *stp = NULL;
3003
	struct nfsclient *clp;
3003
	struct nfsclient *clp = NULL;
3004
	int error = 0;
3004
	int error = 0;
3005
	fhandle_t fh;
3005
	fhandle_t fh;
3006
3006
(-)/usr/src/sys/nfsserver/nfs_srvsubs.c (-1 / +1 lines)
Lines 591-597 Link Here
591
	struct iovec aiov;
591
	struct iovec aiov;
592
	struct uio auio;
592
	struct uio auio;
593
	struct vnode *dp;
593
	struct vnode *dp;
594
	int error, rdonly, linklen;
594
	int error, rdonly = 0, linklen;
595
	struct componentname *cnp = &ndp->ni_cnd;
595
	struct componentname *cnp = &ndp->ni_cnd;
596
	int lockleaf = (cnp->cn_flags & LOCKLEAF) != 0;
596
	int lockleaf = (cnp->cn_flags & LOCKLEAF) != 0;
597
	int dvfslocked;
597
	int dvfslocked;
(-)/usr/src/sys/fs/ntfs/ntfs_subr.c (-1 / +1 lines)
Lines 669-675 Link Here
669
{
669
{
670
	const char *astrp = astr;
670
	const char *astrp = astr;
671
	char tmpbuf[5];
671
	char tmpbuf[5];
672
	int len, res;
672
	int len = 0, res;
673
	size_t i, j, mbstrlen = astrlen;
673
	size_t i, j, mbstrlen = astrlen;
674
674
675
	if (ntmp->ntm_ic_l2u) {
675
	if (ntmp->ntm_ic_l2u) {
(-)/usr/src/sys/fs/nullfs/null_vnops.c (-1 / +1 lines)
Lines 508-514 Link Here
508
null_remove(struct vop_remove_args *ap)
508
null_remove(struct vop_remove_args *ap)
509
{
509
{
510
	int retval, vreleit;
510
	int retval, vreleit;
511
	struct vnode *lvp;
511
	struct vnode *lvp = NULL;
512
512
513
	if (vrefcnt(ap->a_vp) > 1) {
513
	if (vrefcnt(ap->a_vp) > 1) {
514
		lvp = NULLVPTOLOWERVP(ap->a_vp);
514
		lvp = NULLVPTOLOWERVP(ap->a_vp);
(-)/usr/src/sys/contrib/pf/net/pf.c (-1 / +1 lines)
Lines 2116-2122 Link Here
2116
	/* Change inner protocol port, fix inner protocol checksum. */
2116
	/* Change inner protocol port, fix inner protocol checksum. */
2117
	if (ip != NULL) {
2117
	if (ip != NULL) {
2118
		u_int16_t	oip = *ip;
2118
		u_int16_t	oip = *ip;
2119
		u_int32_t	opc;
2119
		u_int32_t	opc = 0;
2120
2120
2121
		if (pc != NULL)
2121
		if (pc != NULL)
2122
			opc = *pc;
2122
			opc = *pc;
(-)/usr/src/sys/dev/qlxgb/qla_misc.c (-3 / +3 lines)
Lines 259-265 Link Here
259
	uint32_t rd)
259
	uint32_t rd)
260
{
260
{
261
	uint32_t count = 100;
261
	uint32_t count = 100;
262
	uint32_t data;
262
	uint32_t data = 0;
263
263
264
	WRITE_OFFSET32(ha, Q8_MIU_TEST_AGT_ADDR_LO, (uint32_t)addr);
264
	WRITE_OFFSET32(ha, Q8_MIU_TEST_AGT_ADDR_LO, (uint32_t)addr);
265
	WRITE_OFFSET32(ha, Q8_MIU_TEST_AGT_ADDR_HI, (uint32_t)(addr >> 32));
265
	WRITE_OFFSET32(ha, Q8_MIU_TEST_AGT_ADDR_HI, (uint32_t)(addr >> 32));
Lines 402-408 Link Here
402
static int
402
static int
403
qla_crb_init(qla_host_t *ha)
403
qla_crb_init(qla_host_t *ha)
404
{
404
{
405
	uint32_t val, sig;
405
	uint32_t val = 0, sig = 0;
406
	uint32_t offset, count, i;
406
	uint32_t offset, count, i;
407
	addr_val_t *addr_val_map, *avmap;
407
	addr_val_t *addr_val_map, *avmap;
408
408
Lines 486-492 Link Here
486
	uint64_t mem_off	= 0x10000;
486
	uint64_t mem_off	= 0x10000;
487
	uint32_t flash_off	= 0x10000;
487
	uint32_t flash_off	= 0x10000;
488
	uint32_t count;
488
	uint32_t count;
489
	offchip_mem_val_t val;
489
	offchip_mem_val_t val = {};
490
490
491
491
492
	/* only bootloader needs to be loaded into memory */
492
	/* only bootloader needs to be loaded into memory */
(-)/usr/src/sys/gnu/fs/reiserfs/reiserfs_namei.c (-1 / +1 lines)
Lines 142-148 Link Here
142
	struct cpu_key pos_key;
142
	struct cpu_key pos_key;
143
	const struct key *rkey;
143
	const struct key *rkey;
144
	struct reiserfs_node *ip;
144
	struct reiserfs_node *ip;
145
	struct reiserfs_dir_entry de;
145
	struct reiserfs_dir_entry de = {};
146
	INITIALIZE_PATH(path_to_entry);
146
	INITIALIZE_PATH(path_to_entry);
147
	int entry_num, item_num, search_res;
147
	int entry_num, item_num, search_res;
148
148
(-)/usr/src/sys/dev/sfxge/sfxge_tx.c (-1 / +1 lines)
Lines 977-983 Link Here
977
sfxge_tx_queue_tso(struct sfxge_txq *txq, struct mbuf *mbuf,
977
sfxge_tx_queue_tso(struct sfxge_txq *txq, struct mbuf *mbuf,
978
		   const bus_dma_segment_t *dma_seg, int n_dma_seg)
978
		   const bus_dma_segment_t *dma_seg, int n_dma_seg)
979
{
979
{
980
	struct sfxge_tso_state tso;
980
	struct sfxge_tso_state tso = {};
981
	unsigned int id, next_id;
981
	unsigned int id, next_id;
982
982
983
	tso_start(&tso, mbuf);
983
	tso_start(&tso, mbuf);
(-)/usr/src/sys/dev/sfxge/common/siena_nvram.c (-2 / +2 lines)
Lines 631-637 Link Here
631
	__out			uint32_t *subtypep,
631
	__out			uint32_t *subtypep,
632
	__out_ecount(4)		uint16_t version[4])
632
	__out_ecount(4)		uint16_t version[4])
633
{
633
{
634
	siena_mc_dynamic_config_hdr_t *dcfg;
634
	siena_mc_dynamic_config_hdr_t *dcfg = NULL;
635
	siena_parttbl_entry_t *entry;
635
	siena_parttbl_entry_t *entry;
636
	unsigned int dcfg_partn;
636
	unsigned int dcfg_partn;
637
	unsigned int partn;
637
	unsigned int partn;
Lines 866-872 Link Here
866
	unsigned int pos;
866
	unsigned int pos;
867
	uint8_t cksum;
867
	uint8_t cksum;
868
	uint32_t subtype;
868
	uint32_t subtype;
869
	size_t length;
869
	size_t length = 0;
870
	int rc;
870
	int rc;
871
871
872
	if ((entry = siena_parttbl_entry(enp, type)) == NULL) {
872
	if ((entry = siena_parttbl_entry(enp, type)) == NULL) {
(-)/usr/src/sys/dev/sound/pcm/dsp.c (-2 / +2 lines)
Lines 1060-1066 Link Here
1060
dsp_ioctl(struct cdev *i_dev, u_long cmd, caddr_t arg, int mode,
1060
dsp_ioctl(struct cdev *i_dev, u_long cmd, caddr_t arg, int mode,
1061
    struct thread *td)
1061
    struct thread *td)
1062
{
1062
{
1063
    	struct pcm_channel *chn, *rdch, *wrch;
1063
    	struct pcm_channel *chn, *rdch = NULL, *wrch = NULL;
1064
	struct snddev_info *d;
1064
	struct snddev_info *d;
1065
	u_long xcmd;
1065
	u_long xcmd;
1066
	int *arg_i, ret, tmp;
1066
	int *arg_i, ret, tmp;
Lines 2206-2212 Link Here
2206
    vm_size_t size, struct vm_object **object, int nprot)
2206
    vm_size_t size, struct vm_object **object, int nprot)
2207
{
2207
{
2208
	struct snddev_info *d;
2208
	struct snddev_info *d;
2209
	struct pcm_channel *wrch, *rdch, *c;
2209
	struct pcm_channel *wrch = NULL, *rdch = NULL, *c;
2210
2210
2211
	/*
2211
	/*
2212
	 * Reject PROT_EXEC by default. It just doesn't makes sense.
2212
	 * Reject PROT_EXEC by default. It just doesn't makes sense.
(-)/usr/src/sys/dev/sound/pci/hda/hdaa.c (-1 / +1 lines)
Lines 2240-2246 Link Here
2240
static void
2240
static void
2241
hdaa_audio_ctl_set_defaults(struct hdaa_pcm_devinfo *pdevinfo)
2241
hdaa_audio_ctl_set_defaults(struct hdaa_pcm_devinfo *pdevinfo)
2242
{
2242
{
2243
	int amp, vol, dev;
2243
	int amp = 0, vol, dev;
2244
2244
2245
	for (dev = 0; dev < SOUND_MIXER_NRDEVICES; dev++) {
2245
	for (dev = 0; dev < SOUND_MIXER_NRDEVICES; dev++) {
2246
		if ((pdevinfo->ossmask & (1 << dev)) == 0)
2246
		if ((pdevinfo->ossmask & (1 << dev)) == 0)
(-)/usr/src/sys/net/if_spppsubr.c (-1 / +1 lines)
Lines 1336-1342 Link Here
1336
{
1336
{
1337
	STDDCL;
1337
	STDDCL;
1338
	struct cisco_packet *h;
1338
	struct cisco_packet *h;
1339
	u_long me, mymask;
1339
	u_long me, mymask = 0;
1340
1340
1341
	if (m->m_pkthdr.len < CISCO_PACKET_LEN) {
1341
	if (m->m_pkthdr.len < CISCO_PACKET_LEN) {
1342
		if (debug)
1342
		if (debug)
(-)/usr/src/sys/dev/pci/pci.c (-1 / +1 lines)
Lines 858-864 Link Here
858
static void
858
static void
859
pci_read_vpd(device_t pcib, pcicfgregs *cfg)
859
pci_read_vpd(device_t pcib, pcicfgregs *cfg)
860
{
860
{
861
	struct vpd_readstate vrs;
861
	struct vpd_readstate vrs = {};
862
	int state;
862
	int state;
863
	int name;
863
	int name;
864
	int remain;
864
	int remain;
(-)/usr/src/sys/dev/twe/twe.c (-2 / +2 lines)
Lines 1585-1592 Link Here
1585
twe_describe_controller(struct twe_softc *sc)
1585
twe_describe_controller(struct twe_softc *sc)
1586
{
1586
{
1587
    TWE_Param		*p[6];
1587
    TWE_Param		*p[6];
1588
    u_int8_t		ports;
1588
    u_int8_t		ports = 0;
1589
    u_int32_t		size;
1589
    u_int32_t		size = 0;
1590
    int			i;
1590
    int			i;
1591
1591
1592
    debug_called(2);
1592
    debug_called(2);
(-)/usr/src/sys/dev/txp/if_txp.c (-1 / +1 lines)
Lines 705-711 Link Here
705
{
705
{
706
	bus_dma_tag_t sec_tag;
706
	bus_dma_tag_t sec_tag;
707
	bus_dmamap_t sec_map;
707
	bus_dmamap_t sec_map;
708
	bus_addr_t sec_paddr;
708
	bus_addr_t sec_paddr = 0;
709
	uint8_t *sec_buf;
709
	uint8_t *sec_buf;
710
	int rseg, err = 0;
710
	int rseg, err = 0;
711
	struct mbuf m;
711
	struct mbuf m;
(-)/usr/src/sys/fs/udf/udf_vnops.c (-1 / +1 lines)
Lines 771-777 Link Here
771
	struct udf_node *node;
771
	struct udf_node *node;
772
	struct udf_mnt *udfmp;
772
	struct udf_mnt *udfmp;
773
	struct fileid_desc *fid;
773
	struct fileid_desc *fid;
774
	struct udf_uiodir uiodir;
774
	struct udf_uiodir uiodir = {};
775
	struct udf_dirstream *ds;
775
	struct udf_dirstream *ds;
776
	u_long *cookies = NULL;
776
	u_long *cookies = NULL;
777
	int ncookies;
777
	int ncookies;
(-)/usr/src/sys/dev/usb/wlan/if_rum.c (-1 / +1 lines)
Lines 564-570 Link Here
564
rum_do_request(struct rum_softc *sc,
564
rum_do_request(struct rum_softc *sc,
565
    struct usb_device_request *req, void *data)
565
    struct usb_device_request *req, void *data)
566
{
566
{
567
	usb_error_t err;
567
	usb_error_t err = 0;
568
	int ntries = 10;
568
	int ntries = 10;
569
569
570
	while (ntries--) {
570
	while (ntries--) {
(-)/usr/src/sys/dev/usb/wlan/if_run.c (-10 / +10 lines)
Lines 1070-1076 Link Here
1070
run_do_request(struct run_softc *sc,
1070
run_do_request(struct run_softc *sc,
1071
    struct usb_device_request *req, void *data)
1071
    struct usb_device_request *req, void *data)
1072
{
1072
{
1073
	usb_error_t err;
1073
	usb_error_t err = 0;
1074
	int ntries = 10;
1074
	int ntries = 10;
1075
1075
1076
	RUN_LOCK_ASSERT(sc, MA_OWNED);
1076
	RUN_LOCK_ASSERT(sc, MA_OWNED);
Lines 3463-3469 Link Here
3463
static void
3463
static void
3464
run_set_agc(struct run_softc *sc, uint8_t agc)
3464
run_set_agc(struct run_softc *sc, uint8_t agc)
3465
{
3465
{
3466
	uint8_t bbp;
3466
	uint8_t bbp = 0;
3467
3467
3468
	if (sc->mac_ver == 0x3572) {
3468
	if (sc->mac_ver == 0x3572) {
3469
		run_bbp_read(sc, 27, &bbp);
3469
		run_bbp_read(sc, 27, &bbp);
Lines 3605-3611 Link Here
3605
run_rt3070_set_chan(struct run_softc *sc, uint32_t chan)
3605
run_rt3070_set_chan(struct run_softc *sc, uint32_t chan)
3606
{
3606
{
3607
	int8_t txpow1, txpow2;
3607
	int8_t txpow1, txpow2;
3608
	uint8_t rf;
3608
	uint8_t rf = 0;
3609
	int i;
3609
	int i;
3610
3610
3611
	/* RT3070 is 2GHz only */
3611
	/* RT3070 is 2GHz only */
Lines 3669-3675 Link Here
3669
{
3669
{
3670
	int8_t txpow1, txpow2;
3670
	int8_t txpow1, txpow2;
3671
	uint32_t tmp;
3671
	uint32_t tmp;
3672
	uint8_t rf;
3672
	uint8_t rf = 0;
3673
	int i;
3673
	int i;
3674
3674
3675
	/* find the settings for this channel (we know it exists) */
3675
	/* find the settings for this channel (we know it exists) */
Lines 4294-4300 Link Here
4294
run_bbp_init(struct run_softc *sc)
4294
run_bbp_init(struct run_softc *sc)
4295
{
4295
{
4296
	int i, error, ntries;
4296
	int i, error, ntries;
4297
	uint8_t bbp0;
4297
	uint8_t bbp0 = 0;
4298
4298
4299
	/* wait for BBP to wake up */
4299
	/* wait for BBP to wake up */
4300
	for (ntries = 0; ntries < 20; ntries++) {
4300
	for (ntries = 0; ntries < 20; ntries++) {
Lines 4331-4337 Link Here
4331
run_rt3070_rf_init(struct run_softc *sc)
4331
run_rt3070_rf_init(struct run_softc *sc)
4332
{
4332
{
4333
	uint32_t tmp;
4333
	uint32_t tmp;
4334
	uint8_t rf, target, bbp4;
4334
	uint8_t rf = 0, target, bbp4 = 0;
4335
	int i;
4335
	int i;
4336
4336
4337
	run_rt3070_rf_read(sc, 30, &rf);
4337
	run_rt3070_rf_read(sc, 30, &rf);
Lines 4470-4477 Link Here
4470
run_rt3070_filter_calib(struct run_softc *sc, uint8_t init, uint8_t target,
4470
run_rt3070_filter_calib(struct run_softc *sc, uint8_t init, uint8_t target,
4471
    uint8_t *val)
4471
    uint8_t *val)
4472
{
4472
{
4473
	uint8_t rf22, rf24;
4473
	uint8_t rf22 = 0, rf24 = 0;
4474
	uint8_t bbp55_pb, bbp55_sb, delta;
4474
	uint8_t bbp55_pb = 0, bbp55_sb = 0, delta;
4475
	int ntries;
4475
	int ntries;
4476
4476
4477
	/* program filter */
4477
	/* program filter */
Lines 4534-4540 Link Here
4534
static void
4534
static void
4535
run_rt3070_rf_setup(struct run_softc *sc)
4535
run_rt3070_rf_setup(struct run_softc *sc)
4536
{
4536
{
4537
	uint8_t bbp, rf;
4537
	uint8_t bbp = 0, rf = 0;
4538
	int i;
4538
	int i;
4539
4539
4540
	if (sc->mac_ver == 0x3572) {
4540
	if (sc->mac_ver == 0x3572) {
Lines 4663-4669 Link Here
4663
	struct ifnet *ifp = sc->sc_ifp;
4663
	struct ifnet *ifp = sc->sc_ifp;
4664
	struct ieee80211com *ic = ifp->if_l2com;
4664
	struct ieee80211com *ic = ifp->if_l2com;
4665
	uint32_t tmp;
4665
	uint32_t tmp;
4666
	uint8_t bbp1, bbp3;
4666
	uint8_t bbp1 = 0, bbp3 = 0;
4667
	int i;
4667
	int i;
4668
	int ridx;
4668
	int ridx;
4669
	int ntries;
4669
	int ntries;
(-)/usr/src/sys/dev/usb/wlan/if_ural.c (-1 / +1 lines)
Lines 550-556 Link Here
550
ural_do_request(struct ural_softc *sc,
550
ural_do_request(struct ural_softc *sc,
551
    struct usb_device_request *req, void *data)
551
    struct usb_device_request *req, void *data)
552
{
552
{
553
	usb_error_t err;
553
	usb_error_t err = 0;
554
	int ntries = 10;
554
	int ntries = 10;
555
555
556
	while (ntries--) {
556
	while (ntries--) {
(-)/usr/src/sys/dev/usb/wlan/if_urtw.c (-1 / +1 lines)
Lines 1284-1290 Link Here
1284
urtw_do_request(struct urtw_softc *sc,
1284
urtw_do_request(struct urtw_softc *sc,
1285
    struct usb_device_request *req, void *data)
1285
    struct usb_device_request *req, void *data)
1286
{
1286
{
1287
	usb_error_t err;
1287
	usb_error_t err = 0;
1288
	int ntries = 10;
1288
	int ntries = 10;
1289
1289
1290
	URTW_ASSERT_LOCKED(sc);
1290
	URTW_ASSERT_LOCKED(sc);
(-)/usr/src/sys/dev/vxge/vxgehal/vxgehal-virtualpath.c (-4 / +4 lines)
Lines 2546-2552 Link Here
2546
    u32 *protocol,
2546
    u32 *protocol,
2547
    u32 *port)
2547
    u32 *port)
2548
{
2548
{
2549
	u64 val64;
2549
	u64 val64 = 0;
2550
	__hal_device_t *hldev;
2550
	__hal_device_t *hldev;
2551
	vxge_hal_status_e status = VXGE_HAL_OK;
2551
	vxge_hal_status_e status = VXGE_HAL_OK;
2552
	__hal_vpath_handle_t *vp = (__hal_vpath_handle_t *) vpath_handle;
2552
	__hal_vpath_handle_t *vp = (__hal_vpath_handle_t *) vpath_handle;
Lines 2603-2609 Link Here
2603
    u32 *protocol,
2603
    u32 *protocol,
2604
    u32 *port)
2604
    u32 *port)
2605
{
2605
{
2606
	u64 val64;
2606
	u64 val64 = 0;
2607
	__hal_device_t *hldev;
2607
	__hal_device_t *hldev;
2608
	vxge_hal_status_e status = VXGE_HAL_OK;
2608
	vxge_hal_status_e status = VXGE_HAL_OK;
2609
	__hal_vpath_handle_t *vp = (__hal_vpath_handle_t *) vpath_handle;
2609
	__hal_vpath_handle_t *vp = (__hal_vpath_handle_t *) vpath_handle;
Lines 2721-2727 Link Here
2721
    u16 bucket_size,
2721
    u16 bucket_size,
2722
    u16 it_switch)
2722
    u16 it_switch)
2723
{
2723
{
2724
	u64 data0, data1;
2724
	u64 data0 = 0, data1 = 0;
2725
	__hal_device_t *hldev;
2725
	__hal_device_t *hldev;
2726
	__hal_vpath_handle_t *vp;
2726
	__hal_vpath_handle_t *vp;
2727
2727
Lines 2827-2833 Link Here
2827
    u8 *table_select,
2827
    u8 *table_select,
2828
    u16 *bucket_size)
2828
    u16 *bucket_size)
2829
{
2829
{
2830
	u64 val64;
2830
	u64 val64 = 0;
2831
	__hal_device_t *hldev;
2831
	__hal_device_t *hldev;
2832
	vxge_hal_status_e status = VXGE_HAL_OK;
2832
	vxge_hal_status_e status = VXGE_HAL_OK;
2833
	__hal_vpath_handle_t *vp = (__hal_vpath_handle_t *) vpath_handle;
2833
	__hal_vpath_handle_t *vp = (__hal_vpath_handle_t *) vpath_handle;
(-)/usr/src/sys/gnu/fs/xfs/xfs_alloc.c (-3 / +3 lines)
Lines 746-752 Link Here
746
	xfs_agblock_t	gtbnoa;		/* aligned ... */
746
	xfs_agblock_t	gtbnoa;		/* aligned ... */
747
	xfs_extlen_t	gtdiff;		/* difference to right side entry */
747
	xfs_extlen_t	gtdiff;		/* difference to right side entry */
748
	xfs_extlen_t	gtlen;		/* length of right side entry */
748
	xfs_extlen_t	gtlen;		/* length of right side entry */
749
	xfs_extlen_t	gtlena;		/* aligned ... */
749
	xfs_extlen_t	gtlena = 0;	/* aligned ... */
750
	xfs_agblock_t	gtnew;		/* useful start bno of right side */
750
	xfs_agblock_t	gtnew;		/* useful start bno of right side */
751
	int		error;		/* error code */
751
	int		error;		/* error code */
752
	int		i;		/* result code, temporary */
752
	int		i;		/* result code, temporary */
Lines 757-763 Link Here
757
	/*REFERENCED*/
757
	/*REFERENCED*/
758
	xfs_agblock_t	ltend;		/* end bno of left side entry */
758
	xfs_agblock_t	ltend;		/* end bno of left side entry */
759
	xfs_extlen_t	ltlen;		/* length of left side entry */
759
	xfs_extlen_t	ltlen;		/* length of left side entry */
760
	xfs_extlen_t	ltlena;		/* aligned ... */
760
	xfs_extlen_t	ltlena = 0;	/* aligned ... */
761
	xfs_agblock_t	ltnew;		/* useful start bno of left side */
761
	xfs_agblock_t	ltnew;		/* useful start bno of left side */
762
	xfs_extlen_t	rlen;		/* length of returned extent */
762
	xfs_extlen_t	rlen;		/* length of returned extent */
763
#if defined(DEBUG) && defined(__KERNEL__)
763
#if defined(DEBUG) && defined(__KERNEL__)
Lines 1825-1831 Link Here
1825
	xfs_mount_t	*mp;	/* file system mount point structure */
1825
	xfs_mount_t	*mp;	/* file system mount point structure */
1826
	xfs_extlen_t	need;	/* total blocks needed in freelist */
1826
	xfs_extlen_t	need;	/* total blocks needed in freelist */
1827
	xfs_perag_t	*pag;	/* per-ag information structure */
1827
	xfs_perag_t	*pag;	/* per-ag information structure */
1828
	xfs_alloc_arg_t	targs;	/* local allocation arguments */
1828
	xfs_alloc_arg_t	targs = {}; /* local allocation arguments */
1829
	xfs_trans_t	*tp;	/* transaction pointer */
1829
	xfs_trans_t	*tp;	/* transaction pointer */
1830
1830
1831
	mp = args->mp;
1831
	mp = args->mp;
(-)/usr/src/sys/gnu/fs/xfs/xfs_alloc_btree.c (-2 / +2 lines)
Lines 603-609 Link Here
603
	xfs_alloc_block_t	*block;	/* btree block record/key lives in */
603
	xfs_alloc_block_t	*block;	/* btree block record/key lives in */
604
	xfs_buf_t		*bp;	/* buffer for block */
604
	xfs_buf_t		*bp;	/* buffer for block */
605
	int			error;	/* error return value */
605
	int			error;	/* error return value */
606
	int			i;	/* loop index */
606
	int			i = 0;	/* loop index */
607
	xfs_alloc_key_t		key;	/* key value being inserted */
607
	xfs_alloc_key_t		key;	/* key value being inserted */
608
	xfs_alloc_key_t		*kp;	/* pointer to btree keys */
608
	xfs_alloc_key_t		*kp;	/* pointer to btree keys */
609
	xfs_agblock_t		nbno;	/* block number of allocated block */
609
	xfs_agblock_t		nbno;	/* block number of allocated block */
Lines 2035-2041 Link Here
2035
	int		*stat)		/* success/failure */
2035
	int		*stat)		/* success/failure */
2036
{
2036
{
2037
	int		error;		/* error return value */
2037
	int		error;		/* error return value */
2038
	int		i;		/* result value, 0 for failure */
2038
	int		i = 0;		/* result value, 0 for failure */
2039
	int		level;		/* current level number in btree */
2039
	int		level;		/* current level number in btree */
2040
	xfs_agblock_t	nbno;		/* new block number (split result) */
2040
	xfs_agblock_t	nbno;		/* new block number (split result) */
2041
	xfs_btree_cur_t	*ncur;		/* new cursor (split result) */
2041
	xfs_btree_cur_t	*ncur;		/* new cursor (split result) */
(-)/usr/src/sys/gnu/fs/xfs/xfs_bmap_btree.c (-4 / +4 lines)
Lines 744-757 Link Here
744
#ifdef XFS_BMBT_TRACE
744
#ifdef XFS_BMBT_TRACE
745
	static char		fname[] = "xfs_bmbt_insrec";
745
	static char		fname[] = "xfs_bmbt_insrec";
746
#endif
746
#endif
747
	int			i;		/* loop index */
747
	int			i = 0;		/* loop index */
748
	xfs_bmbt_key_t		key;		/* bmap btree key */
748
	xfs_bmbt_key_t		key;		/* bmap btree key */
749
	xfs_bmbt_key_t		*kp=NULL;	/* pointer to bmap btree key */
749
	xfs_bmbt_key_t		*kp=NULL;	/* pointer to bmap btree key */
750
	int			logflags;	/* inode logging flags */
750
	int			logflags = 0;	/* inode logging flags */
751
	xfs_fsblock_t		nbno;		/* new block number */
751
	xfs_fsblock_t		nbno;		/* new block number */
752
	struct xfs_btree_cur	*ncur;		/* new btree cursor */
752
	struct xfs_btree_cur	*ncur;		/* new btree cursor */
753
	xfs_bmbt_key_t		nkey;		/* new btree key value */
753
	xfs_bmbt_key_t		nkey;		/* new btree key value */
754
	xfs_bmbt_rec_t		nrec;		/* new record count */
754
	xfs_bmbt_rec_t		nrec = {};	/* new record count */
755
	int			optr;		/* old key/record index */
755
	int			optr;		/* old key/record index */
756
	xfs_bmbt_ptr_t		*pp;		/* pointer to bmap block addr */
756
	xfs_bmbt_ptr_t		*pp;		/* pointer to bmap block addr */
757
	int			ptr;		/* key/record index */
757
	int			ptr;		/* key/record index */
Lines 2171-2177 Link Here
2171
#ifdef XFS_BMBT_TRACE
2171
#ifdef XFS_BMBT_TRACE
2172
	static char	fname[] = "xfs_bmbt_insert";
2172
	static char	fname[] = "xfs_bmbt_insert";
2173
#endif
2173
#endif
2174
	int		i;
2174
	int		i = 0;
2175
	int		level;
2175
	int		level;
2176
	xfs_fsblock_t	nbno;
2176
	xfs_fsblock_t	nbno;
2177
	xfs_btree_cur_t	*ncur;
2177
	xfs_btree_cur_t	*ncur;
(-)/usr/src/sys/kern/sched_ule.c (-5 / +5 lines)
Lines 615-621 Link Here
615
	cpuset_t cpumask;
615
	cpuset_t cpumask;
616
	struct cpu_group *child;
616
	struct cpu_group *child;
617
	struct tdq *tdq;
617
	struct tdq *tdq;
618
	int cpu, i, hload, lload, load, total, rnd, *rndptr;
618
	int cpu, i, hload, lload, load = 0, total, rnd, *rndptr;
619
619
620
	total = 0;
620
	total = 0;
621
	cpumask = cg->cg_mask;
621
	cpumask = cg->cg_mask;
Lines 742-748 Link Here
742
sched_lowest(const struct cpu_group *cg, cpuset_t mask, int pri, int maxload,
742
sched_lowest(const struct cpu_group *cg, cpuset_t mask, int pri, int maxload,
743
    int prefer)
743
    int prefer)
744
{
744
{
745
	struct cpu_search low;
745
	struct cpu_search low = {};
746
746
747
	low.cs_cpu = -1;
747
	low.cs_cpu = -1;
748
	low.cs_prefer = prefer;
748
	low.cs_prefer = prefer;
Lines 759-765 Link Here
759
static inline int
759
static inline int
760
sched_highest(const struct cpu_group *cg, cpuset_t mask, int minload)
760
sched_highest(const struct cpu_group *cg, cpuset_t mask, int minload)
761
{
761
{
762
	struct cpu_search high;
762
	struct cpu_search high = {};
763
763
764
	high.cs_cpu = -1;
764
	high.cs_cpu = -1;
765
	high.cs_mask = mask;
765
	high.cs_mask = mask;
Lines 775-782 Link Here
775
static inline void
775
static inline void
776
sched_both(const struct cpu_group *cg, cpuset_t mask, int *lowcpu, int *highcpu)
776
sched_both(const struct cpu_group *cg, cpuset_t mask, int *lowcpu, int *highcpu)
777
{
777
{
778
	struct cpu_search high;
778
	struct cpu_search high = {};
779
	struct cpu_search low;
779
	struct cpu_search low = {};
780
780
781
	low.cs_cpu = -1;
781
	low.cs_cpu = -1;
782
	low.cs_prefer = -1;
782
	low.cs_prefer = -1;
(-)/usr/src/sys/x86/x86/mca.c (-1 / +1 lines)
Lines 563-569 Link Here
563
static int
563
static int
564
mca_scan(enum scan_mode mode)
564
mca_scan(enum scan_mode mode)
565
{
565
{
566
	struct mca_record rec;
566
	struct mca_record rec = {};
567
	uint64_t mcg_cap, ucmask;
567
	uint64_t mcg_cap, ucmask;
568
	int count, i, recoverable, valid;
568
	int count, i, recoverable, valid;
569
569
(-)/usr/src/sys/dev/acpica/acpi_perf.c (-1 / +1 lines)
Lines 424-430 Link Here
424
acpi_px_available(struct acpi_perf_softc *sc)
424
acpi_px_available(struct acpi_perf_softc *sc)
425
{
425
{
426
	ACPI_STATUS status;
426
	ACPI_STATUS status;
427
	struct cf_setting set;
427
	struct cf_setting set = {};
428
428
429
	status = acpi_GetInteger(sc->handle, "_PPC", &sc->px_max_avail);
429
	status = acpi_GetInteger(sc->handle, "_PPC", &sc->px_max_avail);
430
430
(-)/usr/src/sys/kern/vfs_syscalls.c (-1 / +1 lines)
Lines 642-648 Link Here
642
		int flags;
642
		int flags;
643
	} */ *uap;
643
	} */ *uap;
644
{
644
{
645
	struct statfs *buf, *sp;
645
	struct statfs *buf = NULL, *sp;
646
	struct ostatfs osb;
646
	struct ostatfs osb;
647
	size_t count, size;
647
	size_t count, size;
648
	int error;
648
	int error;
(-)/usr/src/sys/kern/vfs_vnops.c (-1 / +1 lines)
Lines 1468-1474 Link Here
1468
	struct vattr va;
1468
	struct vattr va;
1469
	daddr_t bn, bnp;
1469
	daddr_t bn, bnp;
1470
	uint64_t bsize;
1470
	uint64_t bsize;
1471
	off_t noff;
1471
	off_t noff = 0;
1472
	int error;
1472
	int error;
1473
1473
1474
	KASSERT(cmd == FIOSEEKHOLE || cmd == FIOSEEKDATA,
1474
	KASSERT(cmd == FIOSEEKHOLE || cmd == FIOSEEKDATA,

Return to bug 168979