From nobody Fri Apr 19 23:46:26 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=1559570913; cv=none; d=zoho.com; s=zohoarc; b=hJLXETZgaQ2c9pFvk/VpdZmOmeSLvvepbzAo0m4ya7n9YXnLXGw4VOyFIavqLUjdrx4vipZ9K8rhfSfbyG0f1sdYN7OiQbQ+T2Jpza7Yey/E/8pSuuXD4aQqetpxB4Yz8iYKKBk5oyIJbfIIgWBNIGKDOqS7WSi2eOoqMhVy3x8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1559570913; 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=6B/mK7Nt0os0n1mKdJt2U0x/Z0L1Hr1sX2XO7+VcA6A=; b=oAzIKWTyuVlpRm7lTah18FzdKS7YSTN2Sk7bq6P8YmDiFdu86322Q923b3X21glx759amE2eUBQP8FEWT9/BsIliBvoOlgLujJQkH6q88HOJoISy60vnPrpffoHGlr/Bre4231r2d+AnfGOQRMIhVtuuKiCVFo3XbZT5el1a+vQ= 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 1559570913481790.2299076139666; Mon, 3 Jun 2019 07:08:33 -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 1hXncT-0005oL-H2; Mon, 03 Jun 2019 14:07:25 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hXncS-0005oG-UA for xen-devel@lists.xenproject.org; Mon, 03 Jun 2019 14:07:24 +0000 Received: from mail.kernel.org (unknown [198.145.29.99]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id e8d863d4-8608-11e9-8fb2-f305fba89dbc; Mon, 03 Jun 2019 14:07: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 DBFC227CDA; Mon, 3 Jun 2019 13:50:54 +0000 (UTC) X-Inumbo-ID: e8d863d4-8608-11e9-8fb2-f305fba89dbc DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559569855; bh=9ZIpxjRQkTPQKKOrEZEvuX2spVekKgyMa2r8cr6R3o0=; h=Subject:To:From:Date:From; b=oVouPxv1YC3UgFmN5VD/tW+qeCHkyuy+z9rfJpV7FRE6bephfALjS67dgLGlMOYCZ ViVbxzB1vsE4U0qyz7eOFKrbvBNebr3wrxFQpW7r99Mo6Kx4Dc0w/pJKhxyglFKTZH HgtX/62ThgD9gFiUeXxkX0a1U9il6AwAlegQqKNU= 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 15:50:45 +0200 Message-ID: <155956984518814@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-testing 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-testing 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 be merged to the driver-core-next branch sometime soon, after it passes testing, and the merge window is open. 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