From nobody Fri Mar 29 04:50:34 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1559586244; cv=none; d=zoho.com; s=zohoarc; b=fpVK/aRjL6sxwZWZn/ZyTWUXAbIdN2WZ0y9TEjQmIm+b1UPE7D24p5C6B+0LTafw5nHN/Zf9XqxWdO4P2nLJK3MIG9qfZSGzMQzm1HOQj97/G5/gC103fwKuNAHdQO0250XCE5XhYsStjbbaVgUze+zdZeJq/MGBYvp8hfOXFkU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1559586244; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=u4KgxDUrhLDgLED0Z5S6GZJn1t/k8Gq3Am1WI35UaWU=; b=PKV+lP6UNpahT4YBv5SfxUdif8aRqh9EuKFhvvQ2RtpH+Brk1aE85SA+ZtghCfP/H2RSu95OUbxCtpuLxZD5Lf0BVEREdnDFQWEDd6k5if9f4aJwl8DazkcqDU3OOjM6AZon0iem89LpMmybjjsMU2Q8g+OXwWAzYkHVPYyW8s8= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1559586244500955.7530284241758; Mon, 3 Jun 2019 11:24:04 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hXrbG-00081v-1I; Mon, 03 Jun 2019 18:22:26 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hXrbE-00081q-TR for xen-devel@lists.xenproject.org; Mon, 03 Jun 2019 18:22:24 +0000 Received: from mail.kernel.org (unknown [198.145.29.99]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id 883ec874-862c-11e9-8980-bc764e045a96; Mon, 03 Jun 2019 18:22:23 +0000 (UTC) Received: from localhost (83-86-89-107.cable.dynamic.v4.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 49D3F26B4B; Mon, 3 Jun 2019 18:06:16 +0000 (UTC) X-Inumbo-ID: 883ec874-862c-11e9-8980-bc764e045a96 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559585176; bh=FYXdJLHo3hHt8L1/DCA879d6zeN9nhzBznMqKmudxhQ=; h=Subject:To:From:Date:From; b=ZfB+cVMh3EOaO+77faIMq9DP0u17oZ02dkSb8tiu6C2s51PeCW6FDh+wBjH83jGs8 fkP7y6FrgPOBLGbhBXCM/gsM3bSqYFtgaZMkvusgX56NcgfpKPvg+qwHAAn+vZudAy Mvkv3/FB/YikRewBjp5eYY0/HVibXiVaByR1LSZY= To: gregkh@linuxfoundation.org, boris.ostrovsky@oracle.com, bp@alien8.de, hpa@zytor.com, jgross@suse.com, mingo@redhat.com, sstabellini@kernel.org, tglx@linutronix.de, x86@kernel.org, xen-devel@lists.xenproject.org From: Date: Mon, 03 Jun 2019 20:05:52 +0200 Message-ID: <1559585152155235@kroah.com> MIME-Version: 1.0 Subject: [Xen-devel] patch "x86: xen: no need to check return value of debugfs_create functions" added to driver-core-next X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) This is a note to let you know that I've just added the patch titled x86: xen: no need to check return value of debugfs_create functions to my driver-core git tree which can be found at git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git in the driver-core-next branch. The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.) The patch will also be merged in the next major kernel release during the merge window. If you have any questions about this process, please let me know. From ad09137631e6e5acfaf288f3ba3f4b3a9f855d16 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Tue, 22 Jan 2019 15:35:42 +0100 Subject: x86: xen: no need to check return value of debugfs_create functions When calling debugfs functions, there is no need to ever check the return value. The function can work or not, but the code logic should never do something different based on this. Cc: Boris Ostrovsky Cc: Stefano Stabellini Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: "H. Peter Anvin" Cc: Cc: Reviewed-by: Juergen Gross Signed-off-by: Greg Kroah-Hartman --- arch/x86/xen/debugfs.c | 7 +------ arch/x86/xen/p2m.c | 3 --- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/arch/x86/xen/debugfs.c b/arch/x86/xen/debugfs.c index 13da87918b4f..532410998684 100644 --- a/arch/x86/xen/debugfs.c +++ b/arch/x86/xen/debugfs.c @@ -9,13 +9,8 @@ static struct dentry *d_xen_debug; =20 struct dentry * __init xen_init_debugfs(void) { - if (!d_xen_debug) { + if (!d_xen_debug) d_xen_debug =3D debugfs_create_dir("xen", NULL); - - if (!d_xen_debug) - pr_warning("Could not create 'xen' debugfs directory\n"); - } - return d_xen_debug; } =20 diff --git a/arch/x86/xen/p2m.c b/arch/x86/xen/p2m.c index 95ce9b5be411..0acba2c712ab 100644 --- a/arch/x86/xen/p2m.c +++ b/arch/x86/xen/p2m.c @@ -817,9 +817,6 @@ static int __init xen_p2m_debugfs(void) { struct dentry *d_xen =3D xen_init_debugfs(); =20 - if (d_xen =3D=3D NULL) - return -ENOMEM; - d_mmu_debug =3D debugfs_create_dir("mmu", d_xen); =20 debugfs_create_file("p2m", 0600, d_mmu_debug, NULL, &p2m_dump_fops); --=20 2.21.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel