Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4569487pxk; Wed, 30 Sep 2020 06:29:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZEg1YxbxepdIW65yvEj8XqNBpoMuw6RV4Ku1XCFwxkgKqOd7iPTiM4WkoYSZoZI8c1OzI X-Received: by 2002:a17:906:3e14:: with SMTP id k20mr2942765eji.282.1601472561403; Wed, 30 Sep 2020 06:29:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601472561; cv=none; d=google.com; s=arc-20160816; b=voUETq+k8N+9tjq01IfP3A6VM6PHLcQ0O2/RRMLHo9U8vrtjLvD4ebmzD/Xj/Qhzzl vHoPWxuXoByU2mDL+FajM90/EKdv9gLzKa9IUWioHdmUyFEsIPIylrCxPHNkhtRm5z5/ ED0bkZJ7ktWPuLYLLFRtpFpN8Z4Tn8vQOHH3EK0ce9tYUnefWIWcGMYrkBsAzdw9Tw4q H3S9Qgkv1owacS9cwvuUmzw+EHMPdCwZVyrJK5pRUNX/mmJwQMvmwIpmHQbuX33HwV05 HQBxgX7MjctH3Y0csEsEBkcKfRKJQ7wPS54d7YHRx1Nvx4q6dgFoeWImDrproCGJcBRV 7UvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/IgHzWn4nSg8DVxkZTV4WlWg3ylAgKf9MyZjL4YTEj4=; b=vJgUU5OhGn3G+YJm7eN7ux/+zX78pAf1pJ6idsddBCK78J5zrs5rMW06mWFNI21RbP bLspytMKFnfNktcwWFklLm/NWMsrCGgowNaiF+V3ZYzAspSGjqk22UKcKN3Ji/4aPytH yRYOc2CbIWSYSiqDJ7uHUYXHSwd9fn131ZIqdZAvUBkzLbjEBkTaJgmNOLwqc8PaIVCW CzkXu//FLnM7wM452rkUJ7yvWxCcjplfCFi5IRmsnEoFLLtoMXULRbECwDJku+SMyib7 v7pR6qbPU7v5fNNYEIhsOG9zu5+pXG97ESC5Arlja2na2xnfDyVm9wDbS2yBbx8y4EM2 3BXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tXZ0JlA+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cc21si1191592edb.550.2020.09.30.06.28.58; Wed, 30 Sep 2020 06:29:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tXZ0JlA+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1730601AbgI3N1H (ORCPT + 99 others); Wed, 30 Sep 2020 09:27:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:39472 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730245AbgI3NZW (ORCPT ); Wed, 30 Sep 2020 09:25:22 -0400 Received: from mail.kernel.org (unknown [95.90.213.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 685BC23A5B; Wed, 30 Sep 2020 13:25:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601472321; bh=CX3rlxdQVc3k6PHOkJt8dLdN+qjZ7dGnsrqnBqtVq9E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tXZ0JlA+5l6WXjxT0rX5uKx812jdRwpNLqli5zLUc6w+2rvIuHuQKbpJGJmUqqeFo eYu4Dvu8cB+SAvXr9gS/kT6kN99NW4LWsouoeDTXWTtFaM76Sbisg/C5YK7Kbj/5bc kPDdT8qSKpWUfcbTJHZly2lXTiYnGI5oJMeHXZ84= Received: from mchehab by mail.kernel.org with local (Exim 4.94) (envelope-from ) id 1kNc6h-001XKl-IO; Wed, 30 Sep 2020 15:25:19 +0200 From: Mauro Carvalho Chehab To: Linux Doc Mailing List , Jonathan Corbet Cc: Mauro Carvalho Chehab , Daniel Thompson , Douglas Anderson , Jason Wessel , kgdb-bugreport@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: [PATCH v4 41/52] docs: kgdb.rst: fix :c:type: usages Date: Wed, 30 Sep 2020 15:25:04 +0200 Message-Id: <556f72684846c3cc30eb2f0a1e064183d4e1bdc9.1601467849.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Mauro Carvalho Chehab Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Which Sphinx 3, :c:type: can't be used anymore for structs, as this should be used only for typedefs. Rely on automarkup.py for struct references. This file has an special case, though: it uses the tag also to point to an array. Let's use, instead, :c:expr: for such purpose, as it should do the right thing. This should fix this warning: ./Documentation/dev-tools/kgdb.rst:875: WARNING: Unparseable C cross-reference: 'kdb_poll_funcs[]' Invalid C declaration: Expected end of definition. [error at 14] kdb_poll_funcs[] --------------^ Signed-off-by: Mauro Carvalho Chehab --- Documentation/dev-tools/kgdb.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/dev-tools/kgdb.rst b/Documentation/dev-tools/kgdb.rst index c908ef4d3f04..77b688e6a254 100644 --- a/Documentation/dev-tools/kgdb.rst +++ b/Documentation/dev-tools/kgdb.rst @@ -726,7 +726,7 @@ The kernel debugger is organized into a number of components: - contains an arch-specific trap catcher which invokes kgdb_handle_exception() to start kgdb about doing its work - - translation to and from gdb specific packet format to :c:type:`pt_regs` + - translation to and from gdb specific packet format to struct pt_regs - Registration and unregistration of architecture specific trap hooks @@ -846,7 +846,7 @@ invokes a callback in the serial core which in turn uses the callback in the UART driver. When using kgdboc with a UART, the UART driver must implement two -callbacks in the :c:type:`struct uart_ops `. +callbacks in the struct uart_ops. Example from ``drivers/8250.c``:: @@ -875,7 +875,7 @@ kernel when ``CONFIG_KDB_KEYBOARD=y`` is set in the kernel configuration. The core polled keyboard driver for PS/2 type keyboards is in ``drivers/char/kdb_keyboard.c``. This driver is hooked into the debug core when kgdboc populates the callback in the array called -:c:type:`kdb_poll_funcs[]`. The kdb_get_kbd_char() is the top-level +:c:expr:`kdb_poll_funcs[]`. The kdb_get_kbd_char() is the top-level function which polls hardware for single character input. kgdboc and kms -- 2.26.2