From nobody Sun May 19 08:30:52 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1585924993; cv=none; d=zohomail.com; s=zohoarc; b=gWi2mdfIakj5dk4aFGly/jBJ7fgUfSHq3tzgpTPRy8B/fjENsZExqL0oj+baamAT4BHW0/xIBlRl1kTVNvm5uBkY905cVzU/7u7Rr6k2Q+t6iU4unVD0AtN7rwnOeSiwlai+iMCSX5OrnnoUsC29ldQ0BBhjVCyimcP4KoUoQcI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1585924993; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:Sender:Subject:To; bh=ZzwgN2rWU4/RfENARbQYAxOHiEJTGraF7fcMVlmV9Zo=; b=iA494LXxlPVX8gEoB/YeQATDiKqwPPnPeyrYnH5mHv8Vr05s/z4fjyEUTR8FGu5CWLHU+n5JPuQ8LNyPbpsEzt70vepA5okddNYKYidzyCkArpGH0VpdYADsvbAW/vBdd2QRFOIMMcFQWDmWiZSeEZXLpH3FzLv8L/BZmHE/NXI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1585924993671391.67666994170725; Fri, 3 Apr 2020 07:43:13 -0700 (PDT) Received: from localhost ([::1]:56456 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jKNXM-00069t-4E for importer@patchew.org; Fri, 03 Apr 2020 10:43:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43570) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jKNWF-0005Aw-CD for qemu-devel@nongnu.org; Fri, 03 Apr 2020 10:42:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jKNWD-00056x-60 for qemu-devel@nongnu.org; Fri, 03 Apr 2020 10:42:02 -0400 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:40199 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jKNWD-00055g-2Z for qemu-devel@nongnu.org; Fri, 03 Apr 2020 10:42:01 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-297-fu1vxOrNPraovwjpxbJ4GQ-1; Fri, 03 Apr 2020 10:41:56 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C8A8D10CE783; Fri, 3 Apr 2020 14:41:54 +0000 (UTC) Received: from dell-r430-03.lab.eng.brq.redhat.com (dell-r430-03.lab.eng.brq.redhat.com [10.37.153.18]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9E61350BEE; Fri, 3 Apr 2020 14:41:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585924920; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZzwgN2rWU4/RfENARbQYAxOHiEJTGraF7fcMVlmV9Zo=; b=bADDR/ds+YS4sQJxPODx9X8OWVgi3h3zQ6KNfJSelk8AQS9y8/b8TxP1SKY2Nun5erZuRp 0Sf7Z4qmw/tGVyzyFJ9C7Kt0M+DTGUv5tc3ZnvAGv4bTJCalyaC8QrtEtHu7v86fub1Ruc 1GXOGLDCH2gEO/C36QnINAO0Nd9+zpw= X-MC-Unique: fu1vxOrNPraovwjpxbJ4GQ-1 From: Igor Mammedov To: qemu-devel@nongnu.org Subject: [PATCH v2] nvdimm-utils: clean up headers and add license comment Date: Fri, 3 Apr 2020 10:41:49 -0400 Message-Id: <20200403144149.14068-1-imammedo@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 207.211.31.81 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: lvivier@redhat.com, peter.maydell@linaro.org, sbhat@linux.ibm.com, aik@ozlabs.ru, groug@kaod.org, qemu-ppc@nongnu.org, clg@kaod.org, david@gibson.dropbear.id.au Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Fixes: 3f350f6bb36233be50fc2bc18dc78b6a948a5dbe Reported-by: Peter Maydell Signed-off-by: Igor Mammedov --- v2: - add license blob to header as well - trim comment a litle bit to remove unrelated NFIT/PMEM sentences --- include/qemu/nvdimm-utils.h | 23 +++++++++++++++++++++-- util/nvdimm-utils.c | 23 +++++++++++++++++++++++ 2 files changed, 44 insertions(+), 2 deletions(-) diff --git a/include/qemu/nvdimm-utils.h b/include/qemu/nvdimm-utils.h index 4b8b198ba7..2d8cde085c 100644 --- a/include/qemu/nvdimm-utils.h +++ b/include/qemu/nvdimm-utils.h @@ -1,7 +1,26 @@ #ifndef NVDIMM_UTILS_H #define NVDIMM_UTILS_H - -#include "qemu/osdep.h" +/* + * NVDIMM utilities + * + * Copyright(C) 2015 Intel Corporation. + * + * Author: + * Xiao Guangrong + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, see + */ =20 GSList *nvdimm_get_device_list(void); #endif diff --git a/util/nvdimm-utils.c b/util/nvdimm-utils.c index 5cc768ca47..3d570c3c3e 100644 --- a/util/nvdimm-utils.c +++ b/util/nvdimm-utils.c @@ -1,3 +1,26 @@ +/* + * NVDIMM utilities + * + * Copyright(C) 2015 Intel Corporation. + * + * Author: + * Xiao Guangrong + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, see + */ + +#include "qemu/osdep.h" #include "qemu/nvdimm-utils.h" #include "hw/mem/nvdimm.h" =20 --=20 2.18.1