Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1081586rdb; Mon, 19 Feb 2024 03:52:39 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUzaDTCDGxfjPdbfENIGSR5ZEzs83SlLGEzki1VXJXujX5hojtarOnb5rCbe9PPJ0VKbMmy3k7Xr7INoD+OKKDVdTmZvhCPHqM38wtaXw== X-Google-Smtp-Source: AGHT+IFLtNoC9yopNtAg3Y4w8pcwIdmRsGK2ESN+VAmnALv7GzMgw1piGYzH+q4+Lj2Mzt17PT+G X-Received: by 2002:a05:6402:b07:b0:564:a5c1:6ec5 with SMTP id bm7-20020a0564020b0700b00564a5c16ec5mr460456edb.35.1708343559434; Mon, 19 Feb 2024 03:52:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708343559; cv=pass; d=google.com; s=arc-20160816; b=aRB6RcZE5QXBG5IsFVq+2tG0M9ZsrkI7N9IZLaMmRec0MkQ8ehavoLS3vT1cA4UXbp Orx0AIjK9b0FuqwrVzcQFBU1kqTM8UjdVZe8KD+3V7moOrXMvREqQgrGjEafCCQoVI7q M77xSODz+3WWSOM/XCK7++XMQOFw9HZem0zLa6UxoKzPN0l78zPzL5eTqb9vlQGl6dwh TZsmfxbiJXJgIhHDNL+BUsX9sh1J/CBhg3sn9eorNjewGtdKt5LrENMoZuaS3lAgMBU1 7Q6RLauAm4lp4nXuXBif1ymYPXBYIsqJ9UOpjPJVIZl7sihhxvrfWdn3+6N8U48JL+tr 8FeA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=D9hRGYviTBgrT9JL4bYsDb4sJ3nlGtiMKNkQ8M8d4Mo=; fh=ikCLrcwIuRGHho0r58aebwH880isiboJo+vtCmsd4HY=; b=HJ4vmMEvcD8Zzt+0zTCcZRlcjHoZg7freHvut7LF08ptTl4QJbKia1A/JITpasSxgK 8kgBmTJWOpMzWLeTFenrzIUAj+ycMHOFct9gGJWi68n8ivcD2GfXQzwraZ2Qhwy/T9MS xdoIS6o+R9qJzgwuFyLOpL9f6TfzVovJzG7o1P50SsVQ1xV2iXBlW2/HzmHt7Cl+nWFo 6wTEJJ7rD2Bfch+slLFqcqm/AxTG8UlA+h/EcJoMSzpjX+7qIxlHLLFp6I5RZau0prE6 9U3cq/kEjHdybHNqxHfNq2htFnrfx3u9bXICA7YlJKWTfhPMkxKjY6ydGrff7Ss8HT3L AC1g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HGFV80bP; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-71235-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71235-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id dh17-20020a0564021d3100b00563fffc8e7fsi2365951edb.663.2024.02.19.03.52.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 03:52:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71235-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HGFV80bP; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-71235-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71235-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 587AD1F256A5 for ; Mon, 19 Feb 2024 11:45:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B30F42D03B; Mon, 19 Feb 2024 11:45:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="HGFV80bP" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.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 6E13F2C1BF for ; Mon, 19 Feb 2024 11:45:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708343110; cv=none; b=ZGSaATkR5qv14COmXAmsVBr6EsAfYjRh7knyQGvvJ1tCAgZ8BZIN1EA8q6VHP5dfr4/cocNHQPY8sdxiWIEJyucn6P6WNd+JzkJgEAS8wnkdJSmCcYdGvG2GAp4F/xooZ6cRUoxSAa14g9ZbrCzKSY4G/eQGYcZWz+8YORO7fMQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708343110; c=relaxed/simple; bh=D9hRGYviTBgrT9JL4bYsDb4sJ3nlGtiMKNkQ8M8d4Mo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dDWZOvGTCUc8luCEklLp5jWIXwuRZKrxoNiGn7BPNhP9uEhzmuWIr2doLtedqpG0M04hqHPS+8Rja7tUjIc16eyfn8TKg89x6MxLKCIeqOnTEiLDEyojblQ1DCl/ZLP8zD4jAU7UXvA7wHmcNCOmACBdYJfCdX1mc8KO/4xx9c4= 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=HGFV80bP; arc=none smtp.client-ip=170.10.133.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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1708343108; 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=D9hRGYviTBgrT9JL4bYsDb4sJ3nlGtiMKNkQ8M8d4Mo=; b=HGFV80bPvVJG4I/dcerxA0Dr+3iOxokAd4tFk8FjBMtH3oxSpau0bPrrbIOR0lRgcgLqjD CMx8DpvbF/j23/gb8RU3qCq1ATjGaFayzlVBEyogwz27Y6d5/fp3VWWST2aV0T8z9GE8Xi iWlApAjsncZ34DkA91dPYmAoUCzd2c0= Received: from mail-ot1-f71.google.com (mail-ot1-f71.google.com [209.85.210.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-452-JEv_rUVgMwSGb3jl0eOHAQ-1; Mon, 19 Feb 2024 06:45:06 -0500 X-MC-Unique: JEv_rUVgMwSGb3jl0eOHAQ-1 Received: by mail-ot1-f71.google.com with SMTP id 46e09a7af769-6e43bd130b9so1885403a34.0 for ; Mon, 19 Feb 2024 03:45:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708343106; x=1708947906; 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=D9hRGYviTBgrT9JL4bYsDb4sJ3nlGtiMKNkQ8M8d4Mo=; b=bRu+vP2qJNXVYX67gEE9EtyWT6VDqRJi/h8YMckh7se74z+JTInae6n5tA9e2Px2tV 80AOxvxoT80Qkz+LsrG4rjYMjAeDsmPYotyo5w6WhBosQMKe213Tr5K4F76Aju1dxcyk VDEPldnI96pt9FvjRjx02SUA6gjsNRH/TD7cOWcz0kthg5D/Y8eXjfkrejSHmPwSLGPk CP87LN5OK82J/RZfThvHy1YUqsm8MBDQ7wHEqdqfg/T4petIEgHWwkkDkXI+rBrKAO/0 +rtIfuAmxwvv0PalGdiQ+azHqPMF9rYIN0v5/hlih0ZbwYoOSDHBKJTnJaDMrO5PVEr+ B6TQ== X-Forwarded-Encrypted: i=1; AJvYcCVqRF0fT6LukjCcwcghxLtqxnpN3Ojj0GpJt1e3bPJhW5GexLcVbMEURkQ6ypuNtgumRWHFbxVLdJmniQVAs6ooPtZ2cdyh0X3UuUCY X-Gm-Message-State: AOJu0YwDrGv98O/7OsT6fhpGzoqWMKk8nQZIR4XwABmVi+upJW5huLjG /Dq726kzntUeTN+Nmy4hiooAeAdYUuDm3J+AvTyTNTfvxG+oz5dZFRKg0mY3rGDuCuNskKmmGFI gner+5eUJgDdX8+vhCuZUr+NpQ0Pf/IzW5+rAW6u/b+n9414kDSzH1nvWVUz06w== X-Received: by 2002:a9d:784d:0:b0:6e2:b28f:6179 with SMTP id c13-20020a9d784d000000b006e2b28f6179mr10941357otm.1.1708343105914; Mon, 19 Feb 2024 03:45:05 -0800 (PST) X-Received: by 2002:a9d:784d:0:b0:6e2:b28f:6179 with SMTP id c13-20020a9d784d000000b006e2b28f6179mr10941343otm.1.1708343105678; Mon, 19 Feb 2024 03:45:05 -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 r10-20020ac85e8a000000b0042c6ae89193sm2447426qtx.93.2024.02.19.03.45.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 03:45:05 -0800 (PST) Date: Mon, 19 Feb 2024 12:45:00 +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 06/12] net: geneve: constify the struct device_type usage Message-ID: References: <20240217-device_cleanup-net-v1-0-1eb31fb689f7@marliere.net> <20240217-device_cleanup-net-v1-6-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=us-ascii Content-Disposition: inline In-Reply-To: <20240217-device_cleanup-net-v1-6-1eb31fb689f7@marliere.net> On Sat, Feb 17, 2024 at 05:13:28PM -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 geneve_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