Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp2191780lqa; Tue, 30 Apr 2024 10:24:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVP9oZilm/Is+WwUnME7MReHudw57fe+vgxlqWHLm2zEy7kwmjntv0Hx8wF4nGOE+xDXxO3QhRtL///FrV814bvatetCm4/4xFDB6PGeQ== X-Google-Smtp-Source: AGHT+IFc+ofbZAysifKymoDlwDIZXIPw0LW6CVQ++HyNpEOd34Hd+AlND/EmWATNNb5t/ycwM4eu X-Received: by 2002:a05:6a20:9497:b0:1ac:dead:b221 with SMTP id hs23-20020a056a20949700b001acdeadb221mr1316pzb.40.1714497846964; Tue, 30 Apr 2024 10:24:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714497846; cv=pass; d=google.com; s=arc-20160816; b=cYo640DkZ+xZSKXJ4DAYqzxbiH09PWa3T245CatUclnTd1ZwTfhIsxifhEZ6eztqYm x8U1aLIYWrwxmtafNvcJFdnWni7ldY2IcNBuVTi1mxdXkv+5jErLn3wa7MDpDs8rc5qM tkRkRnYBTwSEDo7wFX/9u8RXTEsgWgwr4O8SFBQNmLJpbk0jmarNfSMJkC33T54lCq1a TuTZJyUmwaQBA19/NSTpfs7SkZZQaM6uH1NhyQ6+CH7/gOsuWCO505se3iQUr1NHppZV 0dMVFPYUp8YQfLDGhluza83ApDOIKAO5q8C90RPJXZUrvI6P0EFaE4s5QQLZ1B2M0u0B Etbg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature:message-id; bh=gUhs30l2OBlQwExDZS/5EdgveO3O4boTdpbSw9Od6Is=; fh=+kZ7WILhnuFPACoXmCXL3uE+j3umRE2+ci6LRi2OqXk=; b=bUZFPo6eE21XRd1EAhKBilj+hL2h7Z1jkEHQmFCSp8+SdSxZD9QXssBcd+QzMvqvpw 8mPNtW7tKDtzAu2eH13/37C5/pqY0dFFMAXKWpff6rcS2eSpoVVZsd0Zz73/DeJvRRNr JII4LSZYnXgBYJOedzNVQeKTzlBVRPg5EKdfkDwdmk20hLbyHXgDN0Vd/+LEn4aDgRu7 j3JRLeypI4ljHelHCOvqg2ay8PcRDZbSvJf+1Wglo364XOmDX0xr8T0WW+jSUd+YvPwk qTwZ05k5iYafpvSORWvB0X8jpcsQW9Ow6hwaSkOVXEiGtg4qIZDg8hGc7RSrk5GNS67e +2+A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="w21hh/p+"; 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-164498-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164498-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id j18-20020a62e912000000b006ed53b26535si21741592pfh.115.2024.04.30.10.24.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 10:24:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164498-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="w21hh/p+"; 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-164498-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164498-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E3ECA283056 for ; Tue, 30 Apr 2024 17:14:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8387417BB0C; Tue, 30 Apr 2024 17:13:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="w21hh/p+" Received: from out-185.mta0.migadu.com (out-185.mta0.migadu.com [91.218.175.185]) (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 832A517B4E1 for ; Tue, 30 Apr 2024 17:13:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.185 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714497236; cv=none; b=WCWfoXZQY1c8kOmYz8mZCVbZ0mxBuUuTpc7tS6UG4Vx/3vmOxWxoFw7Chc8dB+gz6oXZkHlkRCV+sE9r9Du59qeeqDByVb5svrsVFQR3ldlYaxcKDobqoH9rnyBy3h7Wp9LWf2AowyCrxV0UDrqau0EqvqyTLpPm04CY74kouVI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714497236; c=relaxed/simple; bh=u13WVDDF1j2qoKaU9LvRMy/+HAmqkSIAOTnlmqvKLbU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=lUnAIDR6/HCH7iUj1Oy6uCwoRhln4RWzfOyzCaDREWkg8ddXQJ31C0r2Ar98tNCEWF12eRGCZgTKAmVtXX214pqDYWWcE3YqOQHZ4c2XPlPX43KlsaNRSo295J/NPukH8KqhI2u29mEws9/2mgG1wDO8MdJpPVNI4Z1+ZLnMvy0= 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=w21hh/p+; arc=none smtp.client-ip=91.218.175.185 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 Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1714497233; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gUhs30l2OBlQwExDZS/5EdgveO3O4boTdpbSw9Od6Is=; b=w21hh/p+scEshFkQfWJzAgyyv0UQWr9OLYMqd8dRqVfbcrK90o9Jt3FVcaA6OJn6enwp+v ZFICrxrniubIjQR2eKjezqE9NseCDQTvyxXe/yxtsyEfSYBRjeXXP0ocqdLYlBUpd66qEH 1WDjMBmV+TcMirhc9YIRCSYe3UWgNho= Date: Wed, 1 May 2024 01:13:46 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH] drm: drm_of.c: Using EXPORT_SYMBOL_GPL instead of EXPORT_SYMBOL To: Maxime Ripard Cc: Maarten Lankhorst , Thomas Zimmermann , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20240429173521.709719-1-sui.jingfeng@linux.dev> <20240430-monumental-amazing-auk-c2c1a5@houat> Content-Language: en-US X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Sui Jingfeng In-Reply-To: <20240430-monumental-amazing-auk-c2c1a5@houat> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT Hi, On 2024/4/30 17:26, Maxime Ripard wrote: > Hi, > > On Tue, Apr 30, 2024 at 01:35:21AM +0800, Sui Jingfeng wrote: >> 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. > You're conflating two things: the license of the code itself (GPL2 > here), and the license of the users of the symbols exported in that > file (anything). > > There's no relationship between the two, and you have to make an > argument for changing the latter other than just because the license is > GPL because, again, those are two different things. Yeah, I think you might be correct. It seems that it is valid to have EXPORT_SYMBOL() in GPL-2.0-only licensed file. > Maxime -- Best regards, Sui