Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1818030imu; Fri, 14 Dec 2018 00:46:46 -0800 (PST) X-Google-Smtp-Source: AFSGD/WhRVioGxfTVGYWo1PaBE03xebA7bBhHC7z1rwDQbrQUbLTQr9rAKvD9F66V5CuqUVZg11R X-Received: by 2002:a63:d70e:: with SMTP id d14mr1941208pgg.159.1544777206010; Fri, 14 Dec 2018 00:46:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544777205; cv=none; d=google.com; s=arc-20160816; b=spp9A9D8OotAnXdCtI+aFrxh2bjde0N6d07thaCU9HLkVRaTW69Xn5pW9rM8QiyCfm Qyzg+FFEZIc+MswTs6hxW5QvC+/Xt0FYfZAifEy2QCsXSc+dRwmmQKiVTDRl0B0TVV8S ullKURl7ROrkv7VujOIXK9GbASYjk5v2qDf8ksXsVDcmU+xEDTsclPz02TtKzyL7xR16 /E1eCdTR7dbBQt0B8vh5h77sIJhZKPlvnK4PKT93LziHy6LMJnm7heq+u/jMhxZlB1vM bCNWJoEz9heVL2ONGPHWLgwPs3IphfNPsO8PcyZG1XVdH+FSE27EsV2OkgQL9sEbOV0z cnNw== 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=w6STFecYclSJvHPLcQWv8SrArnRPVDRcCyFaSlE+OZMLIPMCNJUzksui7/5JXcTP18 jWH6UsVk/D/rzY7k81ZLABNXWaKTCYb/EsbmBvHA3T4SCk9yWHfNh8NWd4532cdlCnqt pfvx6UiOPSHGiLbMZcyU/kuxa1Y72bBSX5eaI9OdpVvxWqWmDwvHbXxQkkome4w0pKhZ zO0itPKk7rqLSe3Y9DOhNstATt45EmnLdEUrKR3ZKorQcO4YHFADsmQdHxZ41UnsYKqh BZXtGfsppba4+xuzt/dfsaOddvDp4aVKm9eId2qFCOrW/2PDhItUo55/FVpr6LbdPC7e ke3A== 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 a90si3596848plc.314.2018.12.14.00.46.31; Fri, 14 Dec 2018 00:46:45 -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 S1728548AbeLNIpj (ORCPT + 99 others); Fri, 14 Dec 2018 03:45:39 -0500 Received: from out1.zte.com.cn ([202.103.147.172]:53912 "EHLO mxct.zte.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727265AbeLNIpf (ORCPT ); Fri, 14 Dec 2018 03:45:35 -0500 Received: from mse01.zte.com.cn (unknown [10.30.3.20]) by Forcepoint Email with ESMTPS id 2D8FB2E25779238F7AD9; Fri, 14 Dec 2018 16:45:33 +0800 (CST) Received: from notes_smtp.zte.com.cn ([10.30.1.239]) by mse01.zte.com.cn with ESMTP id wBE8jAdl022872; Fri, 14 Dec 2018 16:45:10 +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 2018121416454883-16718670 ; Fri, 14 Dec 2018 16:45:48 +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 1/3] misc/pvpanic: return 0 for empty body register function Date: Fri, 14 Dec 2018 17:06:49 +0800 Message-Id: <1544778411-121925-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-14 16:45:49, Serialize by Router on notes_smtp/zte_ltd(Release 9.0.1FP7|August 17, 2016) at 2018-12-14 16:44:55, Serialize complete at 2018-12-14 16:44:55 X-MAIL: mse01.zte.com.cn wBE8jAdl022872 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