Building ktr(4)-enabled ARM kernel results in error because of use of undefined variable Maxmem in _bus_dmamap_count_pages function. Fix: Apply the attached patch. Patch attached with submission follows: How-To-Repeat: Add "options KTR" to any ARM kernel config try building kernel.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sat, 15 Nov 2008 21:02:46 GMT Pankov Pavel <pankov_p@mail.ru> mentioned: > Building ktr(4)-enabled ARM kernel results in error because of use of undefined variable Maxmem in _bus_dmamap_count_pages function. Have you checked KTR works at all on ARM kernels? - -- Stanislav Sedov ST4096-RIPE -----BEGIN PGP SIGNATURE----- iEYEARECAAYFAkkf6NYACgkQK/VZk+smlYEt2QCdEFc9tg8xyKxzN66RFg5xE+9G PCYAnRfyo4kWugPNaEEyCH6o9SweU2/a =6nZH -----END PGP SIGNATURE-----
> Have you checked KTR works at all on ARM kernels? Yes, at least verbose and DDB modes work without any problems.
Responsible Changed From-To: freebsd-arm->stas I'll take it.
State Changed From-To: open->closed Committed. Thanks!
Author: stas Date: Sun Jan 18 11:43:23 2009 New Revision: 187385 URL: http://svn.freebsd.org/changeset/base/187385 Log: - Merge r185494: Get rid of unused variable in KTR checks. This allows ktr(4) enabled ARM kernel to compile. PR: rm/128897 Submitted by: Pankov Pavel <pankov_p@mail.ru> Modified: stable/7/sys/ (props changed) stable/7/sys/arm/arm/busdma_machdep.c stable/7/sys/contrib/pf/ (props changed) stable/7/sys/dev/ath/ath_hal/ (props changed) stable/7/sys/dev/cxgb/ (props changed) Modified: stable/7/sys/arm/arm/busdma_machdep.c ============================================================================== --- stable/7/sys/arm/arm/busdma_machdep.c Sun Jan 18 11:38:35 2009 (r187384) +++ stable/7/sys/arm/arm/busdma_machdep.c Sun Jan 18 11:43:23 2009 (r187385) @@ -671,9 +671,8 @@ _bus_dmamap_count_pages(bus_dma_tag_t dm bus_addr_t paddr; if ((map->pagesneeded == 0)) { - CTR4(KTR_BUSDMA, "lowaddr= %d Maxmem= %d, boundary= %d, " - "alignment= %d", dmat->lowaddr, ptoa((vm_paddr_t)Maxmem), - dmat->boundary, dmat->alignment); + CTR3(KTR_BUSDMA, "lowaddr= %d, boundary= %d, alignment= %d", + dmat->lowaddr, dmat->boundary, dmat->alignment); CTR2(KTR_BUSDMA, "map= %p, pagesneeded= %d", map, map->pagesneeded); /* _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"