From patchwork Fri Jul 28 13:48:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 127676 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp472655vqg; Fri, 28 Jul 2023 07:25:50 -0700 (PDT) X-Google-Smtp-Source: APBJJlFrzZzT0lcrPNF8A4bPKvovDiYXtSsxZORfBHaUuwx2fm4Imu/xE1Co7HLLMezjoAlaA9oy X-Received: by 2002:a2e:a408:0:b0:2b6:a76b:c39e with SMTP id p8-20020a2ea408000000b002b6a76bc39emr1875108ljn.35.1690554350065; Fri, 28 Jul 2023 07:25:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690554350; cv=none; d=google.com; s=arc-20160816; b=AdrpCALqlePvcT7TvUwBqHTFQrFuEs5v/r9hbEaQDmq+KYDCznVJzhRyMMJg2bjNA3 7u6kdWVnyuZg+M/twS7zm6PWocVgn2cLO3fDCJCfNeI6B9k7pXYKfXLLihZuHtH/U+WC RTezgmR84j8umLfroSZSW+DTTnGd+NiMYgjnJ+RpVTo1u7YU+tMx3C3/zrqQTWiF8IWn IkkZKgrjSaZIqgYsxa9VByiQvcXzhEouEy2MiXrofR3T3RzWEu4PTdnKBlgOAokmoDxV WAEOOf3c6wpnyziyWqJr6iqaIhqpW2CYKIJYGv3AuSNub+a68/xMmKalMrjM2tHZRn2k Qtdg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=zRUxhxQhj+Occq8dCzTJSpDOOYftBFlIi3J7C96QIUI=; fh=itIymDWVXhrc8uoDQhGYH52MvueHTpU40ezWSMoJtLI=; b=kKU87Gh5X7sg+Xb7tul3IJMVuZbBza4uo0WlyWRjYVvuYtipw0guPo8avjycvRBQ7e /SFQ6v1TeA6qwP6qeH2kIYaXLSWv+D2y32m+H2oaS4UehnZFnZ2qUrr1BLTqayjh4/6I JkpbZFqza3OQTj2xXTdJjAI1li2JAhCoBAfBuaIdEjj3bx3EUrNdHQFWGJ1Vq4GB7PBy ZXVZyGvvU87XeHpdC9gqvG/rF4celym9MB+YQ6F3RjTcNfJFMpJVMhNwNT960z4oCUDR UGDNQWaItGL37oSwYsHSRPrNW5/keeWDn3P5WTTppo/eGZHC/3X/5C/IVOMYTFxJvCEq QVnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oDxPzCSS; 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=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id rl19-20020a170907217300b00993ee77a3c4si2744339ejb.681.2023.07.28.07.25.20; Fri, 28 Jul 2023 07:25:50 -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=@kernel.org header.s=k20201202 header.b=oDxPzCSS; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236968AbjG1Nte (ORCPT + 99 others); Fri, 28 Jul 2023 09:49:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236881AbjG1NtI (ORCPT ); Fri, 28 Jul 2023 09:49:08 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FF162D60; Fri, 28 Jul 2023 06:48:57 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 022A462130; Fri, 28 Jul 2023 13:48:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E9FFCC433C7; Fri, 28 Jul 2023 13:48:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690552136; bh=ybAewDSIihhc9NHGhos2fH++UkcTbQSngJl7W7DzYpc=; h=From:To:Cc:Subject:Date:From; b=oDxPzCSS6ehCZesw8RUEPFEJvyhTJvVh/bwVCf/zMFZ8ahhmcU1v6L0qxMJrJC2L1 w826i3oZYo16kjtBfSrcWXLvw6+wzJ2+FfBRzoHEUuji3Bv8PjcYMMN/M7wq19U5om pTRClACtk8Rf797gBpL8u1ns1MFtNCc1p/zQy208F+rrB4NmB91JIcbgVi4933dC8U dsVa93vqJe190+Jrf2LYiyNfjf4nPqBs721jYiR33v0p1IF6WIRgVG4e0ltAL9hYdm tH3MGCT6juqTCo29mUJHmtAxdLhsC170M6MBzonGxxguVNCrDMDSXp3MimuOTrf00F fwPwf68IjUrHw== Received: (nullmailer pid 3224739 invoked by uid 1000); Fri, 28 Jul 2023 13:48:55 -0000 From: Rob Herring To: David Airlie , Arnd Bergmann , Greg Kroah-Hartman Cc: devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v3] char: Explicitly include correct DT includes Date: Fri, 28 Jul 2023 07:48:45 -0600 Message-Id: <20230728134845.3224553-1-robh@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: INBOX X-GMAIL-THRID: 1772674717967346412 X-GMAIL-MSGID: 1772674717967346412 The DT of_device.h and of_platform.h date back to the separate of_platform_bus_type before it was 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 --- v3: - Split out hw_random, ipmi and tpm --- drivers/char/agp/uninorth-agp.c | 1 + drivers/char/bsr.c | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/char/agp/uninorth-agp.c b/drivers/char/agp/uninorth-agp.c index 62de7f4ba864..84411b13c49f 100644 --- a/drivers/char/agp/uninorth-agp.c +++ b/drivers/char/agp/uninorth-agp.c @@ -3,6 +3,7 @@ * UniNorth AGPGART routines. */ #include +#include #include #include #include diff --git a/drivers/char/bsr.c b/drivers/char/bsr.c index 12143854aeac..70d31aed9011 100644 --- a/drivers/char/bsr.c +++ b/drivers/char/bsr.c @@ -6,11 +6,10 @@ * Author: Sonny Rao */ +#include #include #include #include -#include -#include #include #include #include