shell: fix declarations for external device arrays
The objects should be const-qualified for consistency with other uses, including declarations in headers. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
parent
c31148b04c
commit
96bd6f79b9
1 changed files with 7 additions and 7 deletions
|
@ -10,15 +10,15 @@
|
|||
#include <string.h>
|
||||
#include <device.h>
|
||||
|
||||
extern struct device __device_start[];
|
||||
extern struct device __device_PRE_KERNEL_1_start[];
|
||||
extern struct device __device_PRE_KERNEL_2_start[];
|
||||
extern struct device __device_POST_KERNEL_start[];
|
||||
extern struct device __device_APPLICATION_start[];
|
||||
extern struct device __device_end[];
|
||||
extern const struct device __device_start[];
|
||||
extern const struct device __device_PRE_KERNEL_1_start[];
|
||||
extern const struct device __device_PRE_KERNEL_2_start[];
|
||||
extern const struct device __device_POST_KERNEL_start[];
|
||||
extern const struct device __device_APPLICATION_start[];
|
||||
extern const struct device __device_end[];
|
||||
|
||||
#ifdef CONFIG_SMP
|
||||
extern struct device __device_SMP_start[];
|
||||
extern const struct device __device_SMP_start[];
|
||||
#endif
|
||||
|
||||
static const struct device *levels[] = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue