Received: by 10.213.65.68 with SMTP id h4csp12393imn; Tue, 27 Mar 2018 20:22:14 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/2uuL/iHLRtpWnBgMtgmY/eEi7rc0DSH96m+r/M9FiRdKaUgj8YVT7Iipmsyq+qIsPgevH X-Received: by 2002:a17:902:8c91:: with SMTP id t17-v6mr1956065plo.233.1522207334287; Tue, 27 Mar 2018 20:22:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522207334; cv=none; d=google.com; s=arc-20160816; b=V880VAO/MLxREcxTHxoKHMEsencixTca35JVxN0vPFh0CutX/zA8Cp74OXZ33O8NsK sboxa4vBrRG4yiPSeUiKLjoJaXO8NQXbxY35HeCkNmOyo3m7l7UDjBLaeiAIPooBK8lV R/t/UqKGOk8Oal4lLr8nPG0SN4WldQ6zIB/GpY/jVNAgUIz725giLfZ6J7lyM5Z6ql1t OfX7y7Fxpu3448k33kNdRDY2UZY5n0B18JmAcFxuzRXy6gYLXNufZzYZc5N8AGLPSLyI xxksX+/PFj3DktLbpRdypQfuuNHwAec5ttMjBQDGBi6hE4aSYi7dqYlpPCslzeOAfjI/ x/9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=66QeZo93yG6ObFZc3bWqnM0GzYHJKO1Z4CBTIWq1HfY=; b=nAdcVKpIG30mrTag0TMijkRSAaUF0dIi9FMtKCcPD9xQW7xnhj07bp3znyIsGOesUY R28XKt36mv8AvbPnZAZaxrKzV+DNjRop1rNjlHjE29nlI9KLePbdcF5d1TiFmMO7c3sw sGbn/tgt6oKuCwixu8RmDljTFkzs1aZgJdJjN1r1eU/kRQmjQpEbjPjgJdZGZg64P/pm pqDSXuVcCT701sArru2DcHUf6BWMGdE+eUpvNNch/RFWye7cGebrQTIRQUUghTouvIjG hxwBCZ9OKS2263urhuwgLzLrvEyTceAwRU7LsjOGjiEeRXJe2w+HQ7FMWikBJdgnmo2L NljQ== 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 y11si2010033pfe.49.2018.03.27.20.21.48; Tue, 27 Mar 2018 20:22:14 -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 S1751908AbeC1DJV (ORCPT + 99 others); Tue, 27 Mar 2018 23:09:21 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:57346 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1750922AbeC1DJT (ORCPT ); Tue, 27 Mar 2018 23:09:19 -0400 X-UUID: 92acb8331c124646b418a932e546aa79-20180328 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1364957581; Wed, 28 Mar 2018 11:09:11 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Wed, 28 Mar 2018 11:09:04 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkcas08.mediatek.inc (172.21.101.126) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Wed, 28 Mar 2018 11:09:03 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Wed, 28 Mar 2018 11:09:03 +0800 Message-ID: <1522206543.18424.23.camel@mtkswgap22> Subject: Re: [PATCH] spi: mediatek: remove redundant MODULE_ALIAS entries From: Sean Wang To: Mark Brown CC: , , , , Date: Wed, 28 Mar 2018 11:09:03 +0800 In-Reply-To: <20180328021416.GK29239@sirena.org.uk> References: <58fc8553bdc3cbad8d107a905947b7e4d9c12b92.1522054975.git.sean.wang@mediatek.com> <20180328021416.GK29239@sirena.org.uk> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-TM-AS-Product-Ver: SMEX-12.5.0.5042-8.2.9001-23746.000 X-TM-AS-Result: No-14.730100-8.000000-10 X-TMASE-MatchedRID: csPTYAMX1+EOwH4pD14DsPHkpkyUphL9+WzVGPiSY8irmaMm8BwMJLmn rGB/kwGMcAXYp4RDzBzehhwMAOeYDQEIimRSfvgUvJsORwCzNhHPWW4KILxvBLjwxxtqPFawuXF kbD/3kezVLrCkiu+2Zq0fUkKfJ9ncdcd1ash4cpSGwT67eecJ8EGtrAxy5ENOcu+4NHWW1ZQWx0 Rr6slmBATJQXjc7y9qhxHjE30dAntNfs8n85Te8oMbH85DUZXy3QfwsVk0UbtuRXh7bFKB7nPo/ JnupLJF3IduSiCoCoyC+gptg8WmSL+F+cgWxJu6SwwcGKLTYEc= X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--14.730100-8.000000 X-TMASE-Version: SMEX-12.5.0.5042-8.2.9001-23746.000 X-TMASE-POSTMAN: 2-d; X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2018-03-28 at 10:14 +0800, Mark Brown wrote: > On Mon, Mar 26, 2018 at 06:04:18PM +0800, sean.wang@mediatek.com wrote: > > From: Sean Wang > > > > MODULE_ALIAS exports information to allow the module to be auto-loaded at > > boot for the drivers registered using legacy platform registration. > > > > However, currently the driver is always used by DT-only platform, > > MODULE_ALIAS is redundant and should be removed properly. > > There is no meaningful cost to having the alias there, why remove it? It's no explicitly improved to the driver, it only takes less bytes in .secion modinfo from 644 bytes to 620 bytes in the observation with objdump. More importantly, it seems the driver should probably refer to another qualified driver at the initial development, but MODULE_ALIAS is forgetting to be removed to meet real usage for the module autoload. Even I was curious whether people for the driver know the actual purpose the macro it's for. Removing MODULE_ALIAS is just to correct the driver to where it should be.