From patchwork Thu Nov 3 19:51:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 13030941 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 12A7BC433FE for ; Thu, 3 Nov 2022 19:54:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=YpEo/XGSnoQOsNQ2mubUYUEEFoJ9wM/ymfZ3f4Nn614=; b=v4JP8f1XYpQCK/ 8nak/Fd1Ng0EzWzEVrz3CFwuq6V1H6jTAa45OIwLprgFfzRWvA/k4DevHHSNiEz1CuVVsdT7OEzSH K7xMeQVV9+g7MZlXObRa9V5SksGFeUna9PrvFt/NM6BHE0kitPN0+7cpUyBSiairgEMHY6Yv5HTQi RoDiYtX2AVYy1+/o66rK5uAfbugXXrX7xPf29i7hDBa8Iq2wKDFGvovR/5YtgEWAqr+cUbDrj+giF IwxWwLdXxiFXy3WYaM+QHORnFD7QdeRfd3fVBYhwSofN6OoYmeh6lNAbuOfLuEdSFEpoxexv5XX9Q JBVlz8BjjnTuGIOuPbvw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqgGl-001T8X-7N; Thu, 03 Nov 2022 19:52:56 +0000 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqgG0-001St2-5t for linux-arm-kernel@lists.infradead.org; Thu, 03 Nov 2022 19:52:11 +0000 Received: by mail-ed1-x52b.google.com with SMTP id z18so4669210edb.9 for ; Thu, 03 Nov 2022 12:52:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=oVK/kV0R0vkenb2LDbscFxA0X0dByuia1tz97ff80yM=; b=yjqdzBc5QkyWO8tIOpyy1HtXjyZWn0cIpOjMTkb96S3bxh24aATJ8xyBB1R/B77CcN NObHEXqX95u/z65/XPcAc2WpVxQKcNaxILUDOynzEmr1ML60iu9C07+LqmPtznkychUZ U9kL90pOsziktU0wt5b2868dOA9QSFgj2X/BX+G6yE/NYEQYIYBP/r/DhrDopUiHidb2 c39d5XT8elagWGepDKVNz/nymSi2onmOLUbPW85gTrTHZd6MnqlK+lVA2WT/cxSGl82j l9XHJYIoXhBrnlmf27/QcKjQSI8RtSLMN87uzifXjW670JH8PGoZxwEFBkTmWPyXeMLy F8Fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oVK/kV0R0vkenb2LDbscFxA0X0dByuia1tz97ff80yM=; b=G4yk8Etf67DeXDpQ8SfXdqezASKMsqTHjAi0UwpfC+FAnBDqTtrSBi79fUHjex8iDU bJkXZiXUqlWhsykC/x19KGO38+l6UBUhStEejfnHw+jpP2FRf4nF9KqaijuOmaYh/+if XeH0p3cZYU9OVaWS5UvHVv2Bk/yqNm1f8mOe2NKZ76lksLTyu1ePiHaIRZS4+Pp9Xs4V HIqSTsflhc9La9msoWVdOLUHYKLRXWTpifJgtQLbJQ2tdXHn+Sgw8swMXiIaRVTvO20e BNzNpUDHAOIct4XhLwWVs/4N0K2oAqR/Qcqm0V+cZXGuQEr6y2oCPkk06UeRlbdn7mJX oROg== X-Gm-Message-State: ACrzQf32fYZprGHU3urnVS2hsAV0N63jV3QJOcej9NBzmZrFCmx7HkVt hP6U9WC6CCKhuf8v0AqDyleCsA== X-Google-Smtp-Source: AMsMyM7ofQ+KeORNK7Xlf3qp7IJQwgQUB3P6e82hsOfsUmArPfMzYSqz5U1Wsk/ERagunutF5X6Uqg== X-Received: by 2002:a05:6402:1c0a:b0:463:3cda:3750 with SMTP id ck10-20020a0564021c0a00b004633cda3750mr26374259edb.341.1667505125822; Thu, 03 Nov 2022 12:52:05 -0700 (PDT) Received: from localhost (cgw.msart-bajzova4.ke.cust.o2bs.sk. [90.176.4.227]) by smtp.gmail.com with ESMTPSA id n19-20020a170906165300b0078907275a44sm863484ejd.42.2022.11.03.12.52.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Nov 2022 12:52:05 -0700 (PDT) From: Sam Protsenko To: Marek Szyprowski , Krzysztof Kozlowski Cc: Joerg Roedel , Will Deacon , Robin Murphy , Sumit Semwal , Alim Akhtar , Janghyuck Kim , Cho KyongHo , Daniel Mentz , David Virag , iommu@lists.linux.dev, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH v2 6/6] media: platform: Use IS_ENABLED() to check EXYNOS_IOMMU in s5p_mfc Date: Thu, 3 Nov 2022 20:51:54 +0100 Message-Id: <20221103195154.21495-7-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221103195154.21495-1-semen.protsenko@linaro.org> References: <20221103195154.21495-1-semen.protsenko@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221103_125208_690647_453D608F X-CRM114-Status: GOOD ( 11.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Now that CONFIG_EXYNOS_IOMMU can be built as a module, it's not correct anymore to check whether it's enabled or not just with #ifdef. Use proper IS_ENABLED() macro to handle both built-in and module cases. Signed-off-by: Sam Protsenko Acked-by: Krzysztof Kozlowski --- Changes in v2: - New patch drivers/media/platform/samsung/s5p-mfc/s5p_mfc_iommu.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform/samsung/s5p-mfc/s5p_mfc_iommu.h b/drivers/media/platform/samsung/s5p-mfc/s5p_mfc_iommu.h index 1a32266b7ddc..a8b48692d128 100644 --- a/drivers/media/platform/samsung/s5p-mfc/s5p_mfc_iommu.h +++ b/drivers/media/platform/samsung/s5p-mfc/s5p_mfc_iommu.h @@ -7,7 +7,9 @@ #ifndef S5P_MFC_IOMMU_H_ #define S5P_MFC_IOMMU_H_ -#if defined(CONFIG_EXYNOS_IOMMU) +#include + +#if IS_ENABLED(CONFIG_EXYNOS_IOMMU) #include