Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2131699imu; Sun, 16 Dec 2018 17:50:20 -0800 (PST) X-Google-Smtp-Source: AFSGD/UIpmjQRyW7L7Pjo8lWpu0vv8w879bWOX0Lrx8eFsW+xrvi0MADkxK//Esdn9VjuDtN8di6 X-Received: by 2002:a63:2054:: with SMTP id r20mr10484209pgm.328.1545011420778; Sun, 16 Dec 2018 17:50:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545011420; cv=none; d=google.com; s=arc-20160816; b=q3FOjP0N0psYq1hksaUp2mZhDvQ+YJURC9c9xqrAI8lM18N+VGubkzsk6z6gsPmnht Ydh7xQIRCQebpICVqhgScZTFW9QYTfvGBgq3ZkSAUKVAI3ZkZMYwtfgz5SCXIBlfzyNO X3jqq78O8YTd0ipfqTOnu/+VzGXPq2DKowDCKP/4fAXU9z9ULKjngrJQP8Iwr+5sCWTy 7IvLMAHBqTxdgJiTC8mrDLmuuw6K7132M6D6+gzCPYNxkr4YlIGhBlr9QH4QIjrPq7rz D1HhXVYsClRrY2rPqRvN3gtt6IsWlSQHNcyGaUA6g/K4mH6tdZNvb55OwI/pWTzSErXx XYCA== 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=ZkNwEhvytpIyoAZFPhzUG/CS8Xf2U7Fk40fkjFqstnw=; b=B7pw5/yAw6+JzbdQhGOgUuPG0F62cAHlPyqa4mbxUa/n/l1QJkbjbhwO7Bc+YWQEqJ xv7tUhwz4Hl8KLN8ROFzKnipM/if2YsbnGaIAKvPsVPEuEfVPpwIUxmLjffWq1+qmCJy lD3koso0mBXq6VelANnchbIwIhKaUbw15F4FLBzs7o4Nh5xGox2w4B9p1zjK2BkSJgEm 1rY+EOHqwk4MpIJ7/Ne4ueRquOBLrWthsn/2hQIKTV0/j20SH7A4UCj/0Xluq6eYEMFV IiXjECREhqYye1l4Wi8g9v3GqQWKnznz82PP4YpKABhZwS8EciPjxvfdFZ0rYauZp4Vr dlqw== 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 x61si9857376plb.303.2018.12.16.17.50.05; Sun, 16 Dec 2018 17:50:20 -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 S1731268AbeLQBtK (ORCPT + 99 others); Sun, 16 Dec 2018 20:49:10 -0500 Received: from mxhk.zte.com.cn ([63.217.80.70]:40184 "EHLO mxhk.zte.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731112AbeLQBtJ (ORCPT ); Sun, 16 Dec 2018 20:49:09 -0500 Received: from mse01.zte.com.cn (unknown [10.30.3.20]) by Forcepoint Email with ESMTPS id E64EDFAE58880F7AA8F0; Mon, 17 Dec 2018 09:49:06 +0800 (CST) Received: from notes_smtp.zte.com.cn ([10.30.1.239]) by mse01.zte.com.cn with ESMTP id wBH1mxMO013992; Mon, 17 Dec 2018 09:48:59 +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 2018121709490277-17068273 ; Mon, 17 Dec 2018 09:49:02 +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 V2 1/3] misc/pvpanic: return 0 for empty body register function Date: Mon, 17 Dec 2018 10:09:10 +0800 Message-Id: <1545012552-16951-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-17 09:49:03, Serialize by Router on notes_smtp/zte_ltd(Release 9.0.1FP7|August 17, 2016) at 2018-12-17 09:48:59, Serialize complete at 2018-12-17 09:48:59 X-MAIL: mse01.zte.com.cn wBH1mxMO013992 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 --- 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