Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2056074rdb; Tue, 20 Feb 2024 16:07:58 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXbER5NWbulL9hWgGvpBN7ruY3/HsKje1iYo5onrU7xiEvQK5Lae5oyIsyKPZTxLBToP9tQY3dwcpEIxDNvpG6/M95mZknoH6UGxcihqw== X-Google-Smtp-Source: AGHT+IGVxDKj9yVcECm700JwVhlF7RNXpYf8SA+JeON0747aCTODg+UB8YuO+e2nb5sdMW8IaMC4 X-Received: by 2002:a05:6808:10c1:b0:3c1:686d:972d with SMTP id s1-20020a05680810c100b003c1686d972dmr3097802ois.5.1708474078746; Tue, 20 Feb 2024 16:07:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708474078; cv=pass; d=google.com; s=arc-20160816; b=RW4A7shDB1Qb1QhBhv9vDxj1WFzMYbCoQnjqvVWtA5Iegl2ru8+cncO+UFJRZAlR8M cuLMPtiwd1Z0cV+rrSB79HtitmXGK5RGmQDVt42kHkp2Zhop2Wzr0C5HRRrtOYh2eM9/ 9rGuLgJfB8oh00AinCvx4deMfdAKZ9WlgQpdcwevpfnWS+D3zu8vhCHLV7iHjP9BzeOH Uqe9thXOfrHZdG/cMyQFRpMMxEIxy/0Y4iiuFnPceS6hebcQNV9nDps7oKyJqPNbLU9K MgT0n4Jylzeu5pa8WSf0AWorQMhMMz6vbRBStX3I9WiUFosEBRuGyrZ842rCghCpeQCL OGsQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=lJEzqI5ur+SbBoa1SbqduYIKj5d2G64DD1tgTxLxA/Q=; fh=6SRVmb9bQHyqQMa9l0Br1WR2nXmpN0mnFL3g+czk0lY=; b=wX3MBECVpve5P3ETHiwTIssptaXCMMe8NDmJOSL3PUwYOREPvj5nk3Ajy8G3EOnzrE v5b5rgreBBGaIbuFcHtm8LdJ2H9j0GAbmy0tN35YnhbO/11BexeGjQZ/Cr1Ep2d2RsGP bnCRd92NUYX0Ywg1J61gEQPDOsiHtEMuwRQcVKrUR9CWhm8vRXuk1+XphFIB+jrqmpUu H1ugB9KN4QR9RZHA+Z+KzVrvaxTk879LZCtt+LflYYl56/HJmZemWLj5smfFZUmejzbo 26ypbZUNr9KHdhGCfpBeSrQoMAFIPkjPRTgWRroa45zvCNAtqv1U93n+z6pXYaHzePaA GVNg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=npbY8xox; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-73850-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73850-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id kc3-20020a056214410300b0068d14cbf19csi9448279qvb.345.2024.02.20.16.07.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 16:07:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73850-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=@gmail.com header.s=20230601 header.b=npbY8xox; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-73850-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73850-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 7DF901C2184B for ; Wed, 21 Feb 2024 00:07:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0BA7915AB; Wed, 21 Feb 2024 00:07:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="npbY8xox" Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (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 972B9193; Wed, 21 Feb 2024 00:07:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708474065; cv=none; b=Nf5n5Yq1BZ+wLJPwI2gkDJV6STVSZZEHUDwgEcKLy5RGRiKnRJlcOSg0UKmXZHg0yBwAfQkW3kQ0PjxdrhUOLtd8aHMy9B8IW5/mtpyeNa47cUd/dxaDRgXEXdaFfcF4aoIQ7XpoRFEzJluow7n87vBgxi3VxhcG7PDP0pRPGzY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708474065; c=relaxed/simple; bh=iXE6+R8ASa+RDcoAvHrDmlfm6SXejlgM5QbL0gV5rQY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=M3YOGkXQmIwG4I7699FjzD35BqwheZXdbXf/3GcR2CwJs8RyyAxTtvqEkEMMm3yw6qy2dnbsFroh4a5INn3an4S0jXLqUwrBoNcXnvSBU2c9rCNq+5WWlcspwaJASy6Td4LNHjCslosf/ZsWLsmIcLQFQSbnmCyCLjxg50fvv7U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=npbY8xox; arc=none smtp.client-ip=209.85.221.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-33aeb088324so3242129f8f.2; Tue, 20 Feb 2024 16:07:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708474062; x=1709078862; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=lJEzqI5ur+SbBoa1SbqduYIKj5d2G64DD1tgTxLxA/Q=; b=npbY8xoxWtqTDtAABQUSRPS0EhhYEh3mqgztGAVP5USFQQIOI7nU5Gl9sgRV5X82q5 +fWhZa09cL/QAFWA6sf4UoDhvldkwcD9G4mjYsuyaVG45vm88xjKaoCQwUXMKvdvuh6p dpj8gtB8kCniok0KtddADcLKtBN4PlRVIG4GtPh1dvHcP1YgCpVVzXexLaCEfmTaYQ5q wpppvF3QUbp0zPz/tGYgDxoU0eLT12f/YtFhE6w2s+tahdZU+9weM3rW6oOYsx2kIT9J L/IprYVbTj7eo1nhrO4DhrgwcvTT6VdNSm4zjVrDwQZtyO1IybQMLMsT4oM8sJhF7f09 SaKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708474062; x=1709078862; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=lJEzqI5ur+SbBoa1SbqduYIKj5d2G64DD1tgTxLxA/Q=; b=HgHfOFShwaM4VXzzUjS0tdtc+8P+MlCUMmUCG28tm6JH+sD7X+a15uv5vgMM9jVcw0 XelwliwWiB+L62gCFX0+HgxZE3MPnoyJBuDxcV/klX/tR8q4aijpPYXVtFdeakxgl39n loGYAK/qVfYqsJxfEFMRjrE//qlNbTzRtwWs+dbmNQ3dy1i5mTdoqsFYBMzSQ+9waaaE LApvrSW5qjepIR9hAiWPML1uuwbHjNRfv5eYNd1umZUw5twSndwkXU2+cTE7dx3TUIGA 2pKeaMNAPQKqo4BBNf4hm7rWl7YxICXrgRiEK+qAgKkFGQmhyXr0MTOwEjws6tyA4T4K PrIg== X-Forwarded-Encrypted: i=1; AJvYcCUnq92fNEl4x/SPN8NBcKDjqq1X0WCWwyWv2pLPBewH7maMbzif6Pnx846s9BGne2s17+6m+U0iY/8iDQV/ajOHmYtMRjPODER7RW5YWGaDm1BllZz8w5h50srSLApwxFC8KzjeLIhFRPGVquhOH0bl/iI6KZ/T8epqHQdMui226xQ9 X-Gm-Message-State: AOJu0YzOptBseaHK2d3KxlgWIyyJ4dm0g6jmGF6wXxxWV5F8SJedSSXm OfRn9CEB+JwGlG3uC/ZCgUqKJwEvFalQZtXOPzEZ8i19om7DmJwZ X-Received: by 2002:adf:f6c8:0:b0:33d:714b:f3bb with SMTP id y8-20020adff6c8000000b0033d714bf3bbmr1560887wrp.26.1708474061669; Tue, 20 Feb 2024 16:07:41 -0800 (PST) Received: from [192.168.0.2] ([69.6.8.124]) by smtp.gmail.com with ESMTPSA id bs17-20020a056000071100b0033d47c6073esm9134362wrb.12.2024.02.20.16.07.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Feb 2024 16:07:41 -0800 (PST) Message-ID: <07fb65c9-109d-4dfb-ae60-c4a1ce99876f@gmail.com> Date: Wed, 21 Feb 2024 02:07:42 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 11/12] net: wwan: core: constify the struct device_type usage Content-Language: en-US To: "Ricardo B. Marliere" , Oliver Neukum , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andrew Lunn , Florian Fainelli , Vladimir Oltean , Roopa Prabhu , Nikolay Aleksandrov , Loic Poulain , Johannes Berg Cc: 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 References: <20240217-device_cleanup-net-v1-0-1eb31fb689f7@marliere.net> <20240217-device_cleanup-net-v1-11-1eb31fb689f7@marliere.net> From: Sergey Ryazanov In-Reply-To: <20240217-device_cleanup-net-v1-11-1eb31fb689f7@marliere.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 17.02.2024 22:13, 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: Sergey Ryazanov