Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753972AbbETUcB (ORCPT ); Wed, 20 May 2015 16:32:01 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:50048 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752821AbbETUb4 (ORCPT ); Wed, 20 May 2015 16:31:56 -0400 From: Arnd Bergmann To: Andrew Morton Cc: Dave Gordon , "Martin K. Petersen" , Akinobu Mita , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, jbottomley@odin.com Subject: Re: [PATCH] scsi: debug: fix type mismatch warning for sg_pcopy_from_buffer Date: Wed, 20 May 2015 22:31:45 +0200 Message-ID: <2386515.9NuRN4zp72@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20150520125329.d63f66765a552efa69a45038@linux-foundation.org> References: <6309932.EjHf7uUo1X@wuerfel> <20150520125329.d63f66765a552efa69a45038@linux-foundation.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:XDiIpkjdiXUxkbhVXq2z38P2rLc0Y8Mpg+08bntCz6gqSqGXxNp lUcBjMGMnUcaqUM2nz18VuWlTyQw+UWAhQBw5RVjRU/a6ei9MMYDQkaU0rrrnf65fv+/lV1 m4NKQxudWHzwFku1/EakBsx292cSFfBfPzn0+WEp/UDW3XAa7vmDFWnjW3DY75Ymt69CiiA dcWIEwS9eRDUzjw97YI5g== X-UI-Out-Filterresults: notjunk:1; Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1006 Lines: 22 On Wednesday 20 May 2015 12:53:29 Andrew Morton wrote: > On Tue, 19 May 2015 23:22:39 +0200 Arnd Bergmann wrote: > > > > I can't decide if this is actually a good idea, or if we should rather drop > > the sg_pcopy_from_buffer() patch. Maybe someone else sees a better solution. > > Could make do_device_access() call sg_copy_buffer() directly. > > But yes, dropping the sg_pcopy_from/to_buffer changes is reasonable. > sg_copy_buffer() is bidirectional and that won't be changing, so > putting constified wrapeprs around it is kinda fake. Ok. The part I only saw now is that do_device_access() is the only user of sg_pcopy_from_buffer(), so if that passes a non-const argument, there is dropping the patch will be teh best solution. Arnd -- 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/