Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1370097lql; Tue, 12 Mar 2024 15:27:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUPV3RJut4YMCPF61JYEbbW5kfBwScdLJJKC97sYRehzCY+cmiUkU8f8zHdFwKAvYUIgrBzH8FLCFfCKyqv5UxeozpM/+OrxAKvVLYl+A== X-Google-Smtp-Source: AGHT+IHCIfxo8gAJ5tPbP79t1nkRjROenDhjeIkS2bngmMkV0BkiXoIN1r1VZYmbV3wQd1M9oOr7 X-Received: by 2002:ad4:4b32:0:b0:690:e09e:6662 with SMTP id s18-20020ad44b32000000b00690e09e6662mr4382699qvw.16.1710282467944; Tue, 12 Mar 2024 15:27:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710282467; cv=pass; d=google.com; s=arc-20160816; b=gn2Bzia5DAeUJ2GhvgKzykR/qFIPj3qquRyt2rZTBwgb+x0+3Bhbf4nSgu6Y9ccXNo CfD2nimnHdzljhHN3UVLZWhFpO32sOTM3NPWkpYCRhpkSiWTrc2+GwZj7H7huDx+VzKK YW5ROXphNG6aMNK1J0fZmEeaC/IeTv4fHio5kJx9vLGvRBqULq543GYzZgZOOuktDWe5 Vm7u9iN2Cm9ytJBS3kkAYg+YSZaRJilFF776twT4pGerGszIGf0hJcVUJM8JhNCaPeh6 ccM+zhsg/rxdw1eVwAITKHo0+c1+q6Uwqxm00WwehFPMahRx1n1p5EUGYmRAlxvs0C3l pc3A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=dshDnzyUQrrdegtxX0ygDjlw8CGJ1te6VM9OOwOHvzQ=; fh=ZMFKyXPYjoPzA2LlBAHYgQVDiif/OOCr7N13MHWakvI=; b=Fg9uYlGknGEJcKhPpwHZEorJni22saQiC/VdPcDf4vwgNlWGe2Y7Saa07AJFxTXQwF T9Fn/JgoK/6cjVXl8lwAABKR4rtvViKIMvyp3R/Gn2diUQdlO7SrUulmIbZbrc5ek039 iL9qZjWgWl/5ZDEtYyhMV0wF/azYoHKRJpPmnaz8COm7RGFZJwRF0o6lJyDtuXW0OcSw IuOxRKXNFL9fV9MZCBjExL3TQJpjGgRdNHy+J07nCR6V8zBiRTNnOar3x80TfBvHeJpG yW2t1E6jed1XnwJJ+wId7BGchmNS9TwRQmgq3UP6bS5RALNy47FNMm1OiUWk0EhGw7Ez LlNg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=T8BkA3df; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-100884-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100884-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id ks30-20020a056214311e00b0069006d7edccsi8196913qvb.48.2024.03.12.15.27.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 15:27:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-100884-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=T8BkA3df; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-100884-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100884-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A99131C21811 for ; Tue, 12 Mar 2024 22:27:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CA12E1448CD; Tue, 12 Mar 2024 22:25:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="T8BkA3df" Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 40CFC14375A; Tue, 12 Mar 2024 22:25:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710282329; cv=none; b=ViwwH8Z5VkxxPkSB2+M2/YHGzBYbP5FulbfiTB2Ma/C+rC4EawlXGOCTnKvIFnfyiWyXX/vENhcfwjpZZIU2PtIha8pd8fjVPyaAWwuvVWi/OdNzTVnQQDS1n8J+Og3g6Ssdm7DYsK96PTPXXmssJnCFE6Oof0wlRC4UQRoJwKE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710282329; c=relaxed/simple; bh=OO2ImKt+yzE/6mQxJap8nWoSwoNAyzAeOPGUmuM5ZJ0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=pg7MR0pShC0juiEHT9WjOmwuJxvDN86l37loLxOKNNLXlKbUgiNd8yOvmR7ZX42F9CgesuLjodXIeE/u5afPkzEEmBzTA+Bb+7NJXzcAzi/5RW5AO3cqYtWi3oEKP9/k0E31CAEA1F6pcB5nmDUDAlQtwejBMZqr83uwZ4zE/bM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=T8BkA3df; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=dshDnzyUQrrdegtxX0ygDjlw8CGJ1te6VM9OOwOHvzQ=; b=T8BkA3dfi2yTsF2TqGpUTvHNcZ AGWp0DBuTYTWk1VA3uDouywKT5w7gJbGIJ/NakCsi44nfjbEzz0sjPLROkR+7rtgs+KLfbYEf0mhR XEMlCxP3JHjs3B/wlvmrdEE38cTvGhkNOvqxeQAoTwbqqDMeYxUB218tIXCtsg2397TOrPaZ+jiTo F6wKaVkryuN0cwHMqLYuWOS73jA+dpN6k6Pkg3gpt8I0IytHdtA2wsvEyufWVXX4xmVqcSowLUk0g aTGjAEJEcQuVN2FQTTWAbYHFreJz/5e4qd5weo8BgEKEzm2v/axUzLC6eSpgwAajcw5ObHlY1c1NB imeIWiYw==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rkAYp-00000007oot-2n0R; Tue, 12 Mar 2024 22:25:27 +0000 Date: Tue, 12 Mar 2024 15:25:27 -0700 From: Luis Chamberlain To: Andrew Kanner Cc: Christoph Hellwig , 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() Message-ID: References: <20240131190251.4668-1-andrew.kanner@gmail.com> <20240201052958.GA14943@lst.de> <65bb648c.190a0220.d431d.4f63@mx.google.com> <65cbe0ee.050a0220.1c11e.d156@mx.google.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: <65cbe0ee.050a0220.1c11e.d156@mx.google.com> Sender: Luis Chamberlain On Tue, Feb 13, 2024 at 02:10:45PM +0300, Andrew Kanner wrote: > On Thu, Feb 01, 2024 at 10:13:54AM -0800, Luis Chamberlain wrote: > > > > While you're at it, if you want to try it, you could see if you can > > improve the situation more by looking at symbol_get() users that remain > > and seeing if you can instead fix it with proper Kconfig dependency and > > at build time. Then we can just remove it as well. > > > > Luis > > Sorry for the late reply. > > Luis, can you give more details of your idea? I re-read it once, then > came back and still don't understand. > > I see that there are ~10 users for symbol_get() currently. Do you want > to stringify symbol names at build time to completely remove > symbol_get() from module.h? Correct me if I'm wrong since using of a > fuction which is not declared anywhere sounds confusing. As an example look at the code and see if there's a sensible way to make some calls built-in instead of part of the module, then the module can have a kconfig builtin option, that adds to the built-in code which means you don't need the symbol_get(). For some other pieces of code it may require other strategies. Luis