Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp442531imu; Wed, 19 Dec 2018 22:43:33 -0800 (PST) X-Google-Smtp-Source: AFSGD/UT6rjExezkdRTts8PD91IliDEhK65/91CJ1dPTjcJMfWCeFarlgYeBdrs40XZRvUGclQtK X-Received: by 2002:a17:902:8346:: with SMTP id z6mr22920812pln.340.1545288213417; Wed, 19 Dec 2018 22:43:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545288213; cv=none; d=google.com; s=arc-20160816; b=PKMVCb1L0j98K4fes1uOvIH9bgl40dZgGeTUyT5Yn61l+NjPjMC/+v0xC2dsdXPPGU hLEqog8jjz8qXZlrwbRNCXTh7blackvJ01Y+Owm2x2iB3WPGFPVlRbNeHK8aDopRhdhW 54+j3OEbKbj6BKae1rXrBU+GZ8LJv52evXUNjOMVxcilTTaiXcrBAW7AQkccV2hNYobp JYlcRoEIfIdZRLI4bSzs50u7Xhjxad8Hqz+9ZVjdos6UKlJysgl9jchqFp+qQ7hlOgeE +A9s9jEBTPUeF1+zghiyqthO/RxCn9f0M6O0l2Qg6a3bP5b8iZGJ4cOQaTY+cXWRsQJ5 rTVw== 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=28a6ndMzR7S6C+qGVkEgelUrCn3FdZADxiRgQ6WAE0g=; b=I/s0UhTqNT20+o54hZWtbeTNWsP5rT5fvWkhV3GHMbmIigWqH7h9w+hFEzQmWmVFxT 9c7NwEN78MaXpnJ9qmF/ZqyTwydMBmQ0cC1nhEPZmhULCbydBCK38nTyVCI84bu5uje3 7fAAdqxR1a7Gv4eDO5KcvROfEY3dJ+qhrzK3wTQx2Uw4PasyfMbkYRk0g1oJVZcU4PgC pQwkcw6z/y6Nx34OMeNmvOzxyw0nHFby1aSooe3gtdZv9WhS3ZvyAkoqGGSHL8x5EO53 9m2tziNM/LsL3uoR759yoqeZn2fn6DtAzXJvXLgD6ZnpqctErvkVd8pvl5MnOKgUbryN pN1A== 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 f81si19936938pfh.33.2018.12.19.22.43.18; Wed, 19 Dec 2018 22:43:33 -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 S1730216AbeLTE5O (ORCPT + 99 others); Wed, 19 Dec 2018 23:57:14 -0500 Received: from out1.zte.com.cn ([202.103.147.172]:39832 "EHLO mxct.zte.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729180AbeLTE5O (ORCPT ); Wed, 19 Dec 2018 23:57:14 -0500 Received: from mse01.zte.com.cn (unknown [10.30.3.20]) by Forcepoint Email with ESMTPS id 4707AE3ED86D41C13016; Thu, 20 Dec 2018 12:57:12 +0800 (CST) Received: from notes_smtp.zte.com.cn ([10.30.1.239]) by mse01.zte.com.cn with ESMTP id wBK4v6Ha022265; Thu, 20 Dec 2018 12:57:06 +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 2018122012573478-17743685 ; Thu, 20 Dec 2018 12:57:34 +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 RESEND V5 1/3] misc/pvpanic: return 0 for empty body register function Date: Thu, 20 Dec 2018 13:14:46 +0800 Message-Id: <1545282888-38059-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-20 12:57:34, Serialize by Router on notes_smtp/zte_ltd(Release 9.0.1FP7|August 17, 2016) at 2018-12-20 12:56:54, Serialize complete at 2018-12-20 12:56:54 X-MAIL: mse01.zte.com.cn wBK4v6Ha022265 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 : resolve kbuild issue: 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 : resolve kbuild issue : a uninitialized variable in some path. v2 --> v1 : resolve kbuild issue : 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