From patchwork Fri Jul 14 17:50:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 703332 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6BA65C001DE for ; Fri, 14 Jul 2023 18:10:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236050AbjGNSKO (ORCPT ); Fri, 14 Jul 2023 14:10:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236202AbjGNSKN (ORCPT ); Fri, 14 Jul 2023 14:10:13 -0400 Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBA7D30E3; Fri, 14 Jul 2023 11:09:43 -0700 (PDT) Received: by mail-qt1-x834.google.com with SMTP id d75a77b69052e-403a7066d9bso14486211cf.3; Fri, 14 Jul 2023 11:09:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689358090; x=1691950090; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=lUGvrZ4SNzSbcOr0/Bv9oR2pfXE6QplZ6flVtj8X1o4=; b=bxB9dPwCpabbnw9/Pk9UODE7SpjG9mLiber2JH969XN9DNR21jon+SyYV5fBU6J5CP hM+r7D4UKzllOpziK9atFXLxq1JIp3hlSgPub2n8hmKx8YbaXXLBPtd8gWiu+CI0WGzp CvnppowZAcWhgeCX8a68O95REBPC3QQdb9eX0lK/xVMTDQWobVvCftel2nQ4PXgNHWfR dF+TqE1y/0AGqtwFMm9In9Dk2xe6926QNzosBICBLJrcNWuGKVtqGk1F5oTcuGIxFcUa 0c6n9ZiLLZguej3AaI80qOrQ5KzcfiOCOMH9AQ3haOBDRE6yixqYaddCFvrJ3EGMQVk9 ZRQA== X-Gm-Message-State: ABy/qLa7j+SGuah0u+VoKGRCXXDLC5PxS55gPgcf0rfzxPWAjc1Ps450 YwIio0taQaiMJ8jnyMlTWjHlffAHpXwk X-Google-Smtp-Source: APBJJlEye8ahqaN5k4RFFRcqcmMtxTr6BroCabiANYEE10xONTgVediAHw+dhnaL+ixFAcKf/lFP9Q== X-Received: by 2002:a92:d952:0:b0:33a:a6de:65be with SMTP id l18-20020a92d952000000b0033aa6de65bemr4775196ilq.21.1689357038778; Fri, 14 Jul 2023 10:50:38 -0700 (PDT) Received: from robh_at_kernel.org ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id c3-20020a92d3c3000000b003460b456030sm2906739ilh.60.2023.07.14.10.50.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jul 2023 10:50:38 -0700 (PDT) Received: (nullmailer pid 4065092 invoked by uid 1000); Fri, 14 Jul 2023 17:50:23 -0000 From: Rob Herring To: Stanley Chu , "James E.J. Bottomley" , "Martin K. Petersen" , Yoshihiro Shimoda , Matthias Brugger , AngeloGioacchino Del Regno Cc: devicetree@vger.kernel.org, linux-scsi@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] ufs: Explicitly include correct DT includes Date: Fri, 14 Jul 2023 11:50:18 -0600 Message-Id: <20230714175018.4064957-1-robh@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The DT of_device.h and of_platform.h date back to the separate of_platform_bus_type before it as merged into the regular platform bus. As part of that merge prepping Arm DT support 13 years ago, they "temporarily" include each other. They also include platform_device.h and of.h. As a result, there's a pretty much random mix of those include files used throughout the tree. In order to detangle these headers and replace the implicit includes with struct declarations, users need to explicitly include the correct includes. Signed-off-by: Rob Herring --- drivers/ufs/host/ufs-mediatek.c | 1 + drivers/ufs/host/ufs-renesas.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/ufs/host/ufs-mediatek.c b/drivers/ufs/host/ufs-mediatek.c index e68b05976f9e..aceb3747f7b8 100644 --- a/drivers/ufs/host/ufs-mediatek.c +++ b/drivers/ufs/host/ufs-mediatek.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/ufs/host/ufs-renesas.c b/drivers/ufs/host/ufs-renesas.c index f8a5e79ed3b4..49f7bafc7d55 100644 --- a/drivers/ufs/host/ufs-renesas.c +++ b/drivers/ufs/host/ufs-renesas.c @@ -12,7 +12,7 @@ #include #include #include -#include +#include #include #include