Message ID | 20230517124802.929751-1-arnd@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1123739vqo; Wed, 17 May 2023 06:10:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ40TxsGf21EpFrsXIkaJkn0pDfAaTT9VzgGFxLDrz8QCZNbj8dZQM2TPMjNFqsdZxtpwFjr X-Received: by 2002:a17:90b:4b81:b0:23f:6d4e:72b3 with SMTP id lr1-20020a17090b4b8100b0023f6d4e72b3mr40372508pjb.25.1684329037203; Wed, 17 May 2023 06:10:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684329037; cv=none; d=google.com; s=arc-20160816; b=VuxBgeboASXVxdAH6lz50IZZFtCSaEChVO5wWGZBVBTPuKnUH7ydalwYElno1QuDSr hOSNAL/sE0srPXdX+U1z9ev1HxxQ8OEZksYvuvED33alRllYtoWzYYgPpfQfDx94zV7E s0RDW4WmvJb2NADcgnoiYyuVDoafq2hcOIwO4B/fiIaY7XlEt2jPhqVxBN6Cqwfa5YwF fKh2vL7FVK0avdy98k/hnnwvKleIZf+yOmZMbSuN2h9k4bV1+GSDadTGd9iGZepKCZvj NbP7wusaotEMkst9bhWMr/0Gt+h/3fU1T4SQmbkxFf6UnGl2sDoxv3JZbO5OA0IDbpD0 Xu+A== 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=+m0jPCA3lKy/BRNgyWSM5i2fXW0Dzja7CpAdMtRoW1I=; b=BTCk3Q4YhlsHIjBvR9iemKDtocfpdSgqPX/hLISqCtDZ72hpljAB4QKjfTQevng8N+ up9sG/sOOq+wBe0q19zzQmH2CA6XLO0DQYzjw2WzyEx84AOdJ/LYghq00YaksleTV/0Y Zjh4ePlU5Npi/F3GIFVgvLvB21JCT9La289ZHf8CdrbQKhdLAgJ/w79vi38epaDUWZQD 8gksFSzmNi8StSfD7ITausRh9KV6GkcvQB+9jA2auO5BM/e1E5IbSc5w3jp30Sas34F5 R2WFYl+lSbycYo/13Ap25RcyP/8Yx9YtR8qf0b4RvmsvH9qzSvNJTmiGRMQz7V/ppgYD PTXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="RV1B+/ga"; 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 w10-20020a17090a780a00b0024e33c63ed5si1752650pjk.15.2023.05.17.06.10.20; Wed, 17 May 2023 06:10:37 -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="RV1B+/ga"; 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 S231781AbjEQMsS (ORCPT <rfc822;pacteraone@gmail.com> + 99 others); Wed, 17 May 2023 08:48:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231381AbjEQMsO (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 17 May 2023 08:48:14 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76FF95580 for <linux-kernel@vger.kernel.org>; Wed, 17 May 2023 05:48:08 -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 0452E64675 for <linux-kernel@vger.kernel.org>; Wed, 17 May 2023 12:48:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ECD3AC433EF; Wed, 17 May 2023 12:48:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684327687; bh=4HY0Ym8gMukTRRYv/O34wSKiu5KYThcxaes5f1ODcQA=; h=From:To:Cc:Subject:Date:From; b=RV1B+/gave4YwzwHMlfheMuunRRiS6UUzx2WS5YDa5RX/UWlgJLu5gmqjAdex83fL hDZgf1Z1sS3rGN0dXt81apAxQ+gJzm2DXYSIsmSx++SZKw42V4rxQNVpwhcBspDqCv 7795yRXTwkVvYUlrHgoxG5RbGaeBHrajveeJXdUlESFMl/1LEnNlZLDltY+cE/tiEc spRcf/Dzz3YsCbMjj95LW1NVsuHTL2UieW1Ne19EBJUGQEz76NVBnSGj4E5pCOQ7lp MLx59IcdstIn7q9jP51g823DhcnuftpdkTZHgFP+SZORyt/b/3EHWWEbmtBJ7Tg5lv 87vlZgEl8dPAg== From: Arnd Bergmann <arnd@kernel.org> To: Jason Wessel <jason.wessel@windriver.com>, Daniel Thompson <daniel.thompson@linaro.org> Cc: Arnd Bergmann <arnd@arndb.de>, Douglas Anderson <dianders@chromium.org>, kgdb-bugreport@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: [PATCH] kdb: include kdb_private.h for function prototypes Date: Wed, 17 May 2023 14:47:53 +0200 Message-Id: <20230517124802.929751-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766147004171015886?= X-GMAIL-MSGID: =?utf-8?q?1766147004171015886?= |
Series |
kdb: include kdb_private.h for function prototypes
|
|
Commit Message
Arnd Bergmann
May 17, 2023, 12:47 p.m. UTC
From: Arnd Bergmann <arnd@arndb.de> The kdb_kbd_cleanup_state() is called from another file through the kdb_private.h file, but that is not included before the definition, causing a W=1 warning: kernel/debug/kdb/kdb_keyboard.c:198:6: error: no previous prototype for 'kdb_kbd_cleanup_state' [-Werror=missing-prototypes] Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- kernel/debug/kdb/kdb_keyboard.c | 2 ++ 1 file changed, 2 insertions(+)
Comments
Hi, On Wed, May 17, 2023 at 5:48 AM Arnd Bergmann <arnd@kernel.org> wrote: > > From: Arnd Bergmann <arnd@arndb.de> > > The kdb_kbd_cleanup_state() is called from another file through > the kdb_private.h file, but that is not included before the > definition, causing a W=1 warning: > > kernel/debug/kdb/kdb_keyboard.c:198:6: error: no previous prototype for 'kdb_kbd_cleanup_state' [-Werror=missing-prototypes] > > Signed-off-by: Arnd Bergmann <arnd@arndb.de> > --- > kernel/debug/kdb/kdb_keyboard.c | 2 ++ > 1 file changed, 2 insertions(+) Reviewed-by: Douglas Anderson <dianders@chromium.org>
diff --git a/kernel/debug/kdb/kdb_keyboard.c b/kernel/debug/kdb/kdb_keyboard.c index f87c750d3eb3..3c2987f46f6e 100644 --- a/kernel/debug/kdb/kdb_keyboard.c +++ b/kernel/debug/kdb/kdb_keyboard.c @@ -13,6 +13,8 @@ #include <linux/ctype.h> #include <linux/io.h> +#include "kdb_private.h" + /* Keyboard Controller Registers on normal PCs. */ #define KBD_STATUS_REG 0x64 /* Status register (R) */