Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Nov 2014 06:34:56 -0800
From:      David Wolfskill <david@catwhisker.org>
To:        current@freebsd.org
Cc:        smh@freebsd.org
Subject:   Problem with r274819?  asr_timeout() not found
Message-ID:  <20141122143456.GU31571@albert.catwhisker.org>

next in thread | raw e-mail | index | archive | help

--rpOPesfUXqAMaEty
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Running:
FreeBSD g1-253.catwhisker.org 11.0-CURRENT FreeBSD 11.0-CURRENT #1434  r274=
790M/274790:1100047: Fri Nov 21 06:07:24 PST 2014     root@g1-253.catwhiske=
r.org:/common/S4/obj/usr/src/sys/CANARY  i386


Updated sources to r274845; "make buildworld" is OK, but "make buildkernel":

=2E..
>>> stage 3.2: building everything
=2E..
=3D=3D=3D> asr (all)
--- asr.o ---
--- all_subdir_asmc ---
ctfconvert -L VERSION -g asmc.o
--- all_subdir_asr ---
clang -O2 -pipe  -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostd=
inc   -DHAVE_KERNEL_OPTION_HEADERS -include /common/S4/obj/usr/src/sys/GENE=
RIC/opt_global.h -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -fno-common=
 -g -I/common/S4/obj/usr/src/sys/GENERIC  -mno-mmx -mno-sse -msoft-float -f=
freestanding -fstack-protector -gdwarf-2 -mno-aes -mno-avx -Qunused-argumen=
ts -std=3Diso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-e=
xterns -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -=
Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions  -Wmissing-includ=
e-dirs -fdiagnostics-show-option  -Wno-error-tautological-compare -Wno-erro=
r-empty-body  -Wno-error-parentheses-equality -Wno-error-unused-function -W=
no-array-bounds  -mno-aes -mno-avx -Qunused-arguments -c /usr/src/sys/modul=
es/asr/../../dev/asr/asr.c
--- all_subdir_asmc ---
--- asmc.kld ---
ld -d -warn-common -r -d -o asmc.kld asmc.o
ctfmerge -L VERSION -g -o asmc.kld asmc.o
:> export_syms
awk -f /usr/src/sys/conf/kmod_syms.awk asmc.kld  export_syms | xargs -J% ob=
jcopy % asmc.kld
--- asmc.ko.debug ---
ld -Bshareable -d -warn-common -o asmc.ko.debug asmc.kld
--- asmc.ko.symbols ---
objcopy --only-keep-debug asmc.ko.debug asmc.ko.symbols
--- all_subdir_asr ---
/usr/src/sys/modules/asr/../../dev/asr/asr.c:393:15: error: use of undeclar=
ed identifier 'asr_timeout'
        ch =3D timeout(asr_timeout, (caddr_t)ccb,
                     ^
1 error generated.
--- all_subdir_asmc ---
--- asmc.ko ---
--- all_subdir_asr ---
*** [asr.o] Error code 1

bmake: stopped in /usr/src/sys/modules/asr
1 error

bmake: stopped in /usr/src/sys/modules/asr
--- all_subdir_asmc ---
objcopy --strip-debug --add-gnu-debuglink=3Dasmc.ko.symbols asmc.ko.debug a=
smc.ko
--- all_subdir_asr ---
*** [all_subdir_asr] Error code 2

bmake: stopped in /usr/src/sys/modules
--- all_subdir_asmc ---
A failure has been detected in another branch of the parallel make

bmake: stopped in /usr/src/sys/modules/asmc
*** [all_subdir_asmc] Error code 2

bmake: stopped in /usr/src/sys/modules
--- all_subdir_arcmsr ---
ctfconvert -L VERSION -g arcmsr.o
A failure has been detected in another branch of the parallel make

bmake: stopped in /usr/src/sys/modules/arcmsr
*** [all_subdir_arcmsr] Error code 2

bmake: stopped in /usr/src/sys/modules
--- all_subdir_aic7xxx ---
--- aic79xx.o ---
ctfconvert -L VERSION -g aic79xx.o
A failure has been detected in another branch of the parallel make

bmake: stopped in /usr/src/sys/modules/aic7xxx/ahd
*** [_sub.all] Error code 2

bmake: stopped in /usr/src/sys/modules/aic7xxx
1 error

bmake: stopped in /usr/src/sys/modules/aic7xxx
*** [all_subdir_aic7xxx] Error code 2

bmake: stopped in /usr/src/sys/modules
4 errors

bmake: stopped in /usr/src/sys/modules
*** [modules-all] Error code 2

bmake: stopped in /common/S4/obj/usr/src/sys/GENERIC
1 error

bmake: stopped in /common/S4/obj/usr/src/sys/GENERIC
*** [buildkernel] Error code 2

bmake: stopped in /usr/src
1 error

bmake: stopped in /usr/src
*** [buildkernel] Error code 2

make: stopped in /usr/src
1 error

make: stopped in /usr/src
freebeast(11.0-C)[3]=20


And r274819 did:

Index: asr.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- asr.c	(revision 274818)
+++ asr.c	(revision 274819)
@@ -386,8 +386,12 @@
 	STAILQ_HEAD_INITIALIZER(Asr_softc_list);
=20
 static __inline void
-set_ccb_timeout_ch(union asr_ccb *ccb, struct callout_handle ch)
+set_ccb_timeout_ch(union asr_ccb *ccb)
 {
+	struct callout_handle ch;
+
+	ch =3D timeout(asr_timeout, (caddr_t)ccb,
+	    (int)((u_int64_t)(ccb->ccb_h.timeout) * (u_int32_t)hz / 1000));
 	ccb->ccb_h.sim_priv.entries[0].ptr =3D ch.callout;
 }
=20
@@ -812,8 +816,7 @@
 			 */
 			ccb->ccb_h.timeout =3D 6 * 60 * 1000;
 		}
-		set_ccb_timeout_ch(ccb, timeout(asr_timeout, (caddr_t)ccb,
-		  (ccb->ccb_h.timeout * hz) / 1000));
+		set_ccb_timeout_ch(ccb);
 	}
 	splx(s);
 } /* ASR_ccbAdd */
@@ -1337,9 +1340,7 @@
 		  cam_sim_unit(xpt_path_sim(ccb->ccb_h.path)), s);
 		if (ASR_reset (sc) =3D=3D ENXIO) {
 			/* Try again later */
-			set_ccb_timeout_ch(ccb, timeout(asr_timeout,
-			  (caddr_t)ccb,
-			  (ccb->ccb_h.timeout * hz) / 1000));
+			set_ccb_timeout_ch(ccb);
 		}
 		return;
 	}
@@ -1353,9 +1354,7 @@
 	if ((ccb->ccb_h.status & CAM_STATUS_MASK) =3D=3D CAM_CMD_TIMEOUT) {
 		debug_asr_printf (" AGAIN\nreinitializing adapter\n");
 		if (ASR_reset (sc) =3D=3D ENXIO) {
-			set_ccb_timeout_ch(ccb, timeout(asr_timeout,
-			  (caddr_t)ccb,
-			  (ccb->ccb_h.timeout * hz) / 1000));
+			set_ccb_timeout_ch(ccb);
 		}
 		splx(s);
 		return;
@@ -1364,8 +1363,7 @@
 	/* If the BUS reset does not take, then an adapter reset is next! */
 	ccb->ccb_h.status &=3D ~CAM_STATUS_MASK;
 	ccb->ccb_h.status |=3D CAM_CMD_TIMEOUT;
-	set_ccb_timeout_ch(ccb, timeout(asr_timeout, (caddr_t)ccb,
-	  (ccb->ccb_h.timeout * hz) / 1000));
+	set_ccb_timeout_ch(ccb);
 	ASR_resetBus (sc, cam_sim_bus(xpt_path_sim(ccb->ccb_h.path)));
 	xpt_async (AC_BUS_RESET, ccb->ccb_h.path, NULL);
 	splx(s);

Maybe something was omitted from the commit?

Peace,
david
--=20
David H. Wolfskill				david@catwhisker.org
Taliban: Evil cowards with guns afraid of truth from a 14-year old girl.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.

--rpOPesfUXqAMaEty
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQJ8BAEBCgBmBQJUcJ8QXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4RThEMDY4QTIxMjc1MDZFRDIzODYzRTc4
QTY3RjlDOERFRjQxOTNCAAoJEIpn+cje9Bk7ph4QAIpIr/9Rh++OCdCf85yRP2xu
zoq25VlhqtZV5qwdfig9CqtEQnAwv7LykKdjMGd+kyE8KJkzUaBM5cUw6cCrqpQM
EinzWW118lhLa7ZY93st/1VtqUPoVcu5lZsgOHQSiR4sFj0u5Y/1yTGPcCCIuLst
N5S/hd7wWtExpU99m50Ytg7QLDg+XVXz0qlQ/teGVJWtWP1sWOmKBx0iw/vqY0US
XomTQHRoUF5xjx/COr2qeLeqqTSFhI6r8MrmcBWQrWHBnXGRMjUQskyA0dNQXbTE
q9krzKgXGmkG1BlLcCFA2RZBN89J7wW+zx75mhFHrVpf2A0H689fh94ccAG5oUKu
p8O1Izk0qj2jP5EACWe5e9lWcssR/oIl8wsYC8Zww/k9bp4DHZ3mFHFEcGxX7tn6
oYLkqQviwZ+L29waA2yHAFN+1oUw0kA5SSjnKte3QreOpL4ql0PGL00qtjpuKjgz
xLLV30qy5J0oLN9cZ0djMW3OqSs57M/viFbj3jI68FGl12VX1DqBdNCEsUwCmx2/
xLFFTL/sfr5hDXlnGNHmj8m3HKyLzQNyFEx56/eAIKokdaQGaBLh3DwWFFSmVZOH
ILjaNlKSJ4VZudMKu9yzJCJv5P/1GcWU4pHI6Srifqv6bRqHoOwkPXhKL2IAEx5I
ESHLvkwvuz1kmalF3JU9
=EtPQ
-----END PGP SIGNATURE-----

--rpOPesfUXqAMaEty--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141122143456.GU31571>