USB: gadget: udc: fix kernel-doc syntax in file headers
Subsystems (2)
PATCH 1/1 USB: gadget: udc: fix kernel-doc syntax in file headers
The opening comment mark '/**' is used for highlighting the beginning of kernel-doc comments.
The header for drivers/usb/gadget/udc/trace files follows this syntax, but the content inside does not comply with kernel-doc.
This line was probably not meant for kernel-doc parsing, but is parsed due to the presence of kernel-doc like comment syntax(i.e, '/**'), which causes unexpected warning from kernel-doc.
For e.g., running scripts/kernel-doc -none drivers/usb/gadget/udc/trace.h emits:
warning: expecting prototype for udc.c(). Prototype was for TRACE_SYSTEM() instead
Provide a simple fix by replacing this occurrence with general comment format, i.e. '/*', to prevent kernel-doc from parsing it.
--- drivers/usb/gadget/udc/trace.c | 2 +- drivers/usb/gadget/udc/trace.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/usb/gadget/udc/trace.c +1 -1
@@ -1,5 +1,5 @@// SPDX-License-Identifier: GPL-2.0 -/** +/* * trace.c - USB Gadget Framework Trace Support * * Copyright (C) 2016 Intel Corporation
drivers/usb/gadget/udc/trace.h +1 -1
@@ -1,5 +1,5 @@// SPDX-License-Identifier: GPL-2.0 -/** +/* * udc.c - Core UDC Framework * * Copyright (C) 2016 Intel Corporation
Signature · 1 line
2.17.1
Quoted 12 lines · Aditya Srivastava
The opening comment mark '/**' is used for highlighting the beginning of kernel-doc comments.
The header fordrivers/usb/gadget/udc/tracefiles follows this syntax, but the content inside does not comply with kernel-doc.This line was probably not meant for kernel-doc parsing, but is parsed due to the presence of kernel-doc like comment
syntax(i.e, '/**'), which causes unexpected warning from kernel-doc.
For e.g., runningscripts/kernel-doc-nonedrivers/usb/gadget/udc/trace.hemits:
warning: expecting prototype forudc.c(). Prototype was forTRACE_SYSTEM()instead
Quoted 4 lines
Provide a simple fix by replacing this occurrence with general comment format, i.e. '/*', to prevent kernel-doc from parsing it.
Signed-off-by Aditya Srivastava <[email protected]>
Thanks.
Quoted 28 lines
--- drivers/usb/gadget/udc/trace.c | 2 +- drivers/usb/gadget/udc/trace.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)drivers/usb/gadget/udc/trace.c +1
-1@@ -1,5 +1,5 @@// SPDX-License-Identifier: GPL-2.0 -/** +/* * trace.c - USB Gadget Framework Trace Support * * Copyright (C) 2016 Intel Corporation drivers/usb/gadget/udc/trace.h +1
-1@@ -1,5 +1,5 @@// SPDX-License-Identifier: GPL-2.0 -/** +/* * udc.c - Core UDC Framework * * Copyright (C) 2016 Intel Corporation
Signature · 1 line
~Randy
Quoted 12 lines · Aditya Srivastava
The opening comment mark '/**' is used for highlighting the beginning of kernel-doc comments.
The header fordrivers/usb/gadget/udc/tracefiles follows this syntax, but the content inside does not comply with kernel-doc.This line was probably not meant for kernel-doc parsing, but is parsed due to the presence of kernel-doc like comment
syntax(i.e, '/**'), which causes unexpected warning from kernel-doc.
For e.g., runningscripts/kernel-doc-nonedrivers/usb/gadget/udc/trace.hemits:
warning: expecting prototype forudc.c(). Prototype was forTRACE_SYSTEM()instead
Quoted 4 lines
Provide a simple fix by replacing this occurrence with general comment format, i.e. '/*', to prevent kernel-doc from parsing it.
Signed-off-by Aditya Srivastava <[email protected]>
Signature · 1 line
balbi