Re: [PATCH v3 1/2] memory: samsung: exynos5422-dmc: Fix kfree() of devm-allocated memory and missing static

From: Krzysztof Kozlowski
Date: Thu Sep 19 2019 - 14:19:52 EST


On Thu, Sep 19, 2019 at 11:26:40AM +0200, Lukasz Luba wrote:
> Fix issues captured by static checkers: used kfree() and missing 'static'
> in the private function.
>
> Fixes Smatch warning:
> drivers/memory/samsung/exynos5422-dmc.c:272
> exynos5_init_freq_table() warn: passing devm_ allocated variable to kfree. 'dmc->opp'
>
> Fixes Sparse warning:
> drivers/memory/samsung/exynos5422-dmc.c:736:1:
> warning: symbol 'exynos5_dmc_align_init_freq' was not declared.
>
> Reported-by: kbuild test robot <lkp@xxxxxxxxx>
> Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
> Reported-by: Krzysztof Kozlowski <krzk@xxxxxxxxxx>
> Signed-off-by: Lukasz Luba <l.luba@xxxxxxxxxxxxxxxxxxx>
> ---
> drivers/memory/samsung/exynos5422-dmc.c | 6 ++----

Thanks, applied.

Best regards,
Krzysztof