Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1329948imm; Sun, 15 Jul 2018 05:16:32 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfB2i4otirVTbsgMWvPvg0KBAZ2Qy1qYwv0WjwBHj1zztKSCxTdLtSB1y7HAJ+ZQjywV30B X-Received: by 2002:a63:ff21:: with SMTP id k33-v6mr11954435pgi.38.1531656992681; Sun, 15 Jul 2018 05:16:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531656992; cv=none; d=google.com; s=arc-20160816; b=TS7xtKGkvtIw6wdkpXwSAHQiZFUgiUaphyZUDkAJDvzMU8fRYA4og6Kd2u5ndKp1ZI hu1lWmXxraZr1oYnY2ApzCNTx8DZSNXS/RLPctRpCDQQ/9CKaKjb4251ta3+E15WZaZ/ Et9cCRuJAKVeAi+hJrm/CSoAkHB0mziDY2JcEWTIrhnSCLNLr9Cwrr38nb66V8P9vP0D 9TbSOlcX+wM0Pa6PLuu68QjNwXFJxtvdP3Jus5+hWIeyMgOd8ilt3zK5gs6Fb6NnrAlm OnsV/FVDyHbXAQh89MyQsLVn2ZR+q9fkI+PpID1TKg8w0XbMN6gkLmuSkYbPUSzEb75I vMPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=btItsjYvwayVLSOvXmd68z50pUYxJGAmCNjSeO2tdmU=; b=SvGIs5rgXoAZY2PdQNY4gOY2j8XIOQbpVWNBB/Cjo3ke7xTJUh9sKuv14SGGT9FDAf SwQFhfiNly1Wb7QCdIVIimBM7fyFvqk9pDOzzouD9FWRU8uWs6PkAIMNeWj4hA8ykeO/ qzaD35AxvyoHf28/9vCrroAnyFAWjNVMob43urLf8xk5m/VmmZZEs5lqTZmXofcnYZhW VMu+8rcAE+PYduJCydkqjTDRVAfViYRnOra9kERMUKhXXJ15ZbHH5sSNN3Jn94Ja0y8/ t/JMvwj322WyZJZ6oQvYrfh7VCf1ZP+hTlcDcMSDRrf+tDKlX7kEP/a+5WuVlY8cXJds IOnQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n61-v6si27623122plb.256.2018.07.15.05.16.04; Sun, 15 Jul 2018 05:16:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726237AbeGOMh4 (ORCPT + 99 others); Sun, 15 Jul 2018 08:37:56 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:38726 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726156AbeGOMh4 (ORCPT ); Sun, 15 Jul 2018 08:37:56 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 22896BC6; Sun, 15 Jul 2018 12:15:09 +0000 (UTC) Date: Sun, 15 Jul 2018 14:15:07 +0200 From: Greg KH To: Georgi Djakov Cc: linux-pm@vger.kernel.org, rjw@rjwysocki.net, robh+dt@kernel.org, mturquette@baylibre.com, khilman@baylibre.com, abailon@baylibre.com, vincent.guittot@linaro.org, skannan@codeaurora.org, bjorn.andersson@linaro.org, amit.kucheria@linaro.org, seansw@qti.qualcomm.com, daidavid1@codeaurora.org, evgreen@chromium.org, mka@chromium.org, mark.rutland@arm.com, lorenzo.pieralisi@arm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH v6 3/8] interconnect: Add debugfs support Message-ID: <20180715121507.GA17794@kroah.com> References: <20180709155104.25528-1-georgi.djakov@linaro.org> <20180709155104.25528-4-georgi.djakov@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180709155104.25528-4-georgi.djakov@linaro.org> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 09, 2018 at 06:50:59PM +0300, Georgi Djakov wrote: > +static int __init icc_debugfs_init(void) > +{ > + struct dentry *file; > + > + icc_debugfs_dir = debugfs_create_dir("interconnect", NULL); > + if (!icc_debugfs_dir) { > + pr_err("interconnect: error creating debugfs directory\n"); > + return -ENODEV; > + } You should never care about the return value of a debugfs call. Just ignore it and move on. > + file = debugfs_create_file("interconnect_summary", 0444, > + icc_debugfs_dir, NULL, &icc_summary_fops); > + if (!file) > + return -ENODEV; Again, do not check this. Where do you remove this directory and file from the system when the code shuts down? thanks, greg k-h