From mboxrd@z Thu Jan 1 00:00:00 1970 From: Geert Uytterhoeven Subject: Re: [PATCH v2 16/40] m68k/uaccess: fix sparse errors Date: Wed, 7 Jan 2015 11:38:43 +0100 Message-ID: References: <1420558883-10131-1-git-send-email-mst@redhat.com> <1420558883-10131-17-git-send-email-mst@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: In-Reply-To: <1420558883-10131-17-git-send-email-mst@redhat.com> Sender: linux-kernel-owner@vger.kernel.org To: "Michael S. Tsirkin" Cc: "linux-kernel@vger.kernel.org" , Arnd Bergmann , Linux-Arch , Linux/m68k List-Id: linux-arch.vger.kernel.org On Tue, Jan 6, 2015 at 4:44 PM, Michael S. Tsirkin wrote: > virtio wants to read bitwise types from userspace using get_user. At the > moment this triggers sparse errors, since the value is passed through an > integer. > > Fix that up using __force. > > Signed-off-by: Michael S. Tsirkin Acked-by: Geert Uytterhoeven 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-la0-f42.google.com ([209.85.215.42]:40823 "EHLO mail-la0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751158AbbAGKir (ORCPT ); Wed, 7 Jan 2015 05:38:47 -0500 MIME-Version: 1.0 In-Reply-To: <1420558883-10131-17-git-send-email-mst@redhat.com> References: <1420558883-10131-1-git-send-email-mst@redhat.com> <1420558883-10131-17-git-send-email-mst@redhat.com> Date: Wed, 7 Jan 2015 11:38:43 +0100 Message-ID: Subject: Re: [PATCH v2 16/40] m68k/uaccess: fix sparse errors From: Geert Uytterhoeven Content-Type: text/plain; charset=UTF-8 Sender: linux-arch-owner@vger.kernel.org List-ID: To: "Michael S. Tsirkin" Cc: "linux-kernel@vger.kernel.org" , Arnd Bergmann , Linux-Arch , Linux/m68k Message-ID: <20150107103843.zhdY0_bXqkyERvLV01uN3M3U6KJh370qI6WzcXTtwog@z> On Tue, Jan 6, 2015 at 4:44 PM, Michael S. Tsirkin wrote: > virtio wants to read bitwise types from userspace using get_user. At the > moment this triggers sparse errors, since the value is passed through an > integer. > > Fix that up using __force. > > Signed-off-by: Michael S. Tsirkin Acked-by: Geert Uytterhoeven 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