Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6089217imu; Mon, 21 Jan 2019 03:03:35 -0800 (PST) X-Google-Smtp-Source: ALg8bN7cE+dh4QE8hU2SNQXrLKjoDa83+o+7aoooQkOLuXSLiCubPEOOd4tlT4b6gBPtUP5UymdI X-Received: by 2002:a62:6204:: with SMTP id w4mr29526686pfb.5.1548068615397; Mon, 21 Jan 2019 03:03:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548068615; cv=none; d=google.com; s=arc-20160816; b=Lr0Zwi1a4WjEspjUpOGa/18YvrV774VGbtvfE5uiZJPk8CjIkLxWnqYlHBzYWYVoqb K7QRm4DmAErzKRMeU9nqyEWSUZuKKdDfaUR133VbU/+Qr+eBrSKdUYxD6z4LEjEfhhs/ gylIdZAg4kN7UTTnTDTFgR7nXnxTt+pn7WVIaf7Cn1ipq8uDWPHUnadsCou/9vM2ZMJu 3eaCONfx5qJzv1UZxjoxBMcXbLupts/xtFqc4LiGiAACs5MbcDeLaQC69wsey45k17TP /u4i7xrE+4Ik0M6g8hnBjkqB9fbNHIEXtx8kwV8G8Yu0vUs1z3ub2J/MPdSj0Ex68/xC sUGg== 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=U1XYZw25Iz7+2ZxmGItjtEo8uBwZuWUAgBP/rnGQr7M=; b=iUrmbSW9qtEaZH0+wuaaASDniUjW7f38KmZzR3M7Mx3vOenOY9Z4iyUvzSOzJ0Cqsi fL24ni0bOB7Dnk1jOQh+iggLZLhvMC/fFkt+kvtJbedn0pj9uRXAitSF8toQ6HK/AGqp yfgKrb080y2TzB+6wn4dDPkDHvW+52Yx/DgIj4Y3dwmXj4N+Vy7BzZb12VSx13LZRWmy SlF51MkD4RbS1/2P3APpX+ottzQnSsoSYNzzP8lhlBUYPJo4fWCT69lwVimCBi+mUWwv VpEUBw4RaXEgImrWmD3Dr03uTjvsXKXswi+mo4pTqCX44MhSXEt4dhB/7aO/KCXxMvvQ +8nw== 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 c2si12600635plb.152.2019.01.21.03.03.19; Mon, 21 Jan 2019 03:03:35 -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 S1727721AbfAULCC (ORCPT + 99 others); Mon, 21 Jan 2019 06:02:02 -0500 Received: from mxhk.zte.com.cn ([63.217.80.70]:23652 "EHLO mxhk.zte.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727430AbfAULCC (ORCPT ); Mon, 21 Jan 2019 06:02:02 -0500 Received: from mse01.zte.com.cn (unknown [10.30.3.20]) by Forcepoint Email with ESMTPS id BF4EC4446D4E27B9BDB4; Mon, 21 Jan 2019 19:01:59 +0800 (CST) Received: from notes_smtp.zte.com.cn ([10.30.1.239]) by mse01.zte.com.cn with ESMTP id x0LB1p1o011547; Mon, 21 Jan 2019 19:01:51 +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 2019012119015933-23367708 ; Mon, 21 Jan 2019 19:01:59 +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/6] misc/pvpanic : preparing for pvpanic driver framework Date: Tue, 22 Jan 2019 03:25:06 +0800 Message-Id: <1548098711-52497-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 2019-01-21 19:01:59, Serialize by Router on notes_smtp/zte_ltd(Release 9.0.1FP7|August 17, 2016) at 2019-01-21 19:01:51, Serialize complete at 2019-01-21 19:01:51 X-MAIL: mse01.zte.com.cn x0LB1p1o011547 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. 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-or-later +# +# 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