Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1418648ybb; Thu, 9 Apr 2020 01:31:37 -0700 (PDT) X-Google-Smtp-Source: APiQypIJTOusK3n4oyLlRBGPmM9ZScYHzdor6yXNeYE8bpdC5fRC6+VmnguxpclCrtN73wMK4h3Y X-Received: by 2002:aca:310a:: with SMTP id x10mr5146820oix.151.1586421097416; Thu, 09 Apr 2020 01:31:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586421097; cv=none; d=google.com; s=arc-20160816; b=iA+aU/LnbIMNJ+0Y5aHD8Q30phi6kIDVNiWRL9wCAu/+651PtmTIELkyFia42s5qxm W4CuvfgSQQae56rgGZELxEMaNVpbT2vEV6jA6adRI81B80dur0b403VJdzfcORQzOEXu Z/DtRiA5+BXyRJUJUc4Ja4uEZjhPBoQhaXOWce9VnQzzLzLzgJhYbw9I5HVdXE0U2cHz fv5HdcUdS/J02ytrM2qncGY2JNXT6TO3pP0tMEfrFMa6jgNunG0UIGueC2a5l1wZR9LD 0bdVl9LdN2Bp0DW8BRT5v8rFkrHAXm+xeed5hIsx3W9naYIIAcMIvaGGvt4ztdClcLGK swWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:date:to:cc:from :subject:references:in-reply-to:content-transfer-encoding :mime-version:dkim-signature; bh=EGWjwBR37AmNaEmfoWCg32LT22SCxnO6H79fFbyNUio=; b=r5FO+sHrUTzuGwYXwJzfVVxYC1Z2AqI0KMT42+nDs8Jo/xL9XSh+Xh04lnGnljGiI/ 1GUJHo1tCdbdXkrPYMa4wrU3MgI4OAP8brYQVZMIH9SCryHejXc9mMJZl2ELUqIXUuLi b80w0caDPeeuOLG+E7HRItZRprDqn2TiIS4Ik9PfESX17l7Gqr1snyYXP7N3bjM/NSu6 FOkjtIbVCsjQiySoIcEX7D6+zbzTf2FztKY8mMDGIkRbK0nutx6SXAOSXKZdwuFjXoz9 bYEVi8IDdWu3+MIp1TCJ4D15vOaciKVEPjnE8sTGAdea2VoUFxVoqYrvMrhimvT9N4lE i0TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ptohimgN; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e27si3855622oth.300.2020.04.09.01.31.22; Thu, 09 Apr 2020 01:31:37 -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=pass header.i=@kernel.org header.s=default header.b=ptohimgN; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726559AbgDIIan (ORCPT + 99 others); Thu, 9 Apr 2020 04:30:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:58724 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725828AbgDIIan (ORCPT ); Thu, 9 Apr 2020 04:30:43 -0400 Received: from kernel.org (unknown [104.132.0.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8D2E620784; Thu, 9 Apr 2020 08:30:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586421042; bh=tecY0VJsbe8EdmmXXtksU0Y0zBQ4pnIaVfI2igeka+g=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=ptohimgNcSS6YVP6voh44L9Sg9U4vla0zIuPhH//YJlP0Pij9fyw2K+ZNUAEHVrPo Ro/p1DceVy1DmnpHiLRWeBbTqOmFjwO56VpfspN5AASuHpAIJ7hqo6PYHpZolmT3RQ PQprX0YetLoQeGYubZAI1tdqQfcS3ncgfxC7byN4= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20200408160044.2550437-1-arnd@arndb.de> References: <20200408160044.2550437-1-arnd@arndb.de> Subject: Re: [PATCH] [RFC] clk: sprd: fix compile-testing From: Stephen Boyd Cc: gregkh@linuxfoundation.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Arnd Bergmann To: Arnd Bergmann , catalin.marinas@arm.com, chunyan.zhang@unisoc.com, mturquette@baylibre.com, will@kernel.org Date: Thu, 09 Apr 2020 01:30:41 -0700 Message-ID: <158642104168.126188.8440219577017239983@swboyd.mtv.corp.google.com> User-Agent: alot/0.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Arnd Bergmann (2020-04-08 09:00:44) > I got a build failure with CONFIG_ARCH_SPRD=3Dm when the > main portion of the clock driver failed to get linked into > the kernel: >=20 > ERROR: modpost: "sprd_pll_sc_gate_ops" [drivers/clk/sprd/sc9863a-clk.ko] = undefined! > ERROR: modpost: "sprd_pll_ops" [drivers/clk/sprd/sc9863a-clk.ko] undefine= d! > ERROR: modpost: "sprd_div_ops" [drivers/clk/sprd/sc9863a-clk.ko] undefine= d! > ERROR: modpost: "sprd_comp_ops" [drivers/clk/sprd/sc9863a-clk.ko] undefin= ed! > ERROR: modpost: "sprd_mux_ops" [drivers/clk/sprd/sc9863a-clk.ko] undefine= d! > ERROR: modpost: "sprd_gate_ops" [drivers/clk/sprd/sc9863a-clk.ko] undefin= ed! > ERROR: modpost: "sprd_sc_gate_ops" [drivers/clk/sprd/sc9863a-clk.ko] unde= fined! > ERROR: modpost: "sprd_clk_probe" [drivers/clk/sprd/sc9863a-clk.ko] undefi= ned! > ERROR: modpost: "sprd_clk_regmap_init" [drivers/clk/sprd/sc9863a-clk.ko] = undefined! > ERROR: modpost: "sprd_pll_ops" [drivers/clk/sprd/sc9860-clk.ko] undefined! > ERROR: modpost: "sprd_div_ops" [drivers/clk/sprd/sc9860-clk.ko] undefined! > ERROR: modpost: "sprd_mux_ops" [drivers/clk/sprd/sc9860-clk.ko] undefined! >=20 > This is a combination of two trivial bugs: >=20 > - A platform should not be 'tristate', it should be a 'bool' symbol > like the other platforms, if only for consistency, and to avoid > surprises like this one. >=20 > - The clk Makefile does not traverse into the sprd subdirectory > if the platform is disabled but the drivers are enabled for > compile-testing. >=20 > Fixing either of the two would be sufficient to address the link failure, > but for correctness, both need to be changed. >=20 > Fixes: 2b1b799d7630 ("arm64: change ARCH_SPRD Kconfig to tristate") > Fixes: d41f59fd92f2 ("clk: sprd: Add common infrastructure") > Signed-off-by: Arnd Bergmann > --- > arch/arm64/Kconfig.platforms | 2 +- > drivers/clk/Makefile | 2 +- For clk part Acked-by: Stephen Boyd