Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp187237rdh; Tue, 13 Feb 2024 13:36:58 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUk+CAPGTu70Z8LbxgriWCc9NtK+tXDSNCXY4idzGLJwNLK8vKUDOvQMgJxCrEysHcXxdV6BZVopDbx+cJ5uuqknBqwJ0wRRAk8+UD/MQ== X-Google-Smtp-Source: AGHT+IG5/yv7aOxxAiIJnY3Is5ogZA1ezm2QzatLjwUBYMcbNUtYkLmtLTmIPjs+bEkkzkz4wDeY X-Received: by 2002:a05:6512:4028:b0:511:46c0:d879 with SMTP id br40-20020a056512402800b0051146c0d879mr710784lfb.47.1707860218711; Tue, 13 Feb 2024 13:36:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707860218; cv=pass; d=google.com; s=arc-20160816; b=Vh8WgblYtUaULgM6XAvD5NJ8ED7FrJW9Yy1LXoCgqco6vkmkVe5T3SSfsd9JT2gjE5 ycBGVdKA5COhu9SJKW3G6H2yQ0o+r717qjLHd2AOo6zzZ0Q1v5HK7rw0d762MsGVsL10 5u/ZA6+3lrsYR2SzaDn6LaRdc8IH+Gv8E2SJJ9/R3OwEAXvNNt0qZnRT+ieISzstNZ10 2KtQF/jhJQ4tqCLLcrU+CTqUbXzxs4lLAPtS95tafuv0ExA9aFsKzCpd4ezgU4Ia+mcK Z5coWj+nCOAQRbu8k2lvx6Ng2OoCzzjr+iCZHwyM4Ma/gHgYViCZNAQ6+5QZcwjaqK6F iqIA== 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=rLAWCOLrAAkedLsR0u9g4LdIF/1rQKFqHb/tWlWW+zc=; fh=reOpF17GyjDpUHgwhnf7zwf1fimjC0AdOO5op26fAt0=; b=q3hh5NQdMyXJtTBv0CikVzVbTvRCLwc5Oxep7+/WU8dSuPaJ0ZkvKZpJY/36JAgRoy JLYH2m3CDx7zg8y/sPLVtowgqPPW6aCaJpGhcxGhCaUx6qiaj+Trd0nay5EnJDCbZBf+ aPP3htwJo2vzuRQAe9BMvmIsc+P5/XIApmfnNjZ8LBJU/mLk8JOWm98YFKO8HhcgIUaC QGdNByiLrPu8gLJh6mPwUVnyBvwqDbKlT07VNZR0XagxBC70IHlSslrbq+Jk2Ubkfhn0 vo9junCSZJxmFaVrwFXB6xpiXWhlPuNnYa08+DFNQBOmHUrh8wfUwTgmXF518mOCMWmw Ywpw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Lhyj7iMu; 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-64338-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64338-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=2; AJvYcCV49OcyXeA+G2cKO30NUjgxhUTskLJFZc3Q1YYgQEuatDcnQf+mKq5rmy7LK6OHt5aaW7MSQd988Ews0TKZGBgQIBg3mb2I3gFFPtleYg== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id l14-20020a1709061c4e00b00a388d0755a3si1671972ejg.878.2024.02.13.13.36.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 13:36:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64338-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=@gmail.com header.s=20230601 header.b=Lhyj7iMu; 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-64338-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64338-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 731F41F257F4 for ; Tue, 13 Feb 2024 21:36:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5E7696167E; Tue, 13 Feb 2024 21:36:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Lhyj7iMu" Received: from mail-lj1-f172.google.com (mail-lj1-f172.google.com [209.85.208.172]) (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 ECDAC1CD14; Tue, 13 Feb 2024 21:36:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707860210; cv=none; b=fhOgUhPtwkmba8M0Ecnoz439QbQCxY7sYDBm5BVGgAa4PhrwEvOou2NwWBBIq0VlZWmYwgdptnZV3nQ4h3kS49Z+TB/iw1ohLYhHap8sUVUAklt6dBBENUbqPVJ1MqE232FtMyF+F6BpS5iGAcP1fkt8yLyK1vHE7PntmbqZD24= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707860210; c=relaxed/simple; bh=nd+n2IqooMYwTtK4GSBRxqQK8ljwF4sk8hd9duAXu7U=; h=Message-ID:Date:From:To:Cc:Subject:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LcYj4aScnB0L0gsS21r3SQPzxbUke3TZmEUIvU1WoDL7jSE5o5pLFXh1Ej0dok+KpqbHDrYXZtefJGdHe7dnVJu0vQHq/4k1G5TiGhwPm/tg1mBAgR++kqQDxs955pMzTG9jtrHtfFPCs7HHAXX+RKvw5ZtlE0cUWejOZbBwfbc= 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=Lhyj7iMu; arc=none smtp.client-ip=209.85.208.172 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-lj1-f172.google.com with SMTP id 38308e7fff4ca-2d0aabed735so62847431fa.0; Tue, 13 Feb 2024 13:36:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707860207; x=1708465007; 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=rLAWCOLrAAkedLsR0u9g4LdIF/1rQKFqHb/tWlWW+zc=; b=Lhyj7iMucEoZWUsE7xUpcMjlFt5J2flxyMZuTIOjeT4W8TVQwVr6h2M+Yg3Oq1TCPa JwXi2Gc4P9/VfFbWcrBUYLFzofcXt0aqDHq1Qf2jG1a2VqnOnK/WlbQCqPB8H7tyxulM YABz5cMvuOrNlZgvs1DOEi0Vmw/tFlabPsZnrYfU3bmqw0wrlm3LgaiKt3u0Uf8lmggE dUOz0Ko/daY0wUoJXdfv83FV/RXeBAGhli9lKNBMFi4RZxjAVYlnFfIyrbkJmW6RcdOS rGCkNVAUHzYJg6A9+GcvyBNigTZ8CpDMEJxUjPUp9hg9KGdbbDHpRN9ARbdy5ar1oUd5 hM2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707860207; x=1708465007; 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=rLAWCOLrAAkedLsR0u9g4LdIF/1rQKFqHb/tWlWW+zc=; b=LDPxbxn3nZCDBCrbOukZJNXgjPsEBmMejIyu32mmJgxdwXs+I1ZZ4foaSAsup+r4AY 8R4U13gwuYoduCAUpqgfxO/moJEjCJ0wVK2ZRffhEjRnrgzXn6GC4L1c8cL7lL2+BTNL w428Gr8mJANyIrggT8vNdkgwrr3+gUcKqDPVKvenfXadabt6/fIGoaRA0X5zapRGTSOn RBGz0hPZV0E5mrwAkgMYjJaDFIIuuZAUvB0U7H3bN1ty5oIE8h0xJVqQ72ZyO4O28kPE hffeyY6VMP2fNcSDo9nz49Z7CagGqgWNIBAeysZEAquxNawttmx8k7c7bzxx1ErP3NsD 5tEA== X-Forwarded-Encrypted: i=1; AJvYcCUPa3ocEYvSbbM2Qznxm9Oc3qAEx3iJt1IKiD8C7dsHR4X9bqzxbD2z97Upi6dKMm6lj4G2N93vnVvGq2mrcaXyoMhaKo/LWn8s6aRl3MhNxg4Ow3GvFMej7fURQu5pup+3T+4bW6IAuroOJA== X-Gm-Message-State: AOJu0YzqCBAFlaSNs7qV7IIyyFtU7xdEJlM7P67jS25X0VNx7g6pIrQf 7BXVD8hODSdW2pZGYWELL9OeKqtuMTxlWjIZZCHlf4H4rsY3K/L/qof1Og6dZu0= X-Received: by 2002:ac2:4902:0:b0:511:7c0c:f94a with SMTP id n2-20020ac24902000000b005117c0cf94amr525617lfi.16.1707860206602; Tue, 13 Feb 2024 13:36:46 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVdaLTGOhggHrGm3PYeN+gRZdZ6PMuXywnXIcjFcYBZoQVJ97k+s7Kgz9wD3FptIVOBsNwFz2VKmTipTK1OcQrE+VGh0vvGccL6qR7dc363h68vtaixcuoWyP0RzLEZY5zSA0xCbqy++yQ8pHCKjMruQkSzbAh3s/5vu8Zsioqo Received: from akanner-r14. ([77.222.24.68]) by smtp.gmail.com with ESMTPSA id b5-20020a056512024500b00511776d214fsm1420338lfo.269.2024.02.13.13.36.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 13:36:46 -0800 (PST) Message-ID: <65cbe0ee.050a0220.1c11e.d156@mx.google.com> X-Google-Original-Message-ID: Date: Tue, 13 Feb 2024 14:10:45 +0300 From: Andrew Kanner To: Luis Chamberlain 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() References: <20240131190251.4668-1-andrew.kanner@gmail.com> <20240201052958.GA14943@lst.de> <65bb648c.190a0220.d431d.4f63@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: 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. -- Andrew Kanner