svn commit: r254760 - in head: share/man/man4 sys/cam/scsi sys/kern sys/sys

Glen Barber gjb at FreeBSD.org
Sat Aug 24 16:44:50 UTC 2013


On Sat, Aug 24, 2013 at 04:52:22AM +0000, Kenneth D. Merry wrote:
> Author: ken
> Date: Sat Aug 24 04:52:22 2013
> New Revision: 254760
> URL: http://svnweb.freebsd.org/changeset/base/254760
> 

> [...]

> @@ -83,6 +113,17 @@ physio(struct cdev *dev, struct uio *uio
>  			 */
>  			iolen = ((vm_offset_t) bp->b_data) & PAGE_MASK;
>  			if ((bp->b_bcount + iolen) > bp->b_kvasize) {
> +				/*
> +				 * This device does not want I/O to be split.
> +				 */
> +				if (dev->si_flags & SI_NOSPLIT) {
> +					printf("%s: request ptr %#jx is not "
> +					    "on a page boundary, cannot split "
> +					    "request\n", devtoname(dev),
> +					    (uintmax_t)bp->b_data);

This breaks LINT for at least powerpc.

cc1: warnings being treated as errors
/src/sys/kern/kern_physio.c: In function 'physio':
/src/sys/kern/kern_physio.c:123: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
*** Error code 1


http://tinderbox.freebsd.org/tinderbox-head-build-HEAD-powerpc-powerpc.full

Glen

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20130824/7b94e270/attachment.sig>


More information about the svn-src-head mailing list