Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7780997imu; Tue, 22 Jan 2019 11:31:03 -0800 (PST) X-Google-Smtp-Source: ALg8bN7NtRDZPWiONR2pGNwDoBt+KqaqBg7F/7XXwhF34igw3RAFV8mGQIdIcdvx8x2gTkhW2Y4C X-Received: by 2002:a17:902:4:: with SMTP id 4mr35810031pla.20.1548185463849; Tue, 22 Jan 2019 11:31:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548185463; cv=none; d=google.com; s=arc-20160816; b=A7GejZtwWcAR/C993X79QyFCgjUx1pFtt5Wgz/rChhqSm8KugmGbm2t64KSpHMAyeP O4MNAlRiCMQ8M50lEeTvRMFaOVRoXdOrkLGfIE3fzskZRtbsParSAqInMxCyk92G1q8N xVa6gAUsrIB+a1RwNQR18CSMnHGYSTUlYrJk/Zg7wBMTIDL0lTxrVVxjY5ilH0V9SSt6 gmHzA9fwVqDe2Z/q7xgKT4d3EsSa1aFSvZDsoCAP/RBCTWPpo84IkLN6H2AH/YYP5UQs 1E5/ZHCzWuf8KXaAnY0xYYQOB0f6+UcQeeVdapfV9kMadkDbqCanAKQIIIMf6PN+jyBx Lwsg== 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:dkim-signature; bh=eHuAJOV+3TxQaUzKlcDsvyMvFG3/nnbotPjXyslCnCY=; b=is5J9DGGklA1gTCU3fE3D5Y5vZFpPGLXDPMm+7vMc0vB7dMky8rjOLo/0TmLBQdK4s r/Oq+2OiGXoRrY/B6l022NC4FpgzbGiljtooN0DmnqO/p23iQnLA6SaNMgDHhV08XZ9u gJz106k6wRcukGBMg3pYxfmp8z1g41NQPTOqUgZjoDK9XgGtNS7MkyrKn/JY/5xQOjWP c/+XwDu0Ghu2ai69qkoFcqH+AFBsmkZWfy2LfKa5jD5sI3mw1xfo2StuVnnF6IqFwpYr VlDmdRbyYH5tLH3xb7Hzymt3wk5VSmWUIDjRlZjnKzQvIINAGgsoHgB37gRmLjCjv9TS JPmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RqSusjkG; 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 v68si16116181pgb.70.2019.01.22.11.30.47; Tue, 22 Jan 2019 11:31:03 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=RqSusjkG; 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 S1726342AbfAVT3U (ORCPT + 99 others); Tue, 22 Jan 2019 14:29:20 -0500 Received: from mail.kernel.org ([198.145.29.99]:54120 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725925AbfAVT3T (ORCPT ); Tue, 22 Jan 2019 14:29:19 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4ABC92085A; Tue, 22 Jan 2019 19:29:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548185358; bh=9G0OoWQpT/t/mKqkKkzvkzW3jZ1ZG6EXZvtup/7w6u0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RqSusjkGIzIPK3uzmGKnqZInJ/27ALesdnmH10rWoiA7haQtdmvgJ+IVxnz+6+AuD Vc3X8CRRVCp4ZIE8S8GvSWSlkgeVvU0q0oM8wvbtLzo2v/K44xxjQRmhQ+29muFlTw Dl2w7o8uZrKpvDI7gx9z0a4c0XmaTr3pwVzt+jeg= Date: Tue, 22 Jan 2019 20:29:16 +0100 From: Greg Kroah-Hartman To: Paul Burton Cc: Aaro Koskinen , Ralf Baechle , James Hogan , John Crispin , "linux-kernel@vger.kernel.org" , "linux-mips@vger.kernel.org" Subject: Re: [PATCH 1/5] mips: cavium: no need to check return value of debugfs_create functions Message-ID: <20190122192916.GB5676@kroah.com> References: <20190122145742.11292-1-gregkh@linuxfoundation.org> <20190122145742.11292-2-gregkh@linuxfoundation.org> <20190122184855.GB2792@darkstar.musicnaut.iki.fi> <20190122192255.tjkmwgx25wvcp6y6@pburton-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190122192255.tjkmwgx25wvcp6y6@pburton-laptop> User-Agent: Mutt/1.11.2 (2019-01-07) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 22, 2019 at 07:22:57PM +0000, Paul Burton wrote: > Hello, > > On Tue, Jan 22, 2019 at 08:48:56PM +0200, Aaro Koskinen wrote: > > On Tue, Jan 22, 2019 at 03:57:38PM +0100, Greg Kroah-Hartman wrote: > > > -static int init_debufs(void) > > > +static void init_debugfs(void) > > > { > > > - struct dentry *show_dentry; > > > dir = debugfs_create_dir("oct_ilm", 0); > > > - if (!dir) { > > > - pr_err("oct_ilm: failed to create debugfs entry oct_ilm\n"); > > > - return -1; > > > - } > > > - > > > - show_dentry = debugfs_create_file("statistics", 0222, dir, NULL, > > > - &oct_ilm_ops); > > > - if (!show_dentry) { > > > - pr_err("oct_ilm: failed to create debugfs entry oct_ilm/statistics\n"); > > > - return -1; > > > - } > > > - > > > - show_dentry = debugfs_create_file("reset", 0222, dir, NULL, > > > - &reset_statistics_ops); > > > - if (!show_dentry) { > > > - pr_err("oct_ilm: failed to create debugfs entry oct_ilm/reset\n"); > > > - return -1; > > > - } > > > - > > > + debugfs_create_file("statistics", 0222, dir, NULL, &oct_ilm_ops); > > > + debugfs_create_file("reset", 0222, dir, NULL, &reset_statistics_ops); > > > return 0; > > > > The return needs to be deleted now that the function is void. > > Well spotted - I'm happy to fix this up whilst applying the patch. The fact that 0-day didn't catch this makes me worried, is this platform/driver not being built there? Thanks for catching this, sorry for the mistake. greg k-h