From patchwork Fri Dec 8 18:59:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 176008 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp5655932vqy; Fri, 8 Dec 2023 10:59:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IFJPVls4pw5AOJe2fKdtbvfTWH9R4Avx9oGP8SYYHJJ5z7TqeLmfzt9fqZ4UzFnXAwe8eZ5 X-Received: by 2002:a05:6358:711:b0:16e:783a:eb69 with SMTP id e17-20020a056358071100b0016e783aeb69mr519925rwj.0.1702061983449; Fri, 08 Dec 2023 10:59:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702061983; cv=none; d=google.com; s=arc-20160816; b=cAgMApLMH4wb6e9wyuFygbunY56fZLPhBAnr1jgw3NPFmxP9LxFSPHStgXMPkLoZ00 4BCrxxn96ItCM3r9bKxIE/SN73tg6sfLunDUtBvLJvz469L6gcnUEhTFWNBcH1w9DLFR BDDA6jkrGJ3ntUXviR5ybqHTB5KnEP7FEtyAj3CDHcUX0ECm2zx1C4xG7k0+F6jSQuCL ExMYH3LRxNEX8JgpT9t0z7KKMouV1HOlNYqx3TTK8ml7U2mgRcWJ+R5xqigZmszuCoRC GIVwP7a8j89EMqUAJSWdMN0XWbPla024wbg+3XmNFkMZV7C8T9TEcwbu4hjLDGmtz1iR 3pYQ== 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=GYqIcq7k1BexZ75pZaJri8Df3+NwQa4Ekej7E/CCgjQ=; fh=TUy4OfnHradOpXqEN97xYfsNTconJEQiKTbo77O/2Og=; b=xI8cM0OELXEa/hbaZ9QiNH8VGsM/arZMMKd2nTmCeMNwoGh6fyd19rZ1Rrf2SOHMTP ldja/Dg99RyI8NxqJx9BBlAGELkLACEt8/RFxGGD5xkJfhyKMPSbVKvXx6TVYrrpn8AC mLkD1Pq+48VIEyzWlBVwzpnP9wsdn7ffwEybNU7dG+hZcIuGDgVdPCykhvUI8WHNbIXe mqKS8kTStpS3uPURUwidJ0knrp+lZw4yAUzg3iqsw468NDCfLC3VdVLWUSKfbky/Supv 2Bup29zjLgQ1ygYz/msOWHj7YVadB5Sm0NS3vtEJylTGTuddWi5I0u5ULh3WLjVCBdbI NnDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=Dgk6lOT6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id u8-20020a63df08000000b005c5e2165e37si1945282pgg.125.2023.12.08.10.59.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 10:59:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=Dgk6lOT6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 3CB9A83B2E56; Fri, 8 Dec 2023 10:59:41 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233888AbjLHS7X (ORCPT + 99 others); Fri, 8 Dec 2023 13:59:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233874AbjLHS7W (ORCPT ); Fri, 8 Dec 2023 13:59:22 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2ABE310C4; Fri, 8 Dec 2023 10:59:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=GYqIcq7k1BexZ75pZaJri8Df3+NwQa4Ekej7E/CCgjQ=; b=Dgk6lOT66iX0YgA4niOMVPOTpa 37QOONyoOP/+OtqgLeWrfCzDhgx6r2gwA6gn+7fJNB5M5KNVs4f1rEUd42XxqKzF+mMBwP8ZPYwwH 0vARyyjnMUb3mNlIthEmOtW2DjokEuq4dL4ZKDW0evsFnB9URLRrXAheq97aRx9lPDcRDQcG7Oit8 mkjapYQWJQ1TuDccghs4LknQvTwCCN1q3SiotMtK1NDKgZzz6eRQQWaFDn5JQgj6jA9OCq5qLmedX 4nhS0P8d3OvGnVspHA6/satXbg1sKDjAGB/ckfP0Gl4MiblHNJtSbK7vGCTMPfq8RM2LMZ2oJlQky RHW2k14w==; Received: from [50.53.46.231] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rBg4N-00GLbH-3D; Fri, 08 Dec 2023 18:59:28 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Rob Herring , Mark Brown , linux-spi@vger.kernel.org Subject: [PATCH -next] spi: mpc52xx: explicitly include linux/platform_device.h Date: Fri, 8 Dec 2023 10:59:27 -0800 Message-ID: <20231208185927.14124-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Fri, 08 Dec 2023 10:59:41 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784741346247622971 X-GMAIL-MSGID: 1784741346247622971 Since linux/of_platform.h had included linux/platform_device.h and since that inclusion was removed, this driver now needs to include the latter header file explicitly to prevent build errors: drivers/spi/spi-mpc52xx.c: In function 'mpc52xx_spi_probe': drivers/spi/spi-mpc52xx.c:396:20: error: invalid use of undefined type 'struct platform_device' and more like that. Fixes: 0d18bcdebb2f ("of: Stop circularly including of_device.h and of_platform.h") Signed-off-by: Randy Dunlap Cc: Rob Herring Cc: Mark Brown Cc: linux-spi@vger.kernel.org --- drivers/spi/spi-mpc52xx.c | 1 + 1 file changed, 1 insertion(+) diff -- a/drivers/spi/spi-mpc52xx.c b/drivers/spi/spi-mpc52xx.c --- a/drivers/spi/spi-mpc52xx.c +++ b/drivers/spi/spi-mpc52xx.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include