Quellcode durchsuchen

dataipa: Fix spearhead generic stats data type

Use correct data type while generic stats pointer calculation.

Change-Id: Iea54abcc6bafeccaff8d23f28066e7f1d4cfc5b3
Signed-off-by: Michael Adisumarta <[email protected]>
Michael Adisumarta vor 2 Jahren
Ursprung
Commit
612d0a953c
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      drivers/platform/msm/ipa/ipa_v3/ipa_stats.c

+ 1 - 1
drivers/platform/msm/ipa/ipa_v3/ipa_stats.c

@@ -295,7 +295,7 @@ static int ipa_get_generic_stats(unsigned long arg)
 
 	/* HOLB Monitor stats */
 	holb_mon_stats_ptr = (struct holb_monitor_stats *)(
-		&generic_stats->holb_stats.holb_disc_stats[0] +
+		(uint64_t)&generic_stats->holb_stats.holb_disc_stats[0] +
 		(ipa_lnx_agent_ctx.alloc_info.num_holb_drop_stats_clients *
 		sizeof(struct holb_discard_stats)));
 	for (i = 0; i < generic_stats->holb_stats.num_holb_mon_clients; i++) {