Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2005440imu; Thu, 24 Jan 2019 05:48:43 -0800 (PST) X-Google-Smtp-Source: ALg8bN5GUP8imbJmzQIHWl/FCshw8vg+/zxipOnA0rrdYUT390afv6TKv6dQ6I0OLiC8NrX5woPQ X-Received: by 2002:a17:902:7d82:: with SMTP id a2mr6664276plm.163.1548337723015; Thu, 24 Jan 2019 05:48:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548337722; cv=none; d=google.com; s=arc-20160816; b=bmYWvpr4esCbsdcg9V7XAYSEcNxwTqmhh2evQVDG28P3FAnnpktLCeezvaopbLQLt/ 3Ypic+Vk04UJLPS2bqCax6T8RNuCySISS4upP1/ucnjIdP7F9lYBJCe1nYO/8gnykGAB qYlnM8w1CATaaHnBuEy7olI5M2Oz+PsHAmSHAu5ijQLkgaTo1Xkpny7VKFpkBv7BmAwr iqOSL+ivTB5xA38vCWoH3IAzkm9+WF14Wf9Bpi4+18j2afMaxCzQwhRH0IwAVEbELh3y DafX9pD2yu2072aGbnlyi1ji6QFTNxlTjIoPr+LdfFByUzxb+7SiIqitBm8DXCCKWnRd rYZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=jJLIGPWLVJeu/VD4dvVV7/7/k0FEpgfkeI319bl97I8=; b=bhPZy5OXb3XWRWnZPv7jFFIDg4cbRUTjaTgJe7Nykp8MhegdE0l83PFByNjEQTgRde oUwytI1iyDQWgt7P4Yu1HLJPvrjtjqkuBcmnOnKglrbZfkijVxF3uBP+/Saso6hdbRE6 k93QrUJh18WWi2yTafOhywG880yIHvTUSn6abtkaNkH2juvx0Pp5mCDPJrUL5Oel4wY1 Pdlf76NTqhSiQDAHugSJ7iXgEePjuOx1XRFEu6PBPygSzysrOc+C1Oz/qNnyBeBipCE7 TeacBv6prdekMQaf/JuAA6G0Ov55jyWLtwh0rMAYZAQQ+FHXLK8nNKAvjhBBaG3ATT2n Z34A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="vCr/1Mhy"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c13si15272132pgi.531.2019.01.24.05.48.27; Thu, 24 Jan 2019 05:48:42 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="vCr/1Mhy"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726105AbfAXNqj (ORCPT + 99 others); Thu, 24 Jan 2019 08:46:39 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:41976 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727622AbfAXNqi (ORCPT ); Thu, 24 Jan 2019 08:46:38 -0500 Received: by mail-pg1-f194.google.com with SMTP id m1so2678046pgq.8 for ; Thu, 24 Jan 2019 05:46:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jJLIGPWLVJeu/VD4dvVV7/7/k0FEpgfkeI319bl97I8=; b=vCr/1MhyhLjSRQvw+laBq3+8G9MbDvZn55Wti4oQb+fgebSgctq//5tAnl7JFhAyyr K15CmCAmK1+TJXjOPNXMaxqpaHm/u9LoVvdjOEpRKayGouLMk9BRTRNovGMeoWlczuPf CMwLCKHb+IVLv7Biv1H0yfdsACoFbglCxITko4ZhCcEL2BDm8VTkqboU7vxL/GZztJcr tYvHsFWiaTjFwz6MtiLGBH/pMQUHPpqWfi0P7n4XWabVjgnnS0pe0gBjxfw62Laf++V0 0xomLbLWmht83B3WTX8DN8Qps/wiw9uJ+bU9yVJL6GK3Gdsdq2V8yoSp3iBZIzuuEkFC bYxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=jJLIGPWLVJeu/VD4dvVV7/7/k0FEpgfkeI319bl97I8=; b=EItKuZYj1fkClNu2DDYf0bY+PoBjcPfYmy1jGsKOEnnmy1+eEY88w5Fu/4Qvm6QfgK tsC/WvoZrS/p0ZCdnEFXOXuwgRPNZic2DmD67+QKA6kRLV+Frz4kM4+WG/BJTpRIi3aZ H5epDp5M2nmtnaDqAQlqczD4hZSn8eumECxlRQ4sKlSTYjHjMcAZSmKRF5TgU/tEzhVr hfkhilCTLa+a3J+Fg6efZpmq1AviJgNMjSC5WGd6/oz77gOxXd6Ll0OifULHBUkpM2oD MVZW0u/aDmcgtSaPT7ebEJxZr/n3Sn5yRPzsoC7uBeAgoDcLOSt7jdlaFxx4VsU4V/VM tQaA== X-Gm-Message-State: AJcUukd1pGEkH9g0lWU9Pf/qntYPr6aG3hbAm5d8cbRcQYoAZ++XY/DR EtrF1p4bSJYEbvhDniTqlKFK6huSvn0umsgIyMLQKDDA X-Received: by 2002:a63:d450:: with SMTP id i16mr5906831pgj.246.1548337597249; Thu, 24 Jan 2019 05:46:37 -0800 (PST) MIME-Version: 1.0 References: <1548348038-69560-1-git-send-email-peng.hao2@zte.com.cn> <1548348038-69560-2-git-send-email-peng.hao2@zte.com.cn> In-Reply-To: <1548348038-69560-2-git-send-email-peng.hao2@zte.com.cn> From: Andy Shevchenko Date: Thu, 24 Jan 2019 15:46:26 +0200 Message-ID: Subject: Re: [PATCH V4 1/6] misc/pvpanic: preparing for pvpanic driver framework To: Peng Hao Cc: Greg Kroah-Hartman , Arnd Bergmann , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 24, 2019 at 10:17 AM Peng Hao wrote: > > Preparing for pvpanic driver framework. Create a pvpanic driver > directory and move current driver file to new directory. > This one is okay. > 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 > -- With Best Regards, Andy Shevchenko