Received: by 10.192.165.156 with SMTP id m28csp2144537imm; Thu, 12 Apr 2018 09:16:58 -0700 (PDT) X-Google-Smtp-Source: AIpwx48MzuNTrbQpC1bXTNYALxkiWst5B3401X5O8ynoQmr4XD3ciPpOpemDGh5uKxWNhIqx0VqK X-Received: by 10.101.74.6 with SMTP id s6mr1204379pgq.79.1523549818341; Thu, 12 Apr 2018 09:16:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523549818; cv=none; d=google.com; s=arc-20160816; b=MZN4EK7uc6gc6XVkgNqAhCodgZMbnI2Ivs1+peHL2DrVcrH7E01facEvcdsNiGDEjZ WVycMIJsbauozMzPgVMKA1PUV1OLXxdjxITIGPfA1BtpcOtRE5Fqhn6gLJHrI0YFVtyk YhTcbgKQWXR616HJQX04SVqtbkZZqu771DQde1H0VK11hei3B7uiQSmIJkg8CqByeEJL 8z384JEVVUNSs9AFKU5lUq2fQ66weJPZFEwtSbFrJdMV6uukEfrbD2GAUzdI6HI98Bzy eMAZKhFkWoZKRt68hac6BAy2tpoIAnVtPfSF7ZVd9GkuwQUWMUkwBJYVvkDwH+iClfuY zS0Q== 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:dkim-signature:arc-authentication-results; bh=OntTZhO7BNAR+IlRZig1SV0XNyjEy20WFmDXSFD3O3g=; b=wYyKoiKMQgXY/JDjxefKZchyIqfybmHyAw/rYEQ6XgwaGWRnncDF/zoslqkzFceWXs c4ieSG5Hiuy34PWsYqHZ8iTAdNQPYMxf1OaTPXQbe8LhvwmbPdFp2UT4MZjgQ34Dq8Z/ jiA/Cq/cPEUMjtjhU5izBaN0HJnmygj6jPaxHwqPSwM2ppAov4/UbNRA7KUugWkRAkyJ KsrUIjsLTMPGQ8yGTaRD0lbDi2HNcL6JVe9kuDna6lNEaZ+w2/bZcT6NLg5QvOsY4BQJ DIbmhKymfFuPvo+QHpq/5xfWAiWxDbcm97ayVVUQQ1fZF2AZU0q/dHgC8HXFN73+aBRr KqQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=jv4YqXv4; 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 t11si2442422pgv.123.2018.04.12.09.16.20; Thu, 12 Apr 2018 09:16:58 -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=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=jv4YqXv4; 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 S1752840AbeDLQNe (ORCPT + 99 others); Thu, 12 Apr 2018 12:13:34 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:56382 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752406AbeDLQNc (ORCPT ); Thu, 12 Apr 2018 12:13:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=OntTZhO7BNAR+IlRZig1SV0XNyjEy20WFmDXSFD3O3g=; b=jv4YqXv4FO1vtgdULQAfEHdzF iu/hBi4RqIaVcY0n+ATPVbn867Ou5aldMInPFIWpXG1l2CaDSBXbgRWl6xqmHPzZjVrV7YS2x4YP9 S6kkXPHldkrUNSowNx767gkL2pQZiyAZkKWbrY7w7firMQtrPV8Qz80f2phmcQ6VLT9Xc=; Received: from debutante.sirena.org.uk ([2001:470:1f1d:6b5::3] helo=debutante) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1f6eqi-0006Lo-Dt; Thu, 12 Apr 2018 16:13:24 +0000 Received: from broonie by debutante with local (Exim 4.90_1) (envelope-from ) id 1f6eqh-00084G-L0; Thu, 12 Apr 2018 17:13:23 +0100 Date: Thu, 12 Apr 2018 17:13:23 +0100 From: Mark Brown To: Sean Wang Cc: matthias.bgg@gmail.com, linux-spi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] spi: mediatek: remove redundant MODULE_ALIAS entries Message-ID: <20180412161323.GH9929@sirena.org.uk> References: <58fc8553bdc3cbad8d107a905947b7e4d9c12b92.1522054975.git.sean.wang@mediatek.com> <20180328021416.GK29239@sirena.org.uk> <1522206543.18424.23.camel@mtkswgap22> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Bg2esWel0ueIH/G/" Content-Disposition: inline In-Reply-To: <1522206543.18424.23.camel@mtkswgap22> X-Cookie: The coast was clear. 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 --Bg2esWel0ueIH/G/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 28, 2018 at 11:09:03AM +0800, Sean Wang wrote: > 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-loade= d 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. OK, that's a *very* small saving though especially given the block sizes that filesystems tend to use. > 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.=20 I can't parse the above, sorry. > 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. To me it's the other way around - ideally platform drivers should remember to set up the MODULE_ALIAS, just as a joining the dots thing to make sure that things that work when the driver is built in work when built as a module. --Bg2esWel0ueIH/G/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlrPhaIACgkQJNaLcl1U h9DMHwgAhd0vlEUQgTNCsJBgH2eZIifafg8x1AQmq/ics42nbhuEEHZ3M0F1uhsc 2LX8cjgZhy5umaTVgXQxxRwgVWXdIq1SnGqWmxEpLkym9cOwNrMxEFMk7qJIARFB 5Pmb04alsMWu16lYGv6KSPpVRIiFV6V+UlTm1BBX/huP4rlOYVEv3WaoXWRMB8vG 1kltkzZh7AEzyp0l5BUvZD3vFl9M5PMnj/MEb1FCoTjOOg6DK5y87mO2bsAvYhol LNjIn7Z3szdcVWT8zDW0vFwkVe1WwTFerAJsZg4wI8LuliIHpnq/DPMTERQmvuTC kNzQvILli2+HDInE/yUy0uFp5qbNCA== =S7Iz -----END PGP SIGNATURE----- --Bg2esWel0ueIH/G/--