Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1231526rbb; Mon, 26 Feb 2024 03:06:02 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV4clpIocu68rrr+PYb4wVnRqUFhCl8M6RfvuDLkKvVkXeuqv8TLFuBjx66XrDJHJ1VhVIidbOt1BCMgsZ4Ep2LqDibDZ0K2Ou2ON5E+w== X-Google-Smtp-Source: AGHT+IFz393mCf7SXZ7BmUCPHwoqc9ZtpswMiy4eUNIw/PnvHAsUMFfnDhLlGmvoTHVQvqwGxt+B X-Received: by 2002:a17:903:2305:b0:1db:f1e2:84f4 with SMTP id d5-20020a170903230500b001dbf1e284f4mr7652718plh.38.1708945562346; Mon, 26 Feb 2024 03:06:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708945562; cv=pass; d=google.com; s=arc-20160816; b=LAwcSFXnzTAbRl9SJNtM6w+0Vu9oWKo6y81lLK3YHE4x0buNn8z2RjRTk9kfK7SIvw F6RN09UVYKaeEJEduoXGiolUzx8Cbn1mgjDy5dtHzp3CfBsIif5OmvuB/5QzDbAz8ccD K67onMg/o6zrpuyeQu8RMrdYfdOnSXRsfxc0D2oKMxikcKHY4B3Pb4chQn2fCL/OIO5l xNdzYmuKx/Ksoenoif5jjm/2tu7LGtrXUfMi5CL2OzdVv2YLTdbOBe2Nse3Ud/fq6uRv CXZdjRN+TP6kFM1jtgEKgUrZiTn9r69vPvlUzODi8gGl0kHV6cuCiZBWNazVKBmUy/Tt fzfQ== 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=sLYqnNiq97LLm8hU4DtRKoUylpLRj/bOir9ynOH893g=; fh=LQCmMqotZcxUz317cFCBih9GIIGr6MaT5GnkKgeN1HI=; b=CIG84/VXThAiXyvZij1POhJGJ8ZxNSC+yUgUYtOL7LpuGDYwmZgPWi9cZERV3iF+5s Ubvn5wIcDaTe7cQIZjjdSbtv2n5Tm5zDu3QerckYB/z4oPI2Rwy1HdITgtLTD7Jw1B9w INxboo/LxFlGFHOR216N5JQ/QIgtOChEkGpEW17KIJ5uZVJBHLMtpc1noNmvPwB4y/vr S9M+/dgtK9FU7bQlRGQXIXyxqcCy3QVRakNZ/4m159xSrssfMEgAboxaYqUkK8qgE+yT FHlTKeCb4kSlfXeDBWioNwyZw6ha1ZNKZfeLCe/q41G6dxQ/PAsYlM7kxrtb9/XbupJ0 BOCw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fsjpGFC5; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-80626-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80626-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id z1-20020a170902ccc100b001dc9214a047si2509042ple.411.2024.02.26.03.06.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 03:06:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-80626-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=@intel.com header.s=Intel header.b=fsjpGFC5; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-80626-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-80626-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 4DA862811E7 for ; Mon, 26 Feb 2024 07:19:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6102F1BF27; Mon, 26 Feb 2024 07:19:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="fsjpGFC5" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) (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 F3B1FEEDA; Mon, 26 Feb 2024 07:18:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708931941; cv=none; b=NN+Nx5ETs9TgVKWlBJ4QfQ1Ze2/LraZiZPT/4uDQGvABqe/RhwFxGBES9P8BQUT1de5VneJXvW2s14hahGjua+WRcOAh7/0MQp8j+2NCfTzOPy9ZG9sQqk3S/NChNhzFx7gcLQ55L6iFZHLNDGktBFTVryI350OvhRRCWnEOgBI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708931941; c=relaxed/simple; bh=uDHrC4LsfOn1VnuBdjlGU4Vy2ZoIIkjiedIFz+qgMMQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=b5K+Zvi5p2LznQryebo1nrEk4rJk5SnL4xFgbYBr9UcY4TTRr2rYh5gKhB8yyceERXFD4CPazQyfiDRKpbOmu5BrhSZc1wlqmJFW6aUuxYrnZatVAg2MaaTfY898jIFfL4ATV4ILYsBMhbZkKD+dLeffrJTLYOkX9M5PMPPS4C4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=fsjpGFC5; arc=none smtp.client-ip=192.198.163.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1708931940; x=1740467940; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=uDHrC4LsfOn1VnuBdjlGU4Vy2ZoIIkjiedIFz+qgMMQ=; b=fsjpGFC5EkOHINZLPuvJh2JPnfov17EB7MiLKnE0Is27Q5jh5zdaCnGt wPBGsOPnTib93XwO1pBbSUfmfbGPJTG8DC/lX1XOtpyqWPTwhVg6+oMQm q5nNSMEdKp5PvItYRDLFAzSxZALSx4GhAz03OQohgmlgrz1Y+iALWCH8a duPjK/xcmAmw2MxbjTjpXI1OX1DV5ecT4BHhJ5L6gq/IcTxEli3WQfFK2 VC0Gv0xjqMhztTLlaQyhz+PB22bt5+Up7l56H2rj+Uz68+OYg88pmNHxH zwVOjYNeZEwDXUSQ2FMSFPcg5+iCgGLhEqkFTrtSJKhkyHxXE2PlAOlrK w==; X-IronPort-AV: E=McAfee;i="6600,9927,10995"; a="3363999" X-IronPort-AV: E=Sophos;i="6.06,185,1705392000"; d="scan'208";a="3363999" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Feb 2024 23:18:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10995"; a="937029376" X-IronPort-AV: E=Sophos;i="6.06,185,1705392000"; d="scan'208";a="937029376" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 25 Feb 2024 23:18:57 -0800 Received: by black.fi.intel.com (Postfix, from userid 1001) id 03E674FD; Mon, 26 Feb 2024 09:18:55 +0200 (EET) Date: Mon, 26 Feb 2024 09:18:55 +0200 From: Mika Westerberg To: "Ricardo B. Marliere" Cc: Andreas Noever , Michael Jamet , Yehezkel Bernat , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman Subject: Re: [PATCH] thunderbolt: constify the struct device_type usage Message-ID: <20240226071855.GY8454@black.fi.intel.com> References: <20240219-device_cleanup-thunderbolt-v1-1-7890787f1ec5@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-Disposition: inline In-Reply-To: <20240219-device_cleanup-thunderbolt-v1-1-7890787f1ec5@marliere.net> On Mon, Feb 19, 2024 at 09:45:50AM -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 > tb_domain_type, tb_retimer_type, tb_switch_type, usb4_port_device_type, > tb_service_type and tb_xdomain_type variables to be constant structures as > well, placing it into read-only memory which can not be modified at > runtime. > > Cc: Greg Kroah-Hartman > Signed-off-by: Ricardo B. Marliere Applied to thunderbolt.git/next, thanks!