From patchwork Thu Mar 9 14:41:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 66892 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp327306wrd; Thu, 9 Mar 2023 06:43:07 -0800 (PST) X-Google-Smtp-Source: AK7set9A4NkceiNyDHw3lQFAWPLPyUqUuTQ0W7Tw/lzQxmgG/nXqwG6Qa47wDBFDxWoXNXW0hp7s X-Received: by 2002:a17:903:230c:b0:19d:62b:f040 with SMTP id d12-20020a170903230c00b0019d062bf040mr27206049plh.37.1678372987111; Thu, 09 Mar 2023 06:43:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678372987; cv=none; d=google.com; s=arc-20160816; b=iXxY6SH37ek3VyA9ZMqD0kKvfMjzMC8OyCT6OpeQq86hS6oBCT3GbaJ/AuaUqtzpio qafodNZumT0CUlpU7LPBVQQ+iFzZxMMKfk/24tjpt9qOjpSHIdj/GO/Wsoym9Gag192w cSf7afYjeLQ2GdWwYEmacIntTESyFYNjsvENFDlfnaeN+0pmf8Q6KBb161AVPawiUDy3 swm3VYd0lFggFUT3N/Ok0NRSll0ti/ozhFoTHiDcyK9rDA6aollH6tHY0xqddMo4wDUo bpv6OC2gnwIgk/mPZUQFzaIysbW8rMsDevURNQEIOLyRzuRiO/mJNRLFy603IMNRcL55 1NNA== 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; bh=v0zLZ1MPxyKirq2woTSFORRkCO/nHsXDoUW3iRPj2vg=; b=VhgVPLv84q0a/aY3IRXWNEP2CtrZSE0/TbJwsoD03AwWmAFEIiIwODRG+D074WVqy5 tDXCKj+lPhWTOLgVRLHCVebFKK7WoV4uSeUDLQh2ZvRmjfX6UDd3jeo3ZDkUChu/0zk8 wYE407hl6Qv2Jp9Bx1Py+Hs9cZ9SmMHzSllqLD+D4m5sfh6CTRMVgWTpP3+ba560gbGi SnSVXsusyix0siydo08nKorbqgzmBjD4nt2/IJ/msyVYGe2DgWEwG62QHoA5PttOJQqB 3Lr1HeTD/44BZsqqHhoeBL5GpR2ELcmkTrknP3djDYss2Dj5DO3F2NnyoifFjj0K5EOD C4UA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x184-20020a6386c1000000b004fb3c246af5si17060462pgd.274.2023.03.09.06.42.52; Thu, 09 Mar 2023 06:43:07 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231137AbjCIOlY (ORCPT + 99 others); Thu, 9 Mar 2023 09:41:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230261AbjCIOlV (ORCPT ); Thu, 9 Mar 2023 09:41:21 -0500 Received: from albert.telenet-ops.be (albert.telenet-ops.be [IPv6:2a02:1800:110:4::f00:1a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4BF717CC3 for ; Thu, 9 Mar 2023 06:41:18 -0800 (PST) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed50:3a77:63e:b168:ae06]) by albert.telenet-ops.be with bizsmtp id WEhE2900554Hw2A06EhEPr; Thu, 09 Mar 2023 15:41:17 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1paHRf-00BKy0-Cr; Thu, 09 Mar 2023 15:41:14 +0100 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1paHSD-00GSOV-UM; Thu, 09 Mar 2023 15:41:13 +0100 From: Geert Uytterhoeven To: Bartosz Golaszewski , Linus Walleij , Andy Shevchenko Cc: Arnd Bergmann , Yoshinori Sato , Rich Felker , John Paul Adrian Glaubitz , linux-gpio@vger.kernel.org, linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven , Linux Kernel Functional Testing Subject: [PATCH v2] sh: mach-x3proto: Add missing #include Date: Thu, 9 Mar 2023 15:41:13 +0100 Message-Id: <20230309144113.3922386-1-geert+renesas@glider.be> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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?1759901633275674028?= X-GMAIL-MSGID: =?utf-8?q?1759901633275674028?= shx3_defconfig: arch/sh/boards/mach-x3proto/setup.c: In function ‘x3proto_devices_setup’: arch/sh/boards/mach-x3proto/setup.c:246:62: error: invalid use of undefined type ‘struct gpio_chip’ 246 | baseboard_buttons[i].gpio = x3proto_gpio_chip.base + i; | ^ Fix this by replacing the include of the legacy by . Reported-by: Linux Kernel Functional Testing Link: https://lore.kernel.org/r/CA+G9fYs7suzGsEDK40G0pzxXyR1o2V4Pn-oy1owTsTWRVEVHog@mail.gmail.com Fixes: 21d9526d13b5467b ("gpiolib: Make the legacy consumer-only") Signed-off-by: Geert Uytterhoeven Reviewed-by: Linus Walleij --- v2: - Add Reviewed-by, - Drop inclusion of . --- arch/sh/boards/mach-x3proto/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sh/boards/mach-x3proto/setup.c b/arch/sh/boards/mach-x3proto/setup.c index 95b85f2e13dda75b..ca2802d3056503cb 100644 --- a/arch/sh/boards/mach-x3proto/setup.c +++ b/arch/sh/boards/mach-x3proto/setup.c @@ -16,7 +16,7 @@ #include #include #include -#include +#include #include #include #include