Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp7694rdb; Wed, 31 Jan 2024 21:30:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IEC64dSYzRb44GyvXzWBp49q6WdCaATLHMXtg9qyrQKLUGG3Gx5ROnPrzXNwpmI+JnAg0vx X-Received: by 2002:a05:6a00:ad5:b0:6d9:955a:d3bb with SMTP id c21-20020a056a000ad500b006d9955ad3bbmr7566964pfl.10.1706765412898; Wed, 31 Jan 2024 21:30:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706765412; cv=pass; d=google.com; s=arc-20160816; b=z7L+uu9GNDmFEllWziIm+xb0KoM0cadeLHfvzzDmIz7k7ISXr8K6QWAIFEsSiNfutp A1DtDQLSF0LFGC+oDPQgu1Qzfp5Pyq2MAqEWzSciYpiuBFz4z0nW343lwLS/sKzQrqhT Mmq/vdFxBh2uhaNjorFuFfRG0i+Un8j93nI9U4bTn/PeDbjxGGU42Ux+xikcbwCO1qEw 5LkKIgSF3+84h0GZtPErS0n7gBLRo0L+cNRgAp3LcFwmgxUxsW84M4TdmBPTlS4cwzsS c3LulFG9dcqjrGvUSL2iL9WWAne0gzF/zkUErI0gWVzO6SN3aA+GLKshSomt1fxEuw86 +iMg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=uCT7Savb1uReiROzg38EqMASbLBd/YB9D3wJAr0+I+4=; fh=iBXZJ/kpstp/kWleMx+XFhoU7zZemq8CQcU+YcMLmBw=; b=mEytkI8K0RUkv7zQrlJlUeLUtlFXVa12PNTwq8YW3r73HH4Gan5XxCGpSuJOLWK+Pi kRsm0tZJQb9PFt2nvwMhLT2jpxn0DGlCwV1kcPRCqQ3veUsXR+VrqHVS51TdIAcFSXei ZrfIx+3hIXiEv58rEjzenIXhfydYRdIyVkKSDcD3ElXFBpxDs4HZ6CMbbtpf7Jj+5eIi ie69wppvGacu6alIZm1T43VZSlN9AdWaUQcPmDHn9flnvzaxTpM6qeryMEUVP/OH2xcP lqUDlkpV02PHm/K+RqT51abaTcUbfbxONjtsCof1i1JRqm2927ccrTWM8wenAZaE/RFz RUIw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=lst.de); spf=pass (google.com: domain of linux-kernel+bounces-47646-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47646-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCVITiJtCLoPY5xjfri04YZrYmththwtnpxKDHoazBSf6Dj9LRbQxaobOMAsCr5R9tpcev5LZ7Swp5EpKds0iuQMdePaVLrdy04ZJoeD2A== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id w19-20020a056a0014d300b006db9cce8e2fsi11598267pfu.280.2024.01.31.21.30.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 21:30:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47646-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=lst.de); spf=pass (google.com: domain of linux-kernel+bounces-47646-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47646-linux.lists.archive=gmail.com@vger.kernel.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8F01E28F848 for ; Thu, 1 Feb 2024 05:30:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A69663C6B3; Thu, 1 Feb 2024 05:30:06 +0000 (UTC) Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (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 820543C488; Thu, 1 Feb 2024 05:30:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706765406; cv=none; b=iatc4OPxsBPbFBZ86kmyU5HVaCkidkf42g5nfzAEMzgUCdm5qMxwLaMma01dbr58i14X/5vnvyNgV8dPa2vWvryeykAK+V50UDeAmilrtsDi4wloTBWgUUV7iLsKp5Jh1JDuMprsQkuRroWuNmAZXyl7EpMaHZN8lI0Eaj3NfYc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706765406; c=relaxed/simple; bh=cL7V16KDRr+v738/d3BfxIUMHAUKQk+rjHt61+n8cQs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=fNzJkhkm9mGGTb6LLVk77Vkcz7Gvqy8dRp5oyBScgiIIegix5TMtwluE8E/hd7AW3Od+WfsAyN1FkFpd8qK7Vq9GEBqqwq9o0FCV1YYi+aRcVtxHxGGtUOwpbLoTaDmMBcaiWSihO5XuH5+5qiLuSoljnx8DwXmtjZjKlhTxHu8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 025BF68AFE; Thu, 1 Feb 2024 06:29:58 +0100 (CET) Date: Thu, 1 Feb 2024 06:29:58 +0100 From: Christoph Hellwig To: Andrew Kanner Cc: mcgrof@kernel.org, linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org, hch@lst.de, mchehab@kernel.org Subject: Re: [PATCH v1] module.h: define __symbol_get_gpl() as a regular __symbol_get() Message-ID: <20240201052958.GA14943@lst.de> References: <20240131190251.4668-1-andrew.kanner@gmail.com> 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: <20240131190251.4668-1-andrew.kanner@gmail.com> User-Agent: Mutt/1.5.17 (2007-11-01) 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?