From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 595341E834E; Mon, 9 Mar 2026 05:59:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773035975; cv=none; b=U02au9VjelJLrfU6x1o42r5I/zEQiJdyVyaxqNYtK1AJk/Ju/hqnIDDrz9ETWDSr1jX6R3wwXPU5ETlKjsSAuSPKptpAtJhSxjwN6yPkcUHBJUaLZ1z0mkc3YsphDsV06nqr5K6gtHCKvzAhNWfBcrlrUElVW1R+i1O81CZpIpY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773035975; c=relaxed/simple; bh=591fDBtSEemZkhlIfx1YWUCN1GHAxbffpObsBvtPrss=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BW+aM1/YlIKJJoip4JJduhwUmuAbfhc36Z8cx8KWuc6+ee+CnuKXtjqqt8shsLOF77wBz356DWKi1ggBLEVL0m/pFmHLnFUKUPWhUPQOZR0zCp+gmTfuxbsuZxh4OQNmbQOn1dfPigLobfHNt4brJ8/WxNNLLmvmN2trXchZB/I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=H+HDOVMn; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="H+HDOVMn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 94B33C4CEF7; Mon, 9 Mar 2026 05:59:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1773035975; bh=591fDBtSEemZkhlIfx1YWUCN1GHAxbffpObsBvtPrss=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=H+HDOVMnTPGqVKmt7i+gwH9l4qUnKtxFeTdQZ9sMFOo7ZmvILIuBv67ThOz8hVVd7 scpO5+RmJotQmsi4bLFtok0UcYr02lVd7sDA3Lrg0iyWSSDeVIbqiTel+HmSfw/rvf 3mZny9+eCFTT4V+cdYCwtAh+7Lwa8uC7nEp2z3mo= Date: Mon, 9 Mar 2026 06:59:19 +0100 From: Greg KH To: Jori Koolstra Cc: Kirti Wankhede , "open list:VFIO MEDIATED DEVICE DRIVERS" , open list Subject: Re: [PATCH v2] vfio: mdev: replace mtty_dev->vd_class with a const struct class Message-ID: <2026030913-oblong-dress-e34b@gregkh> References: <20260308214939.1215682-1-jkoolstra@xs4all.nl> Precedence: bulk X-Mailing-List: kvm@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: <20260308214939.1215682-1-jkoolstra@xs4all.nl> On Sun, Mar 08, 2026 at 10:49:39PM +0100, Jori Koolstra wrote: > The class_create() call has been deprecated in favor of class_register() > as the driver core now allows for a struct class to be in read-only > memory. Replace mtty_dev->vd_class with a const struct class and drop the > class_create() call. > > Compile tested and found no errors/warns in dmesg after enabling > CONFIG_VFIO and CONFIG_SAMPLE_VFIO_MDEV_MTTY. > > Link: https://lore.kernel.org/all/2023040244-duffel-pushpin-f738@gregkh/ > > Suggested-by: Greg Kroah-Hartman > Signed-off-by: Jori Koolstra > --- > v2: undo whitespace reformating of struct mtty_dev Acked-by: Greg Kroah-Hartman