From patchwork Fri Jul 14 17:50:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 120659 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp2673331vqm; Fri, 14 Jul 2023 11:13:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlEEgJ+yXCFLPeHdW8IQEUv/L+6scrXwz7hh+EOKF5e2ueq0iSVS7p/b3Th71g296K0qGym3 X-Received: by 2002:a17:902:c410:b0:1b6:9551:e2b8 with SMTP id k16-20020a170902c41000b001b69551e2b8mr6542556plk.34.1689358410445; Fri, 14 Jul 2023 11:13:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689358410; cv=none; d=google.com; s=arc-20160816; b=sLCMd5X/DjoKVE5NiIHsEH+VyKGXGOcio5R9IypiNMYFaAZpSyP/hPaR8kWTWe8ZR3 9T3tNSzeLCNICLmUMmIcpH3VS6eo3PSt0QnZ9a2zTYOQ30VZ/eeG02Qn5gqKk4plIfeK DgfbQw+NwiWQPIqZXIg2JUbLxR/EAQ91HAvSZHwTxZy3BPIqtKhBgcVo87FZ7MgQiKbF mv9P30p6oPAbHJA4WbK32KhUmqdNE5eCbpxj5fSEvG2yDBzfLrPlB0n0jX/Fk+t1+nYZ KKaI2nBmzh7h7v170n3281slC50DygdNet/h47oNuIc68ov5oP8BOXWGc05nsBCmn/Ep 5lNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from; bh=L9vz/mWa/+cByZPURTvStFUERA+7Xy0Vz92TG7IhWkM=; fh=1esL5jN++LJyKBPFIWoeBjH8Po3eOlVcKxPvg21cGEg=; b=wW9bF2h8dt5K7zytTTWob/n5fcQWROliZ+siVntm9oz9mylKmA76wqyqbLfx++poEa uhPVxXruQj3fK19rE7lxX4b5HbH8KFnnzPNBDbO4M+ypGhmHBCh8aJwggNPrWssMalJn 4ZTo/YwzH3klV5niFGjhA2xJVATws6lyIuvmt9YQ8wk02/JL4yzmogUq9Qa9ICH38uRm Uuk3GNL+D41l4SQu07+IfOKQjsCIq0wSbGTxzFW5mpuo1MpY1zqfuZoQDdPsoEzLmSkG ZZ11uut/Z86sWkclZU5vo2KJ6slVEExkW6U20Zwo3aB+71ig6V4CUXQgvXfhFV+XiRDP EF6Q== ARC-Authentication-Results: i=1; mx.google.com; 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 u15-20020a17090a410f00b00263c7cadb73si1508993pjf.152.2023.07.14.11.13.17; Fri, 14 Jul 2023 11:13:30 -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; 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 S236508AbjGNR7I (ORCPT + 99 others); Fri, 14 Jul 2023 13:59:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236877AbjGNR6O (ORCPT ); Fri, 14 Jul 2023 13:58:14 -0400 Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A61B3AB3; Fri, 14 Jul 2023 10:57:50 -0700 (PDT) Received: by mail-il1-x131.google.com with SMTP id e9e14a558f8ab-34574eb05f4so9442925ab.0; Fri, 14 Jul 2023 10:57:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689357106; x=1691949106; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=L9vz/mWa/+cByZPURTvStFUERA+7Xy0Vz92TG7IhWkM=; b=R1HAESUhNQiRX3Qti8IjtTXB5y4/dNDA1XZEnnIpeccQ2v3fEkrPw4PBVerRG8a9+K +ABlnaCk/v1WrpCUsR5bbua85MaBiE7WgQWNciQ+zdnhj2z7Wkmjj5uDhvBfLL6ILv6h qtnSpf4hwuZGvk0BNSslyP7q6OiUriCXq0OTL/+M4qt9X+wDIakKSR9VT1hyYTMDTTGg qtlWLb6J1A4Nhj9+3YYs98EJmwg79xD17j1hAaIod6yyJ4lRdTfDXYYp56HhGR5mDhde Om6QgWsMrph0bvrwxsaKTeAk66ITIheyE2u800CB0vTtzIBJf0YKZrrA3GR5ao64hjlN kutw== X-Gm-Message-State: ABy/qLbzkhH8sG/LrZ5IHLte6C+W0Xbc8fc8Imhe5j2HJiNaSKK0x2ye vWZKQ/gdagPJnXXyBM/RwO3u23zMLVve X-Received: by 2002:a92:d08f:0:b0:345:f07b:b670 with SMTP id h15-20020a92d08f000000b00345f07bb670mr5110230ilh.16.1689357106212; Fri, 14 Jul 2023 10:51:46 -0700 (PDT) Received: from robh_at_kernel.org ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id u16-20020a92da90000000b00342093347d8sm2853065iln.76.2023.07.14.10.51.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jul 2023 10:51:45 -0700 (PDT) Received: (nullmailer pid 4066556 invoked by uid 1000); Fri, 14 Jul 2023 17:51:08 -0000 From: Rob Herring Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] lib/genalloc: Explicitly include correct DT includes Date: Fri, 14 Jul 2023 11:50:56 -0600 Message-Id: <20230714175056.4066297-1-robh@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MISSING_HEADERS,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771420684753722997 X-GMAIL-MSGID: 1771420684753722997 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 --- lib/genalloc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/genalloc.c b/lib/genalloc.c index 0c883d6fbd44..5cb300530556 100644 --- a/lib/genalloc.c +++ b/lib/genalloc.c @@ -32,7 +32,9 @@ #include #include #include -#include +#include +#include +#include #include static inline size_t chunk_size(const struct gen_pool_chunk *chunk)