Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3068846ybt; Mon, 29 Jun 2020 14:28:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJysColkCCR7yq97SC2oMNL/lilD2sEvYHwDvIn3SM+pKU5UbAvTmL1c7wKVw7b86OGpndDk X-Received: by 2002:a50:83c6:: with SMTP id 64mr20304662edi.41.1593466097365; Mon, 29 Jun 2020 14:28:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593466097; cv=none; d=google.com; s=arc-20160816; b=KnG2EhSHQIdVJrSlw1QIKqIflj/sTLXthySniJidXQ6s56dT21GVskLvQebJ5oWAKP SHjD7jvyogd+Ele6/LxksUPEKUGuiIioF6c0qb3O3aijIf9Q+dbA4F11Rbqss+AQbF5w cI/O9dj3W1XcTWvHfOPKRfcLtHwVavBoXC6Tl4vgSmtZw6nrGr08LANUIatcSS+eJfUp kqsdS9BJMbamVMoTvpd3bGbdhRBTjefIgqxna1gPP2Scj8pZQWvxRS4g1qxonKOqGyHt 2S4sp6QIQOUCTAYKL8q0ih6utvYmjdrvNLGsBv2FyTaEBfMCKkEkff0AHvO1aBc4rnvr /Lxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=hH0zEvL24O5sbaoV2uGoj4XFMFnkWQhq8PVYYsALyOg=; b=u0pyUGm5ZJxNCrD0y4fu89KPjRLhcY4F5PJcRIhqcmCyMYDJ3rrP5PdDKx2fKKpVmu xVGOSzAnj0VuE6wvZAYZ2NAJdMBLTlLs0N7jYEKoRqW+HhQ/6akqOyrKa7uNOqX0VT8r RZ4bPrwX2Cc7+BYMzMJYeerqqMIW4JZft7KmwJr0RdeAert80vI8yw4jxMt0vcTzjKI+ ucTvP0LoXMR+Dj6FEuNmW7dkNr8xSVdnK5EEPVdOgUPPylfj3ZWI+Ib+AjjRA8f5HW0+ oPrAXG00+zbPFt77+QI++2X6ZlRw4WCiszmp0xqhH3aUaQ7gX/p0mSvLFbT1sxsqoRJP FlSQ== 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 q28si420005edw.196.2020.06.29.14.27.54; Mon, 29 Jun 2020 14:28:17 -0700 (PDT) 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 S2388060AbgF2V0j (ORCPT + 99 others); Mon, 29 Jun 2020 17:26:39 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:35701 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391062AbgF2V0K (ORCPT ); Mon, 29 Jun 2020 17:26:10 -0400 Received: from mail-qk1-f175.google.com ([209.85.222.175]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.145]) with ESMTPSA (Nemesis) id 1Mn1iT-1j99130zRf-00k9ZW; Mon, 29 Jun 2020 13:58:34 +0200 Received: by mail-qk1-f175.google.com with SMTP id k18so14910846qke.4; Mon, 29 Jun 2020 04:58:33 -0700 (PDT) X-Gm-Message-State: AOAM532L/5LO5TUz/wOFh/8bn+/7Oaq8qHC/H7WmOHrgpLBUdtx5rwV2 vpmir8ijxbtzgSXzO2S7eSTcJEj985na/+iZUuc= X-Received: by 2002:a37:a282:: with SMTP id l124mr13904809qke.3.1593431913015; Mon, 29 Jun 2020 04:58:33 -0700 (PDT) MIME-Version: 1.0 References: <1593410042-10598-1-git-send-email-Anson.Huang@nxp.com> <1593410042-10598-3-git-send-email-Anson.Huang@nxp.com> In-Reply-To: From: Arnd Bergmann Date: Mon, 29 Jun 2020 13:58:17 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V3 02/10] init.h: Fix the __setup_param() macro for module build To: Anson Huang Cc: Russell King - ARM Linux , Shawn Guo , Sascha Hauer , Sascha Hauer , Fabio Estevam , Michael Turquette , Stephen Boyd , "oleksandr.suvorov@toradex.com" , Stefan Agner , Peng Fan , Abel Vesa , Aisheng Dong , Andy Duan , Daniel Baluta , YueHaibing , Stephen Rothwell , Al Viro , Linux ARM , "linux-kernel@vger.kernel.org" , linux-clk , dl-linux-imx Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:3UBpymz75L77s+ZBkM6AxNezIczom5vTWMfpVWjT2zNNZ2uI+Jk gUwDS7fCBHdh7KRWiQV3MvL+yCDTKPuyeZEPTyce2r+BWozsosOwrahHhucAUaZAE4Tdxtn Pvqq3EiEfKrWCUdaLiDDdHC1xtVJabUfX50XNDWg9SxBJVhfW8nT71NqP+u+UhGXckJQHbH 72fapY9XfA5r0MDbF89LA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:5MMYrR6kRDY=:5GXOgJLK93AGgu6E0y8kq9 vq0Fe+QJg7M+5vTz8nfKpeJvQ2aMUMKc/IGtM+qNzpR88DcKmcFWiqbRbAXUAmFF+UYGY5SLv saAbHJD7HwTwNNeSV1ozIccPaP2YORPy+hCl9Xvfkdpm1E95+uDQ4cn1LqA9AsRiHwQnJx6d9 yWEyviDEUCB2+1wlxzfXq2uW83PJGswPMlmEyc9nWLNsnp3YXBwb+6581pv8+dTFnUHcMV83E JQqU+6OKEtJ5ZqAhi/kLECRXfKLgpCwSvYR2m+N80I2r7K+X537xXwh3Tze9I5lDIq/cnd4+A 9D+trY8GQCMeEz0b7IwRAvwjMMPXEPXyAQs9Df25WKt5eIZduAqYtzd9jue8NgnpO7FeVD7tb r0iNLmD+iuLFTbYHOTmyFPgHDFUa7o7HKa2inZ5yQqBLixfT4hUXWMDi52zBBC7kJyHPz8wiV H6t6lhXaET7WBC5CZOybuSGVAZx7RBmcqLzXR5EE36misXQaBW/R3s5AECcfiebj9zgCpQ6JP jUarJrGCF99zAZT/IbaFgWZob8zs77H6ULxd5G6sWiWJzK7nvU+edpfRMwWf0othSjmR5Ox7y fyioPFAnhY4sy8Qw3aNtV3tzYxwYF4pNT366oY6mKGnKTwciwBjyhh9nAyrASj3uZ4BgJYMfC v8bwV6uLMhx2phd/nifmLjqWcA4o37Ckj0rPrLwMo3IViBhx+ZGBYjo71P6+7l+F+4FhABP/k yUMSL4TEwesQOhi9MIXhwBrdxPpocjrGXTq8OogudK94VGTx/1pEsqbe9fIEgrxb1I9obmQ9C DrpbclHNtx3V4Xj4aSxn/0XHE4ZKEyXSR22Tjb3i6klmZMBFus= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 29, 2020 at 1:40 PM Anson Huang wrote: > > Subject: Re: [PATCH V3 02/10] init.h: Fix the __setup_param() macro for > > module build > > > > On Mon, Jun 29, 2020 at 8:06 AM Anson Huang > > wrote: > > > > > > Keep __setup_param() to use same parameters for both built in and > > > built as module, it can make the drivers which call it easier when the > > > drivers can be built in or built as module. > > > > > > Signed-off-by: Anson Huang > > > > I wonder if we should instead drop the __setup() and __setup_param() > > definitions from the #else block here. This was clearly not used anywhere, and > > it sounds like any possible user is broken and should be changed to not use > > __setup() anyway. > > > > > It makes sense to drop the __setup() and __serup_param() in the #else block, > just use one definition for all cases, if no one objects, I will remove them in next patch series. Ok, sounds good. Note that there may be users of the plain __setup() that just get turned into nops right now. Usually those are already enclosed in "#ifndef MODULE", but if they are not, then removing the definition would cause a build error. Have a look if you can find such instances, and either change the patch to add the missing "#ifndef MODULE" checks, or just drop the __setup_param() and leave the __setup() if it gets too complicated. Arnd