Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp161194pxb; Mon, 2 Nov 2020 17:20:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJwQgJF/7RBWl/9m7+vb2xNDiDYXGA0TbXY04xOvpsmS/D4O0Et8D0MlrxaiVcjLCgGFT/0A X-Received: by 2002:a50:fe14:: with SMTP id f20mr12848142edt.61.1604366425546; Mon, 02 Nov 2020 17:20:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604366425; cv=none; d=google.com; s=arc-20160816; b=hooapg3r0+hnTOGl1NfobP2SNsp1g4IIW7KZPFZlSC8YgNN6RGCTAoIfu5cASdS7Fg uoTYzCHWlXRkihvx4m8Ahw8uN5rqwmV6R3QDvdEZLLWDCw2LX1z9YTiR79eSKaety8Rf bErwYi4WXsCXyblB7XCFYHgqxtkfhYkBuxkRm7chw9uAD4Bzia3xW9IojDA+X3nwUf1p HGQRAFjXnwqHd37FAUfxKWFpccdyKJuf+Hrz2M2yg7GAo1NJpGicKzWD2FgaI7z6/kWD 1Jr/1vtNnhpjFWsjFE+2HQUiUwxBnEmdwDJ3KpemwWhHcFp8vNqWewQ37Cr2wX3N44c5 93TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=JnII6dobblY25PB9GoeESwzy0bRopR9DMnFNGJH/S4A=; b=tVYXQ4VZWgeP1+paDRSuYfPO8iRNWlHxOCwG+zP29R6/EMnsrGUXdzBK74WAY30uoT 33ZW7wh2Qs929E/RHGDaHtmbO713GnBQ9lDpeQ0pnsNy9uWEku1lBCLHKLKZgYiqI1Ln Mro4ORFV0MlBGKnN2i3BRZOWFJY1+QI2t3bo/G2DvrJngl+uoa4GZlPFTK7+K9DqohUe IAdWSMTlX/xyI7KrTPmslDBQAYt1qN/mrnepMeSn1t1I8huwAb9vTxqOUs4BMhOJdbAY j+LUCgbjDKAA1MVQLN+IQgJi/Rc4Edz/O73i978OgLgVGq+uVsdNsBzzV5it359sMvMx Ktkg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r29si8125116edc.378.2020.11.02.17.20.02; Mon, 02 Nov 2020 17:20:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726114AbgKCBS3 (ORCPT + 99 others); Mon, 2 Nov 2020 20:18:29 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:6692 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726018AbgKCBS1 (ORCPT ); Mon, 2 Nov 2020 20:18:27 -0500 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4CQBk66jMZz15NlQ; Tue, 3 Nov 2020 09:18:22 +0800 (CST) Received: from [127.0.0.1] (10.65.95.32) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.487.0; Tue, 3 Nov 2020 09:18:15 +0800 Subject: Re: [PATCH] coresight: funnel: Remove unnecessary .owner of static funnel driver To: Mathieu Poirier References: <1604139150-18659-1-git-send-email-liuqi115@huawei.com> <20201102172330.GB2749502@xps15> CC: , , , , , From: Qi Liu Message-ID: <813ceaa8-9bad-6e10-45f8-a56656519f63@huawei.com> Date: Tue, 3 Nov 2020 09:18:15 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <20201102172330.GB2749502@xps15> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.65.95.32] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mathieu, On 2020/11/3 1:23, Mathieu Poirier wrote: > Hi Liu, > > On Sat, Oct 31, 2020 at 06:12:30PM +0800, Qi Liu wrote: >> As driver.owner has been set in platform_driver_register(), it is >> unnecessary to set it in static funnel driver, so remove it from >> struct static_funnel_driver. >> >> Signed-off-by: Qi Liu >> --- >> drivers/hwtracing/coresight/coresight-funnel.c | 1 - >> 1 file changed, 1 deletion(-) >> >> diff --git a/drivers/hwtracing/coresight/coresight-funnel.c b/drivers/hwtracing/coresight/coresight-funnel.c >> index af40814..07bc203 100644 >> --- a/drivers/hwtracing/coresight/coresight-funnel.c >> +++ b/drivers/hwtracing/coresight/coresight-funnel.c >> @@ -356,7 +356,6 @@ static struct platform_driver static_funnel_driver = { >> .remove = static_funnel_remove, >> .driver = { >> .name = "coresight-static-funnel", >> - .owner = THIS_MODULE, > I received two identical patches (with a different title) from you. Since there > was no explanation I will discard the first one and work with this one. > > You are correct, platform_driver_register() does take care of THIS_MODULE. > Please send another revision where you will do three things: > > 1) CC the coresight mailing list, as instructed by get_maintainer.pl > 1) Also fix the replicator driver. > 2) Add a comment that clearly mentions THIS_MODULE doesn't need to be set: > > .name = "coresight-static-funnel", > /* THIS_MODULE is taken care of by platform_driver_register() */ > .of_match_table = static_funnel_match, > .acpi_match_table = ACPI_PTR(static_funnel_ids), > .pm = &funnel_dev_pm_ops, > > Thanks, > Mathieu Thanks for your review , I'll send a new patch latter. Liu >> -- >> 2.8.1 >> > . >