Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp481839ybt; Wed, 1 Jul 2020 03:14:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5YLGL6ZREeZveuSY0fpSzERvgR1+9NQYjxB9UcsrRD6I8sJRm2xOr3UHGcmItwrxYd55T X-Received: by 2002:a05:6402:359:: with SMTP id r25mr4174525edw.177.1593598475395; Wed, 01 Jul 2020 03:14:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593598475; cv=none; d=google.com; s=arc-20160816; b=O0YipMpI+/dbsgefuj+ELUa1ag0zNH7CDKApY4hx5QzTzH6Lrc2CbPJEkpG7cT76Qf EkLLcRhW9l4010m+QyjT/Xhmtav9/oVWik+pUo7UvU4bcPPtByksMWGmm21kaNcEMjvj fEsxWbn/7zCLgT2ii3v5gFnzPWprO5QqMIugIQ5SFASNzRyVqqMCQ/vMQkQQGMnDkXDx XJkR69tU9bzPs5TRLJwKzkZjpUfouDhxCBnjLzEnnqmOFJc43YcbsEpnxNBg63bAS1kC f68uvBVAa9H6ZoIRN37J/BjZlsS2GOhKyP8kluf2Ul7IPTqzzsUNlQuBufHVd/KVn5mx u2ng== 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=ODFqLknse+6VBN+hBzWeqvHVslHKBsfuuVZh3kwG+54=; b=U1HuLZge1AWLUEDm3dlc84l+1vlDpLhgYbKKhsFzD3kIOPiCRhl3pxodOBJwc+hX+5 2bcKVf5oUF9AwukLh4YEUJZR15h8Il+kWO84Nu/hotDV/U/fsSCf0/7OHnVxKikJtANy ah7qf7uohUGYoxRyaTm138tyBYWKNEWE03V6TYePMMuesosuNvyT89QgP1M+rLe66Bif 5ABMNcmuPACE4WfVJAdK8dVP644GSU4EXIDSYFpnm1zuh3n123coNdxuDNRE9QIAQdxG OfycTYfGcE9gWZ+8alqHDWq6WWlqgNdR8rRl+T1Zp9UcZl/GBdCPgjZNZFb7M/TjFuXI r4Jg== 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 v21si3457728edw.286.2020.07.01.03.14.12; Wed, 01 Jul 2020 03:14:35 -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 S1729289AbgGAKOC (ORCPT + 99 others); Wed, 1 Jul 2020 06:14:02 -0400 Received: from mout.kundenserver.de ([212.227.126.135]:39047 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728941AbgGAKOC (ORCPT ); Wed, 1 Jul 2020 06:14:02 -0400 Received: from mail-lj1-f170.google.com ([209.85.208.170]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.129]) with ESMTPSA (Nemesis) id 1MWz4j-1jJm2z2fWb-00XK1R; Wed, 01 Jul 2020 12:14:00 +0200 Received: by mail-lj1-f170.google.com with SMTP id d17so11543112ljl.3; Wed, 01 Jul 2020 03:14:00 -0700 (PDT) X-Gm-Message-State: AOAM532kA/9uvjHIUKkMqNuGA5XKB4OSc01DncNj6XqWIngARR62GPiU yOkjpAp0oNyrYwHMyPcZyfNPgBT9ZgPaXgTnJ2k= X-Received: by 2002:a2e:7f06:: with SMTP id a6mr2089791ljd.446.1593598440088; Wed, 01 Jul 2020 03:14:00 -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: Wed, 1 Jul 2020 12:13:44 +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:zAbsWGYUYSjUhDcXivmTqZ3C0+A8yahpkjUtZi8A1inf4RtBPZ9 Ny86rfoQjBRRZ4GqI5RqnDLxmWFce8ZfiBQ0KzC57vBlXk6Xz/x8amZAo5r+QKFyXbQeu9K t0zpF3Iq/33XnrT7yCFMLNATdMEaVUQJ52c2ctDgB0Q8dwhEet4D9Al5JGAyayX/s6uYd/+ D2diBSzGf3FZ9DWXIgC0g== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:wP/f4dl8JjM=:hptme65rAWGJzgsV9COIjS Ki8v5CPeBc+Dog1BdJnPh6/CYK9LmJ7obbjpxReq8/e69JtKOuyaIKBpRrxqKSXbmR3hsOaIc K2oOcuNWS7nK/jo1Vm1kzM7aMBD9uIL75Dia3pmoPPAx29CMboendorHguBcIGFvcfxbEp+8P z0te78arOZf3wjfqMNVEKdpKqUh7ZA10gxRHrS0Xu+xuWUlmrqAYTi2H8T6SBwl0QohzAn9kJ Q6wpmITUduLFAnmZY9+MbG+pmP7vtR8qMHhZjzRykptrooNqEu6za5Z1wE9vKDPHp+kcM9q12 cBRWBgWiOkMspBAAt/OEMEyDEcKXGvY9zZpJ8ZooTddGOd3S5HIGsH60qeFqtuu6dpUFzJ5HU HoniL0S2W+L7FCVg79wuaplUD1iSByS9zjbhPuarH6w+BDi70IfYAPUNWNYYw2cx56D95jCA+ Acje9/utIC05xXdTIYyh6mkipZjVEQYi1paUI/yuQj4UFF5g28LW1Pc50sKuvEC+/K7+HwUji bmjXBJWE3n+F9XB9P08jLZlDp5EYU4Vwpgo2bul2ZXGT7jKjJhgMwQvWWsTpPUXN1752RDvFS 1r3fL/zqfml/99+gJFC0nNk65b/EW6TbuEFFdDj/AOXVx711IN5+CGHaAegYZVnptMtu8sufq MLpNnAsngDiTGPofn7vDW6uwrvzjMb6SQeqDXMtD7JfaTdyxuTAszm665N4d6ZAyXoEp9npQn RCTmlkn7Ippgxvw60N4scClRWBFKdW8l9StjgXB/E2JuJbiYFnS4V1LguKJnnXgc75sUELt9J 0sGkMtraqvci9Y5+gWVxChWerO3LrLl3PGEZwzKTF+WqiohWQA= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 1, 2020 at 12:02 PM Anson Huang wrote: > > Subject: Re: [PATCH V3 02/10] init.h: Fix the __setup_param() macro for > > module build > > On Wed, Jul 1, 2020 at 11:27 AM Anson Huang > > wrote: > > > > Subject: Re: [PATCH V3 02/10] init.h: Fix the __setup_param() macro > > > > for module build > > Why not move this all to a separate file then and only build it when > > CONFIG_CLK_IMX=y? > > It seems that you don't need the imx_keep_uart_clocks_param() if the clk > > driver is loaded as a module, but then you also don't need the > > imx_clk_disable_uart() and imx_register_uart_clocks() functions or the > > associated variables. > > If so, how about just adding "#ifndef MODULE" check for this part of code? I think > it should be easier/better than adding a file and build it conditionally? The #ifdef is clearly a simpler change, but I think a separate file is a cleaner way to do it. Up to you (unless one of the imx or clk maintainers has a preference -- I'm only helping out here, not making decisions). Arnd