devices: change dev_head to global 68/265468/2
authorYoungjae Cho <y0.cho@samsung.com>
Wed, 20 Oct 2021 06:29:14 +0000 (15:29 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Wed, 20 Oct 2021 06:45:44 +0000 (15:45 +0900)
commitd606cb306c9678fe388b0507973f9e66fad3b860
treed022d1a8884b23f34ce6ee5e7d68867d22d1635e
parent71b4562490f3f8dd8b879629cffe2536de41bc26
devices: change dev_head to global

Sorting dev_head, which is returned by get_device_list_head(),
changes the dev_head. But it is not applied to the original dev_head
in shared/devices.c. Therefore the original dev_head is not the head
of the list anymore. To avoid it, make dev_head global so that result
of list operation can be applied to the original dev_head.

Change-Id: I2e6ee2b3ea0ad91cb6de44c5e9f6e2d718eb727c
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
src/core/devices.c
src/dump/dump.c
src/shared/devices.c
src/shared/devices.h