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 9FC0328DBF 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-f72.google.com (mail-ua1-f72.google.com [209.85.222.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-629-g-je3JWeNiWg1sruNVoMNg-1; Mon, 19 Feb 2024 06:43:36 -0500 X-MC-Unique: g-je3JWeNiWg1sruNVoMNg-1 Received: by mail-ua1-f72.google.com with SMTP id a1e0cc1a2514c-7d8f2415604so975331241.1 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=TadprBZvWwFEnWpgTtALcI6YxHyd4T6j7XqjgQQqkiEP9e/ZpuVGvqHvrsPBcCdDE1 6FzoO6lOe2LjxVdvE/GypWVbkRHVv9XANiXKutixFuEwTdzpzNpiasQHho0eCFcuGNwf a1+0KHYgWmug99KCYg2RI7Jb6bmIyNTu2EOpFElAGMaebWLGLYt6RSj9z2isVYZ6qnFi 08H0aivt1/hVO31RKEtOsq4DXdIoDI/gbVIBXis3S4kBPBjqK2R+LgWrS7+jrVMHbD60 +2gOILxQFc7+Pzgq9qJWcQKqWrJXVIc2mOktCzGgKCqVgLbX9EBDTVfOU7333EP+Lbxe QUYw== X-Forwarded-Encrypted: i=1; AJvYcCVH7FzmhT6qE+lU4Xu0TnSiQSstGZZdMKvgSRSQ+jlvVKeHIGieKRgmdUJBbmmUuq4rFeJx8JhqMQ+Jj3+cK27b1pWnjWIg X-Gm-Message-State: AOJu0YwdxI4PxUh60o5f6/6aQNT1T+qBq7UF2hDYRKRsoBXsMCUsyCDJ hu1D91k2LnI1EdvL393jdB7+SGIwftAz4S5jMwG3U/UNGkWB82d4kufo2iV8ejsNTjlWcV4HU+M dR+NRo4/WVfO2vzzUA96zmy8KviBZ5hqi+YVLkt9TXBM5On8Lth6JJg== X-Received: by 2002:a05:6102:c4f:b0:470:5d2b:d3af with SMTP id y15-20020a0561020c4f00b004705d2bd3afmr1232152vss.32.1708343015883; 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: netdev@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]".