Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Aug 2013 12:44:46 -0400
From:      Glen Barber <gjb@FreeBSD.org>
To:        "Kenneth D. Merry" <ken@FreeBSD.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r254760 - in head: share/man/man4 sys/cam/scsi sys/kern sys/sys
Message-ID:  <20130824164446.GA41859@glenbarber.us>
In-Reply-To: <201308240452.r7O4qMji033904@svn.freebsd.org>
References:  <201308240452.r7O4qMji033904@svn.freebsd.org>

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

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

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
>=20

> [...]

> @@ -83,6 +113,17 @@ physio(struct cdev *dev, struct uio *uio
>  			 */
>  			iolen =3D ((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 d=
ifferent size [-Wpointer-to-int-cast]
*** Error code 1


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

Glen


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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (FreeBSD)

iQEcBAEBCAAGBQJSGOL+AAoJEFJPDDeguUajy7MIAI1S2l6dQY7IKsoYWwBrVpGx
BgdgJMcbNA2vD2ZORtcwe9j9blcXrfZ3AZPWrSky4xA3qFuEA5ryndyge5t3FeQR
UHXu7wK+aOM54RqvJajWawBpe3Abfvsa0NibNja8Ir9L7JCqI7QT28ss1d3P012E
CZ8p/hGT5ycT4hsSzNDfuYZLxsXpWSXyDg1cK0OCbWdLCVAtDtFBlu2EB5PTIg14
GlnlHj29oPFA2tSWsD9EdYpvuJFUeSWoAkhcP1hLOetAtQYVpvj/FxbyIU9Q4v7q
DJnR+1wA9eKnWDA06EM0nSVbsu9Fu253rLXiu2iTTviSFBZB8CNz/xDKoG8hotE=
=8VIY
-----END PGP SIGNATURE-----

--CPaaJmjEtnx7DmsZ--



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