Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1517046lqa; Mon, 29 Apr 2024 10:35:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW0eIZmLfklkPxZ6CoXAWxx/uAH092oP53Y3BDEg1QUm7Jw4aVr+gY2vk63dbzmTYw9mfYbTGrb3kOnqR5rwYJRv/A9qv7nCKqj7m2aSQ== X-Google-Smtp-Source: AGHT+IHO0eb188/lUj3EJ4MwWWuuxsKrqn0mcQuxi9h6hv2FTBpH/NT4ffxE53ToYnLQpThHiKFJ X-Received: by 2002:ac2:5453:0:b0:516:e8b1:9ed5 with SMTP id d19-20020ac25453000000b00516e8b19ed5mr212310lfn.59.1714412138509; Mon, 29 Apr 2024 10:35:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714412138; cv=pass; d=google.com; s=arc-20160816; b=e/sI0Jf4hFQ5Y5uFDMQdOZPJbybAhplqolEgP3a+3wyTyX/moYQaGGZ18iW0LuSoN+ yeNkEQsqA3g34aULf7dzb62gBgDrhODfJfF7Gdf94Mp96XhumLnmwxCUhueR0gU8gM1G i8TTfueCq/eyuvspHUTvu+ZSKKbkjvh9yD2G//hm691olNPJWayLnqNv0VYny9x8R9/G SmGz3nJeoIyTHYC/nDhMP8nRXxdstFqjgmqpm7ezPlJA3bpoqrmeZLq0DMpGmIKdXo4t Q9WM1t6np4J0n+PK1i4UYHDzYBjBE5l/LimEWBzFbzEPe1RPWfRMo3/11PXmu2G4DpYW xniQ== ARC-Message-Signature: i=2; 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:message-id:date:subject:cc:to :from:dkim-signature; bh=n0mr83jQFnbS/LkT/ppLN9l+vhlOUacudDF+vKeopdw=; fh=RSNXeCF4EvS2mQae62Yr59ZSd2a2RlfTh2iPgEXQ32U=; b=SHQdMFYpmXAf6foZa1w+eR3siZZfBUukRWQ6YTn3HDG7k1iCMAYLuuoDg64kpqopGX bXaYe0gKvGDYLwcpJ7HgUFdHaCyBbucQY9f0KCPas809nTYyTS6nSzBQIVSY4CqFR3Fm NCuXnxhi+54mB3EkDvW0dOQ1X9BlvSHgjhDmBU5aF09Dcv+x2KtKXovuKfgoDdoKg/Qn y1QA9+tdTE9Zg9OwU2IWQN5nR3hgsaSyLetGm2id2aTmZff1LrDlZ8cDCDwozyZXQ0EO DFFiz2UmiIAUFdgCi8JrjkoSt1iyqqWp70pL1vujo8o9U88GbWweSm/3+RlkqrIOxuo4 pPsw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=u0N6tblE; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-162761-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162761-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id f10-20020a056402150a00b005727a2245ebsi2223380edw.97.2024.04.29.10.35.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 10:35:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162761-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=u0N6tblE; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-162761-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162761-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 39E981F21BA8 for ; Mon, 29 Apr 2024 17:35:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2D35986AFE; Mon, 29 Apr 2024 17:35:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="u0N6tblE" Received: from out-182.mta0.migadu.com (out-182.mta0.migadu.com [91.218.175.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5706F8614C for ; Mon, 29 Apr 2024 17:35:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714412132; cv=none; b=gZ5M/9o2You5M7QhIOktDp7T57A0h3GwrZGmDbsb0y39nJopKwwm65CX9t56iJJmVS/WtAPAjkA4vdLPuYxeBUPcfzsFcB6D9pgH3Gu/LBEBiBYfWMl1cipzdZxLRtooUIFKnM04wKq97cbojSw5hfgpl8L7695kqS2pJVsIchY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714412132; c=relaxed/simple; bh=dOUe2WWZzlqk8YBktPP4n23wAwUymxMP3IYBUIaW6XE=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=jMAIFvg5iWoZAb2MKLrCElG8onQtyresXURjy6YbY2YM23yhYQjqLCUj9w/isOPxCrBHjNhnWmVSLrHdgoLTd+AHC3RqGMvcP3VqeZUEmIUAJGgljV3lYrclniBL1buNPJDjrAhS68/X9XikfYO0ZnSMZEyICpCv+1JDP6KWyNE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=u0N6tblE; arc=none smtp.client-ip=91.218.175.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1714412128; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=n0mr83jQFnbS/LkT/ppLN9l+vhlOUacudDF+vKeopdw=; b=u0N6tblEIt128FzOUGXN46EKaYoLHh9F+OyQOHRxcnKwKywR5h/zwb27HJAQ0TaS0TWucL AnBthNT9fyVV73vfCeLLLEWAjbt2+PD8kpQ9hEBbfXIVIPVUCfCh9e4aWxRzrmXGPaBX8A A+k7Gcnbf+i3tQtBP4G8KomY946lgLc= From: Sui Jingfeng To: Maarten Lankhorst Cc: Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Sui Jingfeng Subject: [PATCH] drm: drm_of.c: Using EXPORT_SYMBOL_GPL instead of EXPORT_SYMBOL Date: Tue, 30 Apr 2024 01:35:21 +0800 Message-Id: <20240429173521.709719-1-sui.jingfeng@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT Linux kernel puts strict limits on which functions and data structures are available to loadable kernel modules; only those that have been explicitly exported with EXPORT_SYMBOL() or EXPORT_SYMBOL_GPL() are accessible. In the case of EXPORT_SYMBOL_GPL(), only modules that declare a GPL-compatible license will be able to see the symbol. Since the whole drm_of.c file is declared with GPL-2.0-only license, so let us keep functions in that source file consistently. Signed-off-by: Sui Jingfeng --- drivers/gpu/drm/drm_of.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/drm_of.c b/drivers/gpu/drm/drm_of.c index 177b600895d3..1ca36d654e61 100644 --- a/drivers/gpu/drm/drm_of.c +++ b/drivers/gpu/drm/drm_of.c @@ -44,7 +44,7 @@ uint32_t drm_of_crtc_port_mask(struct drm_device *dev, return 0; } -EXPORT_SYMBOL(drm_of_crtc_port_mask); +EXPORT_SYMBOL_GPL(drm_of_crtc_port_mask); /** * drm_of_find_possible_crtcs - find the possible CRTCs for an encoder port @@ -77,7 +77,7 @@ uint32_t drm_of_find_possible_crtcs(struct drm_device *dev, return possible_crtcs; } -EXPORT_SYMBOL(drm_of_find_possible_crtcs); +EXPORT_SYMBOL_GPL(drm_of_find_possible_crtcs); /** * drm_of_component_match_add - Add a component helper OF node match rule @@ -181,7 +181,7 @@ int drm_of_component_probe(struct device *dev, return component_master_add_with_match(dev, m_ops, match); } -EXPORT_SYMBOL(drm_of_component_probe); +EXPORT_SYMBOL_GPL(drm_of_component_probe); /* * drm_of_encoder_active_endpoint - return the active encoder endpoint -- 2.34.1