Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752999AbdHXOkn (ORCPT ); Thu, 24 Aug 2017 10:40:43 -0400 Received: from mail-io0-f181.google.com ([209.85.223.181]:37715 "EHLO mail-io0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751083AbdHXOkl (ORCPT ); Thu, 24 Aug 2017 10:40:41 -0400 Subject: Re: [PATCH 2/2] compat_hdio_ioctl: Fix a declaration To: Bart Van Assche , Al Viro Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org References: <20170823222911.29453-1-bart.vanassche@wdc.com> <20170823222911.29453-3-bart.vanassche@wdc.com> From: Jens Axboe Message-ID: <75d229f8-347f-417e-a101-a6994be073a6@kernel.dk> Date: Thu, 24 Aug 2017 08:40:39 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20170823222911.29453-3-bart.vanassche@wdc.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 804 Lines: 16 On 08/23/2017 04:29 PM, Bart Van Assche wrote: > This patch avoids that sparse reports the following warning messages: > > block/compat_ioctl.c:85:11: warning: incorrect type in assignment (different address spaces) > block/compat_ioctl.c:85:11: expected unsigned long *[noderef] p > block/compat_ioctl.c:85:11: got void [noderef] * > block/compat_ioctl.c:91:21: warning: incorrect type in argument 1 (different address spaces) > block/compat_ioctl.c:91:21: expected void const volatile [noderef] * > block/compat_ioctl.c:91:21: got unsigned long *[noderef] p > block/compat_ioctl.c:87:53: warning: dereference of noderef expression > block/compat_ioctl.c:91:21: warning: dereference of noderef expression Applied for 4.14, thanks Bart. -- Jens Axboe