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: 15131 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp736806wru; Thu, 3 Nov 2022 12:54:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5tdYDyY898qSLeN5W94lpVo2F69GNifBbi5rF2fX8pTj9Bl7xf5UtseV7VvN8mQlPiX5d5 X-Received: by 2002:a17:906:ee89:b0:73d:70c5:1a4e with SMTP id wt9-20020a170906ee8900b0073d70c51a4emr29913960ejb.683.1667505268912; Thu, 03 Nov 2022 12:54:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667505268; cv=none; d=google.com; s=arc-20160816; b=e9ly1IpJAAlpv8bWZBmj3ubtXUr+w/mSi0Kz6Xh2Wz98pp3wEFYk7m915Rvjawdge5 s5pl2QeepNEOoeYnC1ZyG0QbPaQqD4JZxlhfWG+nPpiJ036DF2uVfTiG0YRYrn/xfPt6 ydR6MdJ/hrJeRprgBaNPNi0W82Po5Pvj0sOEDFyvFEBBcGt7HO68c0DZZF2MzyBnXkPZ MhBPG2a6beAMsdfEZWUkcta0Yo9LPzWSSW+sUQFCjqQBL5OvZ7seVnmq51BGva1IeUfa LDupfALb4YQ91qk8j27gXnANr+P6PW5LdjpMNr0mJIF9EXXa4pxbYbZ8u7yxrU43Aywq DXwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=oVK/kV0R0vkenb2LDbscFxA0X0dByuia1tz97ff80yM=; b=l5dwDjf71Rh0a0730vqax7YAvUAe/KdX9HX7m++lywsmf0DhfRdvW2ZSqKZB6XPfpQ 8PItjhGuuUs4Khrntup1jrR4wMhudHyozJpkdHv5qPg060hsPi8w/HyN0XB9/9XiwoG9 3KVG6hesag8UX7cCjhUUwmIXcTvmegPvWPFR6x4daFT1ehFnS1CrS+Wovc9tEOJB9xlV TS9t8b7pZ/OFG52fJGHVMfvNNsxy3qehw4iOgN3SY2V3NvIOYRfBu8u2WYHRE6Ds4gej ixm5ZrzfVXdx6uyz//uuu7jZKC9qdLCmcMaZ/U5tQr/nGEQ1R24DT/39eaZCGV2UAYU5 DZaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yjqdzBc5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d12-20020a170906640c00b007ae2dfe020bsi293945ejm.783.2022.11.03.12.54.05; Thu, 03 Nov 2022 12:54:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yjqdzBc5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230405AbiKCTwT (ORCPT + 99 others); Thu, 3 Nov 2022 15:52:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231143AbiKCTwG (ORCPT ); Thu, 3 Nov 2022 15:52:06 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35C5E20358 for ; Thu, 3 Nov 2022 12:52:06 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id v27so4718211eda.1 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=XynQxUIUFWZDvWPjOCNITzFbMRwTm2RHuCaa3gqhBFwCb+4hZfHx9sv6b8dUGHmYsz w/WNDo78v6guKbuLHLeY4/Y6hFeXaOlQF5YyTCaNBPhL//A6DbI2aC3fynzlqxbCFH5p 5jF4XtyNOUWk0tFqlvgEG0d0UssmLBCwEWlUa7/ggo17VE9QSYDv2LACaL+sgrgW4Wkq AzcG2ew8nIEKuAmswPl89Iy2UW6UoP+vVl0re0F/efKpFFc3y58B2Cz7FBND20vCBKnR 8RBBUHZZGaYlHvkn3pc1yOtcNhc8ABq7qBN4P/0xlo5p9WollEB0ZFn26PE8Y1U4nAYn Tlmw== X-Gm-Message-State: ACrzQf0Wn21oLCQYYnZ/0Jmjq+ppevGbRFkTizd3Qrv+dpSK6/hkceX2 feQ5d2aH+qKunYYzIl9g8hq5Ow== 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748506004837699127?= X-GMAIL-MSGID: =?utf-8?q?1748506004837699127?= 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