Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3074095imj; Mon, 18 Feb 2019 19:10:31 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ2oHh5wtTELlHaJmjf3PWqhvpJByCkOCls011fqV99NqLgYDpPdNtOPSsWFsLjrGG9+Omc X-Received: by 2002:a17:902:8b82:: with SMTP id ay2mr28331717plb.64.1550545831006; Mon, 18 Feb 2019 19:10:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550545830; cv=none; d=google.com; s=arc-20160816; b=RHyAqxCPAOvJJWd73XPBaxtWBhTjSf+yWhbiIWLB8mXUOFas7iauYB1J3TYenxEXnY 5zArFj0vGZN2BpoccgHiErWIaPs2Awh/xvS7FulLyv7V/6R1c4nWdqwTWE254bdLBEVs KvE2CHVyNEhl+cVWb8KqqbOmaUIU7O8KmFd/CgTxGnU4oENWYKEaxauYG8pQmrejfxqA wmXDCApJYl28PC9nQ8qkBDgROouTsJcj5UNMB7ybhRNg5UhQ0wGUOivgz6q8eGKJN0hk 6oeB1ILLnon9xoBwEeJu7fhSR1o9YOyPl+/QvklgBctU9GcVR13HKM89V8L/FuzY4KrC ZWgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=qcQqLHSxWdvGq9IoaqzyB0gSBml5aMlSoSxMWQCVME8=; b=WbdK/R63DHNgZ/pcSxt1l2qeRPNHhwidgSo3Jp1ys24b2O/n16aSnimjnYMj9deK/V 57KarlgDbmFgOIIL5kNSM9Ri7y7as3Tg+3BFILJSiIwvRq/2rIeSYjOm0yoQwd97lqRZ Rt4Cd0sQSWl5zPzQF92oml92KkZNb/SY2jC4ybzr9xsDHm6YGHORNpFWt6CqL7CSEHcP GH1o0fIWRriRsZghqD2uxGVPCY/rGWrvgZ/dUDgArSdSOVV64vWXK2nGLCkKHrC1K23A O7sJOmS5DGAg26rHI4htei7bSFA/d9tAp1o/QkeFSuVjhZeMr2x42Ho+FgnRb/luxxyq /CyA== 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 p11si15127478plk.191.2019.02.18.19.10.16; Mon, 18 Feb 2019 19:10:30 -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 S1726016AbfBSDID (ORCPT + 99 others); Mon, 18 Feb 2019 22:08:03 -0500 Received: from out1.zte.com.cn ([202.103.147.172]:46660 "EHLO mxct.zte.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725770AbfBSDID (ORCPT ); Mon, 18 Feb 2019 22:08:03 -0500 Received: from mse01.zte.com.cn (unknown [10.30.3.20]) by Forcepoint Email with ESMTPS id CB692CFAEFC9CAEAF628; Tue, 19 Feb 2019 11:06:23 +0800 (CST) Received: from notes_smtp.zte.com.cn ([10.30.1.239]) by mse01.zte.com.cn with ESMTP id x1J36EYn092400; Tue, 19 Feb 2019 11:06:14 +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 2019021911062691-595543 ; Tue, 19 Feb 2019 11:06:26 +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 V6 1/4] misc/pvpanic : preparing for pvpanic driver framework Date: Tue, 19 Feb 2019 19:27:45 +0800 Message-Id: <1550575668-6240-2-git-send-email-peng.hao2@zte.com.cn> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1550575668-6240-1-git-send-email-peng.hao2@zte.com.cn> References: <1550575668-6240-1-git-send-email-peng.hao2@zte.com.cn> X-MIMETrack: Itemize by SMTP Server on SZSMTP06/server/zte_ltd(Release 8.5.3FP6|November 21, 2013) at 2019-02-19 11:06:26, Serialize by Router on notes_smtp/zte_ltd(Release 9.0.1FP7|August 17, 2016) at 2019-02-19 11:06:10, Serialize complete at 2019-02-19 11:06:10 X-MAIL: mse01.zte.com.cn x1J36EYn092400 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Preparing for pvpanic driver framework. Create a pvpanic driver directory and move current driver file to new directory. Reviewed-by: Andy Shevchenko Signed-off-by: Peng Hao --- drivers/misc/Kconfig | 9 +-------- drivers/misc/Makefile | 2 +- drivers/misc/pvpanic/Kconfig | 7 +++++++ drivers/misc/pvpanic/Makefile | 5 +++++ drivers/misc/{ => pvpanic}/pvpanic.c | 0 5 files changed, 14 insertions(+), 9 deletions(-) create mode 100644 drivers/misc/pvpanic/Kconfig create mode 100644 drivers/misc/pvpanic/Makefile rename drivers/misc/{ => pvpanic}/pvpanic.c (100%) diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig index f417b06..aa3a805 100644 --- a/drivers/misc/Kconfig +++ b/drivers/misc/Kconfig @@ -513,14 +513,7 @@ config MISC_RTSX tristate default MISC_RTSX_PCI || MISC_RTSX_USB -config PVPANIC - tristate "pvpanic device support" - depends on HAS_IOMEM && (ACPI || OF) - help - This driver provides support for the pvpanic device. pvpanic is - a paravirtualized device provided by QEMU; it lets a virtual machine - (guest) communicate panic events to the host. - +source "drivers/misc/pvpanic/Kconfig" source "drivers/misc/c2port/Kconfig" source "drivers/misc/eeprom/Kconfig" source "drivers/misc/cb710/Kconfig" diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile index e39ccbb..cfe20b3 100644 --- a/drivers/misc/Makefile +++ b/drivers/misc/Makefile @@ -58,4 +58,4 @@ obj-$(CONFIG_ASPEED_LPC_SNOOP) += aspeed-lpc-snoop.o obj-$(CONFIG_PCI_ENDPOINT_TEST) += pci_endpoint_test.o obj-$(CONFIG_OCXL) += ocxl/ obj-y += cardreader/ -obj-$(CONFIG_PVPANIC) += pvpanic.o +obj-$(CONFIG_PVPANIC) += pvpanic/ diff --git a/drivers/misc/pvpanic/Kconfig b/drivers/misc/pvpanic/Kconfig new file mode 100644 index 0000000..3e612c6 --- /dev/null +++ b/drivers/misc/pvpanic/Kconfig @@ -0,0 +1,7 @@ +config PVPANIC + tristate "pvpanic device support" + depends on HAS_IOMEM && (ACPI || OF) + help + This driver provides support for the pvpanic device. pvpanic is + a paravirtualized device provided by QEMU; it lets a virtual machine + (guest) communicate panic events to the host. diff --git a/drivers/misc/pvpanic/Makefile b/drivers/misc/pvpanic/Makefile new file mode 100644 index 0000000..6394224 --- /dev/null +++ b/drivers/misc/pvpanic/Makefile @@ -0,0 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0 +# +# Copyright (c) 2018 ZTE Ltd. + +obj-$(CONFIG_PVPANIC) += pvpanic.o diff --git a/drivers/misc/pvpanic.c b/drivers/misc/pvpanic/pvpanic.c similarity index 100% rename from drivers/misc/pvpanic.c rename to drivers/misc/pvpanic/pvpanic.c -- 1.8.3.1