From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 ADEE22C19E for ; Mon, 19 Feb 2024 11:43:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708343021; cv=none; b=ljb/p6oy3IRbxsaCyfE/wgWH3jHcrFoC77IShE1/+cifukMUX2rYTdJ0qGtt3kYmdvYSpzvzwfFXlArq6qr1W8i5phUBsm1Qzktmod2SMk39vZ2OrNy4UCs39+UO7adgVtxT5GJkQeidnLYOu3aPcY8FIfEjqBbst6VNkj3INhM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708343021; c=relaxed/simple; bh=UT1lPa/2yb85M5r4o3D5dus2HraX5x5mzr0FhmB6TGc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jgYN6oo2VL/FVIV3WnsioxCJenCqA+upnnjKJTkQfIQ6SnxYk3zddOTs6UMsSmy48vNn4q1RK++sa7E96LUiEJQJ6NrSh7KUpNVwuFg/85f7yICQYznB8E+nkDQlqzid07eDxfmQfA6aNkvgrzkhslhdtCc6xJfArYdfyG3Y8iI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=BzddOlzg; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="BzddOlzg" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1708343017; 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: in-reply-to:in-reply-to:references:references; bh=UT1lPa/2yb85M5r4o3D5dus2HraX5x5mzr0FhmB6TGc=; b=BzddOlzg6j9TlmdTRLejMmv7U9U21i9uGd98fsVZd3pFR0a/jMlD1BI6TNZ8rkCYbKZUsN kIp8EpbJY6VlcuMQUC/YMu7TgCO9oGP+fugQ5ckXVXuNdf7B0Mxp/mKCu+kxry2hYW12lO 8qeWVsgvtvJb0j84Og3yHmz3QsfrmWM= Received: from mail-ua1-f69.google.com (mail-ua1-f69.google.com [209.85.222.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-695-4mANBqVhNdacGY3gBMp5ZA-1; Mon, 19 Feb 2024 06:43:36 -0500 X-MC-Unique: 4mANBqVhNdacGY3gBMp5ZA-1 Received: by mail-ua1-f69.google.com with SMTP id a1e0cc1a2514c-7d2d72f7965so1952007241.2 for ; Mon, 19 Feb 2024 03:43:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708343016; x=1708947816; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=UT1lPa/2yb85M5r4o3D5dus2HraX5x5mzr0FhmB6TGc=; b=obUj7dbR7Mk79GtMmKN4eL75ZCfSY6EN8usOzRkOXsYNZpc6mncKfBc0uYy0UK/PfX Dw7OV18MOPbwJKsHj0rqUiCWO9b6WxDBu3+46jU990ENxy1usVsrz73NpJkVfzM2m8fP KYA6NBMyFcQqmKn89KD3C9reU/B59eQWjp3BLXm5QiqCvaBHiDvEl4eur1v90tXg4Cxy LTc7mUUDhU2VmwlLXVkdzR9NIMuiBcL0eGvAovIhf0H2dyrIAp9oMCOkMHjEoCvemYkI sVnG4Z3DLk26hT60dIpsaqETTFaPqfZg0KNuMwa++ar6uUfHV5NExCnQVUtXhN/bnAUj AOyQ== X-Forwarded-Encrypted: i=1; AJvYcCXGr8ov28Oj+TOXnAxoWKDc/jn2Xjmil8/KVHGBFHdQO0N5GWRNC3NZs7hYQ1j/xDNBiiX9atL3Un7KmpHhVi1prz54ToUZesoh X-Gm-Message-State: AOJu0YyPgk2+QrAjajwcxiWip2Bp/q9s1RbIXMVeLgqmdFiBJQ8dkikI MxT3LB6FpaEr0H66jE3T9b+mG88z/Z1NR5G8brrbNFfoCR58PYNERM1fchRz0IgWXiGHQEKlEke O5rrwCSENf9TrBZ2gSOeRFUKFwqIkBMLvBqExbmrn+v/KXrE2+w7Bp7zl0Q== X-Received: by 2002:a05:6102:c4f:b0:470:5d2b:d3af with SMTP id y15-20020a0561020c4f00b004705d2bd3afmr1232158vss.32.1708343015890; Mon, 19 Feb 2024 03:43:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IHcM4hsvYF0Fkc6wNPR39b7BLYIzpcoNtkCS5Zhj9FBZ5j1bMr2hWobtFDKi/HpuXRX7eZKug== X-Received: by 2002:a05:6102:c4f:b0:470:5d2b:d3af with SMTP id y15-20020a0561020c4f00b004705d2bd3afmr1232149vss.32.1708343015592; Mon, 19 Feb 2024 03:43:35 -0800 (PST) Received: from debian (2a01cb058d23d600e55283140c56efd3.ipv6.abo.wanadoo.fr. [2a01:cb05:8d23:d600:e552:8314:c56:efd3]) by smtp.gmail.com with ESMTPSA id kk12-20020a05622a2c0c00b0042c7145fd19sm2473479qtb.12.2024.02.19.03.43.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 03:43:35 -0800 (PST) Date: Mon, 19 Feb 2024 12:43:30 +0100 From: Guillaume Nault 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 04/12] net: vxlan: constify the struct device_type usage Message-ID: References: <20240217-device_cleanup-net-v1-0-1eb31fb689f7@marliere.net> <20240217-device_cleanup-net-v1-4-1eb31fb689f7@marliere.net> Precedence: bulk X-Mailing-List: linux-usb@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-4-1eb31fb689f7@marliere.net> On Sat, Feb 17, 2024 at 05:13:26PM -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 vxlan_type > variable to be a constant structure as well, placing it into read-only > memory which can not be modified at runtime. Reviewed-by: Guillaume Nault Note: To help maintainers (and potentially reviewers) work please write in the subject prefix which tree you're targetting. For this series, it should be "[PATCH net-next xx/yy]".