Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1663530rdb; Tue, 20 Feb 2024 03:20:36 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWZmECw+Ciw54/IlzEgCqsR3shyjhy6S7vRhG3qTHN4Ax44JcR5Ei6PX1MjkR52dIcdJxKo2knrsA0ssAh3hbVJLDsgdVVyUSBJMIC8Hg== X-Google-Smtp-Source: AGHT+IH/s2XF4XepRmNBj1cVayNLLjap02YpDpFNFVgAcWArGwY5odAQDqE9ZIBRWae/5NFKp2qj X-Received: by 2002:a05:6870:e311:b0:21e:70fe:9bf9 with SMTP id z17-20020a056870e31100b0021e70fe9bf9mr9153656oad.51.1708428036708; Tue, 20 Feb 2024 03:20:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708428036; cv=pass; d=google.com; s=arc-20160816; b=AJrgsSLGto8fBkRZalxyeY4XeJ4sUzFKnroJVsGDC97nN9K+sc7cXPcM4YHRiT0Mkj 2+GaSabBTsYlj4YykXGNlxghypg3YimI0ECUJiQqTsrIygkFeSj/vsidb7cEzebpZl6n F0kvfbX/1K7ezrNdxSmhJA2ubHNarIiufI5gL50sKbc1pbgi6f6HwHonEhlJEuuLd9V4 29joiPBUy0BvVWbikH4YUhPUlnFFn3dKLl8T5vS+d+J389N4n48KD1iy+/0yxXasOip4 I4cDPf0YG44/BdUPvDkbedZTfITMgKjzgFN9yx/8eycTQMZx0MNqF2bla4GgdZX0DdYa 1twg== 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:dkim-signature; bh=2gJ4sBE28x9ce9bZ9YrUzK6q+7kPigdKwa3s9BiLffE=; fh=eMNi8bYyByMitlB69TGwvllNHQRJEPXEKBqerdj0ZOE=; b=ywJdTGeiyFi4KDo+PNMbNgaAAgHYrjCgiL3Yk4bhFnmWTWXz/BBAeYBALjCXhDL5OD iacxx+rAhyeXtBq+ZQI/eG5AKHLjfLejwmNx3S2kbt/A2alJah/cJW/gCYbJJ7LtDVwr hEpjyoXs4C6I5oRMfzgJ15VYgiqwDE5999Kbh2lfPgZezG+IbOe3FiuCNGGezUDMLLWj yl0c4kEVENzSzuepABAEOwCfyCCyjksv7wxfaT9x4LVMNDXfq4ILeYBheE0UILxidrQU 6kl6aQMPT1WPptNXnWyEJhwDgBQ+63LOgSVgmHL1LScndrd7IFFJQZMwv/KgljGfAiEr t9tQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=F5qyo3iW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-72890-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72890-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id g7-20020a636b07000000b005dbde0102b0si6020851pgc.288.2024.02.20.03.20.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 03:20:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72890-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=F5qyo3iW; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-72890-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72890-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2EA3B2874C2 for ; Tue, 20 Feb 2024 11:20:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 062E4664D8; Tue, 20 Feb 2024 11:20:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="F5qyo3iW" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 1DB8C65BDD; Tue, 20 Feb 2024 11:20:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708428017; cv=none; b=lnFWalvrhc13kYIK+Qe2o/U5oBust0EFhCQ3qQ3ef2nifCA3gjaeuuVan5Cim3w77A2KaLjML/Xcrw+PMCu1PrW3lWtSTVMhOmxI7NsFux+Q0bQTkLeFP0BoTbSR0VpHy4DWKt+MybCBZjLtg8AiFoGv4kyXRfq+MhbjCiSDoqM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708428017; c=relaxed/simple; bh=15Ob8WElWbdYfjZM/8HQ60IBg5bEDUI+MgS67in5L3s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YTq3X2+4gJG00hT1dD8amKXUOUvVDbtW0rOSFSJ7PCTkasq4pxAa6coUTIF5kRtKRs0fRrHnEEV8eSmeqKrjXU9IBQwA2KnnhigphpmDxxFyFjLtKjA5hHWfOX+CH4y136hwgphTDjSQQTZiqVKXVWMqyi66THAVaRPuvTubRVY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=F5qyo3iW; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1415C433C7; Tue, 20 Feb 2024 11:20:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708428016; bh=15Ob8WElWbdYfjZM/8HQ60IBg5bEDUI+MgS67in5L3s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=F5qyo3iWg8DD6ufVBIQbU8qFOTKR/yb1VcukV6VuQfHzD/JvMH58r3Z9R8oVu7uqh urg3/unVgmx3G3aPAZloAEAhMzzPur5axdH7RQmdKXXId4WCtFPJixEwPrkh+4d+iN CqYmBl3E6e0gV8xGfeS8/s5fblDHoxdrgdAU8kCP2kFlx/TVZ5PqlaQlWU09ISfssu paES2/e16bAvW4dNAKHArVFx5ALgbyZ+v/eKjWuXo5BFUmsaFRbya3GAm8/0Kzaz8J 5GlcxBZPz/PKb07/HihNu1gkUNnWr3PcA6LMVABxRBALOAsDCRs48We6Z3gEwZwwjR 2AYoI6XnTSCeQ== Date: Tue, 20 Feb 2024 11:18:16 +0000 From: Simon Horman 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 01/12] net: usbnet: constify the struct device_type usage Message-ID: <20240220111816.GS40273@kernel.org> References: <20240217-device_cleanup-net-v1-0-1eb31fb689f7@marliere.net> <20240217-device_cleanup-net-v1-1-1eb31fb689f7@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: <20240217-device_cleanup-net-v1-1-1eb31fb689f7@marliere.net> On Sat, Feb 17, 2024 at 05:13:23PM -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 wlan_type > and wwan_type variables to be constant structures as well, placing it into > read-only memory which can not be modified at runtime. > > Cc: Greg Kroah-Hartman > Signed-off-by: Ricardo B. Marliere Reviewed-by: Simon Horman