util: kernel: Fix build warning of what const keyword is missing 50/277250/1
authorChanwoo Choi <cw00.choi@samsung.com>
Sun, 3 Jul 2022 14:54:29 +0000 (23:54 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 4 Jul 2022 06:43:13 +0000 (15:43 +0900)
commitb47d8f870a07967accd58051675f96f7c51ef8a0
tree771af61bed2efd3ba2db5362fde0e2ff66c1f235
parent7f63b684fc01184a2f251fe172fb0a36fa409efc
util: kernel: Fix build warning of what const keyword is missing

Fix the following build warning:

  [   14s] /home/abuild/rpmbuild/BUILD/pass-1.2.0/src/resource/resource-process.c:347:53:
  warning: passing argument 1 of 'is_resource_attr_interested' discards 'const' qualifier
  from pointer target type [-Wdiscarded-qualifiers]
  [   14s]   347 |  bool include_gpu_mem = is_resource_attr_interested(res, PROCESS_GROUP_ATTR_MEM_GPU);

Change-Id: I5a39513e20158c02343eb7c1d644f80ea0cba973
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
include/util/resource.h
src/util/resource.c