diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-10-07 09:07:54 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-10-07 09:07:54 -0600 |
commit | 7c30b9eec161af92106dfa0daf1d0ea1590a8559 (patch) | |
tree | ab5fcfb48f5badacf554c81ef3c6f26c1088dca4 /nuttx | |
parent | 316221d0155e30d36a3c7b552c48eecbd5e11a24 (diff) | |
download | px4-nuttx-7c30b9eec161af92106dfa0daf1d0ea1590a8559.tar.gz px4-nuttx-7c30b9eec161af92106dfa0daf1d0ea1590a8559.tar.bz2 px4-nuttx-7c30b9eec161af92106dfa0daf1d0ea1590a8559.zip |
Fix a compilation error in last commits that occure if CONFIG_PRIORITY_INHERITANCE is not selected
Diffstat (limited to 'nuttx')
-rw-r--r-- | nuttx/fs/aio/aioc_contain.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/fs/aio/aioc_contain.c b/nuttx/fs/aio/aioc_contain.c index bf13b66c4..98fcf7821 100644 --- a/nuttx/fs/aio/aioc_contain.c +++ b/nuttx/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. */ |