Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3635747imu; Tue, 18 Dec 2018 01:27:04 -0800 (PST) X-Google-Smtp-Source: AFSGD/WWbI1dU+3BxjQzSPrwXnT5EgK9oeWU4PVzSW9siErG4eytHfJFNDb7pyHRltPJ9UQgk39q X-Received: by 2002:a63:2f07:: with SMTP id v7mr14200684pgv.368.1545125224581; Tue, 18 Dec 2018 01:27:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545125224; cv=none; d=google.com; s=arc-20160816; b=C+LE48mVg2enjZoXvBAvXLXTx/T+RXO+cYTU6A4f8fiZnrsI1bOtJ85TgGNGuSzihb obdf+hOjWDjd5B9NVQxQ+gQKi5m0ddRaHDiGaRwWNROYruILh+u7TO28PZha8t//pxYq GMbRrvw6us9mhylLdboS4AoodW+BvBWhCJi4KnuNLNH7bjnBXtkJ9v/sFJfalxviwdEj d4utm6Psm9n8gcHd/9SmjIQwyFX9qtDmobB3GmeiYGsxRmP4styicr5sh4wKUQvzD3up lxgP7ToZIjUlpSuicm3a7y/F2jwZocCE5tpnGPGkDeq1yfsGkTacLMNtKYb+eZt4OSrl od3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=6bGrlnsw8MQog6dMPBSnjRcw/uJrWqwTmOFvXmyHUhU=; b=rVQWksjiU0mp3E3fUEjMntje7Xl+BCO7/rtU/wunpl+D/1cvLnNYZKhkbqnKAc1sJI Mzws0lk7RSRi3oSlm56C4s7VDkyBieXUBKcsIbfqvbEXmFKhHpZt5VPn8nQUtQ+Mdvxp 8onYSuEQT/yUDzRloR9iKoA5MpZerowJWBuW4Vg8Hyz+nDh3cm9NtlVnuENf5/LvZwuz xDdXFNBZgeab7YxGvvx6SNbnzeHVQOIZx1zHx6fgd1EepaGz/hnymeZ10PCRnd1EXyYK ILnFw8PXbWyye4+7sJzBLbvGq4r2RRi/HkUeQnoar4MQnHaFGuVQQG0rcBrep6ImYMV1 s3RA== 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 q8si9309243pgc.580.2018.12.18.01.26.48; Tue, 18 Dec 2018 01:27:04 -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; 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 S1726532AbeLRJZu (ORCPT + 99 others); Tue, 18 Dec 2018 04:25:50 -0500 Received: from mxhk.zte.com.cn ([63.217.80.70]:40498 "EHLO mxhk.zte.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726388AbeLRJZs (ORCPT ); Tue, 18 Dec 2018 04:25:48 -0500 Received: from mse01.zte.com.cn (unknown [10.30.3.20]) by Forcepoint Email with ESMTPS id 4EA4D8B192EC95FDBDCC; Tue, 18 Dec 2018 17:25:45 +0800 (CST) Received: from notes_smtp.zte.com.cn ([10.30.1.239]) by mse01.zte.com.cn with ESMTP id wBI9PXXp011655; Tue, 18 Dec 2018 17:25:33 +0800 (GMT-8) (envelope-from peng.hao2@zte.com.cn) Received: from localhost.localdomain.localdomain ([10.74.120.59]) by szsmtp06.zte.com.cn (Lotus Domino Release 8.5.3FP6) with ESMTP id 2018121817254735-17374521 ; Tue, 18 Dec 2018 17:25:47 +0800 From: Peng Hao To: gregkh@linuxfoundation.org, arnd@arndb.de, andy.shevchenko@gmail.com Cc: linux-kernel@vger.kernel.org, Peng Hao Subject: [PATCH V4 1/3] misc/pvpanic: return 0 for empty body register function Date: Tue, 18 Dec 2018 17:46:41 +0800 Message-Id: <1545126403-25747-1-git-send-email-peng.hao2@zte.com.cn> X-Mailer: git-send-email 1.8.3.1 X-MIMETrack: Itemize by SMTP Server on SZSMTP06/server/zte_ltd(Release 8.5.3FP6|November 21, 2013) at 2018-12-18 17:25:47, Serialize by Router on notes_smtp/zte_ltd(Release 9.0.1FP7|August 17, 2016) at 2018-12-18 17:25:28, Serialize complete at 2018-12-18 17:25:28 X-MAIL: mse01.zte.com.cn wBI9PXXp011655 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return 0 for empty body register function normally. Signed-off-by: Peng Hao --- QEMU community requires additional PCI devices to simulate PVPANIC devices so that some architectures can not occupy precious less than 4G of memory space. drivers/misc/pvpanic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/pvpanic.c b/drivers/misc/pvpanic.c index 3150dc2..f84ed30 100644 --- a/drivers/misc/pvpanic.c +++ b/drivers/misc/pvpanic.c @@ -125,7 +125,7 @@ static void pvpanic_unregister_acpi_driver(void) #else static int pvpanic_register_acpi_driver(void) { - return -ENODEV; + return 0; } static void pvpanic_unregister_acpi_driver(void) {} -- 1.8.3.1