From patchwork Tue May 16 20:22:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 94943 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp690132vqo; Tue, 16 May 2023 13:45:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4I36ZsIHfIFl6SZ2AuxceVkwD77yOr1gT3ofXXzf3sa5O4Af2AnVwnvLzRAakoqcHKPdpr X-Received: by 2002:a17:90b:1296:b0:24e:596:624f with SMTP id fw22-20020a17090b129600b0024e0596624fmr38210128pjb.22.1684269901101; Tue, 16 May 2023 13:45:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684269901; cv=none; d=google.com; s=arc-20160816; b=lyWIOg5VFS4P6WGJxqrrda4a72pnfrcqRA0y+O/cHZwY3BWEBmYZb3aJo+umWMHfJb qGS7WsXvRVv3SeGE2znTARVxuHNRq9mvxeZTt2WFi0MSqx4sHCjsi8uPt2L8hGUzzL/D YwUANwIL2qxIe0IsyLBJGlchfG3C4fybywkydJ8nsLOYsfBAf9rq96Ix+kHwXu+fa0ca cCqluPSMsmUisgvAAnbUL/QmpzbzPFbRP8l1imFdq4rf6qZOmGeaKCzPGFl0P1HIjRuu +t14yPE16CPRBZtf3k0fKRZbJBnRFF6i4mdu2E7i1/ZaUFeoI+03P3EFNexumNpVzZIC c1SQ== 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=k7OyVKyMxWRjq4LLi3TNSp4kesEKr3gV7hqVUs92iO4=; b=AwALUhczSEYYsiZu8GMDB+kIP/39uvwtEtuDyANqzcxqvU/J8KMUWReYJD/4ABvCQ5 bAebkH8yOzOTY/zWA0o65xFo4FE6Lp97gjn7RFClMdZd1VFP5BTPJUpvskxWec1meXAq LipKZz/2YpY4bPOnkcAQ9JetJrdnBPqANwUyj5uwLXI+DnBcyF/KLvbnJggpx/R0ZjG9 a9DYfsVK4x8xeIb2IAQ9Wlvd4NzwUPpzow9rPlF7VSHLcwxxNjzKoTKTO0zRM0p8B5Dw lK6Tqw9Q5d0DHquJ4tiTF4aKkiKYCyQUKuKykMKfOwaaxR1SvB/eC2LudusNn4iq+6tG M7Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Zh/dgpPc"; 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 l192-20020a633ec9000000b0053045e0307esi18609037pga.451.2023.05.16.13.44.48; Tue, 16 May 2023 13:45:01 -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="Zh/dgpPc"; 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 S229831AbjEPUWl (ORCPT + 99 others); Tue, 16 May 2023 16:22:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230391AbjEPUWj (ORCPT ); Tue, 16 May 2023 16:22:39 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD5FE1725 for ; Tue, 16 May 2023 13:22:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 770E061B89 for ; Tue, 16 May 2023 20:22:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7BD2DC433EF; Tue, 16 May 2023 20:22:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684268554; bh=Sh10PzN7ZGeNFJszxNxgJ0E4uvWBGu9WxbiTupf53mU=; h=From:To:Cc:Subject:Date:From; b=Zh/dgpPcEs+o9AL1H8lM5HSqjawjI5bMYxJrMPI42rxMnxJV4sI2x3sQ5XfW+oJAe Rubf1FaIIRWM0IgV1Y0nYU55mJ0inHPbfpOzo26n0okvA6b1rFfgleurYIQ0K8UH5H bEWWorUSeS/s4nB4GiQBwy9CuU7zkle/Two5mBCPj7/S6etptTCcHQa7u8i+OBa5HZ 7Exq9SgkmzDAo5kBnQZ7W6gilABLIQIrfMuvLvhd6QZdVUfTOiaoR3eouRs6gSl5UU e6IUJSWf+gJmQ7B9WEbMQ7Q7dDVte9DSzMvNhidYbXr8uGCaULaBfWf+VzVwNy+qx/ QHvzLE48u09mA== From: Arnd Bergmann To: Sebastian Reichel , Carlos Chinea Cc: Arnd Bergmann , Jianglei Nie , Kees Cook , Nathan Chancellor , Wang Qing , Yang Yingliang , Yuan Can , Miaoqian Lin , linux-kernel@vger.kernel.org Subject: [PATCH] hsi: fix ssi_waketest() declaration Date: Tue, 16 May 2023 22:22:07 +0200 Message-Id: <20230516202226.559733-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766084557327222151?= X-GMAIL-MSGID: =?utf-8?q?1766084995720578359?= From: Arnd Bergmann The ssi_waketest() function definition causes a 'make W=1' warning because the declaration is hidden away in ssi_protocol.c: drivers/hsi/controllers/omap_ssi_core.c:147:6: error: no previous prototype for 'ssi_waketest' Move it into a header file instead. Fixes: dc7bf5d71868 ("HSI: Introduce driver for SSI Protocol") Signed-off-by: Arnd Bergmann --- drivers/hsi/clients/ssi_protocol.c | 2 -- drivers/hsi/controllers/omap_ssi_core.c | 1 + include/linux/hsi/ssi_protocol.h | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hsi/clients/ssi_protocol.c b/drivers/hsi/clients/ssi_protocol.c index 38e572faff43..da6a7abd584f 100644 --- a/drivers/hsi/clients/ssi_protocol.c +++ b/drivers/hsi/clients/ssi_protocol.c @@ -32,8 +32,6 @@ #include #include -void ssi_waketest(struct hsi_client *cl, unsigned int enable); - #define SSIP_TXQUEUE_LEN 100 #define SSIP_MAX_MTU 65535 #define SSIP_DEFAULT_MTU 4000 diff --git a/drivers/hsi/controllers/omap_ssi_core.c b/drivers/hsi/controllers/omap_ssi_core.c index 26f2c3c01297..84ba8b875199 100644 --- a/drivers/hsi/controllers/omap_ssi_core.c +++ b/drivers/hsi/controllers/omap_ssi_core.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include diff --git a/include/linux/hsi/ssi_protocol.h b/include/linux/hsi/ssi_protocol.h index 2d6f3cfa7dea..972434daa000 100644 --- a/include/linux/hsi/ssi_protocol.h +++ b/include/linux/hsi/ssi_protocol.h @@ -24,6 +24,7 @@ int ssip_slave_stop_tx(struct hsi_client *master); void ssip_reset_event(struct hsi_client *master); int ssip_slave_running(struct hsi_client *master); +void ssi_waketest(struct hsi_client *cl, unsigned int enable); #endif /* __LINUX_SSIP_SLAVE_H__ */