From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 233152C693 for ; Mon, 19 Feb 2024 11:44:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708343069; cv=none; b=GgALpehAryEhPMxLlsG0QToo1VsLJ8+3O/WVXsd+Hs9BeNmgnY1LtahWaHKaCM76hEuySFXGInPDVOZf6uLmJdZxoQWl1OnDa/BFCYLphnj8sU65Kx6KyhcoTfmsgXj1E1Z3C2VQ0HTuDldUdqIZJ+pKrhyLqMD/eHQebkZ0gPg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708343069; c=relaxed/simple; bh=gUntlLLADUk9fOwIp7/2ak+sHS72oT6rdDnXj0smozo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OoYObmSCpxMA6pEumobnv1uT/gn13W9I8xal1xZ+1bM+3ea30m5XQoLrJ59yuPFl94D/ZaMv2Oyx3b8HXSlSDdyg/NV3g9kd2b1iru+sCWwJ6bRkMn8QQmWtuurLF0aRpj9DDrwoAKhyE3gM6pRuHn699RUlj1uCRt05Iz3fQFU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=dry4wvDx; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="dry4wvDx" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1708343065; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=gUntlLLADUk9fOwIp7/2ak+sHS72oT6rdDnXj0smozo=; b=dry4wvDxtXI7dP3ln4nyKSpqlLi+nqPlKWqM8TJtqpcEcJ6hmtb0zODLGl7HhsqIbbMOe8 h7joAXnrW2IhE9J6ePfGp07lUWlVQdPDC1GfUK2HUZHJt6pTKNE/RgRwiduXUNPYzibSB7 xPYmgvaf34zWd4X82zEo3bOnnljLHOo= Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-322-ODqeEZAiPsK2E7pHObuGfA-1; Mon, 19 Feb 2024 06:44:23 -0500 X-MC-Unique: ODqeEZAiPsK2E7pHObuGfA-1 Received: by mail-qv1-f70.google.com with SMTP id 6a1803df08f44-68c50d32297so60981196d6.0 for ; Mon, 19 Feb 2024 03:44:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708343063; x=1708947863; 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=gUntlLLADUk9fOwIp7/2ak+sHS72oT6rdDnXj0smozo=; b=iKqT3aJN7sOP75aMzQK9PgxmcxHlQUXU1NalLaKg6gCbtpnay6HJ3mRO2K5lH9TxGR JwCzbRUQBpTVy+tBeO16e1XEbRuhtVsp6Y+5iBZJJ826TaZVspi0UM1CS/7/Meg4Aj76 3yaaWdEOL1ho9v+Ps1uAVucgOfDaaScspfVtPmCCwxsSwCLqqnuJyoQ4hB3zj4kNOniQ R4LpAHJahKYNqAy/LVJKlKqdvcJ+gEHdlCx2VxDBp9rbc49BFkOqZZBVBKXM8lByCCzq boUChoh/GEgc5d6U8F2lE6KmiUfMZWS9cLbJJpyf2m9BFf1pUC69Jg3d5ZNHP93OH77D ZU/A== X-Forwarded-Encrypted: i=1; AJvYcCXvnQDMtS+RKHdbCs82Gr4zcTEzpxeTCsAfAFLwwh2sgR+dTO9q6pnZBG3n467TmS/+szIfOD4blxNqafqFl5uvCe7ixcDyAptl X-Gm-Message-State: AOJu0Yz7JQED0E0BRtenKGTXqFvVNsXTEkzVPdE5XPLbrOKK4I2NKMUP 7cunbM2baxeXqmKbkMwc0acirenCAT8xdF+Yx7oJw3jPs5xuwgp8K1UXC+7UAHgTDkugVggYJT6 Ox6fCkiQT5rZXIOGPTNVHg40EkohHn/HCLegy7UStVHKtoa1AWnK2G6MMfg== X-Received: by 2002:ad4:5d69:0:b0:68f:4645:8cad with SMTP id fn9-20020ad45d69000000b0068f46458cadmr2351901qvb.57.1708343063346; Mon, 19 Feb 2024 03:44:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IGLbhd1hRBa1Vi4h+/NrkLkws+Hyd7ejD07jtvzpsrfiTatFhwS2ruE/0PimVLy9ybIJlmUWQ== X-Received: by 2002:ad4:5d69:0:b0:68f:4645:8cad with SMTP id fn9-20020ad45d69000000b0068f46458cadmr2351886qvb.57.1708343063103; Mon, 19 Feb 2024 03:44:23 -0800 (PST) Received: from debian (2a01cb058d23d600e55283140c56efd3.ipv6.abo.wanadoo.fr. [2a01:cb05:8d23:d600:e552:8314:c56:efd3]) by smtp.gmail.com with ESMTPSA id d11-20020a05621416cb00b0068d11cf887bsm3121135qvz.55.2024.02.19.03.44.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 03:44:22 -0800 (PST) Date: Mon, 19 Feb 2024 12:44:18 +0100 From: Guillaume Nault To: "Ricardo B. Marliere" Cc: Oliver Neukum , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andrew Lunn , Florian Fainelli , Vladimir Oltean , Roopa Prabhu , Nikolay Aleksandrov , Loic Poulain , Sergey Ryazanov , Johannes Berg , netdev@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, bridge@lists.linux.dev, linux-ppp@vger.kernel.org, Greg Kroah-Hartman Subject: Re: [PATCH 05/12] net: ppp: constify the struct device_type usage Message-ID: References: <20240217-device_cleanup-net-v1-0-1eb31fb689f7@marliere.net> <20240217-device_cleanup-net-v1-5-1eb31fb689f7@marliere.net> Precedence: bulk X-Mailing-List: linux-usb@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: <20240217-device_cleanup-net-v1-5-1eb31fb689f7@marliere.net> On Sat, Feb 17, 2024 at 05:13:27PM -0300, Ricardo B. Marliere wrote: > Since commit aed65af1cc2f ("drivers: make device_type const"), the driver > core can properly handle constant struct device_type. Move the ppp_type > variable to be a constant structure as well, placing it into read-only > memory which can not be modified at runtime. Reviewed-by: Guillaume Nault