From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752175AbcFKQ6G (ORCPT ); Sat, 11 Jun 2016 12:58:06 -0400 Received: from saturn.retrosnub.co.uk ([178.18.118.26]:52467 "EHLO saturn.retrosnub.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751486AbcFKQ6E (ORCPT ); Sat, 11 Jun 2016 12:58:04 -0400 Subject: Re: [PATCH] staging: iio: fix ad7606_spi regression To: Geert Uytterhoeven , Arnd Bergmann References: <1464616249-3523805-1-git-send-email-arnd@arndb.de> Cc: Lars-Peter Clausen , Greg Kroah-Hartman , Ksenija Stanojevic , Michael Hennerich , Hartmut Knaack , Peter Meerwald-Stadler , Ioana Ciornei , Daniel Baluta , linux-iio@vger.kernel.org, driverdevel , "linux-kernel@vger.kernel.org" From: Jonathan Cameron Message-ID: <0e594d6f-d228-030c-7670-3a40459c6ab9@kernel.org> Date: Sat, 11 Jun 2016 17:58:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30/05/16 14:54, Geert Uytterhoeven wrote: > On Mon, May 30, 2016 at 3:50 PM, Arnd Bergmann wrote: >> As pointed out by Geert Uytterhoeven, the patch was incorrect >> and breaks the driver, which was fortunately pointed out by >> this gcc warning: >> >> drivers/staging/iio/adc/ad7606_spi.c: In function ‘ad7606_spi_read_block’: >> drivers/staging/iio/adc/ad7606_spi.c:34: warning: ‘data’ is used uninitialized in this function >> >> The effect of the patch is that the data is copied into >> a random memory location (from the uninitialized pointer) >> instead of being byteswapped in place. >> >> This adds the initialization for the 'data' variable back >> to restore the original behavior. >> >> Cc: Geert Uytterhoeven >> Cc: Ksenija Stanojevic >> Fixes: 87787e5ef727 ("Staging: iio: Fix sparse endian warning") >> Signed-off-by: Arnd Bergmann > > Acked-by: Geert Uytterhoeven Applied to the fixes-togreg branch of iio.git Thanks, Jonathan > > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds >