Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp625217rdb; Sun, 18 Feb 2024 04:40:01 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV8wYHbKDSuV2RAZOhqLozkkeMjIGUgEbOdcbS/LfCkbfuYVI28MXTPI0qGRoHJQjDLHtjULB8Bc4OIMXqkobzBdXVGm49qeJyUvpdcfw== X-Google-Smtp-Source: AGHT+IHEJN3sCuIlxAt7K1e7H+KRMMdva8ruQAkJ2UZ4NeQW1s88UPwfOygYL0926Pjyu4c49YDn X-Received: by 2002:a17:903:244d:b0:1db:5d07:f8ea with SMTP id l13-20020a170903244d00b001db5d07f8eamr10388524pls.64.1708260001185; Sun, 18 Feb 2024 04:40:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708260001; cv=pass; d=google.com; s=arc-20160816; b=z4lPYY65IOwrxrCKXSG5W06IICQz00CSvkl1r2WIKqn8gnCMHFv7CeD+ciD2NsrTO+ WrBc0xLW08c/u5apArnv2xglv7H6CdoINt54tgIvbyRX6Jf2Z2poKhXZNWNdZsKsC3Pg O8jaUyKntX58aPB4BF4GXFZ3vmBZPGGI1p1AZ7uPMJxxWxbL1maX+D7zXQ0B5Q/pn8qn 3ovNgzzUTdArwuqENcbV0LQdH7nH2L/ylzfKBi4JskzD6MzSHM7HsaWULFgr9Vjduttc XHpVblu+luGiS1YyzHbItnX8gDJMR1iiyf5hjK2O8gT9PPjJ7U2R3mgP1MDZhHBgGLzg ws4g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject :dkim-signature:from; bh=g/RyA0owvp8Vb/My3RmXXVsAxzzWZv+QMQ3rufBIEHU=; fh=BKi+QNdXfLe0H+OKWwrYQQg1RUjRgpzh84IW6t1WoIE=; b=Q0JqXliwKK1D6st8ISxF0IA8DPd1IpDakKd9jrpHlTcngZDP41yTf6EgbpXC2p9KWh 2EKY9nLIFGiM/ZmsXXa+KUfwMxu2l6bh3EG96TuGOUku2bHInRHOOY7YF1LVnhLfuKhf JPbSIDtU/4pVz+uPTFuCY4q+AsAqTyJtaczeEruv+HK/1Rou7CToDVxserhmVS8Xlez/ Ctm3YQ3kmKtrvJrM7qX9RCdC9U7CKqsGa2UH9tYu37DU/+WPmfLCzzWTc7IGt8Jbi4Qr XEF1IMQlKfqbISJbQZaoZgdSvCtTgQZxLao5u1kN/YoFnotV3TIwtIxLEAQQW+eavaq7 e7hw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@marliere.net header.s=2024 header.b=PpgtROzV; 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-70051-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70051-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 q6-20020a170902eb8600b001db4589428fsi2823997plg.388.2024.02.18.04.40.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Feb 2024 04:40:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70051-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=PpgtROzV; 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-70051-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70051-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 238A128429D for ; Sat, 17 Feb 2024 20:13:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 060857E77A; Sat, 17 Feb 2024 20:13:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=marliere.net header.i=@marliere.net header.b="PpgtROzV" Received: from mail-pg1-f182.google.com (mail-pg1-f182.google.com [209.85.215.182]) (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 9B6101C2AD; Sat, 17 Feb 2024 20:12:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708200779; cv=none; b=XUEFsSkdf6cI2AVXhVTmpQPvUgMhx56VLIwQeKJiVHHKl+fbLKxL19s29x/yOKQs2CFJsU5u3f8C9FmfzYebBKBA4LuxSomZkb1WsuXcaBuWkpC12bS/RHsHPsJ7ovN/ddLV0wTJ3ivUInzfo/G7PJK0ZKVx898sJC00gvIkz4Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708200779; c=relaxed/simple; bh=8IktCrsRC+hlS8Myl1fdnPGp6EP8hC9J1haMpC61SOg=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=EJ+LqCsJx3KvHsmvKequ1sCmeBzhrxZH8MTPy7O5Oj05Il79TRBa/6WXOpsuq4hyjKar+Q1i5ugjm7M2evcWh4udsV9GdneS8dLHoMsA/myTQbSCbafKZeOPBGG0nZ5zwhxa0KLxhFi4AsgRQ9t1ZuHPc/gdpXyMgnewUfO+DYw= 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=PpgtROzV; arc=none smtp.client-ip=209.85.215.182 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-f182.google.com with SMTP id 41be03b00d2f7-5ce2aada130so2720515a12.1; Sat, 17 Feb 2024 12:12:56 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708200776; x=1708805576; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:dkim-signature:from:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=g/RyA0owvp8Vb/My3RmXXVsAxzzWZv+QMQ3rufBIEHU=; b=wVFIYjYjXy8jcCfU1qmxLy0OF7PL8oWsQOT6Ba2DtDGsZWUzJwvJ6meq178cVxdb+6 sbdxIWsV2hc3Qw0A/RjNTr9zw470f0W9di4X0RZqAXfAW2Egffmo7TqlJMtlGJ5k1umV fhX4nUprpvIibOtYv3pJoWuxDbjSdrgxhNkgcNMtOpcudjLF9CkkA1z7O3okeo27mjOB inX2V8aPN6t7CCSv33eVofbWeZd6u+JFSV2ht7yK3Q78UN8IDITzH3gS+Xddj4xC0S++ A4YdnjIQn/a6cYAMVj8rAcrSRC0F36ZAh9Fc3o9PNS91pfHEkhCGE4OIV0TGObLIHVie UTgg== X-Forwarded-Encrypted: i=1; AJvYcCX47UD7CdwHhVtIeOGrVAEbmeJEY14Cnn4IplSbYdnkEtfRT2FLKkgSrXQXtLP0lKq9ibBB8V8aUf98FFwRnbsfnxuyjPehPgAFxoMQWcAED6n8Nq7t8RFhDclHznMjqjpSPxoNuOz1pRNTFF5Njx3Ug3kWV9hZfw6iAV1lnB0SEIdE X-Gm-Message-State: AOJu0Ywp66kfAX6daFExA52VxrWdfecTWMJCF5FiJM89pnB8zZZ9u5cU 2YQuZrl0B1ORS5cK2mdm2Ds0ta0/K++reXdF0Xl6TdINi35oRkr9 X-Received: by 2002:a05:6a00:1822:b0:6e0:3939:60dc with SMTP id y34-20020a056a00182200b006e0393960dcmr10299722pfa.23.1708200775782; Sat, 17 Feb 2024 12:12:55 -0800 (PST) Received: from mail.marliere.net ([24.199.118.162]) by smtp.gmail.com with ESMTPSA id p4-20020aa78604000000b006e363ca24dcsm1281725pfn.67.2024.02.17.12.12.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 12:12:55 -0800 (PST) From: "Ricardo B. Marliere" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marliere.net; s=2024; t=1708200773; 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; bh=g/RyA0owvp8Vb/My3RmXXVsAxzzWZv+QMQ3rufBIEHU=; b=PpgtROzVu4fxgbA384MRbpgF+FeUxvP8j69pOojHuzqDCqIqQWZAAotSr6WCDaghpufBWq CtcU/JmiMs83KsjNV+6Pc/65LIZYHZXMmu3coO35DMVT/Xfhn8/qAJ18pq1f7OS6J14WIy RJj41euKpj9DjqAjPwn/iGhlI4c2ITpRFw3obJnCCAI5C1hxFMYVGFhZx2Lll2HsFiiffd PIOYWf08hcY7hCciMc4vKtBzJPdq9TyrBZjCo54PbUwAKxiTLLURggX58EPJPO6eeByLzT +WlALkmmx9l1mDlB/SxmRZto8d1GKF57eNnkfcU0QASkZ6I7u81GBsT8nNZheA== Authentication-Results: ORIGINATING; auth=pass smtp.auth=ricardo@marliere.net smtp.mailfrom=ricardo@marliere.net Subject: [PATCH 00/12] net: constify struct device_type usage Date: Sat, 17 Feb 2024 17:13:22 -0300 Message-Id: <20240217-device_cleanup-net-v1-0-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="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAGMT0WUC/x2MWwqAIBAAryL7naDSQ7tKRIhttRAWWhGId0/6H JiZBBEDYYSeJQj4UKTDF5AVA7dZvyKnuTAooWqhZMfnIjmc3I7W3yf3eHHdadMK00jTaijhGXC h958OY84fnVJAZGQAAAA= 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=2050; i=ricardo@marliere.net; h=from:subject:message-id; bh=8IktCrsRC+hlS8Myl1fdnPGp6EP8hC9J1haMpC61SOg=; b=owEBbQKS/ZANAwAKAckLinxjhlimAcsmYgBl0RNrpk7BX+VmqEEeJxcyIwSF9ZeHvTQLW5p1V ealPQCKRLOJAjMEAAEKAB0WIQQDCo6eQk7jwGVXh+HJC4p8Y4ZYpgUCZdETawAKCRDJC4p8Y4ZY plYsD/wLcDBrNqH7PMKSjPkDtyu9739Mvkq+1uT348a8e82LOWBnOdKK6q+DkjgyUHodP2kqFyB q+OBZevG9xCq7m5Nbu5mjwu6pALcRTrny9S5Zk0cLWMSZAIXYTvexzFW5CLi4XUHeqR3Qwq8c+U GetCdNHd/HNgOyqW/L9kd5s1ivpxGffSeBzNg3WhrWajErwBAHboUc1HJ17FD8tPSTcPAvUwl97 Wl0auf0nme1Niz+WyayZv9iRtZut21l+tVeMH+HqWYjh36SKvkrU/p2hPzR8syuDHLvk+j0T2q2 IVg4PE18HskT1IoRQ5s+9D85b5zqVuU7e2k/eRrxkMJVG08tcmnxOYZ0eKzYEBQMrXECyqlS4ty It1ohBySWA58CT7b0XC4jduQ1APoExAel6JvYgMVP0U/IQ+1dRGVX7o6mRjpj9vdGlXisYNIya6 RnkAPo4SFGuLWYUSta0O1rRUbVzh9ZkOs1A3usrujPywEvrT7ylTOwEpnlr2FL8RAZn9udVV08m MA99oSDSBPqtqIWk7/Z5cdlaOBZwEmytINyYUaX4CV5SHFWtO7K3wjojXMityKLq3iabpjm10z9 ZdzdzWwgoD1HhvD8cAUC1WCU/j/owgoaFbXHZaDAaKrEhWTlTpKlw0t3s4AdKkMWmyU+iYreHuV MtNhqyvaf91HA/g== X-Developer-Key: i=ricardo@marliere.net; a=openpgp; fpr=030A8E9E424EE3C0655787E1C90B8A7C638658A6 This is a simple and straight forward cleanup series that makes all device types in the net subsystem constants. This has been possible since 2011 [1] but not all occurrences were cleaned. I have been sweeping the tree to fix them all. I was not sure if I should send these squashed, but there are quite a few changes so I decided to send them separately. Please let me know if that is not desirable. --- [1] https://lore.kernel.org/all/1305850262-9575-5-git-send-email-gregkh@suse.de/ Cc: Greg Kroah-Hartman Signed-off-by: Ricardo B. Marliere --- Ricardo B. Marliere (12): net: usbnet: constify the struct device_type usage net: dsa: constify the struct device_type usage net: bridge: constify the struct device_type usage net: vxlan: constify the struct device_type usage net: ppp: constify the struct device_type usage net: geneve: constify the struct device_type usage net: hsr: constify the struct device_type usage net: l2tp: constify the struct device_type usage net: vlan: constify the struct device_type usage net: netdevsim: constify the struct device_type usage net: wwan: core: constify the struct device_type usage net: hso: constify the struct device_type usage drivers/net/geneve.c | 2 +- drivers/net/netdevsim/bus.c | 2 +- drivers/net/ppp/ppp_generic.c | 2 +- drivers/net/usb/hso.c | 2 +- drivers/net/usb/usbnet.c | 4 ++-- drivers/net/vxlan/vxlan_core.c | 2 +- drivers/net/wwan/wwan_core.c | 2 +- net/8021q/vlan_dev.c | 2 +- net/bridge/br_device.c | 2 +- net/dsa/user.c | 2 +- net/hsr/hsr_device.c | 2 +- net/l2tp/l2tp_eth.c | 2 +- 12 files changed, 13 insertions(+), 13 deletions(-) --- base-commit: a6e0cb150c514efba4aaba4069927de43d80bb59 change-id: 20240217-device_cleanup-net-878960951968 Best regards, -- Ricardo B. Marliere