Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp2085212lqg; Mon, 4 Mar 2024 12:20:20 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWkz9Ri4M4Mp0+7ZDaK7nWmdWBWgykeZ3hB7iQnFXlNbzunguDUN/UbuMe+zmJWsr+h/gLoAHUCySs+8OEOW4mxy6vuDAXtelkxHDDRZA== X-Google-Smtp-Source: AGHT+IFc5fAy8tL5zM7YLROqDRr9NVte7Qr6Bb7s2fCaVSJDBTUa3yxb3b29lEcxpa0UYQ7U2ZpB X-Received: by 2002:a17:906:f84b:b0:a45:67e9:e2d3 with SMTP id ks11-20020a170906f84b00b00a4567e9e2d3mr1694998ejb.27.1709583620400; Mon, 04 Mar 2024 12:20:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709583620; cv=pass; d=google.com; s=arc-20160816; b=jSmSZ4+7WS4GJ9u4YyD5jXC8ddvprps3VfwanuGth7SrsZhzxD52T2Vu+TZakpP/Ji YqiQSE51aJ7WmvA+erYAGqq97DtALO7Xl7mUb6kzXQSTx02MOdDQUaAJcRD9vju7e3oJ a9fRyAbbUdcs3846xJVigYv1aaZQrbxoiritHbAmyvFH0ScTF/Rm1y+dgEtKnjVI2Zm1 nyqB2p4stvDIfM7x2Zugiz5dMFFXF0+UlyhzRj2Idbv9EZ8c+kCjmJ9fTS7vaCngXxPy LaOfz8PgE2wc6jZuvHp73KX+CBrIprSnPQXv7x0FaloV0Tmwfb3Obe+zKv3hZzjZmaRl Jj+w== 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=DTOxl5O+qRGOc8sxMe8xhuxN1uI4p5ZBwgf8IvJZw4U=; fh=03+yve0Toq46QvMT3Wr21KVlpQNVXTrKGw2udY1ASu8=; b=VvXOVfjkspiKyXNlW2Z9XLUKlf92yMDSvaI6C85XqwUisr0PkqRXqIMjqVr2H2g7a7 PjfsiwpYpIaROz5QoHu60v/hG5Myw0zj3GcKSIQTKowKhBZ1klR5uuY2RA1VAScMZ8v7 G5ACWt0wdZn3pjji8d24vHH/JVUpN1rfRFjSP3BErorvzxxotlgjp2SR10l1+JjRUFAO Ex/NksTf+h1kqxkZ5O0bruRm2SykYUqlKqOGToYKPPzHwK0uFuHm/zU7npdqNipRSR0y 7EUGN3tGqTS+0jqFNmCQ09Jl9l9uT1EtTkC9JqoiDQnNAaWWRGf3UaMBjxXBE/rS4Ja5 0rJg==; 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-91223-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91223-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 p25-20020a1709066a9900b00a3e8fc2e91asi4288177ejr.978.2024.03.04.12.20.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 12:20:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-91223-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-91223-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91223-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 242B51F22A3E for ; Mon, 4 Mar 2024 20:20:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E11027AE6E; Mon, 4 Mar 2024 20:19:49 +0000 (UTC) Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) (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 CDE04487BC; Mon, 4 Mar 2024 20:19:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709583589; cv=none; b=U8bncJqGxVqLvAN+x8B9GR9PX1QMakmzJqWAp/tKZPtrnhsvc0HM4fcBmviWaiyYyZsUEm5zaGmfw9GDoC0VcrWwfTslPbpKgdcHfmlrKq8+gNK0FQPECabvWb2cpJvyo47FMNTIN0Uu7MWplHY8OyjwlDjfL/rwRio9bmOvfyk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709583589; c=relaxed/simple; bh=49a77s0C9FZNB4YeeUiMH0dVIfYK3W0bPQSOC3L37RA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iQWJv+tueib3VXdYzTHXepKYQhcLEhE7ZTgIEXqzybtW9YR2Gq5AlAnwXCMytYpXEVInb6szlY0UEQjYaWwi9UIhA5f0WsCJmySt1ReeFQnjBWbOGRfCcOE5uJ//6O/FHkW9n2RwTT8ITSffY3aHQmZrXpFU2hLw4GSFClesYXk= 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.208.49 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-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-563b7b3e3ecso7474721a12.0; Mon, 04 Mar 2024 12:19:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709583586; x=1710188386; 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=DTOxl5O+qRGOc8sxMe8xhuxN1uI4p5ZBwgf8IvJZw4U=; b=OdOGsu9uHVokgfq8AjRAdwU7mfNLfwoLHTBSnwotkYP6KnxVxql7T0kSOSkJ7OnxPj s4B/av4jCQVbq7rAUfrjQ6qBIjy9eQayPHfDk0gM7tRIgf0G6Qksf1bMMsSxDyAH+55l NEN/2PeYNvvb35CIvDJZ4s0PUAVOMX7ZNofQPa5cgZeAogpIiE+TqLqcbOkiW+COMCUA 5d55hvEojzUbuc4XQk+oLHYztqMPJORV1y1asYJE0UEez2/5ZRchbQeprfIINUGQDACN akM4wmWpXlca3SJ/cAPBh5NbtypXFOYC9RJxBo2tDjOGNFti+Id0IRGgs8ZpYvlDImE0 5ErQ== X-Forwarded-Encrypted: i=1; AJvYcCVYtd90C1yNBJLVliSbV6LAlGMpQySs/EGOS4NuEjfvu808xvMmswIa/8EfgU6LjkTZm2cAFDuBVNmyeUNs/tR80q0w7tdZFa1V3S2KTrkRG6bYRrGNroOm1fX4PMXCTfJqx47Rkfe3PwRL8nj+f2SsPIogwsPrOTSo6jDREhqd X-Gm-Message-State: AOJu0YwG8PI2ecV/1GMvxJnx+vGZJcMtuMjmLCtlf3RzpnB07CZ+q0rQ ofUsdaJqV+BldIS7RZp2vugyv+yYmD+wB3V/0hWeG0HfueqogFxK X-Received: by 2002:a17:906:348b:b0:a45:a348:32ad with SMTP id g11-20020a170906348b00b00a45a34832admr71416ejb.74.1709583585824; Mon, 04 Mar 2024 12:19:45 -0800 (PST) Received: from gmail.com (fwdproxy-lla-004.fbsv.net. [2a03:2880:30ff:4::face:b00c]) by smtp.gmail.com with ESMTPSA id i20-20020a170906445400b00a44e3c8423dsm2978299ejp.24.2024.03.04.12.19.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 12:19:45 -0800 (PST) Date: Mon, 4 Mar 2024 12:19:42 -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 3/6] net: ppp: make ppp_class constant Message-ID: References: <20240302-class_cleanup-net-next-v1-0-8fa378595b93@marliere.net> <20240302-class_cleanup-net-next-v1-3-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-3-8fa378595b93@marliere.net> On Sat, Mar 02, 2024 at 02:05:59PM -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 ppp_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