Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp598310ybj; Thu, 19 Sep 2019 19:56:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCX+S8bStYkXmOjR54nFxwI9dc1wIab/eM0tNoHG2ZTlLK/XZvSKgF0bmJskPDj/6S7+vq X-Received: by 2002:a17:906:860d:: with SMTP id o13mr17049478ejx.284.1568948179938; Thu, 19 Sep 2019 19:56:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568948179; cv=none; d=google.com; s=arc-20160816; b=rFLENX8hsTjFUDYvvshvtxNCa4qmBKmgG0LvF9/aDZhm/JvqVpxli9i2gm+msVhgO3 6dP82xJ24IXfQMjFXf9KWzw5byb5Ajm7vjMDgcflhBFXUwOIvgyBAwOiF1HVcLjrPrgF bMcjIFM2wKajeOB5P/pAFKkE/h/a+UQhT/QW+QR0gmQJLZTcXC4p4nb9Q5QPEZQmxmEh xqEVXdJkSlLIYiMQf42LeEnUR176OaOYae/zna+RQKfV21oGDCLV/ZjP2fLCHUrShA0o Kn2ScQC3iU67TG+cIPswngsqWfGJx/D5Z83mWJ39s3Wj+C5TDe6GvsM8jPHzAX1VqeO7 J90g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=MS71DLSrsr/G7o0fTmBzjlmIBqxvb7B9GSSu+P2PwIg=; b=YnOOf99GThXg8j2G1D/HggSqskhenA2XTazU0gPxVrb1wdqyZuW8vQjYVeJ63NDzNe P4fSXZo+EmkVJpJvta9WbmuKqsytnjvYr0aEMqtAkpB+kFa2TKTORB8bIYi96chqgMgQ SVzlQhL/TMgj0UK+9ZLkw0OXRjVkgsUCz9NftQ+Ae0wPAsRpzMwvktQjMRN4sdNTaHK4 BgVvXuCO6qG9bFVXmK9XbRdaAPXgeNtYHijxuZiQam04/qE1SEpFiDF3i/x6XzL03dIH zX6pVHmqx1K93eKbcwnThFxiH+zDy1MpyoGUDvphlaasJ/Z8A2EbqRsC62y/DnhN3IgP IKxA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 f33si487756edb.281.2019.09.19.19.55.55; Thu, 19 Sep 2019 19:56:19 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389939AbfISSTu (ORCPT + 99 others); Thu, 19 Sep 2019 14:19:50 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:40305 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732834AbfISSTu (ORCPT ); Thu, 19 Sep 2019 14:19:50 -0400 Received: by mail-wm1-f65.google.com with SMTP id b24so5067975wmj.5; Thu, 19 Sep 2019 11:19:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=MS71DLSrsr/G7o0fTmBzjlmIBqxvb7B9GSSu+P2PwIg=; b=YKmIA7mwzgkNBcim+ksTsPSsUvBXIRGp6xbLUfNQRPe6d+MLjl8E9Tua6Q+5Wiu9Ws noze5nhH/uLhYrtCmqCrrjwMsi+UiKrUPImUtotZ1JoG5p8VhLRXpAsoSwWpILNrowL3 Y2cryJQo3LKjbp5M15oWlAvVLLW1QHRNAoIhZJJqpRyRcbPFQjQALlcw+ZKo90GHbjNL YvF9c9ImoSk0fbmaNl2qbIM4PT4y9ifvukdm5e1W64uXchkb35Zr6SYDjxGNlOXIKAfq DRP87LKVBPTDwZVFdv4IfMDfg+8d5bRoaLmiM5PGz4dX5E+fxefIYcj6/NufygKL+3Wh 2t1A== X-Gm-Message-State: APjAAAVginiW1ZbKlf2gcKy6Rj4JIeCsAEPhO2vtzSsPKs5xN3J9EnQG 5IuJesT4sMTJ9T0+6bR+ZnerOyRY X-Received: by 2002:a1c:6508:: with SMTP id z8mr4156412wmb.93.1568917187038; Thu, 19 Sep 2019 11:19:47 -0700 (PDT) Received: from kozik-lap ([194.230.155.145]) by smtp.googlemail.com with ESMTPSA id r13sm13927274wrn.0.2019.09.19.11.19.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 19 Sep 2019 11:19:46 -0700 (PDT) Date: Thu, 19 Sep 2019 20:19:43 +0200 From: Krzysztof Kozlowski 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, b.zolnierkie@samsung.com, kgene@kernel.org, mark.rutland@arm.com, robh+dt@kernel.org, cw00.choi@samsung.com, kyungmin.park@samsung.com, m.szyprowski@samsung.com, s.nawrocki@samsung.com, myungjoo.ham@samsung.com, willy.mh.wolff.ml@gmail.com, dan.carpenter@oracle.com Subject: Re: [PATCH v3 1/2] memory: samsung: exynos5422-dmc: Fix kfree() of devm-allocated memory and missing static Message-ID: <20190919181943.GA10759@kozik-lap> References: <20190919092641.4407-1-l.luba@partner.samsung.com> <20190919092641.4407-2-l.luba@partner.samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190919092641.4407-2-l.luba@partner.samsung.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > Reported-by: Dan Carpenter > Reported-by: Krzysztof Kozlowski > Signed-off-by: Lukasz Luba > --- > drivers/memory/samsung/exynos5422-dmc.c | 6 ++---- Thanks, applied. Best regards, Krzysztof