From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4263DC433FE for ; Tue, 15 Nov 2022 10:31:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237444AbiKOKbN (ORCPT ); Tue, 15 Nov 2022 05:31:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232880AbiKOKbJ (ORCPT ); Tue, 15 Nov 2022 05:31:09 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47B7922B26; Tue, 15 Nov 2022 02:31:08 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D7D94615E3; Tue, 15 Nov 2022 10:31:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A5ED3C433D7; Tue, 15 Nov 2022 10:31:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1668508267; bh=x0Azh44FGWo5bT/KSP1vVjZOfHzwPtcFPt6cWW/bsfU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cmlS6ClKlBO4E0igkgvzWISuPbWpPBo4G/o3w/UO8AU8ja1v5bIkhwN5Zm8ofO5Hr vbXROjK/tQDjyCDdyq6DPFkRaOwnC+mD9mYhm59FTN4r2c1g2U7z60hIjb1IxQUehc 2J2lnyetrzQuPNY5DUqblI5uxrwEpwXhxyKWT+y4= Date: Tue, 15 Nov 2022 11:30:59 +0100 From: Greg Kroah-Hartman To: Christoph Hellwig Cc: axboe@kernel.dk, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org Subject: Re: [PATCH] blkdev: make struct block_device_operations.devnode() take a const * Message-ID: References: <20221109144843.679668-1-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 15, 2022 at 01:13:07AM -0800, Christoph Hellwig wrote: > On Wed, Nov 09, 2022 at 03:48:43PM +0100, Greg Kroah-Hartman wrote: > > The devnode() callback in struct block_device_operations should not be > > modifying the device that is passed into it, so mark it as a const * and > > propagate the function signature changes out into the one subsystem that > > actually uses this callback. > > Yes. In fact it really shouldn't exist at all. I wonder if we can > do another attempt at dropping pktcdvd? I'll gladly send a patch to delete it. Who objected last time? Let me dig in the archives...