From abb950cfafdb4e9020d1418b6f50ab93eddadcbb Mon Sep 17 00:00:00 2001 From: fandehui Date: Thu, 27 Jul 2023 10:58:43 +0800 Subject: [PATCH 1/2] Remove unused include Makes intel-cmt-cat more portable. (cherry picked from commit 3175ea85b644feba5253a9ebcc8e1c84cc844342) --- Remove-unused-include.patch | 29 +++++++++++++++++++++++++++++ intel-cmt-cat.spec | 7 ++++++- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 Remove-unused-include.patch diff --git a/Remove-unused-include.patch b/Remove-unused-include.patch new file mode 100644 index 0000000..e4d0c30 --- /dev/null +++ b/Remove-unused-include.patch @@ -0,0 +1,29 @@ +From bb593860a719d962d339ef0c278c780e6a743d2d Mon Sep 17 00:00:00 2001 +From: Markus Lehtonen +Date: Mon, 28 May 2018 17:53:01 +0300 +Subject: [PATCH] Remove unused include + +Makes intel-cmt-cat more portable. + +Change-Id: I2b4dad9bde0de371928d4e1e499bdf8060f9a35d +--- + lib/log.c | 3 --- + 1 file changed, 3 deletions(-) + +diff --git a/lib/log.c b/lib/log.c +index 9c21de2..7195ee7 100644 +--- a/lib/log.c ++++ b/lib/log.c +@@ -41,9 +41,6 @@ + #include + #include + #include +-#ifdef __linux__ +-#include +-#endif /* __linux__ */ + #include + + #include "types.h" +-- +2.27.0 + diff --git a/intel-cmt-cat.spec b/intel-cmt-cat.spec index c108bd7..b63a842 100644 --- a/intel-cmt-cat.spec +++ b/intel-cmt-cat.spec @@ -3,11 +3,12 @@ Name: intel-cmt-cat Summary: B support for Intel(R) Resource Director Technology(Intel(R) RDT) Version: 2.0.0 -Release: 4 +Release: 5 License: BSD URL: https://github.com/01org/%{name} Source: https://github.com/01org/%{name}/archive/v%{version}.tar.gz Patch0: Issue-79-updated-pqos-and-rdtset-examples-to-correct.patch +Patch0: Remove-unused-include.patch ExclusiveArch: x86_64 i686 i586 BuildRequires: gcc make @@ -119,6 +120,10 @@ install -m 0644 %{_builddir}/%{name}-%{version}/examples/c/CMT_MBM/monitor_app.c %{_mandir}/man8/rdtset.8.gz %changelog +* Thu Oct 26 2023 fandehui - 2.0.0-3 +- Remove unused include + Makes intel-cmt-cat more portable. + * Fri Oct 20 2023 fandehui - 2.0.0-4 - updated pqos and rdtset examples to correct man syntax -- Gitee From e4054be112adb918550aa476f1dca6fcf4a3a843 Mon Sep 17 00:00:00 2001 From: fandehui Date: Wed, 27 Dec 2023 11:54:26 +0800 Subject: [PATCH 2/2] fix patch "Remove-unused-include.patch" Not patched Signed-off-by: fandehui (cherry picked from commit 0c6f7b5b8b99e6bbbda62f7ea7a0355ffb56f072) --- intel-cmt-cat.spec | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/intel-cmt-cat.spec b/intel-cmt-cat.spec index b63a842..815c71f 100644 --- a/intel-cmt-cat.spec +++ b/intel-cmt-cat.spec @@ -3,12 +3,12 @@ Name: intel-cmt-cat Summary: B support for Intel(R) Resource Director Technology(Intel(R) RDT) Version: 2.0.0 -Release: 5 +Release: 6 License: BSD URL: https://github.com/01org/%{name} Source: https://github.com/01org/%{name}/archive/v%{version}.tar.gz Patch0: Issue-79-updated-pqos-and-rdtset-examples-to-correct.patch -Patch0: Remove-unused-include.patch +Patch1: Remove-unused-include.patch ExclusiveArch: x86_64 i686 i586 BuildRequires: gcc make @@ -120,12 +120,15 @@ install -m 0644 %{_builddir}/%{name}-%{version}/examples/c/CMT_MBM/monitor_app.c %{_mandir}/man8/rdtset.8.gz %changelog -* Thu Oct 26 2023 fandehui - 2.0.0-3 -- Remove unused include - Makes intel-cmt-cat more portable. +* Wed Dec 27 2023 fandehui - 2.0.0-6 +- Fix patch:"Remove-unused-include.patch" Not patched + +* Thu Oct 26 2023 fandehui - 2.0.0-5 +- Remove unused include + Makes intel-cmt-cat more portable. * Fri Oct 20 2023 fandehui - 2.0.0-4 -- updated pqos and rdtset examples to correct man syntax +- updated pqos and rdtset examples to correct man syntax * Tue Dec 10 2019 openEuler Buildteam - 2.0.0-3 - Package init -- Gitee