Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp9155135rwl; Wed, 11 Jan 2023 02:05:54 -0800 (PST) X-Google-Smtp-Source: AMrXdXsdPpUgP+qAzmroMTK13yt3ViyL9GHdwXOm9yEPFNUtsG6sge8Fe3ZWB6OMd6ZRPpRHSPvk X-Received: by 2002:a17:906:3f86:b0:7c1:765:9cfc with SMTP id b6-20020a1709063f8600b007c107659cfcmr63862209ejj.34.1673431554073; Wed, 11 Jan 2023 02:05:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673431554; cv=none; d=google.com; s=arc-20160816; b=Y7oRXi4torkYhXjtlS+Da5kdZUnq4T+9EcuiLJSOuRTdnf3v223mKzD4oDXKofpLEa CKonUbfbLSbInHxSesJ+JN6/PCjvzQvy3hLLH0EwRFL4t4iHfI3P7VIS0KaAPqkCnc78 mYI6tR1bZB7WPzka2R+j4as/CfMU8LOj1qhk+F6k+dsTPQcDIjB95JFJG9Z0PLUAPE6p Vw7cjOoiMqudNEjEefPDqjVvDENj48JR+3+IEcXsDxzO15t/+e5BGfgJPZIcFokr1MZl s4fZYdzFY//U4/0DmOfpBvfPFes0fTJhFiIsjMfTAl43reCRo/OW5G5JT4rIHXjc8ygF 1juw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=5JCxcq8s25zH1JJ2SglAvaPDJnQlDU0iqSEokX2qFAE=; b=DuBpbJxA7JlYpZ2yIw7ZsJoF2F7eKjzuYCye7RNz2KVJl+RsjoewN1SROn4j1KTDNe awjpam9iOxuKU0pZdlQSUNCi7zD2x1wdcUc8dKSVAMFke/ZZqDchEk/B1Thm2YFVVZ2d CVzBhhTfwRA0jxcjHcD9epOxRYmMt7yDE/p5PwtcgglDZVGb5EUXMxMHcPp099YrGkIU FBJ34+ZADJF5PW22EhFWg8rCY7k70s7UWA6EjjB6eavEc6vt971bgrBm743Gx/VJi1Wf u9o+kDsCJIQfxW4K70RExNe2GWLWGoQE1cjMdhvwxa2pH3vyxHueiw2ga24cbjXdyAXF ud0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=V2m3LQPz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id be14-20020a1709070a4e00b008173e855728si14103830ejc.528.2023.01.11.02.05.41; Wed, 11 Jan 2023 02:05:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=V2m3LQPz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238523AbjAKJtl (ORCPT + 53 others); Wed, 11 Jan 2023 04:49:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238827AbjAKJsM (ORCPT ); Wed, 11 Jan 2023 04:48:12 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C9A011A29; Wed, 11 Jan 2023 01:46:59 -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 A319D61B96; Wed, 11 Jan 2023 09:46:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7A035C433A8; Wed, 11 Jan 2023 09:46:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1673430418; bh=q0MTQbhS4MjxtbLiLzvG2UgbCXEINak0W4RxzYpWLNI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=V2m3LQPz8klAo5lmv1lQnnS32RnpBjVnoIKlTX3SjDR1cz7SnWI2FoA6TzpQi58zc cbIsfcZkcKAjQse33rc5b9J3K44+9PFwfLXbD375VhsfSt9ciFKVqIOtH8i6e4qyTR jU1UyZW8M4dMLqbERhxH5Tp0aNoAnIQ48zo2IVaE= Date: Wed, 11 Jan 2023 10:46:55 +0100 From: Greg Kroah-Hartman To: Dan Williams Cc: linux-kernel@vger.kernel.org, Jens Axboe , Alison Schofield , Vishal Verma , Ira Weiny , Ben Widawsky , Jeremy Kerr , Joel Stanley , Alistar Popple , Eddie James , Alexander Shishkin , Jonathan Cameron , Jilin Yuan , Heikki Krogerus , Alan Stern , Andy Shevchenko , Thomas Gleixner , Jason Gunthorpe , "Rafael J. Wysocki" , Won Chung , linux-block@vger.kernel.org, linux-cxl@vger.kernel.org, linux-fsi@lists.ozlabs.org, linux-usb@vger.kernel.org Subject: Re: [PATCH 4/5] driver core: make struct device_type.devnode() take a const * Message-ID: References: <20221123122523.1332370-1-gregkh@linuxfoundation.org> <20221123122523.1332370-4-gregkh@linuxfoundation.org> <637e733838b5f_12cdff29466@dwillia2-xfh.jf.intel.com.notmuch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <637e733838b5f_12cdff29466@dwillia2-xfh.jf.intel.com.notmuch> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 23, 2022 at 11:23:36AM -0800, Dan Williams wrote: > Greg Kroah-Hartman wrote: > > The devnode() callback in struct device_type 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 all relevant subsystems that use > > this callback. > > > > Cc: Jens Axboe > > Cc: Alison Schofield > > Cc: Vishal Verma > > Cc: Ira Weiny > > Cc: Ben Widawsky > > Cc: Dan Williams > > Cc: Jeremy Kerr > > Cc: Joel Stanley > > Cc: Alistar Popple > > Cc: Eddie James > > Cc: Alexander Shishkin > > Cc: Jonathan Cameron > > Cc: Jilin Yuan > > Cc: Heikki Krogerus > > Cc: Alan Stern > > Cc: Andy Shevchenko > > Cc: Thomas Gleixner > > Cc: Jason Gunthorpe > > Cc: "Rafael J. Wysocki" > > Cc: Won Chung > > Cc: linux-block@vger.kernel.org > > Cc: linux-cxl@vger.kernel.org > > Cc: linux-fsi@lists.ozlabs.org > > Cc: linux-kernel@vger.kernel.org > > Cc: linux-usb@vger.kernel.org > > Signed-off-by: Greg Kroah-Hartman > [..] > > diff --git a/drivers/cxl/core/memdev.c b/drivers/cxl/core/memdev.c > > index 20ce488a7754..6ae8d0bdc61b 100644 > > --- a/drivers/cxl/core/memdev.c > > +++ b/drivers/cxl/core/memdev.c > > @@ -27,7 +27,7 @@ static void cxl_memdev_release(struct device *dev) > > kfree(cxlmd); > > } > > > > -static char *cxl_memdev_devnode(struct device *dev, umode_t *mode, kuid_t *uid, > > +static char *cxl_memdev_devnode(const struct device *dev, umode_t *mode, kuid_t *uid, > > kgid_t *gid) > > { > > return kasprintf(GFP_KERNEL, "cxl/%s", dev_name(dev)); > > For the CXL bit: > > Acked-by: Dan Williams Thanks for the review!