zephyr/subsys
Keith Packard 0b90fd5adf samples, tests, boards: Switch main return type from void to int
As both C and C++ standards require applications running under an OS to
return 'int', adapt that for Zephyr to align with those standard. This also
eliminates errors when building with clang when not using -ffreestanding,
and reduces the need for compiler flags to silence warnings for both clang
and gcc.

Most of these changes were automated using coccinelle with the following
script:

@@
@@
- void
+ int
main(...) {
	...
-	return;
+	return 0;
	...
}

Approximately 40 files had to be edited by hand as coccinelle was unable to
fix them.

Signed-off-by: Keith Packard <keithp@keithp.com>
2023-04-14 07:49:41 +09:00
..
bluetooth bluetooth: audio: Only build code if BT_CONN is enabled 2023-04-13 16:13:52 +02:00
canbus canbus: isotp: fix single frame state machine stuck issue 2023-04-12 17:45:04 +02:00
console
debug init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
demand_paging
dfu dfu: Change FLASH_MAP and STREAM_FLASH from select to depends on 2023-03-03 10:49:32 +01:00
disk subsys/disk: No need of runtime intialization for disk access part 2023-03-13 18:34:40 +00:00
dsp zdsp: add ARC DSPLIB backend for zdsp 2023-02-21 15:06:06 +01:00
emul emul: Use STRUCT_SECTION macros for emul devices 2023-04-08 12:33:54 +02:00
fb fb: cfb_shell: support area inverting 2023-04-06 18:52:40 +02:00
fs init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
input input: add a longpress device 2023-03-24 13:48:28 +00:00
ipc init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
jwt
logging init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
lorawan init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
mgmt mgmt: Fix comparing usigned < 0 2023-04-13 11:05:47 -04:00
modbus modbus: Remove redundant check 2023-02-06 10:03:20 +01:00
net net: lwm2m: Move utility functions from engine 2023-04-12 17:44:37 +02:00
pm init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
portability
random init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
rtio rtio: Add a managed memory pool for reads 2023-04-10 18:34:43 -04:00
sd sd: Return ret if error in sdmmc_spi_read_cxd 2023-03-28 09:23:47 +02:00
settings settings: Make settings_subsys_init() thread safe 2023-02-20 09:52:26 +01:00
shell shell: backends: add SHELL_BACKEND_RTT_BUFFER option 2023-04-13 11:43:28 +02:00
stats
storage subsys/storage/flash_map: remove unnecessary includes 2023-03-03 15:34:59 +01:00
task_wdt
testsuite samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
timing
tracing init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
usb init: remove the need for a dummy device pointer in SYS_INIT functions 2023-04-12 14:28:07 +00:00
zbus
CMakeLists.txt input: add input subsystem 2023-03-06 11:47:32 -08:00
Kconfig input: add input subsystem 2023-03-06 11:47:32 -08:00