Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3422032imw; Mon, 18 Jul 2022 07:51:23 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s0NU25R/mqhri463MyWbzq7ylz13ezie1d3E5paFj7tGayIK1oO/b/tuDQEKlWDEEymfGl X-Received: by 2002:a05:6402:2786:b0:43a:dc4e:ea63 with SMTP id b6-20020a056402278600b0043adc4eea63mr38538188ede.175.1658155883198; Mon, 18 Jul 2022 07:51:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658155883; cv=none; d=google.com; s=arc-20160816; b=L8fC5iXFuT+wY8gpHb/JpmCKv2DhlP1Mj3tBTFvfeoKMJdouBrPk3cD9sjmQUek+gl SNt4pF502J++Q+tECoDLlsy5dHZNl+OPjOOXdj+u7Q7dL3+vsdelMTT6ULJNjCBDepGi 57Kyiwd+Rh3yG0SWE9SUJ5F9J8ss0BUUxxP9DrDxYU1e8cEh30uCo4UNDmsD8nWX/BCY gSHfkQEEwvYuK/u0dNR/0neJD+Nt/hZelKUsVSLo5Lk9LG6pjvqE8clQsvcbThWsP0NF XKutbqY35+SPG2j4JrRTPHheMKAszELVEtpbPfFrehuYR7kGlVSZZunS9NCWhvMa9gJu BXiQ== 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=aEpjpJc4efpq4pfu9DdT28v1rRZ7zfdGmWCGTM6kI0M=; b=rtnw5wY50qJnX34pLMILrIgIKO7ky8JQHFpaZ1M3450TO3gIQalA0fxM61WT6NvZDd r27TB3J2hObIxrHApX+IKey08NVYhJurrN9JdMzEq90pVCfCsr4mowjulR5/TPI6Tj+9 2zMftRDAkBP8gH4G1w5KGt3scsbfDdJn4wiI/BkJ+YcmkKxAXnG3bUjOaYy+rSk6ztv+ 1P48kbsi+mU0Z5Qlcc/u8YgXxQL1/qIlBAobVfdXksdfp0lB3vLR+I3C1SQSudTRzyTL aCb7fnge36bDgACRTdP4coIXbNywbkpFRkxzr4KrZvAok1qvFx5Ez2QZyTEZBbZns1n6 l/CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cIu4Pa4Q; 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 di12-20020a170906730c00b0072af2bb7c91si16925761ejc.139.2022.07.18.07.50.58; Mon, 18 Jul 2022 07:51:23 -0700 (PDT) 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=cIu4Pa4Q; 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 S235220AbiGROW6 (ORCPT + 99 others); Mon, 18 Jul 2022 10:22:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235161AbiGROW4 (ORCPT ); Mon, 18 Jul 2022 10:22:56 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1D4C17056 for ; Mon, 18 Jul 2022 07:22:55 -0700 (PDT) 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 ams.source.kernel.org (Postfix) with ESMTPS id 6A7D3B81618 for ; Mon, 18 Jul 2022 14:22:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51C7DC341C0; Mon, 18 Jul 2022 14:22:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658154173; bh=Fqub0gkwDWlNfMKT567baTYJxdJF6oYJFy8SvGoM+Lc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cIu4Pa4Qn6eg4S1HPmfZefeFjgZ0yXHEE81t5NTkVxJHY8g7djw5MlWRCUb8BSbcd bt0xOaIhhY7sMFe4Rrn0X+0qGUqNs8iOnKaxEl1BstvPBmSaGeolq/L0kvCdQ7pSgF sGLwOJsVEgNDAF32eMEL6UxZyao/OD7Kl2pomUfw= Date: Mon, 18 Jul 2022 16:22:49 +0200 From: Greg KH To: Gaosheng Cui Cc: srinivas.kandagatla@linaro.org, rafael@kernel.org, linux-kernel@vger.kernel.org, gongruiqi1@huawei.com, wangweiyang2@huawei.com Subject: Re: [PATCH -next] nvmem: node: using put_device to replace kfree_const Message-ID: References: <20220718130612.3122982-1-cuigaosheng1@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220718130612.3122982-1-cuigaosheng1@huawei.com> X-Spam-Status: No, score=-7.8 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 Mon, Jul 18, 2022 at 09:06:12PM +0800, Gaosheng Cui wrote: > We should never be touching the name pointer of a kobject > directly like this, the device structure itself should be > cleaning up the memory, not a kfree_const, so using put_device > to replace kfree_const. > > Signed-off-by: Gaosheng Cui > --- > drivers/base/node.c | 2 +- Please slow down. Your subject does not match the file name you changed. Stop and wait a few days, fix up your patches based on the review, and send a patch series and then wait for others to review them. While you wait, take some time and review patches from others, so that you can get some experience here. good luck greg k-h