Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1077987rdb; Mon, 19 Feb 2024 03:43:48 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVIzzC95OpF6QEliFs3Dux50ObxJXcjq4RAY24G8nLhlllUR93fpxN0Dyw/VWIOQbZIes9HbEK1uNlAa84bxCcxo6SHDDGD1u1iOm4kuA== X-Google-Smtp-Source: AGHT+IEYVlHUDWr/ynxMnGenkRdoFhABO8JYPcdplzAJpbimU91WdyzTB+omA12Osq+ykW4NTk2U X-Received: by 2002:a05:6a00:179a:b0:6e4:44ed:29f0 with SMTP id s26-20020a056a00179a00b006e444ed29f0mr5856111pfg.19.1708343028690; Mon, 19 Feb 2024 03:43:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708343028; cv=pass; d=google.com; s=arc-20160816; b=EGw7JH2INyCN9LmBipT5BUBkfQCb6Jt9v5KlvjVw6VPRkBIjKV7CLRJcrDGjQNRefl E285aT2DPwxJNTdnEWXB+QtfNpzIwyZopzAkaLho3l8r3XGwC4vyNjUYq7S+LLhxEOz8 O9dFW9kFjRbCb6AwFg2jIpKsylbZwgy2dc6uItt83JUydymC/5GGY0clKy2lPtIrzf3W gMmdljgf6rwSle08MDdmpxSCHCAtDEZdmPoBqYIS/RBpt7Cr/ZsqwjWQp/GceuWmzzxn sWTh/qFTQZjMuyoBZPRYMGKcuHfozVpo5pIstYamRXEQq+2fukC7w6ekDUm+wgBK61EP uGfw== 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=UT1lPa/2yb85M5r4o3D5dus2HraX5x5mzr0FhmB6TGc=; fh=S7nDHjghyj8IJ5vqUXih0Qu23hBHlPsoqzUD59lFBf0=; b=Ug76/Zq0vcZj/Dp5RpFzjtaMVdOXk3KTv3x+vMhRgtzFUoHo7qaybAutlXUcrGbl0D BVR+X66wU3JV45TyiwAvqlEhzoh+QCguYSe6uQE33tejzP3KUY/SS8Y3uBvCPXkGTEep c50HBRD8xTBvqSG+6kWRXTtvEcjbR1bzDvAsFrbqb/Q39xCt/2FG4dRBKdtxUEvqdOfr 4a7HE19cCFOCOZuMkVHFKQNg5j05xNFoml9g+VLaP4X2c4omwy5WFbTuTKAZ3mNyfZMW dyOEMEPL9yXVQ2lGjVktmirnvhmh6WU6HHqt8yjVERmozesIonI+DA2x8aC8UdgNTcaQ a4lg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BzddOlzg; 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-71232-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71232-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id x3-20020a636303000000b005cf8b79f90csi4280463pgb.501.2024.02.19.03.43.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 03:43:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71232-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BzddOlzg; 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-71232-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71232-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 64340280C68 for ; Mon, 19 Feb 2024 11:43:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 016622C6B7; Mon, 19 Feb 2024 11:43:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="BzddOlzg" 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 ADF342C691 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=1708343020; cv=none; b=FaiSBQX450Lr2GqKar5PIXQOi/doajGmPnJIVXFkIhczJBGtL3074ffhXnxru/1kmvA1Fz+uFYzuMIm1PaeDPU2HgWvwbrQjd4UWm2Zyt9QixilwS2pON/vU669f/cDidJ9AAZgvdx+FG5609jZK450Sn4QAmpU8FY1PS914G9U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708343020; 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=u2mtD4+hi1e3aiImQZ/leh+z4NPp2wKpi8w2O+GY7hkKsjkGscvyNPITOHiqiz2GL5hfrxGz+xZvgHzhCb3OS2m66F3U+3tYQMXo1rwfFBFvcdKJWA/rbI7K/ZH88OOoT08SbFcklWtihwHR+kxZJGnw64VGitxulIaErQu9xYM= 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 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-f70.google.com (mail-ua1-f70.google.com [209.85.222.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-323-gJO4PfM-PI6PDe2-ns1tbw-1; Mon, 19 Feb 2024 06:43:36 -0500 X-MC-Unique: gJO4PfM-PI6PDe2-ns1tbw-1 Received: by mail-ua1-f70.google.com with SMTP id a1e0cc1a2514c-7d2def1b9cdso1058756241.3 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=KgOdokIFM7/CoLlZL2t3L+FMAxTBtaMT0O4CCZg1iM5jWbsEUlhrA6IX6mnk/AaisQ BQ9zVjNwpSpR4ULyLJMkpn5ewjMXWfq5ancokKbxRTvTtx0ujZlwA6/veBVgzfwwiRue pJAMqY6Nu8bwN3bapH0AgKZZDMmxK2AePE+FfLc3SKmeKRtY1ugyvu1N75wt8WzXeRyz TQrefmuEuVIHSqu1RMOrRy/aUWh8uwUTfxVb184Z+oNNiZ5RQrKzDIuvcHhxVzTcnKX+ tnW9M7gdg4o3mm3DFHRT2G1FHjDHUmgVrWpfEpyQaqtnV52sKptFal9sOUmvTWAvLem/ 9OEw== X-Forwarded-Encrypted: i=1; AJvYcCVut5TbhJlW+dxJ2a9oPTJNdFSl3VtHYUyFxXrLGd+kRout32nKhH80012+FiD5PgCMktYCb69B4RZ0ueKsKlOrmLowGYWeig04i1Z0 X-Gm-Message-State: AOJu0YwDNF0XqbVEepyaAIX4V9oq7pVBGu5KSyDqP6z2qErzkip4Odw8 5YpSeOHZ7K/QWQc2ymQMfWpO6RkgJUTiQGjrbuZSSBZmsTTCc1/R5pjxTqccAgcr3C0erNP+aor xe1btmc0EEZqwpAqYtVVv7981tjFwWmA2SHYFeNVi+pz3eFarlPxkCRsmN/VbYg== X-Received: by 2002:a05:6102:c4f:b0:470:5d2b:d3af with SMTP id y15-20020a0561020c4f00b004705d2bd3afmr1232166vss.32.1708343015898; Mon, 19 Feb 2024 03:43:35 -0800 (PST) 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-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-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]".