Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp585711ybm; Wed, 27 May 2020 03:03:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZpQHZHZu3WPqU4SpCrSHW21ddNM2qXh0eHo+raundj4fbfYdlZLZQnWK5x/2TckNjX35J X-Received: by 2002:a17:906:74f:: with SMTP id z15mr5618020ejb.89.1590573827229; Wed, 27 May 2020 03:03:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590573827; cv=none; d=google.com; s=arc-20160816; b=ox0yK4wXyf0gaWtL5uoF9Cs0zf1qyMLNJ/Wnw8l8O43d7Mjuyb3/Zu9grj+KPdpIut sr1ODdBYHrsySNI3XLlee5o4kUgxVt3GAiY8Ab3iNLapEkyNtm7vReUj7smPx6H7CCvq WeKLvwoXttbQM0s4my4yFYrYnynxjHbTHB58jPTE2EK3pYLJC6hxt6D0Hm3h8S5Y5clY RPIGS2QAFtqSEGHcRcQZ126dkz34l7/oLIENufBE+yDBWQo5B1m7BMvD1jhpsTfFgAL3 xlOfcIhUPn1CJ7b3RJWSd2s2TxxyAgJXaMZ5kqkKwNPDLWjm07Hu7QQXSkOr6Cv0lO23 X9kg== 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=fuGN860/GT6rsIgye6vRLXh5U9Ac6GXjLL4lq5g3Y6Q=; b=lp1pFRjd4jjLDvx+I6RtU0enmAp/yp5/OOQSw2DJGIGiFqnsOB5SeMFwvm+8vdJp5/ S/N1pg0jgSIAOPgb0pIb0ucwwA/O0kgMPJKs0ViF/6tZNCs6min+Zu12k00j43pelPRK INR7kOurCzwEIpPrU2XFoLW+WyD/mSgzssGmiXfO1Yy/5tUa044YwHC/RGpdklzm84Tr 9638LSGmY61H6X5k3HdtNG41XCe5Xe6PVW3mEkiT2MSYFkHrRpynYDplxuUc/5NfXXdR 0CRxvA48lnqQCzJIYfnGaUFfa7MJdeuSH/KBq75vIWbjjRP+v5n72BmcA+cTv7tiszNf iD5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eV+QIeRE; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dm8si2009504ejc.453.2020.05.27.03.03.24; Wed, 27 May 2020 03:03:47 -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=@linaro.org header.s=google header.b=eV+QIeRE; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728625AbgE0G2N (ORCPT + 99 others); Wed, 27 May 2020 02:28:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728614AbgE0G2M (ORCPT ); Wed, 27 May 2020 02:28:12 -0400 Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90E2AC061A0F for ; Tue, 26 May 2020 23:28:12 -0700 (PDT) Received: by mail-lj1-x242.google.com with SMTP id b6so27499455ljj.1 for ; Tue, 26 May 2020 23:28:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=fuGN860/GT6rsIgye6vRLXh5U9Ac6GXjLL4lq5g3Y6Q=; b=eV+QIeREnm8d0KAolwLemA8K7XqJQaOFoLCumF8tLNjpdNQNPKLvXdWY0PDhgIMJES H66/+8LS3/SPi8fhH55gEtnO24d4TVD4NfCkuNbVMaFpEvmfF+8UUX+uftnUk+Zrn4Vy fP7WRjClwXdPrDqC9/nZqqp4S4t2KIZNhIkEvcnerGDpA3/9XEh3ol31TKcxtjsnYL70 tJvOt8+ZEl2Mhnwbb3Q8VTIbhVNX5ELRKXsscWo0yPbtPMOqtAp4sFlGSNmWmrKz4hYI 4ks3UgIohz0OUzJRUYvla6rLXWuAhv2EkElBCn+wvwNAuvvO8kApecc7lkXr2w1vd/dT bmVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=fuGN860/GT6rsIgye6vRLXh5U9Ac6GXjLL4lq5g3Y6Q=; b=Woxen1qLx4qoVLy/tBbUvkq612xnHmoiwUmsNSLSbnbdh7Cv4ldjWPbKq+2BUJJqE6 2aZta0TB1L4dWtLe54l5Hw7PLo2rYrhhPY3zaY7wIoYuHXotpVYVfpYvhkqwQecRSNwJ VDp64SMTNpXnGTmJFlxyI4GSsiXzHHYIJa+R7uqRseRr1Pse9wd7KA345mlWpGn18f5O MfV/pYKaZvwYdIfy5Zvv2Rx1jqpOkFMCcCbND9SJRr2e2i8akWBq3ydgJOJbQx4tSprO wVmalmq2haSX1vyjEqEESJqoofqZPeTBZTAtebosMu4mAFQWYWljrQXZ1eAGddmz5loC tKjg== X-Gm-Message-State: AOAM530dzt9krFJyBCVTzdo4zO9Is3xYEKx0MVWAEmIRCxMo4cm6s/+5 3yK6PfaYH+qWhzv040MNywXOXAGPkUTttKjJM3fOYJpe X-Received: by 2002:a05:651c:20d:: with SMTP id y13mr2362045ljn.29.1590560890952; Tue, 26 May 2020 23:28:10 -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: From: Anders Roxell Date: Wed, 27 May 2020 08:28:00 +0200 Message-ID: Subject: Re: [PATCH] power: reset: vexpress: fix build issue To: Rob Herring Cc: Nathan Chancellor , =?UTF-8?Q?Valdis_Kl=C4=93tnieks?= , 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 Tue, 26 May 2020 at 17:41, Rob Herring wrote: > > " 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 f= unction `vexpress_reset_probe': > > > > vexpress-poweroff.c:(.text+0x36c): undefined reference to `devm_reg= map_init_vexpress_config' > > > > > > The part I can't figure out is that git blame tells me there's alread= y an > > > export: > > > > > > 3b9334ac835bb (Pawel Moll 2014-04-30 16:46:29 +0100 154) retur= n regmap; > > > 3b9334ac835bb (Pawel Moll 2014-04-30 16:46:29 +0100 155) } > > > b33cdd283bd91 (Arnd Bergmann 2014-05-26 17:25:22 +0200 156) EXPORT_= SYMBOL_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-power= off.c gets > > > a MODULE_LICENSE from... > > > > Correct, it is exported but that file is being built as a module wherea= s > > 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. Reverting that patch with my patch will make allmodconfig work for arm too. > > Anders patch is still needed for arm64. Yes, it is still needed for arm64. Cheers, Anders