diff mbox series

[07/17] rt-tests: pip_stress: Removed unused parameter

Message ID 20231006184011.26699-7-jkacur@redhat.com
State New
Headers show
Series [01/17] rt-tests: cyclictest: Remove warnings due different signedness in comparison | expand

Commit Message

John Kacur Oct. 6, 2023, 6:40 p.m. UTC
Removed unused parameter in pip_stress

Signed-off-by: John Kacur <jkacur@redhat.com>
---
 src/include/pip_stress.h  | 2 +-
 src/pi_tests/pip_stress.c | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/src/include/pip_stress.h b/src/include/pip_stress.h
index f03aaf397897..84a7c0ceef7f 100644
--- a/src/include/pip_stress.h
+++ b/src/include/pip_stress.h
@@ -32,7 +32,7 @@  void Pthread_mutex_init(pthread_mutex_t *mutex, pthread_mutexattr_t *attr);
 void Pthread_mutex_lock(pthread_mutex_t *mutex);
 void Pthread_mutex_unlock(pthread_mutex_t *mutex);
 
-void init_shared_pthread_mutex(pthread_mutex_t *mutex, int protocol, int policy);
+void init_shared_pthread_mutex(pthread_mutex_t *mutex, int protocol);
 int set_rt_prio(pid_t pid, int prio, int policy);
 int get_rt_prio(pid_t pid);
 
diff --git a/src/pi_tests/pip_stress.c b/src/pi_tests/pip_stress.c
index c6d2bae05035..fb0391bfec0d 100644
--- a/src/pi_tests/pip_stress.c
+++ b/src/pi_tests/pip_stress.c
@@ -114,7 +114,7 @@  int main(int argc, char *argv[])
 	mptr += sizeof(pthread_mutex_t);	/* advance the memory pointer */
 
 	/* Initialize our mutex via the resource pointer */
-	init_shared_pthread_mutex(resource, PTHREAD_PRIO_INHERIT, policy);
+	init_shared_pthread_mutex(resource, PTHREAD_PRIO_INHERIT);
 
 	statep = (struct State*)mptr;
 	mptr += sizeof(struct State);
@@ -125,7 +125,7 @@  int main(int argc, char *argv[])
 	mptr += sizeof(pthread_mutex_t);	/* advance the memory pointer */
 
 	/* Initialize our State mutex */
-	init_shared_pthread_mutex(statep->mutex, PTHREAD_PRIO_NONE, policy);
+	init_shared_pthread_mutex(statep->mutex, PTHREAD_PRIO_NONE);
 
 	set_rt_prio(0, prio_min, policy);
 
@@ -323,7 +323,7 @@  void Pthread_mutex_unlock(pthread_mutex_t *mutex)
 	}
 }
 
-void init_shared_pthread_mutex(pthread_mutex_t *mutex, int protocol, int policy)
+void init_shared_pthread_mutex(pthread_mutex_t *mutex, int protocol)
 {
 	pthread_mutexattr_t attr;