]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
fix(scmi): change function prototype to fix gcc error
authorTony K Nadackal <tony.nadackal@arm.com>
Wed, 7 Dec 2022 20:44:05 +0000 (20:44 +0000)
committerTony K Nadackal <tony.nadackal@arm.com>
Thu, 8 Dec 2022 13:42:25 +0000 (13:42 +0000)
Change function prototype of plat_css_get_scmi_info() to fix the GCC
sign conversion error "comparison between signed and unsigned integer
expressions". Changing channel_id type to unsigned int since it can
never be a negative value.

Signed-off-by: Tony K Nadackal <tony.nadackal@arm.com>
Change-Id: I579b21497329db40897c10d86c8fc68e4877f3db

include/drivers/arm/css/scmi.h
plat/arm/board/juno/juno_topology.c
plat/arm/board/morello/morello_bl31_setup.c
plat/arm/board/n1sdp/n1sdp_bl31_setup.c
plat/arm/board/tc/tc_bl31_setup.c
plat/arm/css/sgi/sgi_bl31_setup.c

index 9dd08e5ab8690c283e96b81d74e2b61cc3ba137a..356012bf925f5f6aec073dbe7e80c475c2698667 100644 (file)
@@ -168,7 +168,7 @@ int scmi_ap_core_set_reset_addr(void *p, uint64_t reset_addr, uint32_t attr);
 int scmi_ap_core_get_reset_addr(void *p, uint64_t *reset_addr, uint32_t *attr);
 
 /* API to get the platform specific SCMI channel information. */
-scmi_channel_plat_info_t *plat_css_get_scmi_info(int channel_id);
+scmi_channel_plat_info_t *plat_css_get_scmi_info(unsigned int channel_id);
 
 /* API to override default PSCI callbacks for platforms that support SCMI. */
 const plat_psci_ops_t *css_scmi_override_pm_ops(plat_psci_ops_t *ops);
index 075f512c362e1f3e1019201f2161343727c21fc6..768741ed02ae89e8c228858f4fc7946d5fb5dd9f 100644 (file)
@@ -20,7 +20,7 @@ static scmi_channel_plat_info_t juno_scmi_plat_info = {
                .ring_doorbell = &mhu_ring_doorbell,
 };
 
-scmi_channel_plat_info_t *plat_css_get_scmi_info(int channel_id)
+scmi_channel_plat_info_t *plat_css_get_scmi_info(unsigned int channel_id)
 {
        return &juno_scmi_plat_info;
 }
index a04421200c7e7afb4d3987412c643cc88aa58e50..e04587dd3a438e411876b94b2bb3a611f7005194 100644 (file)
@@ -19,7 +19,7 @@ static scmi_channel_plat_info_t morello_scmi_plat_info = {
        .ring_doorbell = &mhu_ring_doorbell
 };
 
-scmi_channel_plat_info_t *plat_css_get_scmi_info(int channel_id)
+scmi_channel_plat_info_t *plat_css_get_scmi_info(unsigned int channel_id)
 {
        return &morello_scmi_plat_info;
 }
index 5e897fee3ec180b95f87d04310db21e9b22a0f26..ad6c1f840f6aec0831c79a1bb230ee5608a94d03 100644 (file)
@@ -62,7 +62,7 @@ static uintptr_t n1sdp_multichip_gicr_frames[3] = {
        0
 };
 
-scmi_channel_plat_info_t *plat_css_get_scmi_info(int channel_id)
+scmi_channel_plat_info_t *plat_css_get_scmi_info(unsigned int channel_id)
 {
        return &n1sdp_scmi_plat_info;
 }
index 0523ef8f2996172a9f4a0b775b0f33da297f742d..2cdf045b91b471fc669117452293f261b9d1fd86 100644 (file)
@@ -33,7 +33,7 @@ void bl31_platform_setup(void)
        tc_bl31_common_platform_setup();
 }
 
-scmi_channel_plat_info_t *plat_css_get_scmi_info(int channel_id)
+scmi_channel_plat_info_t *plat_css_get_scmi_info(unsigned int channel_id)
 {
 
        return &tc_scmi_plat_info[channel_id];
index 27cf183468f2605c230a71df791f1ca9521d5f92..9adcb7c0bd04434c77eac0060db6ffa938d9ca1f 100644 (file)
@@ -74,7 +74,7 @@ static scmi_channel_plat_info_t plat_rd_scmi_info[] = {
        #endif
 };
 
-scmi_channel_plat_info_t *plat_css_get_scmi_info(int channel_id)
+scmi_channel_plat_info_t *plat_css_get_scmi_info(unsigned int channel_id)
 {
        if (sgi_plat_info.platform_id == RD_N1E1_EDGE_SID_VER_PART_NUM ||
                sgi_plat_info.platform_id == RD_V1_SID_VER_PART_NUM ||