Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1f260b7e authored by Manohar Vavilapalli's avatar Manohar Vavilapalli Committed by Gerrit - the friendly Code Review server
Browse files

iommu: iommu-debug: Fix the return string



Fix the return type to avoid the compiler error
in gcc.

Change-Id: I2387f83c3784db7fb695b76fe0b0d5a1284c398f
Signed-off-by: default avatarManohar Vavilapalli <mvavilap@codeaurora.org>
parent 9529f971
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
/*
 * Copyright (c) 2015-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2015-2020, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -228,6 +228,8 @@ static void iommu_debug_destroy_phoney_sg_table(struct device *dev,

static const char * const _size_to_string(unsigned long size)
{
	static const char str[] =
		"\"unknown size, please add to %s function\", __func__";
	switch (size) {
	case SZ_4K:
		return "4K";
@@ -250,7 +252,7 @@ static const char * const _size_to_string(unsigned long size)
	case SZ_1M * 32:
		return "32M";
	}
	return "unknown size, please add to %s function", __func__;
	return str;
}

static int nr_iters_set(void *data, u64 val)