From patchwork Thu Dec 29 01:24:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 37287 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp2172947wrt; Wed, 28 Dec 2022 17:27:15 -0800 (PST) X-Google-Smtp-Source: AMrXdXuMvuqmSxPlN9v6J/GTUT3B2msm3yD0RaeUmsQ2Ope7kGpbuWid8IX1fInqBoS3dbI2I4p4 X-Received: by 2002:a17:902:b591:b0:18f:aa25:46d with SMTP id a17-20020a170902b59100b0018faa25046dmr43337563pls.38.1672277235468; Wed, 28 Dec 2022 17:27:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672277235; cv=none; d=google.com; s=arc-20160816; b=B/s3uda0koIbYQIQLyNULZ0pBS9TyxISs2eXNTmI1sArQskEd1z2QkgUckrZnR5+Vy PQJW7lzm8WBwgPuaCZUR6GWgCrZHJWzJfP2FHdGr+RE4k2Pqfu2AnvSqA1TcPoaxtBH1 raHq6sOyC7oKogJbhHPlx0EL5TMonc0P0vrutfZKe3fsH6FwJldceef9CGdVqkdbSME5 2/f6fYmTfjFqbqqiildRjykPWk4gMWdV1ihHPIxbRsn7KxrseNVrwAIG+LVuslFv6o0Y R9Naspt9SEyNO9wMjhGtwYI/IZqYooiRBS6KYdSMu3uMMlY4rtQ6w+zurxYwYsn1tSZE gtgQ== 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=N9E7L6Ho6kWI1xmI1za5Zz5R3ypJix8rKxwEiL8bYhE=; b=Bu+vye3X82nz6Cjyt1E8H52SyUZcGIwQAi2m4pFmnJvz5tehdTXuUHL9AxOfiILxoI ssGPzlRG8tYmdxXSgmL+RCKkGabEmy69mFPONd7DwGFE1WWRx5v4BL9PNuaklAg+F/se FyK6kOVXBhGtbZUOcT7HtC1FhrDR5xR4Y24yIAALpokOXF8KtDPM8Jqxtc0egTw490XB iCmIJiWM1R6j+XQLBUAOa14d9PgsoHpA+2qNommibvgf5cZVda7002+F3dzEkYeLQ+vm 2Io9WO/EXyHuatdb7olNqz3KTAbVJBor0RmtYi1EwZLPWKOOwxaCNWmmTbQsCXYJ3qnj tMZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=J5IShLVS; 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 v22-20020a636116000000b0049de6ef731bsi1086274pgb.340.2022.12.28.17.27.03; Wed, 28 Dec 2022 17:27:15 -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; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=J5IShLVS; 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 S232644AbiL2BZB (ORCPT + 99 others); Wed, 28 Dec 2022 20:25:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230078AbiL2BY5 (ORCPT ); Wed, 28 Dec 2022 20:24:57 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15F7213F80; Wed, 28 Dec 2022 17:24:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=N9E7L6Ho6kWI1xmI1za5Zz5R3ypJix8rKxwEiL8bYhE=; b=J5IShLVSPeHxk+qV8WlMFSooAJ lefuoIbCCCcCqZPrOKlHoWAuzQK9GHlg5SitDrLB2RT8DbL39r0hdNe7dBISsG7jBNZhbGasEygUg Ww+0TGrPE9nZhe4B2p4huUTyZgGSrRIZHZ8aTiaXWzFTyHqPJAy7LJ4aV/t+WrmLqFmfFOPRFxFq7 K/8q/8p6xypYZcsKDlKSAbKh6u4RTKYda0j2QP2v4PgF0gUWLHS0eWIXhM07BX2JOGM2UEKAjD+X7 30JVeW1nPtSYCU3MxQvJ8K/37N2lN2i1IYQMKxGfxMQN5A1d/Zmb1QfM0OVreocQ7kysimDGPyT7A 5aI8Dyiw==; Received: from [2601:1c2:d80:3110::a2e7] (helo=casper.infradead.org) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pAhfJ-009YGt-AW; Thu, 29 Dec 2022 01:25:01 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org Cc: Andy Shevchenko , Linus Walleij , Randy Dunlap , kernel test robot Subject: [PATCH] pinctrl: nomadik: fix build when DEBUG_FS is not set Date: Wed, 28 Dec 2022 17:24:45 -0800 Message-Id: <20221229012445.16169-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1753509774238343711?= X-GMAIL-MSGID: =?utf-8?q?1753509774238343711?= Fix build when DEBUG_FS is not set/enabled by moving the #include directive. ../drivers/pinctrl/nomadik/pinctrl-nomadik.c: In function 'nmk_gpio_irq_print_chip': ../drivers/pinctrl/nomadik/pinctrl-nomadik.c:1084:9: error: implicit declaration of function 'seq_printf'; did you mean 'bstr_printf'? [-Werror=implicit-function-declaration] 1084 | seq_printf(p, "nmk%u-%u-%u", nmk_chip->bank, Fixes: e5530adc17a7 ("pinctrl: Clean up headers") Signed-off-by: Randy Dunlap Reported-by: kernel test robot --- drivers/pinctrl/nomadik/pinctrl-nomadik.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff -- a/drivers/pinctrl/nomadik/pinctrl-nomadik.c b/drivers/pinctrl/nomadik/pinctrl-nomadik.c --- a/drivers/pinctrl/nomadik/pinctrl-nomadik.c +++ b/drivers/pinctrl/nomadik/pinctrl-nomadik.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include @@ -907,8 +908,6 @@ static int nmk_gpio_get_mode(struct nmk_ return (afunc ? NMK_GPIO_ALT_A : 0) | (bfunc ? NMK_GPIO_ALT_B : 0); } -#include - static void nmk_gpio_dbg_show_one(struct seq_file *s, struct pinctrl_dev *pctldev, struct gpio_chip *chip, unsigned offset, unsigned gpio)