Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp50031rdb; Thu, 1 Feb 2024 01:30:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IEaKqx7E5GCNiJolMaKxbhndtyLlxx70+6xx5FaiImrrilIIdd7qi3kBOp693/8N1SaDCRi X-Received: by 2002:a05:6359:1009:b0:178:6f88:e98b with SMTP id ib9-20020a056359100900b001786f88e98bmr3690749rwb.8.1706779800012; Thu, 01 Feb 2024 01:30:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706779799; cv=pass; d=google.com; s=arc-20160816; b=gpMciw4OoG6Rowf9aSJ9he35H3d6+hv5qUPVVyHFQM8LALjnngmanfyVLpE9cQlbvG ac/MyAdrHgRAajGJpo9KYHKCS4J0WLX/ZegqUXcNCvRa3vBGRkTdqTEcvWIoQatmy1Lu vHdxWIOpS4kk4OecUytKnzQdSqJ8FUmgfcuCBzBcn/e03ZmMxYKD/QggKoKBwrZmBl3S vdlQeb0FKSSDFZTI22y6JsUHFWB8WtYoIomoovGuPZBmHfu1GGYZ+7dFe8/R160OgtyA EXdkVXLOQEadbIXYSK6u7W4pnyl9NugoA/VPv8ZJqWJMI2m7HiiSMVzaPWKz+cGrFLMB UXlw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:subject:cc:to:from :date:message-id:dkim-signature; bh=gR2SCc4BIE8sv2cc5ChJ04+ZAy4Os5pvthMcTA+RFl4=; fh=u9KOMEPnE+GMOHX8PmPVnV6MApBgU5TUE1yBKhVKXvE=; b=DcnVrk2nFA6fFii8doPyEbVrKUzMamnjqn1IsgNtrNKzXFqHd91XZEmXGzGmycUwob bPPrSXajz7bNqr1vPohW/zwYoVg2jEmSSGQzUw3cogNereydzsSmJXa5mHFBP3AtWA+o MSlimhop8Q4/OBj5MWK8peCbgQ5Zy5XGeoNHo39r5BZR9UVEY1UhCISkEWBswvsupLIq 38FWNKGHvnCWDSEktg+Ra6YOe/MiiFQASTCVlZWz86z3ja0Jn72WrAuUtYAO/GWHd0zt wRQkJQlIWzyscvcW+lPvf9W5CFtMToW5A9PXv/Yn+9e7sg7EB1H8iE03vI/v6iHdLHg/ 4Sbw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FHwRg8MB; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-47863-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47863-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=1; AJvYcCVJ++prp0UyS9qyD72UXZ7HGA3zm/KEmVhlmUsIB5p4WciwwNNY/mZBQtuJN7Py3b6CoAnBoIlnyavBol3yKw/odS/iHnh07mz28vlTSw== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id z1-20020a63e541000000b005cf97c743c6si9568529pgj.749.2024.02.01.01.29.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 01:29:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47863-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=@gmail.com header.s=20230601 header.b=FHwRg8MB; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-47863-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47863-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 96FFB28A88B for ; Thu, 1 Feb 2024 09:29:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2516015B0FA; Thu, 1 Feb 2024 09:29:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FHwRg8MB" Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (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 B039015AAB9; Thu, 1 Feb 2024 09:29:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706779793; cv=none; b=Dd5boGBfVCychg2s2cvNehrSdC2BQ7mJAe/4EMDnKMRgM0mZgKqllhxzX3oR5QEuYaFgd44ISial0B2mGl/XJw4nRvErENhokQRvoH4Z/mT4Cm9jdu9ZpHS9F64zwComNFGobpfk3y3itonGMuX/zNRhMTDB9/gUzBPFhKKCdD4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706779793; c=relaxed/simple; bh=+NCwuuUEC8gh4wddwJD1ZoXxyVyQK76LQS+PgiYO2+g=; h=Message-ID:Date:From:To:Cc:Subject:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BWF4TTGOLbE2HPkofwtXghHTmELIPH/Y7PU0WIYokOEmYLWpbtl4AGr+H6iIRH01wh4hshWTXryXgREAicAePBN88cET1EDdFj6k2iiR+Et68VDdncrbE7TrBclZne1wIaa+Isf8MUI+GF+UUIcu20RETB0+EeKzszRpgog56TQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=FHwRg8MB; arc=none smtp.client-ip=209.85.167.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-51124d86022so1133758e87.0; Thu, 01 Feb 2024 01:29:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706779789; x=1707384589; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:subject:cc :to:from:date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=gR2SCc4BIE8sv2cc5ChJ04+ZAy4Os5pvthMcTA+RFl4=; b=FHwRg8MBbZz9LTfqahu/eeaEIoEL2gZun3E5ETN0LDqIh3ssanfBB4adiY4/emZMrQ knFxAwUaA8RfhZTlrgCZVxO7KV3ChwZ3+zk7ArnTNi3akAavIrAD5tSeNKMwtJ26FLge EHgiEZQ2N/TlzlrJynns/8ZjuFXU24/HSDxfMkz+lzOf+nXhTNM7brCALny4BICGY3tD ByXDYXf8WrVgzDhbW3D76T+MVd9e74m3KkL9+9N+cf7qhfwCvTxqkKwlRr0XPOpX7r6k PKnhkxE2I8rp095ta8kFngzPKjGqFB1cCHBpumGmvCG1Ihja35wRyd3Gb8r8jwS4fJ1s E4DQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706779789; x=1707384589; h=in-reply-to:content-disposition:mime-version:references:subject:cc :to:from:date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=gR2SCc4BIE8sv2cc5ChJ04+ZAy4Os5pvthMcTA+RFl4=; b=iTn1SNxFeyHfL7qT2eL8sHAjafTcWZY1bowsL9zOMv1R9BKqPPnH2stft7H4cOEnD2 +fXEqyu4xRCvl4VpO8CvFYUoFLOc5IMM2miiX79icew7VETo5tDQDVaKyHVHCZ4QtAM3 czoBMqYqvEE1NbdLJ/m746pUUYOKvc6jOa8SFre3UYXi17+sPdCiyk4BFhh8Fw57+lYd 3bYt5Uk3pNoz59CpxLjeLsEQQVQPxHd/lariZiv+vBSAkeKatr6px2Y1MX01vXJCygtA P2x+PwbAaaOJnyJtyC1YSQIH6vCkYBw2sFJwayL3reXftQOWlsoBFtyYTyFmP0RkHcZi /jZA== X-Gm-Message-State: AOJu0YyVOBGEne3W/V7dZJHe50cFsEkl6ItstmVAxdKCpYNVy0EkUo7D 1hZBuAcTq16uGKw8HgMIq4ixyixoMFpBeXKiLpE3sXZUJpTwV5d0 X-Received: by 2002:a05:6512:21c1:b0:50e:6b5d:5976 with SMTP id d1-20020a05651221c100b0050e6b5d5976mr1296346lft.40.1706779789357; Thu, 01 Feb 2024 01:29:49 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCWqnYUTtWXGe3JQ3yFJz0StJ0H2XP76LgcJO3yNTUDd3r5jlndDZgz1LhqosHGqFg1UCaI8VuwW7z73Ynx1FhROro2avzqUVaiRi/6RKSKsKqN4ZtOZLRTtIoqO14upwk8SulrX4cdu3+lBVdfrQ+dppF7DHp5BQ1TOmwjZUixp Received: from akanner-r14. ([77.222.24.25]) by smtp.gmail.com with ESMTPSA id b25-20020a196719000000b0050e74ec73f6sm2177203lfc.124.2024.02.01.01.29.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 01:29:48 -0800 (PST) Message-ID: <65bb648c.190a0220.d431d.4f63@mx.google.com> X-Google-Original-Message-ID: Date: Thu, 1 Feb 2024 12:29:46 +0300 From: Andrew Kanner To: Christoph Hellwig Cc: mcgrof@kernel.org, linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org, mchehab@kernel.org Subject: Re: [PATCH v1] module.h: define __symbol_get_gpl() as a regular __symbol_get() References: <20240131190251.4668-1-andrew.kanner@gmail.com> <20240201052958.GA14943@lst.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240201052958.GA14943@lst.de> On Thu, Feb 01, 2024 at 06:29:58AM +0100, Christoph Hellwig wrote: > On Wed, Jan 31, 2024 at 10:02:52PM +0300, Andrew Kanner wrote: > > Prototype for __symbol_get_gpl() was introduced in the initial git > > commit 1da177e4c3f4 ("Linux-2.6.12-rc2"), but was not used after that. > > > > In commit 9011e49d54dc ("modules: only allow symbol_get of > > EXPORT_SYMBOL_GPL modules") Christoph Hellwig switched __symbol_get() > > to process GPL symbols only, most likely this is what > > __symbol_get_gpl() was designed to do. > > > > We might either define __symbol_get_gpl() as __symbol_get() or remove > > it completely as suggested by Mauro Carvalho Chehab. > > Just remove it, there is no need to keep unused funtionality around. > > Btw, where did the discussion start? I hope you're not trying to > add new symbol_get users? > Of course not, no new users needed. I haven't discussed it directly. I found the unused __symbol_get_gpl() myself, but during investigation of wether it was ever used somewhere found the old patch series suggested by Mauro Carvalho Chehab (in Cc). Link: https://lore.kernel.org/lkml/5f001015990a76c0da35a4c3cf08e457ec353ab2.1652113087.git.mchehab@kernel.org/ The patch series is from 2022 and not merged. You can take [PATCH v6 1/4] which removes the unused symbol from the link. Or I can resend v2 with my commit msg. But not sure about how it works in such a case - will adding Suggested-by tag (if no objections from Mauro) with the Link be ok? -- Andrew Kanner