Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp2085015lqg; Mon, 4 Mar 2024 12:20:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVoczRs0cq1s/tR0NletU2xUEyGiz+VBAvOh/awdC3Fr6vR4spfWE4SZiVzQD6HKTV5oEXgaBf3aISaFty4D2AfgUJVLGCnk0qvwgmOXw== X-Google-Smtp-Source: AGHT+IFoAB34wvI+mw9YQcSI+9gD9zIzqIbIZeM8LSF/lXGS7olR4Ol40I9LrmnLi3+92zBWwlJM X-Received: by 2002:aa7:d80e:0:b0:566:4895:c582 with SMTP id v14-20020aa7d80e000000b005664895c582mr7103956edq.15.1709583600699; Mon, 04 Mar 2024 12:20:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709583600; cv=pass; d=google.com; s=arc-20160816; b=NKqDz1E91MKxmGiL1ocN2MAx63Cyd8B4tEs5Dr5OTmUWGMtzYvy3+OpfnYufBfCdcr JuAzzzwPRif1HWqx/ncAz+5c7ud7FSL9Tl9GGXidmQFzhgsYaR8d+V6hz3Qq+kFUUZaY mL23JUwAuB32B9KLnDUIZW6a6znghVbJfXDB0N/8dFM6b94u2be93riJdFg63tfMqc53 wCZ8E7Hwvqgqk6GaumTaiNTb+MNRxyJyjDMvhhRPXP7tACZip0vWrrKHXOO3o/BzHSky cZkePSqd9LetVvVCA68COydgy0nJ+ns4ZaO6GiM7iSfHwX1B+YK9kQc1pHLNFLqiFcsG iv4w== 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:message-id:subject:cc :to:from:date; bh=bLBb+T9z5q+g5UgFeOXXQ/ZVAkRZaqhWpyHrBugMSCI=; fh=cszJowGCPMWI0BOZjjSv4PXqFs17/qm+XvOP2Lw+g4g=; b=R15y6lVq96MvcuGJrCsmQBFDeUejwDR620A7eTSFi3dwhAraPR13TjSW6JC9ngsgNs ig8WbUYLiR3a0Q9mNKswdGTRk3LVmlwkvc1Dw9cXnsD2HyqNX3XdWX7nCYm7Y5+edp8E snGEL/NJ6hOYOrfG31oD5vy8ZC8VEVIqiaw5gMZenAZIulDFbC9IS4p+8J56lHJbl4lc MMRI7BSMoDw6iDgMng5VDUhjUETVeS1i92Y3djuk9fh95dl8rXWDmhlstwp5Tg5pkJ17 mOfpbFoeoPe7hFxVHGBpeTYpomWw7r3zhSFwKWvx1osBqCDOMLeh3qKarVQNTHpKORGL ztAQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-91222-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91222-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id h22-20020a056402281600b005676b7a8762si572166ede.446.2024.03.04.12.20.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 12:20:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-91222-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-91222-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91222-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 6D70B1F229E5 for ; Mon, 4 Mar 2024 20:20:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 03DBF7BB08; Mon, 4 Mar 2024 20:19:23 +0000 (UTC) Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) (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 DA4497BAF7; Mon, 4 Mar 2024 20:19:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709583562; cv=none; b=UGplq1fpAXPwOlicdzmyAxP2Y0zXBRWyL+kg8COlxPW111SE7+ZlTttSZH8/wCoINBrNn1hFvncdmncUr7IESWqoGUc1x54DD3SG2z+dDo6MRqG9FL7GMTEESYqH0+DF0Zi6Uc/8h4KDZ8uTD4W3ji4fpnmRWH4Ki/xpXZ2jhXE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709583562; c=relaxed/simple; bh=cZLqTYaiOu2bk9deA+g54OjJ2LadNtfU7hA7K/nKNM4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CChWoGlY66+0/mzb1lBThXp0UBVvFpAALBpGEuf92kR0F8Wo0Hij+Yu9dA9JRDQvV8djP5zkTOg9GxG/mEw4farn/CCD8WIm0wZ5b9fFij8iNam4sSdKXMSGbDfEc0pp/SZfbJ7EOvsEr375Z0wMSDUwm9lUFQrxDznaGN264Ig= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=debian.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.218.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f46.google.com with SMTP id a640c23a62f3a-a456ab934eeso163486466b.0; Mon, 04 Mar 2024 12:19:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709583559; x=1710188359; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=bLBb+T9z5q+g5UgFeOXXQ/ZVAkRZaqhWpyHrBugMSCI=; b=Z4jyjFiAfHgKHgY4BJhuZV6Yv8swM6d00bws7ZocepP9MaLGbb4O6lm4xoBC+nmdkK wFK4+VzFBJs8PoU5EKJHzkHDOrneG9fAzFM1s5P7vTbLPpDAq/1abUYswYj0aWwPqZc2 ZTtb4cWNnqdqZ4gBxapXrDCMQ81vot1+qrIMX9WRS/iKTXzrO/suu5Ef4DnuDlKOxjcU fqNNpL5DcDZZBDPCNGKqYQVRUC7qfFPXilL+cW0Gi6c68mg0VFXHVQEGWj7eouS25Z7h 1vB37qVtFohC1txvy9yqJm1Ibf+xbLQ3M4j6PHa/KVeEG+M/g0V4Rn5jAAe6cT6i+4bZ VC1g== X-Forwarded-Encrypted: i=1; AJvYcCXVp2S3rwTK0nbYqopKYuuSt89rjV1aPi1eq2dWvtgV7qaCUK7ofV9yLweVPPwC8hkD4F2JUgst2ZUSSXKXusToruxAe5uBTLudtgE8UTfT3rm/ma9xRvfH0x1pg/obuAL1j0Lvs+Hu6lMGRtI9C08WHbmo+BStM2S41UdySKk9 X-Gm-Message-State: AOJu0YzJgs7qSr6kFKtOn7TJFElhsovZM983J86Fn8fWzJdDdqWw9a0e rqUV+th6wLkIAKLrNYE3Zfc9q0qXxVoKL1BNVddsVcmSiLJR1xGM X-Received: by 2002:a17:906:a89a:b0:a45:5b6c:e524 with SMTP id ha26-20020a170906a89a00b00a455b6ce524mr2134919ejb.65.1709583558999; Mon, 04 Mar 2024 12:19:18 -0800 (PST) Received: from gmail.com (fwdproxy-lla-005.fbsv.net. [2a03:2880:30ff:5::face:b00c]) by smtp.gmail.com with ESMTPSA id f17-20020a170906049100b00a40f7ed6cb9sm5239682eja.4.2024.03.04.12.19.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 12:19:18 -0800 (PST) Date: Mon, 4 Mar 2024 12:19:16 -0800 From: Breno Leitao To: "Ricardo B. Marliere" Cc: Yisen Zhuang , Salil Mehta , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Loic Poulain , Sergey Ryazanov , Johannes Berg , Krzysztof Kozlowski , Greg Kroah-Hartman , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-ppp@vger.kernel.org Subject: Re: [PATCH net-next 6/6] nfc: core: make nfc_class constant Message-ID: References: <20240302-class_cleanup-net-next-v1-0-8fa378595b93@marliere.net> <20240302-class_cleanup-net-next-v1-6-8fa378595b93@marliere.net> 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: <20240302-class_cleanup-net-next-v1-6-8fa378595b93@marliere.net> On Sat, Mar 02, 2024 at 02:06:02PM -0300, Ricardo B. Marliere wrote: > Since commit 43a7206b0963 ("driver core: class: make class_register() take > a const *"), the driver core allows for struct class to be in read-only > memory, so move the nfc_class structure to be declared at build time > placing it into read-only memory, instead of having to be dynamically > allocated at boot time. > > Cc: Greg Kroah-Hartman > Suggested-by: Greg Kroah-Hartman > Signed-off-by: Ricardo B. Marliere Reviwed-by: Breno Leitao