Path: csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod From: Mark Brown Newsgroups: linux.kernel Subject: Re: [RFC PATCH] spi: omap2-mcspi: disable other channels CHCONF_FORCE in prepare_message Date: Fri, 09 Oct 2015 13:40:02 +0200 Message-ID: References: X-Original-To: Michael Welling MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="RYJh/3oyKhIjGcML" Content-Disposition: inline X-Cookie: When in doubt, follow your heart. User-Agent: Mutt/1.5.23 (2014-03-12) X-Sa-Exim-Connect-IP: 37.228.227.108 X-Sa-Exim-Mail-From: broonie@sirena.org.uk X-Sa-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-Sa-Exim-Scanned: Yes (on mezzanine.sirena.org.uk) Sender: robomod@news.nic.it List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Approved: robomod@news.nic.it Lines: 40 Organization: linux.* mail to news gateway X-Original-Cc: Neil Armstrong , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, Fionn Cleary , Wolfram Sang , Jarkko Nikula , Sebastian Reichel X-Original-Date: Fri, 9 Oct 2015 12:38:10 +0100 X-Original-Message-ID: <20151009113810.GD1542@sirena.org.uk> X-Original-References: <5616816C.9020904@baylibre.com> <20151008152105.GA13157@deathstar> X-Original-Sender: linux-kernel-owner@vger.kernel.org Xref: csiph.com linux.kernel:1243275 --RYJh/3oyKhIjGcML Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Oct 08, 2015 at 10:21:05AM -0500, Michael Welling wrote: > On Thu, Oct 08, 2015 at 04:45:00PM +0200, Neil Armstrong wrote: > What is the point of doing this void cast below? > Avoiding compiler warning perhaps? > Perhaps you can __maybe_unused for the variable instead? > > + /* Ignore message */ > > + (void)msg; You shouldn't need it at all, but yes if there is a good reason to mark something as unused the above annotation is better. --RYJh/3oyKhIjGcML Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJWF6ceAAoJECTWi3JdVIfQhu0H/1FDpvUzRN/1RKPDcCx6I7j4 cfhgRobdgd8tMVOuY/ibbXZlxwvFfRBTpyINHiYaqQ4WwZY0FRW9m/l+8YDdPPVg BUUQKWleYl8wFnzKsn7S8dI5+8An42YNBCLHDSI6uMfcEmpQOIkPlyEqvzk9TxJI o0R2Hx8vozKlW5XPAnIJie+mf6mqcp3Ywc+zRfgU8puq+RTVwnZ2XWGZ+yhe0AvG uMtdTVpg/V5+2cFQBNLR8Fd2HCNu63McTkjrie4iBblDsXTnq3DR4umc0lyU8HM1 fO27Hx3ipmo92QLDhClNh5itH2H+5kF05cXNqVv46C1c+9XnSks3zpGpVSKGjw0= =Gj0y -----END PGP SIGNATURE----- --RYJh/3oyKhIjGcML-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/