Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp269204ybs; Tue, 26 May 2020 08:46:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAr5nj9TsC8EWUvEvmDTkn19PdbvJHCtDIlKj3imW3zJ4TdBO8LXRCjh2d8fO/sRuwmDpt X-Received: by 2002:aa7:d8d3:: with SMTP id k19mr20730546eds.348.1590507968256; Tue, 26 May 2020 08:46:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590507968; cv=none; d=google.com; s=arc-20160816; b=P8TQjJvej1PK1z14xizDxgNt8JyDvlbCuFQKfOV7X4tX/2BbgFRwMI1Cl1rPvifT97 BRH/39KSHYykM3oSBPuhAwjMW/rdEgvuVIa1vn/IwQVrPkG6IfOiFXeew8Xxtl6+MQaB 3+0EWMavhQcvj/UrxjgauR7dlIkFwTfh9dyS8Jvnw0IeaEEfeZDirE3jLVVKqkOLpaRV amScVQzTW3ePoVJTh0C+2HPvLyb7C+W/ByxdCri8zTt3319z4B7RUh/PDqbH9Y1zMSq1 Qo1zg1/sy4BYkehQKzn9peIf0jYHjPgo3WFanRJGADyWBZZ93DM1brhvr+MGloYvC0Ry c9SQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=s/ghjvAUlJENc60GpLRBTf9GbX6O9u5Ds8nIHQ/w4ZA=; b=b9zSfO0HF4bbH7HfJPyom9+X/D1ydE+TG+L2XD43XdpUI5Q75ikQniq1QBNjW2bBQW pHcJ0s9RdT6LTH9hJA2X0u2N0k6fix1jz6O6/Tw4sLv4d6bURqu2TZqgNXgsHjGNvpE6 UCGG0uOHrzW9ZPT7vb0trfb3CdvJzLXf4vB//N6iqp5mXEmITMJvtNqab5yGlOri8czs 5sTf9d2wgYDPvUq2zj3OvsV/nafjJV3C3742J4CEqxknmZcRtmjGf39mWmFh0LanvikD 9HrOjT6eATX90Swt+sGmRBNjizvFm9OaPczxonXtjkgYbzDUqMqMNdHEjCn5oftoiiGd kKHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Rz0KVAKp; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jo2si112235ejb.197.2020.05.26.08.45.44; Tue, 26 May 2020 08:46:08 -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; dkim=pass header.i=@kernel.org header.s=default header.b=Rz0KVAKp; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730589AbgEZPl4 (ORCPT + 99 others); Tue, 26 May 2020 11:41:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:39252 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730125AbgEZPlg (ORCPT ); Tue, 26 May 2020 11:41:36 -0400 Received: from mail-ot1-f54.google.com (mail-ot1-f54.google.com [209.85.210.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 97EB4208C7; Tue, 26 May 2020 15:41:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590507695; bh=gZ8aNmKdT4zxOHADWbLT5Y6H7LmM9caifHy5dcL7o1w=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Rz0KVAKpuQWjbYVqG4KX84a/Z2Zt/9Ql+miy0TU2C8vgkSO0PKYNUlF+XR1rC8KGE mh5sj0zdQJcaRR4rzJF+iAFeCl4Ewnku9jGmDJ+IE0NVkPLvrYsaAFvztrx3rMj64U L8w9Hs820XIx3lSpLEb6FRx8eXc56ZIvb4NDhCtw= Received: by mail-ot1-f54.google.com with SMTP id v17so16702199ote.0; Tue, 26 May 2020 08:41:35 -0700 (PDT) X-Gm-Message-State: AOAM531xjewdXXNAVed+SjfPj9YTZrP3lN95WPzw0Rc1y+0tzutO1EXp gCDL/Rq61GcR6zkBErk9lAWLWoG/xXoKvawOTw== X-Received: by 2002:a05:6830:18d9:: with SMTP id v25mr1226309ote.107.1590507694863; Tue, 26 May 2020 08:41:34 -0700 (PDT) MIME-Version: 1.0 References: <20200522220103.908307-1-anders.roxell@linaro.org> <20200524222025.GA3116034@ubuntu-s3-xlarge-x86> <292277.1590449865@turing-police> <20200526053850.GA2368760@ubuntu-s3-xlarge-x86> In-Reply-To: <20200526053850.GA2368760@ubuntu-s3-xlarge-x86> From: Rob Herring Date: Tue, 26 May 2020 09:41:20 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] power: reset: vexpress: fix build issue To: Nathan Chancellor Cc: =?UTF-8?Q?Valdis_Kl=C4=93tnieks?= , Anders Roxell , Geert Uytterhoeven , Magnus Damm , "open list:MEDIA DRIVERS FOR RENESAS - FCP" , Sebastian Reichel , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org " On Mon, May 25, 2020 at 11:38 PM Nathan Chancellor wrote: > > On Mon, May 25, 2020 at 07:37:45PM -0400, Valdis Kl=C4=93tnieks wrote: > > On Sun, 24 May 2020 15:20:25 -0700, Nathan Chancellor said: > > > > > arm-linux-gnueabi-ld: drivers/power/reset/vexpress-poweroff.o: in fun= ction `vexpress_reset_probe': > > > vexpress-poweroff.c:(.text+0x36c): undefined reference to `devm_regma= p_init_vexpress_config' > > > > The part I can't figure out is that git blame tells me there's already = an > > export: > > > > 3b9334ac835bb (Pawel Moll 2014-04-30 16:46:29 +0100 154) return = regmap; > > 3b9334ac835bb (Pawel Moll 2014-04-30 16:46:29 +0100 155) } > > b33cdd283bd91 (Arnd Bergmann 2014-05-26 17:25:22 +0200 156) EXPORT_SY= MBOL_GPL(devm_regmap_init_vexpress_config); > > 3b9334ac835bb (Pawel Moll 2014-04-30 16:46:29 +0100 157) > > > > but I can't figure out where or if drivers/power/reset/vexpress-powerof= f.c gets > > a MODULE_LICENSE from... > > Correct, it is exported but that file is being built as a module whereas > the file requiring it is beign builtin. As far as I understand, that > will not work, hence the error. > > The issue with this patch is that ARCH_VEXPRESS still just selects > POWER_RESET_VEXPRESS, which ignores "depends on", hence the Kconfig > warning and not fixing the error. > > I am not that much of a Kconfig guru to come up with a solution. I am > just reporting it because arm allmodconfig is broken on -next due to > this. Commit "ARM: vexpress: Don't select VEXPRESS_CONFIG" needs to be reverted. I've asked Arnd to revert it. Anders patch is still needed for arm64. Rob