Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp903183ybe; Fri, 6 Sep 2019 09:01:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqzyGcSnsmfam7IpIC8XkY8CoQxziTYRD5Jw+B1v2IFmAoVtXopaGyG9LkDPCURtFyRJeFHm X-Received: by 2002:a65:6795:: with SMTP id e21mr8513795pgr.428.1567785670011; Fri, 06 Sep 2019 09:01:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567785670; cv=none; d=google.com; s=arc-20160816; b=gOV+KUaNKccYGTSNJlKdI2ITERxHkuJu51X90XpmLXp7Gj69JQOw7CNcmQzFIcNRHR GnxlcefnZTMtIa3INQRUl4yzAnX642wcyEDU2xTLqNw1CcMUTJuZBtC5HATGKB/J5fuw WfYsZLR3kMA4ZlTcePQz08r+WJtDTSR+kSQFAcqOIS03KtDUrRejIeWda+rTY5TZFiJ0 Hq+usCrGke65EO9werRntXY0OKZRtcUWDzpoE5wuWWZ2BBZLLByey7eobEb7dTIqAOKO l35imshikvZ4N+PKNX/nXAZMLZPYnbC9rkHLpLkUTvvBJC8RPkZB+k9GO4n8qIhwWjfc oL2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=JoL3DxAI14wfKvDE2lao2wRTOd7j6ppUU8hiD1MwWEU=; b=04gB6cAmhiM42QUqqHlVE5fozTDJqcoqfs5THmmVk/1ImFFyIzXu1Y8b0bNwgLUKrL aXDy6CH5UpOP5x5P/UaZidpcC/TEhp0zcoy+0RdL/mQg3LdE6cNbdSRY+SXC1PZRqAPQ r1GncDm5rnmak200OEq8jGrAU+kFu5vOykOeIrpLZ35C53m5QCh/oQqXE9COSztCjrHj sYg9bokpHQ55bDmswzYb5tLX6qGEXHdR3N8Dok0KvPKWOiq2jld8+V8fq1SsHfP1o4kD jr+e652e8bDtGwY9SE+9zlXd2lJoNIs3Yv/lx5AHR6dfqHGcCTW2X/blpichhQeloTmG /LxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XC7BjD4h; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w10si4737892pgr.212.2019.09.06.09.00.53; Fri, 06 Sep 2019 09:01:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XC7BjD4h; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390798AbfIFKvQ (ORCPT + 99 others); Fri, 6 Sep 2019 06:51:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:36898 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725946AbfIFKvP (ORCPT ); Fri, 6 Sep 2019 06:51:15 -0400 Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com [209.85.208.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D51F7214E0; Fri, 6 Sep 2019 10:51:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567767075; bh=F40/vyERzL2PLT+u7CNuLPRmvSEYRMi6jl/F1YioOow=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=XC7BjD4hpWNrKK1pOpCRX02SjWQJCOK5gbUvFoli/8DoHFwcrigpVQp1QjIv24WpF 3hJfKMDgOn65XmIZDcVCGO/8Sr3r8YzUkIFTLavQgHRoyJu9StYgFHDfQQAjBcVc19 ARQKYejAHq4EGjxZetUnrB+vwDkoilM7UE3eDMcE= Received: by mail-lj1-f173.google.com with SMTP id x18so5611106ljh.1; Fri, 06 Sep 2019 03:51:14 -0700 (PDT) X-Gm-Message-State: APjAAAUh3hVUqSUtvNoPL9Hvk3wMzH3mgRGf+L8EaQysZkHZ9arQVoot jxTyhOuiAabRMC2SAg8vm0gG6SQ1YA731I0QBIk= X-Received: by 2002:a2e:8785:: with SMTP id n5mr1760238lji.210.1567767072972; Fri, 06 Sep 2019 03:51:12 -0700 (PDT) MIME-Version: 1.0 References: <20190906101344.3535-1-l.luba@partner.samsung.com> <20190906101344.3535-2-l.luba@partner.samsung.com> In-Reply-To: <20190906101344.3535-2-l.luba@partner.samsung.com> From: Krzysztof Kozlowski Date: Fri, 6 Sep 2019 12:51:01 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/3] memory: Exynos5422: minor fixes in DMC To: Lukasz Luba Cc: devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , linux-pm@vger.kernel.org, "linux-samsung-soc@vger.kernel.org" , linux-arm-kernel@lists.infradead.org, =?UTF-8?B?QmFydMWCb21pZWogxbtvxYJuaWVya2lld2ljeg==?= , kgene@kernel.org, mark.rutland@arm.com, robh+dt@kernel.org, Chanwoo Choi , kyungmin.park@samsung.com, Marek Szyprowski , s.nawrocki@samsung.com, myungjoo.ham@samsung.com, willy.mh.wolff.ml@gmail.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 6 Sep 2019 at 12:14, Lukasz Luba wrote: > > Small fixes captured by static analyzes. Explain please what are the errors being fixed. Additionally error message from tool might be useful. Also: Reported-by: Krzysztof Kozlowski Best regards, Krzysztof > Signed-off-by: Lukasz Luba > --- > drivers/memory/samsung/exynos5422-dmc.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/memory/samsung/exynos5422-dmc.c b/drivers/memory/samsung/exynos5422-dmc.c > index 8c2ec29a7d57..a809fa997c03 100644 > --- a/drivers/memory/samsung/exynos5422-dmc.c > +++ b/drivers/memory/samsung/exynos5422-dmc.c > @@ -269,7 +269,7 @@ static int exynos5_init_freq_table(struct exynos5_dmc *dmc, > return 0; > > err_free_tables: > - kfree(dmc->opp); > + devm_kfree(dmc->dev, dmc->opp); > err_opp: > dev_pm_opp_of_remove_table(dmc->dev); > > @@ -732,7 +732,7 @@ static struct devfreq_dev_profile exynos5_dmc_df_profile = { > * statistics engine which supports only registered values. Thus, some alignment > * must be made. > */ > -unsigned long > +static unsigned long > exynos5_dmc_align_init_freq(struct exynos5_dmc *dmc, > unsigned long bootloader_init_freq) > { > -- > 2.17.1 >