Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753008AbcKAQjK (ORCPT ); Tue, 1 Nov 2016 12:39:10 -0400 Received: from anholt.net ([50.246.234.109]:46764 "EHLO anholt.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752303AbcKAQis (ORCPT ); Tue, 1 Nov 2016 12:38:48 -0400 From: Eric Anholt To: Michael Zoran , gregkh@linuxfoundation.org Cc: swarren@wwwdotorg.org, lee@kernel.org, mzoran@crowfest.net, daniels@collabora.com, noralf@tronnes.org, weiyongjun1@huawei.com, popcornmix@gmail.com, bhumirks@gmail.com, stefan.wahren@i2se.com, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: vc04_services: parse_rx_slots() - Fix compiler warning In-Reply-To: <20161101152114.19394-1-mzoran@crowfest.net> References: <20161101152114.19394-1-mzoran@crowfest.net> User-Agent: Notmuch/0.22.2+1~gb0bcfaa (http://notmuchmail.org) Emacs/24.5.1 (x86_64-pc-linux-gnu) Date: Tue, 01 Nov 2016 09:38:45 -0700 Message-ID: <87k2cni296.fsf@eliezer.anholt.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1786 Lines: 48 --=-=-= Content-Type: text/plain Michael Zoran writes: > vc04_services contains a debug logging mechanism. The log is > maintained in a shared memory area between the kernel and the > firmware. Changing the sizes of the data in this area would > require a firmware change which is distributed independently > from the kernel binary. > > One of the items logged is the address of received messages. > This address is a pointer, but the debugging slot used to store > the information is a 32 bit integer. > > Luckily, this value is never interpreted by anything other > then debug tools and it is expected that a human debugging > the kernel interpret it. > > This change adds a cast to long before the original cast > to int to silence the warning. > > Signed-off-by: Michael Zoran Thanks for sorting this out. Reviewed-by: Eric Anholt --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJYGMUVAAoJELXWKTbR/J7oMGgP/0HV3oVwp3FxJBaU05qbquEY Nhvm3pudMHAs/Kd6l6UlgSyrfXMrI0zh2/wd/0efjCrl5BZU8rDEl688yU8AIBe7 CgSIXXWNcurUaYSv5Vjl3ShxaQnrYF7NFImIHT+AvhsKsWEyLAioQm4vDeuzG9HK LLkV2boI3DdzW2uhTcmEhRhiILgEJ4TB0AuU5tmYngiw6VTEhllkR+A5W1l/PkGS hdLSEB0lX2b7o8svwL1XnC2Gd7p05OnaTXxkID/aWtNQcq4OJP2wXe3qfDl17rra 2VgQx6wg4kjwpqOecsqeR6G+gtSRdOHsfeJV5FCmJQ94bGfFV9uha/KYT4R3I4Ey 97/2sFD0e/r7zdmMHoHmo8HGhUmFqDiSJu5PIdbAe7X8f1lpxTwRvwXbe8Z+Ehlk YSGpvI/0n5DgrFwDXvGV4hL+JQbDsEnE9WLtPcEnPd+3NBjo0/3Fm8d943+5QVHv ntBF71Qda1HUo+OxD4BVHG7jrAzui4/1jml90DSsnYuZ5RHe5KLbELxipV8Prk0u J87uuAvDzTjy2NQLx1Jc2vwaqvFrp85Y+hMJYfTa4rG8pAiEhVKCDOKKbOCm2SWb m6Pk3hQeUm9DEVJkJsqSp0+4T9U4vj+8zE3SBUCjHdWcSm1PWMArimXHgO977b2W bWpoRpCIy8vBpXQKrfrR =ybQi -----END PGP SIGNATURE----- --=-=-=--