summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-06-24 13:12:49 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-08-31 16:19:57 +0200
commit33dbb3355f683940fcbb62a6e7507553d5b2885b (patch)
tree4098c008f5e64242d9debdf5593eba3c1b6152d6 /cpukit
parentbsps: Always install IPI in SMP configs (diff)
downloadrtems-33dbb3355f683940fcbb62a6e7507553d5b2885b.tar.bz2
score: Constify objects name to id functions
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/include/rtems/score/objectimpl.h8
-rw-r--r--cpukit/include/rtems/score/objectmp.h8
-rw-r--r--cpukit/score/src/objectmp.c8
-rw-r--r--cpukit/score/src/objectnametoid.c10
4 files changed, 17 insertions, 17 deletions
diff --git a/cpukit/include/rtems/score/objectimpl.h b/cpukit/include/rtems/score/objectimpl.h
index c540f90166..a8c7fcb457 100644
--- a/cpukit/include/rtems/score/objectimpl.h
+++ b/cpukit/include/rtems/score/objectimpl.h
@@ -237,10 +237,10 @@ typedef enum {
* @retval OBJECTS_INVALID_ID The id is not 0 before the operation.
*/
Objects_Name_or_id_lookup_errors _Objects_Name_to_id_u32(
- Objects_Information *information,
- uint32_t name,
- uint32_t node,
- Objects_Id *id
+ const Objects_Information *information,
+ uint32_t name,
+ uint32_t node,
+ Objects_Id *id
);
typedef enum {
diff --git a/cpukit/include/rtems/score/objectmp.h b/cpukit/include/rtems/score/objectmp.h
index fcdfa78aa3..c2621c3857 100644
--- a/cpukit/include/rtems/score/objectmp.h
+++ b/cpukit/include/rtems/score/objectmp.h
@@ -150,10 +150,10 @@ void _Objects_MP_Close (
* @retval OBJECTS_INVALID_NAME There is no global object with this name.
*/
Objects_Name_or_id_lookup_errors _Objects_MP_Global_name_search (
- Objects_Information *information,
- Objects_Name the_name,
- uint32_t nodes_to_search,
- Objects_Id *the_id
+ const Objects_Information *information,
+ Objects_Name the_name,
+ uint32_t nodes_to_search,
+ Objects_Id *the_id
);
/**
diff --git a/cpukit/score/src/objectmp.c b/cpukit/score/src/objectmp.c
index 987b86a968..e956135a91 100644
--- a/cpukit/score/src/objectmp.c
+++ b/cpukit/score/src/objectmp.c
@@ -284,10 +284,10 @@ void _Objects_MP_Close (
}
Objects_Name_or_id_lookup_errors _Objects_MP_Global_name_search(
- Objects_Information *information,
- Objects_Name the_name,
- uint32_t nodes_to_search,
- Objects_Id *the_id
+ const Objects_Information *information,
+ Objects_Name the_name,
+ uint32_t nodes_to_search,
+ Objects_Id *the_id
)
{
Objects_Name_or_id_lookup_errors status;
diff --git a/cpukit/score/src/objectnametoid.c b/cpukit/score/src/objectnametoid.c
index bafa7b23f4..2a9052d948 100644
--- a/cpukit/score/src/objectnametoid.c
+++ b/cpukit/score/src/objectnametoid.c
@@ -21,14 +21,14 @@
#include <rtems/score/objectimpl.h>
Objects_Name_or_id_lookup_errors _Objects_Name_to_id_u32(
- Objects_Information *information,
- uint32_t name,
- uint32_t node,
- Objects_Id *id
+ const Objects_Information *information,
+ uint32_t name,
+ uint32_t node,
+ Objects_Id *id
)
{
bool search_local_node;
- Objects_Control *the_object;
+ const Objects_Control *the_object;
Objects_Maximum maximum;
Objects_Maximum index;
#if defined(RTEMS_MULTIPROCESSING)