Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp2907252pxb; Mon, 6 Sep 2021 08:00:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrecTW0XbREb2yDVhGIH8is4AJm3qF7F/k2gBfqoOzx1EJ1eeXqS+8JnHFmS7E36J0mJQU X-Received: by 2002:a17:907:2126:: with SMTP id qo6mr13672307ejb.476.1630940428392; Mon, 06 Sep 2021 08:00:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630940428; cv=none; d=google.com; s=arc-20160816; b=F1M06NbVP35AIU/vTUK3Xq6vJ3brYGPpVYrXeQm4UJB9eXlTj0PyvIBhJLDdHhtPVB TBTxizXAgvJgfCToZsXb8LakUu36r/fq/xMjHOWi7lfCbwfS+1KZeAqXauiuyZEPB0Ph UY6CBBZuKXeVfGU6GMRKm/LlQX3usJ36VclIz3DdNlFgkd+SFQ36YsWqbCNurx0DHdZM E2+a8Et4WXiMaFYzdrzoDOw+iKx62nl5Nz73vawgmqJXzGE/SwVGpOSRQc56tlzEz7J9 JWypodpbKhru1E8ilTsRGCQAHvEPZNtouKaCxTlzxRcTkSIA5OUJp8zi94CBUr7SIok4 rW0A== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=BAhGQaiUNFMd0cF59B0SMEJVdU2tWj7S2/LF/UKcv6g=; b=GsBjCh2VL0noa13VlM4/i0cSQzCAnyoEBzAGhppUexaTfBX+XaYyOxwcSirjPh0YIX sEu9pvCtqaeFYIuQQ4S2DrifhEjerCEm/+Ig8ACGpT683Nm+r/wzdTNvS0IrjB1RbrwF ImaT3xON5oAzuYxwUikTtXpPeq97XovYwm4QOC2KXtmbL4psDwueFkKOF+bgBbC7One7 gSSLB3I/PCGJzClYFYFN9r1kJs4hyQY3wSPKjQcjQR5PhhwUR9odgpBa9YxGR3pn/hWM XaUk2QrHnotNA2Qx8XLO83k7BBrxNJznoai1b21sV5g4Ka/LSGPG4xZrImJh1EMHUKoL UQTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=RYSOiZFC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bf11si8116125edb.377.2021.09.06.08.00.03; Mon, 06 Sep 2021 08:00:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=RYSOiZFC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242619AbhIFNh5 (ORCPT + 99 others); Mon, 6 Sep 2021 09:37:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242597AbhIFNh4 (ORCPT ); Mon, 6 Sep 2021 09:37:56 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B652C061575 for ; Mon, 6 Sep 2021 06:36:51 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id v20-20020a1cf714000000b002e71f4d2026so3864431wmh.1 for ; Mon, 06 Sep 2021 06:36:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=BAhGQaiUNFMd0cF59B0SMEJVdU2tWj7S2/LF/UKcv6g=; b=RYSOiZFCjTkL418WGcVP8CEyv+CIL2CdD4Mr508ZMphamikcEWmCQYwh2rSgJSpjIj R7adpHoBEoteB8/pbIsVPFHdfwKjhMAEQ8Zpi/YujLxueK6V4bjolnfkAZ1KnlyMZez6 A0r4Cs6ZxfawdLnGEnPiY1iRnYAkxaIQJceBww/0hDtoj8PxdMAXVK1qOz/VO5b/zzbQ CqGWUqebJtpfryjTuDyFV7TfNsN6KW9hIyWluZ5qM1rJV/XDF0+LeC6SvnRl224EEW8T HL6BXgWe0j32pQZ/DlegkQa6ym5eozBwadSbkxve+gfZ45jinlFvgqEipB+Eb8PycuDV WOBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=BAhGQaiUNFMd0cF59B0SMEJVdU2tWj7S2/LF/UKcv6g=; b=k60cnOKchLrW8P77HTiUduqHi1XgmtluIjHFAezR/NZodIa4FSeY1f18dmGCumISGk eTtUbdEofE+W2GnEwDsTaHMkG7zsfe8MGMwkIpxHjeCISZBVpsSzlW+OcCHA4urKPex/ oZRYh0JVDgG2CR8xrMUJ4MN6JsCuEawJW864+0EDULHRTWTUCd4u3sMhYJP5UdcQmlqz 39DEI97bCG/3o3w/ObGfyw1bukHNdwVnHak6ZPYlW9m6d9DAdIuyZphtdVQ5f+3Lfo6g wtzHw377zDVBIOn7JqGDlHNJNPgEfN4+zo8UtYUAro51puwRAHjz8fR/8WT0fZxcO23s CqVQ== X-Gm-Message-State: AOAM532VOvXas4N7E8Vkq3UtCpsytIG5/uL+4LlmJicZA5yh4QAB0V2z ZaJx0Sv8V8UTsgafa2wVj7guIQ== X-Received: by 2002:a05:600c:3502:: with SMTP id h2mr11686505wmq.182.1630935409867; Mon, 06 Sep 2021 06:36:49 -0700 (PDT) Received: from Red ([2a01:cb1d:3d5:a100:264b:feff:fe03:2806]) by smtp.googlemail.com with ESMTPSA id q195sm7559994wme.37.2021.09.06.06.36.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Sep 2021 06:36:49 -0700 (PDT) Date: Mon, 6 Sep 2021 15:36:43 +0200 From: LABBE Corentin To: Greg KH Cc: mchehab@kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-staging@lists.linux.dev, mjpeg-users@lists.sourceforge.net Subject: Re: [PATCH 4/8] staging: media: zoran: add debugfs Message-ID: References: <20210903191540.3052775-1-clabbe@baylibre.com> <20210903191540.3052775-5-clabbe@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le Sat, Sep 04, 2021 at 07:53:00AM +0200, Greg KH a ?crit : > On Fri, Sep 03, 2021 at 07:15:36PM +0000, Corentin Labbe wrote: > > Add debugfs for displaying zoran debug and stats information. > > > > Signed-off-by: Corentin Labbe > > --- > > drivers/staging/media/zoran/Kconfig | 10 ++++++ > > drivers/staging/media/zoran/zoran.h | 5 +++ > > drivers/staging/media/zoran/zoran_card.c | 39 ++++++++++++++++++++++++ > > 3 files changed, 54 insertions(+) > > > > +#ifdef CONFIG_VIDEO_ZORAN_DEBUG > > + struct dentry *dbgfs_dir; > > + struct dentry *dbgfs_file; > > No need for these, the file is never referenced and the directory can be > looked up when you want to remove it. > > > +#endif [...] > > +#ifdef CONFIG_VIDEO_ZORAN_DEBUG > > + zr->dbgfs_dir = debugfs_create_dir(ZR_DEVNAME(zr), NULL); > > + zr->dbgfs_file = debugfs_create_file("debug", 0444, > > + zr->dbgfs_dir, zr, > > + &zoran_debugfs_fops); > > +#endif > > Wait, when are you removing the files when the device is removed? > > That needs to be fixed no matter what before this patch is accepted. > Hello Sorry to have forgotten this. I will fix this. Thanks Regards