lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK9yfHy3qV1b5c586ToHONBu3BQdkdM4hYbvJcofZ=kL70rZjA@mail.gmail.com>
Date:	Thu, 31 Jan 2013 13:39:59 +0530
From:	Sachin Kamat <sachin.kamat@...aro.org>
To:	Thierry Reding <thierry.reding@...onic-design.de>
Cc:	linux-kernel@...r.kernel.org, Vinod Koul <vinod.koul@...el.com>,
	Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: Re: [PATCH 1/1] dma: pl330: Convert to devm_ioremap_resource()

On 31 January 2013 12:58, Thierry Reding
<thierry.reding@...onic-design.de> wrote:
> On Thu, Jan 31, 2013 at 12:37:04PM +0530, Sachin Kamat wrote:
>> Use the newly introduced devm_ioremap_resource() instead of
>> devm_request_and_ioremap() which provides more consistent error handling.
>>
>> Signed-off-by: Sachin Kamat <sachin.kamat@...aro.org>
>> Cc: Vinod Koul <vinod.koul@...el.com>
>> Cc: Thierry Reding <thierry.reding@...onic-design.de>
>> Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
>> ---
>> This change is based against linux-next tree (20130128).
>> This change however introduces the followign sparse warning:
>> drivers/dma/pl330.c:2883:22: warning: incorrect type in argument 1 (different address spaces)
>> drivers/dma/pl330.c:2883:22:    expected void const *ptr
>> drivers/dma/pl330.c:2883:22:    got void [noderef] <asn:2>*base
>> drivers/dma/pl330.c:2884:34: warning: incorrect type in argument 1 (different address spaces)
>> drivers/dma/pl330.c:2884:34:    expected void const *ptr
>> drivers/dma/pl330.c:2884:34:    got void [noderef] <asn:2>*base
>
> Yes, those are false positives. They can be fixed with the two patches I
> posted a few hours ago, starting here:
>
>         https://lkml.org/lkml/2013/1/30/455

OK. That's great.
>
> Note that the first patch is against sparse. The problem, in a nutshell,
> is that sparse complains that the pointer address spaces and noderef
> attributes differ. In the case of the IS_ERR() function and friends the
> attributes aren't relevant because only the pointer value is only used
> arithmetically. Unfortunately there is no way you can cast away these
> attributes without causing other warnings, so the solution is somewhat
> more complex.

Thanks for the explaination.
However, is the patch for the dma relevant?


-- 
With warm regards,
Sachin
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ