[PATCH] staging/vc04_services: Use __user annotation for user-space pointers

Stefan Wahren
2018-07-30T09:34:28Z

Hi Carlos,

Am 30.07.2018 um 11:25 schrieb Carlos Maiolino:
> On Mon, Jul 30, 2018 at 11:13 AM, Stefan Wahren <stefan.wahren@i2se.com> wrote:
>> Hi Carlos,
>>
>>
>> Am 30.07.2018 um 11:08 schrieb Carlos Maiolino:
>>> On Mon, Jul 30, 2018 at 10:58 AM, Greg KH <greg@kroah.com> wrote:
>>>> On Tue, Jul 24, 2018 at 10:32:17AM +0200, Carlos Maiolino wrote:
>>>>> Fix several sparse warnings regarding different address space
>>>>> assignments, like example below, by properly annotating pointers
>>>>> expected to carry user space addresses.
>>>>>
>>>>> warning: incorrect type in argument 1 (different address spaces)
>>>>> Signed-off-by: Carlos Maiolino <cmaiolino28@gmail.com>
>>>>> ---
>>>> We need a blank line befor your signed-off-by line please.
>>>>
>>> Thanks, I'll resend, or do you prefer me to way until this get a review
>>> from
>>> the maintainer, and I resend the fixed description with the reviewed-by?
>>
>> did you test your patch via vchiq_test or something else?
>>
> Hi, no. Can you please point me where I can get it?
>
>

i think easiest the way would be to get a recent Raspbian Lite (
https://www.raspberrypi.org/downloads/raspbian/ ),
build the kernel with bcm2835_defconfig, modify config.txt to use the
upstream DTB, add the upstream kernel and DTB to boot partition.

The following command must be successful:

vchiq_test -f 1