Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp5756497ybx; Sun, 10 Nov 2019 20:58:16 -0800 (PST) X-Google-Smtp-Source: APXvYqxt2pFp1+pMB5cz2ZvNNsllIdvotWvYpyEv0Ri1V9UuawkI1f7v9Zdkrsv7hjsbh1leE/nM X-Received: by 2002:a17:907:20b8:: with SMTP id pw24mr9062908ejb.28.1573448296123; Sun, 10 Nov 2019 20:58:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573448296; cv=none; d=google.com; s=arc-20160816; b=QGHrva1yUeGeOmEndeZR1fxzXwgvk9qGA/ddnV3cNPAu4b06jG+Wq/zfAZ/6lM5U+4 wdbUXykiyk7DGIjpLggSzZWx1L3qLkhsgodykxybgOkt+xC7QPkyA2grf/0fruf7ah4H zwMKEdvnMTSsWK38YS43GrSj0dXQGeDmrM3RGSqlq7qgK5aRTT0HM9tjQOA6TmJFDP6r TjIkS2PEWq/E77pmNQwZusDiY1LohTwmjAWB4oRc4OrVcAlD6ntZB7FqarJhM+DpZxyl 5dD8agJW2CHWSkD+RrKI81jq+57vF+MZXel4PebqeoyaX3/dVu/tG21nbFd6hN31OH/k MZpg== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Qi2I0P98O+PR3R0ElYzARgQcTgZiWJKaUe4afqd8JxM=; b=lfpLvDfinI9IYN5xg1tHBhQgVeQW9K8udrhcMu+YoHGv0/e/BjRksBdb/85BVPoE2a Ig317NjT9fXdGvp/zaDYX3m9Vk2RlpvuecioR2yMewqHgtSoRjmPlpEbSiC0OuBqccu1 UmQ0XolE0mlPupFyIcwhkmL2eC0Ik/S0KSFP1x8yQkBbd/3mTtX7j0q+atbA1liaC4KT jvahxOPSHFks6V3T7Uqbq2KAW3HF+PfdaZEJ6TtdFrRbFDzNqn4aC/3JykwGHYn5BGnn aZzZ7jTdPJb+ieX9JLWEzEahv5LJKIBQ3nzwEN23Eufjge5HZpQuocJe4kQvbgsA3opc M4YQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bo21si9322061edb.137.2019.11.10.20.57.52; Sun, 10 Nov 2019 20:58:16 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726923AbfKKE4S (ORCPT + 99 others); Sun, 10 Nov 2019 23:56:18 -0500 Received: from mx2.suse.de ([195.135.220.15]:48606 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726768AbfKKE4S (ORCPT ); Sun, 10 Nov 2019 23:56:18 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id E3D15B18C; Mon, 11 Nov 2019 04:56:16 +0000 (UTC) From: =?UTF-8?q?Andreas=20F=C3=A4rber?= To: linux-realtek-soc@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Andreas=20F=C3=A4rber?= , Lee Jones , Bjorn Andersson , Geert Uytterhoeven , Greg Kroah-Hartman , "Rafael J. Wysocki" Subject: [PATCH] base: soc: Export soc_device_to_device() helper Date: Mon, 11 Nov 2019 05:56:09 +0100 Message-Id: <20191111045609.7026-1-afaerber@suse.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20191103013645.9856-3-afaerber@suse.de> References: <20191103013645.9856-3-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use of soc_device_to_device() in driver modules causes a build failure. Given that the helper is nicely documented in include/linux/sys_soc.h, let's export it as GPL symbol. struct soc_device is local to soc.c, so it can't be inlined into the header or into driver code. This still handles only the case that CONFIG_SOC_BUS is enabled. Same as commit da65a1589dacc7ec44ea0557a14d70a39d991f32 ("base: soc: Provide a dummy implementation of soc_device_match()") we'd need to provide a dummy inline implementation to cope with COMPILE_TEST, too. Reported-by: kbuild test robot Cc: Lee Jones Cc: Bjorn Andersson Cc: Geert Uytterhoeven Signed-off-by: Andreas Färber --- drivers/base/soc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/base/soc.c b/drivers/base/soc.c index 4af11a423475..72848587cd51 100644 --- a/drivers/base/soc.c +++ b/drivers/base/soc.c @@ -41,6 +41,7 @@ struct device *soc_device_to_device(struct soc_device *soc_dev) { return &soc_dev->dev; } +EXPORT_SYMBOL_GPL(soc_device_to_device); static umode_t soc_attribute_mode(struct kobject *kobj, struct attribute *attr, -- 2.16.4