From patchwork Tue Jan 2 21:07:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Hasemeyer X-Patchwork-Id: 184468 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp4686923dyb; Tue, 2 Jan 2024 13:15:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IFVuTGFDGVH1KvOHxb+VaRWO6+T0KMsa6Rd4VQWSaLOHTqG/mDac886pUOyH7idVZ6/ZVrX X-Received: by 2002:ac8:5787:0:b0:428:3133:71a7 with SMTP id v7-20020ac85787000000b00428313371a7mr1478580qta.49.1704230120735; Tue, 02 Jan 2024 13:15:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704230120; cv=none; d=google.com; s=arc-20160816; b=0xl8EW3n1UkHbNDd+hlj1Nu3wJAH9YTSnMuTPfEJ+j9iwroF/69WLws1ok1DMuC+ET mX6dOEjjJXFoeoq8w716xD1QEaLBXNBQt+CZZb8rpI9hi8d9rooxh3yytNeBI9/NjMFY By6ciLolX/FgVEy24yrRL4zJ6kF24R75wMj30zOtC36IRddO96dM/kqVV2q54cNM5osW HVes91MMRZTfDty+x0GZmO3EhARI80f5bdvj3GkQ6txOendBf25ODOCx4xi8gURWn9rH 1JVU92bkFOb3NuM7v+PTB4h39/KUpezeDU9oQIh3l8/VX0sglOJUASVnPXRTvgPRYmMJ n/mw== 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=sCG4rEgr/FQR7hxUStyYKIoU69lpCt3KIAVsm7R5chw=; fh=7ED9cFxIzMb121hW6YnNsY862rb3fkYAGjskaOF/DEI=; b=lc9aY0QpEFqsGOG93eWbtG1sghqNrs08W0wj2UTgGz8NK8ObH5v2NqM5mvlTdkipIF jftOEEdWEllriYC1lKTuGE3V/Ho70Rn1jCtdYEixxvdQJiLics4rzajKQnp7NbOvP0UF 6N58iYkO84/JX9zddp443gcX+XxtfH6jH3vIBcg1KQLjvBft0ukWKQMQUi82h4Yo/LZ/ NNQx6/Z/prCGoN+1jndjcSoC5K+QqDdbpXF3YL1C13LxSAKZNwJ+OYhylMKBSYKXbQJ1 hhbxUMCMrV84ysKT3LTsJ27wea5dbMOyH2LcpV8nCB4iFINbXQFbqH2lhd74nhCPfVJb Pxtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=HH7tFOjr; spf=pass (google.com: domain of linux-kernel+bounces-14846-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14846-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id a8-20020ac85b88000000b00428138cfcffsi7367216qta.801.2024.01.02.13.15.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 13:15:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14846-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=HH7tFOjr; spf=pass (google.com: domain of linux-kernel+bounces-14846-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14846-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 87A1D1C21600 for ; Tue, 2 Jan 2024 21:15:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2CEB41A5B9; Tue, 2 Jan 2024 21:09:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="HH7tFOjr" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-io1-f44.google.com (mail-io1-f44.google.com [209.85.166.44]) (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 4A636199BE for ; Tue, 2 Jan 2024 21:09:04 +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-f44.google.com with SMTP id ca18e2360f4ac-7b7f2c72846so491266539f.2 for ; Tue, 02 Jan 2024 13:09:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1704229743; x=1704834543; 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=sCG4rEgr/FQR7hxUStyYKIoU69lpCt3KIAVsm7R5chw=; b=HH7tFOjrAQTrdWIDJwg39s5pkcy+elPqqdPyYMArPhsxRixM6h/JAHq2NBec+JYJFq FTxNbr7+7HxnH6nIBXll3KHOSWFKmb+e2ZSYN6iUv/i8s3ZhVyaO0l1Oxxt6C/22osve gvQJlJC5UXoxyrkSr6+QTVvy+fITN4RdMHCdw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704229743; x=1704834543; 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=sCG4rEgr/FQR7hxUStyYKIoU69lpCt3KIAVsm7R5chw=; b=e7+OFnxzdL9O6o4Re7IFq0OAJPfvlL9RixD1edDMhkPiknVepAQ2D050CDxKPKnSDp iTR0I0ui67T2QdBJJ2mAUhnKBkRWwMJgk9+DMZaxvJZbk9utjTyxCA4c9Jg0BvmbQw1Z NIV6fjeKm7OaSnjuE5nAflC6bNrkMhV435uPyA+vhnyaOwrdK+6gWttGU0r/9pb3Vjpf oLLPysy8GiKZc5BvFDqWqEKJxaObfL5T0WuEdTqRJwjgvVx7Ue0rgz2Uw6Uy+2tHM9mP ww+dioow60aMviCYBqkJg8JxVxQBy3PdlIVjIF1nF1W8gn6uXlz5NIymi9chksWqLCEp zZJg== X-Gm-Message-State: AOJu0Yw8FkTaNdajUiIVtiXDJHtniX2snjho0GpW5xZxVFw/4Km++csW pNR2SAU38NnRwNqJn8CY/pz4yHgnor/cSld21k9PY0ulM+rd X-Received: by 2002:a6b:c996:0:b0:7b7:fe2f:dddd with SMTP id z144-20020a6bc996000000b007b7fe2fddddmr18896089iof.22.1704229743320; Tue, 02 Jan 2024 13:09:03 -0800 (PST) Received: from markhas1.lan (71-218-50-136.hlrn.qwest.net. [71.218.50.136]) by smtp.gmail.com with ESMTPSA id bo18-20020a056638439200b0046993034c91sm6956978jab.77.2024.01.02.13.09.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 13:09:03 -0800 (PST) From: Mark Hasemeyer To: LKML Cc: Sudeep Holla , AngeloGioacchino Del Regno , Rob Herring , Andy Shevchenko , Krzysztof Kozlowski , Konrad Dybcio , 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 v4 22/24] device property: Update functions to use EXPORT_SYMBOL_GPL() Date: Tue, 2 Jan 2024 14:07:46 -0700 Message-ID: <20240102140734.v4.22.I186bc5737c5ac4c3a5a7a91e9ec75645e723ca7b@changeid> X-Mailer: git-send-email 2.43.0.472.g3155946c3a-goog In-Reply-To: <20240102210820.2604667-1-markhas@chromium.org> References: <20240102210820.2604667-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: 1787014803173965849 X-GMAIL-MSGID: 1787014803173965849 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 Reviewed-by: Andy Shevchenko Signed-off-by: Mark Hasemeyer Reviewed-by: Sakari Ailus --- Changes in v4: -EXPORT_SYMBOL->EXPORT_SYMBOL() -Add Andy's Reviewed-by tag 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) {