Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1664976rdb; Tue, 20 Feb 2024 03:24:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWNDWjIS8KqcmntXvJz4LuhQstzvI47XqIaDJ5G3kRMUz3PU7IH2KD4zaBPqz90GQ0DOxQc21e3wxTJXigWK/i9JGUQsfd+/LwUEcO9/g== X-Google-Smtp-Source: AGHT+IGlko/MXQtdxraKvGFzhdyUoYEy1dpbZvT2HlpAJEoMxLZB83ZnEBIZbMuWJlWSNx13Yi23 X-Received: by 2002:a05:6808:15a4:b0:3c1:5fd4:92a3 with SMTP id t36-20020a05680815a400b003c15fd492a3mr4260953oiw.17.1708428251276; Tue, 20 Feb 2024 03:24:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708428251; cv=pass; d=google.com; s=arc-20160816; b=f79oeG8Fn4LVti6YUQ0Z0ztCJpGhPaBmNQlqYhvHyJ71G6ksT/cdEr/LiK8R8KWgHF +s+xhu7LX1k5gtXw1+CswyMLtnbWwtYECjO6NetTAz82HE7wlSLfGvHOIatrLPTDz3tq e0YlpC5BNRpEMcLRW342TaZOKvJ93bEvZznIOO7lI2HvLmwCyCVbEmeyuGjNViKhsEoh 8qpj4zmDj2ffe+p6vjHDMrMDJx6Jtdab7zACEbvz/NW8XCpI3eYKurzmd3bmkNE31x9m bZh1aX4so2ewBtsnnApmnbqB3Im0Y/kJGZMHGgjZXgHCMHYX2vjqy/ucp8y3t+k0zM+a HuQg== 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=MxR/3BIvDQZyHDHUaoq49WdzqBILWIO4QUFMUC6cLes=; fh=eMNi8bYyByMitlB69TGwvllNHQRJEPXEKBqerdj0ZOE=; b=Gr1A0Ert13intYa7OoAq4bGdc91qv0IVWo8R88FtIFqqIHWVhFWYetbeeD2Pxe0ccu hklFXp1jVVq6CXXmZeujROwxQ2TWR/7q8C82MOMWv+krL1DTUlsNcEgQLuICK9l5BU0D I5naP1MCD/QN2QYFyrZqvrYbo6JnsrkzoUXgetA4CJCfs0tSQZAWQozcvZurnJ9tJ8Fb 2cdeYKS8sghCuI8RNN5ZraANkjU7d7ph2H/sJaVOmF77Dw326ImYIlkxWExxwva/YxQN I6C6jaotaT1upnDvwjWDX40Z75wPY5WaVrnlolJAjk1wi2KjRq0Zps9u/2ogqHHq+SWa WkrQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jTtLS8wH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-72900-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72900-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id g22-20020ac87d16000000b0042db24b2660si8860675qtb.307.2024.02.20.03.24.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 03:24:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72900-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jTtLS8wH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-72900-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72900-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 055871C23C7F for ; Tue, 20 Feb 2024 11:24:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8294867C61; Tue, 20 Feb 2024 11:22:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jTtLS8wH" 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 9A90E664BC; Tue, 20 Feb 2024 11:22:34 +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=1708428154; cv=none; b=GZEBWY/d/lL2j2jRe6OtPD6geg+cb+EajeeptVdshlHuQxUzmi2LjGKA5fTdIJ7DT42/JgNe9HCvy4bqAlJ65GlbmxPAIa0U+LY6NgJABzIjIVj0v0fTh57ncFaZTzAjhI7K18l+Daed6MDRUAttaS0M9TpyKOI9B3FEsh1rweo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708428154; c=relaxed/simple; bh=XFlWrpeVYPjEb2KzqcQ5CIkDfid3kdrI5OAY7b5n6Bk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=r7j8f8/Z04dIsKHE+kH6b2Qnr5WzevQldCsWIUK4+PEnrqUf63Yt95SL6BnieiRrK3XFV/Ah1hUmJClTeFhHKF1UbLJcAi7z5btLVXqqpPlFOH/yzPdMxN9B+OSQTHg/N3Cb4bLHwj7bSvWDFyOkG4jIcBSEZF365SkvIwn7+gw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jTtLS8wH; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 58B91C433F1; Tue, 20 Feb 2024 11:22:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708428154; bh=XFlWrpeVYPjEb2KzqcQ5CIkDfid3kdrI5OAY7b5n6Bk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jTtLS8wHbg7bC6vT4Z5iOXxfJKaq4Dvba1fYAmrdDNymWL7PmtKG93qT3EF/Lfgym knqsHh5JoRmzLuknzT2u+LcYVLIL9kkwDtLoqADmrzjJUQE31ahfuOlesoYxOaEt9t 8lETJcZnAV2limJjtLFUh4kcQWjCI4mqvB8p46RfealEjqecfv+C1d21Ros6fTxDIG 4UMsJ0AI5gtBbediZvqHXlX+WZyJ8MMdkh9WvSfAi5+mKvm7x6kiv6E/3zAcRCZDPy oC+J/DGwdRNVvSqfJrL7IvgQTvu9oGx0xals0fvzC6oqXGDPbTwikZpKq3AyaxATgU 7QOWo70SLjtxA== Date: Tue, 20 Feb 2024 11:22:28 +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 11/12] net: wwan: core: constify the struct device_type usage Message-ID: <20240220112228.GX40273@kernel.org> References: <20240217-device_cleanup-net-v1-0-1eb31fb689f7@marliere.net> <20240217-device_cleanup-net-v1-11-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-11-1eb31fb689f7@marliere.net> On Sat, Feb 17, 2024 at 05:13:33PM -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 wwan_type > variable to be a constant structure 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