Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp617269imm; Wed, 18 Jul 2018 07:54:07 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe2k63mhGQkJo0ub9AlOjCPfMid8B6eNbddROthC79AQLwXAww45sTIMm2J2CNltgt77OXO X-Received: by 2002:a62:d39b:: with SMTP id z27-v6mr5585068pfk.182.1531925647664; Wed, 18 Jul 2018 07:54:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531925647; cv=none; d=google.com; s=arc-20160816; b=N5ZZtmN2qYbi3QkeTbsUI3mdhGA0nslEFL8otA93ESWUxtxxdKkQz+DK1Hd1hwVyrh P3VPl8sCYSGydfQieEhc8AFSbUOkV6r0/k96KTbQgJViAgrcOnIHvuHrHDmS3nSVxzWI 4GdJl5V30NQsVc+dQahiRy5crWODq5SvnA65OyksEgjVlPGKI1eZht3TzN5DT81/U8ec aaS1OfaSFPmdY/9O7Zpeg8Kjw66h1m63P4dJP/Ffs9Jkk3MdcDYAvy8VOdqmeLzFEQZT W90xz3F1OD9p3lK15LzlFe6nYPNhzuGmDUpPCtOfKKghfFBL3D20Ezvn8knOXWIOQd/N eUMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :subject:cc:to:from:date:arc-authentication-results; bh=qFhFzqv98ArZv8dPoTeN9nlhSPt3289THnZtQY+BV8I=; b=bxAR17n30iAV+0kz1U+11q+DoBlAVP89RZsTQlfC2Ry8l8bU4SuOaOeZXYGWoBQLby 9VPtyH1Xmy441d6OnDUhTTMqR0T0au8fekaLb7SW1GCX3DmeOcRzTZPmDnbLaRGjA6KV nvYVPkH4lkZYi7/rmGybKYQnB263PEy+W6RkGtlbQCVZ9HS6xLEHFQpHuj5H7y0dYj4R r7cJsbGMU3CtotxzJNEGYmjsAmngYsgfh6ihz5A0vgKhxrdPaBE8ME2fYh2v0mwUjOQl Gi3CKagZcDQ8ly1+/2OZdugK3kZpi0b84/fSUMdzblSt7SqH7Fi9IVhPkO8i7Ht5EiVS dcsg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z7-v6si3037122pln.145.2018.07.18.07.53.52; Wed, 18 Jul 2018 07:54:07 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731139AbeGRPb1 (ORCPT + 99 others); Wed, 18 Jul 2018 11:31:27 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:13776 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730288AbeGRPb1 (ORCPT ); Wed, 18 Jul 2018 11:31:27 -0400 X-IronPort-AV: E=Sophos;i="5.51,370,1526335200"; d="scan'208";a="339416353" Received: from unknown (HELO [132.227.125.40]) ([132.227.125.40]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Jul 2018 16:53:08 +0200 Date: Wed, 18 Jul 2018 16:53:08 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: matthias.bgg@kernel.org cc: ulrich.hecht+renesas@gmail.com, laurent.pinchart@ideasonboard.com, ck.hu@mediatek.com, p.zabel@pengutronix.de, airlied@linux.ie, robh+dt@kernel.org, mark.rutland@arm.com, mturquette@baylibre.com, sboyd@codeaurora.org, lee.jones@linaro.org, davem@davemloft.net, gregkh@linuxfoundation.org, mchehab@kernel.org, rdunlap@infradead.org, pi-cheng.chen@linaro.org, sean.wang@mediatek.com, linux-clk@vger.kernel.org, linux@armlinux.org.uk, matthias.bgg@gmail.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Matthias Brugger , kbuild-all@01.org Subject: Re: [resend PATCH v4 3/5] clk: mediatek: mt8173: switch mmsys to platform device probing (fwd) Message-ID: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Please check on whether the kfree in the remove function is still needed. Also the platform_driver structure has two probe fields. julia ---------- Forwarded message ---------- Date: Wed, 18 Jul 2018 22:31:13 +0800 From: kbuild test robot To: kbuild@01.org Cc: Julia Lawall Subject: Re: [resend PATCH v4 3/5] clk: mediatek: mt8173: switch mmsys to platform device probing In-Reply-To: <20180717220328.792-4-matthias.bgg@kernel.org> References: <20180717220328.792-4-matthias.bgg@kernel.org> TO: matthias.bgg@kernel.org Hi Matthias, I love your patch! Perhaps something to improve: [auto build test WARNING on sof-driver-fuweitax/master] [also build test WARNING on v4.18-rc5 next-20180718] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/matthias-bgg-kernel-org/arm-arm64-mediatek-Fix-mmsys-device-probing/20180718-191916 base: https://github.com/fuweitax/linux master :::::: branch date: 3 hours ago :::::: commit date: 3 hours ago >> drivers/clk/mediatek/clk-mt8173.c:1195:1-6: WARNING: invalid free of devm_ allocated data -- >> drivers/clk/mediatek/clk-mt8173.c:1200:48-49: probe: first occurrence line 1201, second occurrence line 1202 # https://github.com/0day-ci/linux/commit/112857d0f58413a87875dfc9e1b43fdfde3b55eb git remote add linux-review https://github.com/0day-ci/linux git remote update linux-review git checkout 112857d0f58413a87875dfc9e1b43fdfde3b55eb vim +1195 drivers/clk/mediatek/clk-mt8173.c 112857d0 Matthias Brugger 2018-07-18 1189 112857d0 Matthias Brugger 2018-07-18 1190 static int mtk_mmsys_remove(struct platform_device *pdev) 112857d0 Matthias Brugger 2018-07-18 1191 { 112857d0 Matthias Brugger 2018-07-18 1192 struct mtk_mmsys_priv *private = platform_get_drvdata(pdev); 112857d0 Matthias Brugger 2018-07-18 1193 112857d0 Matthias Brugger 2018-07-18 1194 kfree(private->clk_data); 112857d0 Matthias Brugger 2018-07-18 @1195 kfree(private); 112857d0 Matthias Brugger 2018-07-18 1196 112857d0 Matthias Brugger 2018-07-18 1197 return 0; 29859d93 James Liao 2015-05-20 1198 } 112857d0 Matthias Brugger 2018-07-18 1199 112857d0 Matthias Brugger 2018-07-18 @1200 static struct platform_driver clk_mt8173_mm_drv = { 112857d0 Matthias Brugger 2018-07-18 @1201 .probe = mtk_mmsys_probe, 112857d0 Matthias Brugger 2018-07-18 @1202 .probe = mtk_mmsys_remove, 112857d0 Matthias Brugger 2018-07-18 1203 .driver = { 112857d0 Matthias Brugger 2018-07-18 1204 .name = "clk-mt8173-mm", 112857d0 Matthias Brugger 2018-07-18 1205 }, 112857d0 Matthias Brugger 2018-07-18 1206 }; 112857d0 Matthias Brugger 2018-07-18 1207 module_platform_driver(clk_mt8173_mm_drv); 29859d93 James Liao 2015-05-20 1208 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation