Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4936497imu; Wed, 19 Dec 2018 02:54:34 -0800 (PST) X-Google-Smtp-Source: AFSGD/VtegTEHa4PGviOZnR6jkIyFtatd4HyIK3fSoWD890z5+vPTbElG7tnRUQe8mUi1D0rqVFX X-Received: by 2002:aa7:824f:: with SMTP id e15mr19493788pfn.192.1545216874762; Wed, 19 Dec 2018 02:54:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545216874; cv=none; d=google.com; s=arc-20160816; b=GiWzNyBAkMlRcurOM0t8g+YJI+udFUsE4O6b+Owdhtp4sFqIeux3lZ5eZRnK09I7xS RO8gfIUgHPb0HLA54PcFBTX1d4RMW8roTPn0X35ABXPgIcyuN1OqbXWYfjwVX9J0oYFU jokrnS7HAeTltXfSAiNzCvlm7N6fg0/XSEQ9/u1B2tNPH7RNOcvYIAJHZzuqR3DAWvqw mD9NxRBq0ShLm5Uts0kdoOeVIgULbRZ4dnzaiO79DFqMQ2xnmaz7TaYxgLp6zvnFQ4Nb E7HBN8xfwuslW4/EWfmkE5t/S6gwLcyg/qCwRvod7b+Qg3k5bx8dqOsPKvjeKYybEoOq 8EAA== 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=ksaypG5aObDHRMGFAf1deegRRONq11StuX95j4bavV0=; b=ZCuu/Oxr1VSB2JyS01oalfgJW0jlItO6IqY1JImojEvB3utLs2VFemprLghlspxgzT ALzMzTeExw/7bvo7Em76fSp4N69XGXQR+//eoErJGXY52RZI5K1HT05Y2/TRg3HPfA9K 5pDFEESUyAZjzlaN3Wr9j+j+d+dSnRqcLhkJRircXTlRt9FrFpcZN0E/6becQLdy+J/F qUa9yvHRirUu4bNhu2lOo+iYVOkloIPibjNzOOAhY/DWlBEGJ9TX+Y7RWF5za3btKZyL jqNNxn7ojtxgLpX4lFZ5woPrl5E77zsg8Oiqh5CQWXGMtiUmizKY+S+hitjm50j4+DPw F+oA== 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 s191si17502007pfs.53.2018.12.19.02.54.19; Wed, 19 Dec 2018 02:54:34 -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 S1727847AbeLSHnr (ORCPT + 99 others); Wed, 19 Dec 2018 02:43:47 -0500 Received: from mxhk.zte.com.cn ([63.217.80.70]:42744 "EHLO mxhk.zte.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726704AbeLSHnr (ORCPT ); Wed, 19 Dec 2018 02:43:47 -0500 Received: from mse01.zte.com.cn (unknown [10.30.3.20]) by Forcepoint Email with ESMTPS id 0F736B8FB055750E44F4; Wed, 19 Dec 2018 15:43:45 +0800 (CST) Received: from notes_smtp.zte.com.cn ([10.30.1.239]) by mse01.zte.com.cn with ESMTP id wBJ7hU2Z050083; Wed, 19 Dec 2018 15:43:30 +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 2018121915435218-17580343 ; Wed, 19 Dec 2018 15:43:52 +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 V5 1/3] misc/pvpanic: return 0 for empty body register function Date: Wed, 19 Dec 2018 16:04:50 +0800 Message-Id: <1545206692-32183-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-19 15:43:52, Serialize by Router on notes_smtp/zte_ltd(Release 9.0.1FP7|August 17, 2016) at 2018-12-19 15:43:22, Serialize complete at 2018-12-19 15:43:22 X-MAIL: mse01.zte.com.cn wBJ7hU2Z050083 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 --- v4 --> v5 : handle all typo "drvier/driver" in funtion name. v3 --> v4 : use pcim* function instead of pci* function. handle typo "drvier/driver" in funtion name. v2 --> v3 : handle a uninitialized variable in some path. v2 --> v1 : arch=sh don't support pci, adjust CONFIG_PCI macro. v1 : 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