public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-laptop/tp_smapi/files/
@ 2023-12-27 18:24 Michael Orlitzky
  0 siblings, 0 replies; only message in thread
From: Michael Orlitzky @ 2023-12-27 18:24 UTC (permalink / raw
  To: gentoo-commits

commit:     1abac4c6aef47224ad77fefba7968dda03c0c534
Author:     Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
AuthorDate: Tue Dec 26 09:45:10 2023 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Wed Dec 27 18:22:46 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1abac4c6

app-laptop/tp_smapi: remove unused patch

Closes: https://github.com/gentoo/gentoo/pull/34485
Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>

 .../tp_smapi/files/tp_smapi-0.43-linux-6.4.patch   | 45 ----------------------
 1 file changed, 45 deletions(-)

diff --git a/app-laptop/tp_smapi/files/tp_smapi-0.43-linux-6.4.patch b/app-laptop/tp_smapi/files/tp_smapi-0.43-linux-6.4.patch
deleted file mode 100644
index 4ff1facca07f..000000000000
--- a/app-laptop/tp_smapi/files/tp_smapi-0.43-linux-6.4.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-From 0c3398b1acf2a2cabd9cee91dc3fe3d35805fa8b Mon Sep 17 00:00:00 2001
-From: Evgeni Golov <evgeni@golov.de>
-Date: Fri, 16 Jun 2023 18:13:54 +0200
-Subject: [PATCH] update DEFINE_SEMAPHORE usage for linux 6.4+
-
-Linux changed the DEFINE_SEMAPHORE macro in
-48380368dec14859723b9e3fbd43e042638d9a76, making it take two parameters
-instead of one. Pass an explicit 1 as on 6.4+.
----
- thinkpad_ec.c | 4 +++-
- tp_smapi.c    | 4 +++-
- 2 files changed, 6 insertions(+), 2 deletions(-)
-
-diff --git a/thinkpad_ec.c b/thinkpad_ec.c
-index a8e812f..62ef5ca 100644
---- a/thinkpad_ec.c
-+++ b/thinkpad_ec.c
-@@ -90,8 +90,10 @@ static u64 prefetch_jiffies;                      /* time of prefetch, or: */
- /* Locking: */
- #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37)
- static DECLARE_MUTEX(thinkpad_ec_mutex);
--#else
-+#elif LINUX_VERSION_CODE < KERNEL_VERSION(6,4,0)
- static DEFINE_SEMAPHORE(thinkpad_ec_mutex);
-+#else
-+static DEFINE_SEMAPHORE(thinkpad_ec_mutex, 1);
- #endif
- 
- /* Kludge in case the ACPI DSDT reserves the ports we need. */
-diff --git a/tp_smapi.c b/tp_smapi.c
-index 6346287..9feebab 100644
---- a/tp_smapi.c
-+++ b/tp_smapi.c
-@@ -111,8 +111,10 @@ static unsigned short smapi_port;  /* APM control port, normally 0xB2 */
- 
- #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37)
- static DECLARE_MUTEX(smapi_mutex);
--#else
-+#elif LINUX_VERSION_CODE < KERNEL_VERSION(6,4,0)
- static DEFINE_SEMAPHORE(smapi_mutex);
-+#else
-+static DEFINE_SEMAPHORE(smapi_mutex, 1);
- #endif
- 
- /**


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-12-27 18:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-27 18:24 [gentoo-commits] repo/gentoo:master commit in: app-laptop/tp_smapi/files/ Michael Orlitzky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox