From f575567f552fae632ad408926063bf6475c4e956 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 7 Oct 2014 09:07:54 -0600 Subject: [PATCH] Fix a compilation error in last commits that occure if CONFIG_PRIORITY_INHERITANCE is not selected --- fs/aio/aioc_contain.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fs/aio/aioc_contain.c b/fs/aio/aioc_contain.c index bf13b66c4e5..98fcf782112 100644 --- a/fs/aio/aioc_contain.c +++ b/fs/aio/aioc_contain.c @@ -91,7 +91,9 @@ FAR struct aio_container_s *aio_contain(FAR struct aiocb *aiocbp) { FAR struct aio_container_s *aioc; FAR struct file *filep; +#ifdef CONFIG_PRIORITY_INHERITANCE struct sched_param param; +#endif /* Get the file structure corresponding to the file descriptor. */ @@ -117,8 +119,10 @@ FAR struct aio_container_s *aio_contain(FAR struct aiocb *aiocbp) aioc->aioc_filep = filep; aioc->aioc_pid = getpid(); +#ifdef CONFIG_PRIORITY_INHERITANCE DEBUGVERIFY(sched_getparam (aioc->aioc_pid, ¶m)); aioc->aioc_prio = param.sched_priority; +#endif /* Add the container to the pending transfer list. */