Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp372998rdb; Sat, 17 Feb 2024 12:16:24 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX2dcxoigNtrJGmMCdehB9WmcbscMXtoBoLoEqlUHjh9XlulDFbrW7u1SAfMWFLVC0KKVJemDVEHYxHUOrRyabK6ZXGD2rJmXcZPiFzuA== X-Google-Smtp-Source: AGHT+IFi9SM5AZrQopCtuPrE765C4Xk0Zk4cD1UC4RX36n3lnwr1r8zSbOHhZr66tXjF0xfRc6DK X-Received: by 2002:aa7:8810:0:b0:6e0:2c77:a501 with SMTP id c16-20020aa78810000000b006e02c77a501mr8147787pfo.20.1708200984683; Sat, 17 Feb 2024 12:16:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708200984; cv=pass; d=google.com; s=arc-20160816; b=RiSyoUkEFQtuH+W08iYjUkyi0HXfY9xnFSoC0j/XztCOE6YaB+fDODJidO+vS1Jgbv UPjqyKXhOBHyTfv5saL5qxCtRjCWpxiGgMTx40lGELB7M35Hh0rh0wPRTHEZqB7LkOlm bNOS3xcyjqkUeKwcDvpLPKJ6X9OF7gePVe0O26Izw3jgzIagnIjXUMk+vKO57TDLBcNB ByZpWuYmtieatta8Yu4PdJakAHZyWSfodqxk/VetXXZ6rIP1IAgcetVcYcEVYHjwbqYX TftwbYIJ9p+OTqM1fn4tdOe3D7CX8azgZ4PihneALqJtdHV+EXMBaX34oABhpf/e+4BC B5mw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:dkim-signature:from; bh=8iNTygmT5ipcARp5YbQMkBNVEB7RzR82cYZWFFk8+0M=; fh=tsQAhTaHM2agcKbnEU7T+vxvOrvh54glvWXGsm69CMQ=; b=RN4cCKuGhGtIk0bqpYM852BOH9w1qpdkN985Pi18IuZJ9y/AnHtl0F8tDh4XiusitK kxsVa7zOE1ypQWc4oF/lL5+O9jnT/HB2T4nm9cp3duSI6NHWiOLxBzJETcWoTclH06pM 2p+y6tV8lfMHavE79nOrFvqZzC4GWlI+wyDJ25U5yopZz7zkS1HEEBXH2UiDOErOVpmY xj6qx1/o9m2879ERMKUZXXz6kLYulbxDmYOjRSp8GkMRA0wW9UQcE+cmsSndcQaGnXd9 x/HV0Vv96zVbOQX96ckcjN1L1hmUBvsdUcRsSiP7iM+GZpH5m1HaBeu6grE48h7XpXVH qb9w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@marliere.net header.s=2024 header.b=WIMhl9TS; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=marliere.net dmarc=pass fromdomain=marliere.net); spf=pass (google.com: domain of linux-kernel+bounces-70059-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70059-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=marliere.net Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 35-20020a630e63000000b005dc905460f4si1905992pgo.3.2024.02.17.12.16.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 12:16:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70059-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=@marliere.net header.s=2024 header.b=WIMhl9TS; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=marliere.net dmarc=pass fromdomain=marliere.net); spf=pass (google.com: domain of linux-kernel+bounces-70059-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70059-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=marliere.net 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 62183286883 for ; Sat, 17 Feb 2024 20:16:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8BE5A811FB; Sat, 17 Feb 2024 20:13:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=marliere.net header.i=@marliere.net header.b="WIMhl9TS" Received: from mail-pg1-f170.google.com (mail-pg1-f170.google.com [209.85.215.170]) (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 8760380C00; Sat, 17 Feb 2024 20:13:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708200803; cv=none; b=PG55zeBQWy4cpr9Eo9RReTa5vthppgF6Oa7HYnWIjA/RFccdOx11UPHfLpYPCL8M2TxMRAi5Y1f3BicdpeSWdto46Fvv2UdrmE1C9UAL5JnMg2b9KxhzRtpM/8C0wDCpdHA1r7nwhwhT2uTiuZuR9yr2aQaflwjw5QWn7ctaM9w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708200803; c=relaxed/simple; bh=eeFgE80nQULg/ODH3WLl9PUdnSdgjTDRNDmmr+zQ1fI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=VbGKxASldZZYM9jZx77GAs2zJ1xdbtS/CHin5D/kDas0br3OH6iLeRSqT6dBmoMHWYthyRl+Nht6wPWguYWD9T01Gji6TE4w0nee+vDNLirDWNm4GfkvydE4cNnNgKpcdjn2mzxn4SW3SnPAflF3afow/r/IYCbaQzBq6NLVtQY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=marliere.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=marliere.net header.i=@marliere.net header.b=WIMhl9TS; arc=none smtp.client-ip=209.85.215.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=marliere.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-f170.google.com with SMTP id 41be03b00d2f7-5ce6b5e3c4eso1282846a12.2; Sat, 17 Feb 2024 12:13:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708200801; x=1708805601; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:dkim-signature:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=8iNTygmT5ipcARp5YbQMkBNVEB7RzR82cYZWFFk8+0M=; b=ULajX2IBBzx8jTV0Kh3tvW6ZcMPqq+u/JmK24UJy6HR9+dUY3ddrapeFum5gDLmjbc yYIRQsGcM0Imtt8rU8pEUYu1JRnnglg4ggHBQXeCDeEnozz+aV+cV8V0gZpLRoAYL6t4 r8Cur9dSFxG9GRzVJnsmXZ4Kim4cvJ9X4tz1Ecm4fMXdJWga27lcMv7lDP5mdsr52zJP Y1jj4HJtQc4ARqvfx4tsCBzxPzC3opD3IWUz+jF5xdxIW5YFOqT3p/vtrh8RA6tGcW6N QQECIxMy3wkBN7wE0j400lU5ryIbZItKws/ZtvVCGp1JxDiSk2SqLUrLBFWXH1G6UEyB IS1w== X-Forwarded-Encrypted: i=1; AJvYcCWzVKLDRuyyR3nPZgjbg9srHIZuApPngaOKXgZAzXL5bZhQlC5bgiNnYFrt0zrZFXZ/NyF6YfvSa4+HWjpXo1Z0gZAA0Mf78hVLKomJ9Ccuw723n18cZNbDXfJoErbebjqoLBdw7wa/b69aCGcyH/RnrGc8ShcCUSxut+3OZqzMgHyz X-Gm-Message-State: AOJu0Yw95tyeblnl15P/HfL++DDeysr55il3JTGs6unRG/Hp7zMVngyI ghJz3zdCVuRHaFOtpbu4IGZM7V201B0sZl/CNTzW2as4s5bpsMiP X-Received: by 2002:aa7:84d9:0:b0:6e3:1fde:cb72 with SMTP id x25-20020aa784d9000000b006e31fdecb72mr1774098pfn.23.1708200800938; Sat, 17 Feb 2024 12:13:20 -0800 (PST) Received: from mail.marliere.net ([24.199.118.162]) by smtp.gmail.com with ESMTPSA id ka26-20020a056a00939a00b006e134c4d69csm2001825pfb.200.2024.02.17.12.13.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 12:13:20 -0800 (PST) From: "Ricardo B. Marliere" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marliere.net; s=2024; t=1708200799; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8iNTygmT5ipcARp5YbQMkBNVEB7RzR82cYZWFFk8+0M=; b=WIMhl9TSIiodCLJ2hmVc2j5qyyoHKviu61n28l1TovzHev6vEaZc6SP4BK3gFVJBUqqq5m EBRDBx+bXWIH5buy9/86HKeTKRrp0mrMnhqSG30q0KP0CPDlIPBU4GVKfjvkRoO5WnQfg1 wXaJddfm5IWx3/ZA5/cRwnwHVjA9vHopDfkxzMZenPpDKQ5uF5WR3shxhBLLXLlHCJ6yRt LHnjaJBsfqtHBKvtumFHmOzDv70kotqKyK72y/8IvBFlgys4fGZfLYLGstARgY1gf20mfe KBp/1nP8Zq6zVQTrRE7csmwVwnUws6WnjMC4mhsnRNcz5jt6jUeBHUqIvi7GWg== Authentication-Results: ORIGINATING; auth=pass smtp.auth=ricardo@marliere.net smtp.mailfrom=ricardo@marliere.net Date: Sat, 17 Feb 2024 17:13:30 -0300 Subject: [PATCH 08/12] net: l2tp: constify the struct device_type usage 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="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240217-device_cleanup-net-v1-8-1eb31fb689f7@marliere.net> References: <20240217-device_cleanup-net-v1-0-1eb31fb689f7@marliere.net> In-Reply-To: <20240217-device_cleanup-net-v1-0-1eb31fb689f7@marliere.net> To: 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 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 , "Ricardo B. Marliere" X-Developer-Signature: v=1; a=openpgp-sha256; l=888; i=ricardo@marliere.net; h=from:subject:message-id; bh=eeFgE80nQULg/ODH3WLl9PUdnSdgjTDRNDmmr+zQ1fI=; b=owEBbQKS/ZANAwAKAckLinxjhlimAcsmYgBl0RNtaYr4KM3ym68vowZ6RFZ8dGZ4QSN6ZFoqj dePyx6YDuqJAjMEAAEKAB0WIQQDCo6eQk7jwGVXh+HJC4p8Y4ZYpgUCZdETbQAKCRDJC4p8Y4ZY pvbhEACfDIVsBUMTjBZbGV4kR4SOZZQiVQ3ZsIP9+Qga6a+hrWSp8vxQLL3MXOTueQ1WhMSffTL xc5aEmWO+QZDr7qUWUtwcTbtvMswxHFeMJJGWtLpU8skfmMuNKPL43e/GU3q0VdOrYx6l1sgglA zaTYZnYousVSSZfafz/zfUik3eQnfFIjACfV6YgZARpniBYYb1PQ8+0jtBKzmaVIv6rzKNk5YMg Kjf+lvl2m3vxKGT+M96hZ40Ot6oYKe2+G6e5P/NscQ0LMNjnC+SfKk2xEtvNa/b6wFpnkKQhu3I 4z0EV833G7g+UDPFuA8F5jVoauFyoA76ujGMgLrKLxlNek600Iov2EmbVpTI/VdLYU3oQAZ/BaY fAwRTS0qQ8h17A+9U1gVMQ96HcR6IRcevaxM55UREk1JckbFcm/TcWMPUlSKYONzpKhuunkGQnA WOGnSOe6UhxxO/js8tSLU8Xrys7cK9xS1F8pKSKQAye3h65j9GIEEsrQTf5DEBSDdLjGvoLFw7L f67MNie/cE1mOe8EA/MVyplPNDYWpgX4FVefNBqBl7pdKoEjGTJ3biF9U9+YCAdYAAls41bksKS 9danhTGJxyyA0qZSZ90y6qr3g5s5uyhZv5JTxV5qqkurUhgsZUxIykns77OrrFXXTGPeOjCV/2N /4I8cY9pNqMl/TQ== X-Developer-Key: i=ricardo@marliere.net; a=openpgp; fpr=030A8E9E424EE3C0655787E1C90B8A7C638658A6 Since commit aed65af1cc2f ("drivers: make device_type const"), the driver core can properly handle constant struct device_type. Move the l2tpeth_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 --- net/l2tp/l2tp_eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/l2tp/l2tp_eth.c b/net/l2tp/l2tp_eth.c index 25ca89f80414..39e487ccc468 100644 --- a/net/l2tp/l2tp_eth.c +++ b/net/l2tp/l2tp_eth.c @@ -100,7 +100,7 @@ static const struct net_device_ops l2tp_eth_netdev_ops = { .ndo_set_mac_address = eth_mac_addr, }; -static struct device_type l2tpeth_type = { +static const struct device_type l2tpeth_type = { .name = "l2tpeth", }; -- 2.43.0