From patchwork Tue Dec 26 19:21:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Hasemeyer X-Patchwork-Id: 183361 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp1058100dyb; Tue, 26 Dec 2023 11:29:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IF+MTAfEQsKk6tNDWZCWIXyfLDfHDWGchDPctEB5vUSuHQfCp8dibsxh05vgsNX7vsOGnyb X-Received: by 2002:a05:6870:b150:b0:203:f62c:96ab with SMTP id a16-20020a056870b15000b00203f62c96abmr8401459oal.83.1703618966944; Tue, 26 Dec 2023 11:29:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703618966; cv=none; d=google.com; s=arc-20160816; b=JmyGgPAP10t1zV1gOU/aGOGq+Odpm/tYLLfJEWhvksUOQVJB6J03JUuSP6sarwrWo/ uo7khJNzyhRGZdKS2BWmQFYYo3Xb/9dFvxIiRZW4YPAqkQs25Fc6wWKHHQY7sH1GuIR4 SNYBSswy3+QYPFRIJzOFJ250yEniaa8Icf07d1gTDXmX59j9LstkPC9GeF4Zy5ACVSjx vcSHlWFL7o8nqrH3McLeFqajjCu38OGgD7DO1UsG57sd+bOzh2VdSAVHts8Oz6VXhtxh Y4nlWZx+0cvvHgVkx5iEnzPqGmyv5AorepvMx3wu2NuWkHjnWwKAgnW/OOygbCUdmRjJ mG7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=hayCP5oXfqDKr07tFyakQH54fYrG+Ow3QZu0J2xcXzk=; fh=FhIBmivGh+/HThixXMqUjTaNW+MC6dbUYnVlU+d/OaA=; b=RjRxdgJR//5ZPDq9awkwFnd8devmnnU2jqyzLH5YZRmtsOokDW7C4fUOZk+7wJaRdw drHTY1KjKZH25i/M5onvKkPaq7JPTuZH2Me79fcK/BmPVYH3f1jfKlLHcsAw3UnFGiEa b6GQKnTGgm6mNup1dO1L+1NG4/VuxXRbqN6tLBLi0m116+i2D5C4GQeS0XrnN1RLnnTb Ob2EmP/0DWo+wJMC5YV+c6/SpFPgO/JiiwBgqt370ucDWhYvplcEmN7DN+jJxIC76eXf 5hk34uBGzQ/U74ArkcmB190VtgjCHWLaP1UD9p+cq4k9Y1BjAMaCd8V4YhgK7Wgw3xnn +rOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=StZuggUn; spf=pass (google.com: domain of linux-kernel+bounces-11650-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11650-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id n11-20020a65450b000000b005be00212aa7si9788439pgq.663.2023.12.26.11.29.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Dec 2023 11:29:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11650-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=StZuggUn; spf=pass (google.com: domain of linux-kernel+bounces-11650-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11650-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 04280B225E3 for ; Tue, 26 Dec 2023 19:28:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E1F88208B9; Tue, 26 Dec 2023 19:22:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="StZuggUn" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-io1-f42.google.com (mail-io1-f42.google.com [209.85.166.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 042D31A5B6 for ; Tue, 26 Dec 2023 19:22:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-io1-f42.google.com with SMTP id ca18e2360f4ac-7bb0a93b7c7so5138839f.2 for ; Tue, 26 Dec 2023 11:22:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1703618541; x=1704223341; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=hayCP5oXfqDKr07tFyakQH54fYrG+Ow3QZu0J2xcXzk=; b=StZuggUnNz23lHyZFp6NWdfArrQBiAGQSLc2ZuHNMQ9vZwySx2fpfN9rh9h/CC0DFJ m8bGWASmvPi30tdz8wssd87MY2gqQg7UAXiFozlqSrNqgkHZsZSFk7wS/ZsiDOXq0rsg 3Y0XzraEOjVxpT9tyMlCNnapSpdok+QTf340A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703618541; x=1704223341; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hayCP5oXfqDKr07tFyakQH54fYrG+Ow3QZu0J2xcXzk=; b=VZ/P4kU7TDUBj3HoX167+I8nWNvdgJJcJagBpONFm4/bWVySFqrl2zSRyuUO+K0siX ahe27u8/S1dyhCEhqR+7VgWE4Q40XUivFsoR9GiTVBUky9Ub+OxGUyZNQykDi1k3BL+H fUAaN3JLpq/B1NwdX6EDuDkaRP/uhCWehtaGbnZMutTh3eVYiUCdJ9GO/rL2Cm9xTGQH QDkJ3Swz3B7//zaSlO71HiXP4r47xkW2jzzZ2xLTDY37ASqyb8NHDf+pn0jGSwoys3II 3sg1MBIZK03tD82aORT0FSyVI0h45GkQcZGzqsaEbqtNROi//kUqBw7ORLwdty49HGxh qaKw== X-Gm-Message-State: AOJu0YxN0sAtZL68mWwciIsuFSNgub4exmBKMtGN1dozVKjmtcJrZQBW fL0oQl5ZpP3lzEbtmyzWyPQ0OhzJa5psblAuQo+zIwK3/Cjj X-Received: by 2002:a6b:f008:0:b0:7b7:4c36:f295 with SMTP id w8-20020a6bf008000000b007b74c36f295mr9063772ioc.40.1703618541107; Tue, 26 Dec 2023 11:22:21 -0800 (PST) Received: from markhas1.lan (71-218-50-136.hlrn.qwest.net. [71.218.50.136]) by smtp.gmail.com with ESMTPSA id gw3-20020a0566381ee300b0046b692e719esm3207609jab.150.2023.12.26.11.22.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Dec 2023 11:22:20 -0800 (PST) From: Mark Hasemeyer To: LKML Cc: AngeloGioacchino Del Regno , Krzysztof Kozlowski , Rob Herring , Konrad Dybcio , Sudeep Holla , Andy Shevchenko , Raul Rangel , Tzung-Bi Shih , Mark Hasemeyer , Sakari Ailus , Andy Shevchenko , Daniel Scally , Greg Kroah-Hartman , Heikki Krogerus , "Rafael J. Wysocki" , linux-acpi@vger.kernel.org Subject: [PATCH v3 22/24] device property: Update functions to use EXPORT_SYMBOL_GPL Date: Tue, 26 Dec 2023 12:21:26 -0700 Message-ID: <20231226122113.v3.22.I186bc5737c5ac4c3a5a7a91e9ec75645e723ca7b@changeid> X-Mailer: git-send-email 2.43.0.472.g3155946c3a-goog In-Reply-To: <20231226192149.1830592-1-markhas@chromium.org> References: <20231226192149.1830592-1-markhas@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786373961817277154 X-GMAIL-MSGID: 1786373961817277154 Some of the exported functions use EXPORT_SYMBOL instead of EXPORT_SYMBOL_GPL and are inconsistent with the other exported functions in the module. The underlying APCI/OF struct fwnode_operations implementations are also exported via EXPORT_SYMBOL_GPL. Update them to use the EXPORT_SYMBOL_GPL macro. Suggested-by: Sakari Ailus Signed-off-by: Mark Hasemeyer Reviewed-by: Andy Shevchenko --- Changes in v3: -New patch drivers/base/property.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/base/property.c b/drivers/base/property.c index 441899171d19d..4f686516cac82 100644 --- a/drivers/base/property.c +++ b/drivers/base/property.c @@ -1044,7 +1044,7 @@ void __iomem *fwnode_iomap(struct fwnode_handle *fwnode, int index) { return fwnode_call_ptr_op(fwnode, iomap, index); } -EXPORT_SYMBOL(fwnode_iomap); +EXPORT_SYMBOL_GPL(fwnode_iomap); /** * fwnode_irq_get_resource - Get IRQ directly from a fwnode and populate @@ -1082,7 +1082,7 @@ int fwnode_irq_get(const struct fwnode_handle *fwnode, unsigned int index) return fwnode_irq_get_resource(fwnode, index, &r); } -EXPORT_SYMBOL(fwnode_irq_get); +EXPORT_SYMBOL_GPL(fwnode_irq_get); /** * fwnode_irq_get_byname - Get IRQ from a fwnode using its name @@ -1110,7 +1110,7 @@ int fwnode_irq_get_byname(const struct fwnode_handle *fwnode, const char *name) return fwnode_irq_get(fwnode, index); } -EXPORT_SYMBOL(fwnode_irq_get_byname); +EXPORT_SYMBOL_GPL(fwnode_irq_get_byname); /** * fwnode_graph_get_next_endpoint - Get next endpoint firmware node @@ -1355,7 +1355,7 @@ int fwnode_graph_parse_endpoint(const struct fwnode_handle *fwnode, return fwnode_call_int_op(fwnode, graph_parse_endpoint, endpoint); } -EXPORT_SYMBOL(fwnode_graph_parse_endpoint); +EXPORT_SYMBOL_GPL(fwnode_graph_parse_endpoint); const void *device_get_match_data(const struct device *dev) {