NFC: nfcmrvl: fix kernel-doc syntax in file headers
Subsystems (4)
PATCH 1/1 NFC: nfcmrvl: 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/nfc/nfcmrvl 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 warnings from kernel-doc.
For e.g., running scripts/kernel-doc -none on drivers/nfc/nfcmrvl/spi.c
causes warning:
warning: expecting prototype for Marvell NFC(). Prototype was for SPI_WAIT_HANDSHAKE() instead
Provide a simple fix by replacing such occurrences with general comment format, i.e. '/*', to prevent kernel-doc from parsing it.
--- drivers/nfc/nfcmrvl/fw_dnld.h | 2 +- drivers/nfc/nfcmrvl/i2c.c | 2 +- drivers/nfc/nfcmrvl/nfcmrvl.h | 2 +- drivers/nfc/nfcmrvl/spi.c | 2 +- drivers/nfc/nfcmrvl/uart.c | 2 +- drivers/nfc/nfcmrvl/usb.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-)
drivers/nfc/nfcmrvl/fw_dnld.h +1 -1
@@ -1,4 +1,4 @@ -/** +/* * Marvell NFC driver: Firmware downloader * * Copyright (C) 2015, Marvell International Ltd.
drivers/nfc/nfcmrvl/i2c.c +1 -1
@@ -1,4 +1,4 @@ -/** +/* * Marvell NFC-over-I2C driver: I2C interface related functions * * Copyright (C) 2015, Marvell International Ltd.
drivers/nfc/nfcmrvl/nfcmrvl.h +1 -1
@@ -1,4 +1,4 @@ -/** +/* * Marvell NFC driver * * Copyright (C) 2014-2015, Marvell International Ltd.
drivers/nfc/nfcmrvl/spi.c +1 -1
@@ -1,4 +1,4 @@ -/** +/* * Marvell NFC-over-SPI driver: SPI interface related functions * * Copyright (C) 2015, Marvell International Ltd.
drivers/nfc/nfcmrvl/uart.c +1 -1
@@ -1,4 +1,4 @@ -/** +/* * Marvell NFC-over-UART driver * * Copyright (C) 2015, Marvell International Ltd.
drivers/nfc/nfcmrvl/usb.c +1 -1
@@ -1,4 +1,4 @@ -/** +/* * Marvell NFC-over-USB driver: USB interface related functions * * Copyright (C) 2014, Marvell International Ltd.
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/nfc/nfcmrvlfollows 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 commentsyntax(i.e, '/**'), which
causes unexpected warnings from kernel-doc.
For e.g., runningscripts/kernel-doc-none ondrivers/nfc/nfcmrvl/spi.c
causes warning:
warning: expecting prototype for MarvellNFC(). Prototype was forSPI_WAIT_HANDSHAKE()instead
Quoted 4 lines
Provide a simple fix by replacing such occurrences with general comment format, i.e. '/*', to prevent kernel-doc from parsing it.
Signed-off-by Aditya Srivastava <[email protected]>
Thanks.
Quoted 70 lines
--- drivers/nfc/nfcmrvl/fw_dnld.h | 2 +- drivers/nfc/nfcmrvl/i2c.c | 2 +- drivers/nfc/nfcmrvl/nfcmrvl.h | 2 +- drivers/nfc/nfcmrvl/spi.c | 2 +- drivers/nfc/nfcmrvl/uart.c | 2 +- drivers/nfc/nfcmrvl/usb.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-)drivers/nfc/nfcmrvl/fw_dnld.h +1
-1@@ -1,4 +1,4 @@ -/** +/* * Marvell NFC driver: Firmware downloader * * Copyright (C) 2015, Marvell International Ltd. drivers/nfc/nfcmrvl/i2c.c +1
-1@@ -1,4 +1,4 @@ -/** +/* * Marvell NFC-over-I2C driver: I2C interface related functions * * Copyright (C) 2015, Marvell International Ltd. drivers/nfc/nfcmrvl/nfcmrvl.h +1
-1@@ -1,4 +1,4 @@ -/** +/* * Marvell NFC driver * * Copyright (C) 2014-2015, Marvell International Ltd. drivers/nfc/nfcmrvl/spi.c +1
-1@@ -1,4 +1,4 @@ -/** +/* * Marvell NFC-over-SPI driver: SPI interface related functions * * Copyright (C) 2015, Marvell International Ltd. drivers/nfc/nfcmrvl/uart.c +1
-1@@ -1,4 +1,4 @@ -/** +/* * Marvell NFC-over-UART driver * * Copyright (C) 2015, Marvell International Ltd. drivers/nfc/nfcmrvl/usb.c +1
-1@@ -1,4 +1,4 @@ -/** +/* * Marvell NFC-over-USB driver: USB interface related functions * * Copyright (C) 2014, Marvell International Ltd.
Signature · 1 line
~Randy
This patch was applied to netdev/net.git (refs/heads/master):
Hello:
This patch was applied to netdev/net.git (refs/heads/master):
Quoted 5 lines · On Mon, 24 May 2021 02:39:09 +0530 you wrote:
The opening comment mark '/**' is used for highlighting the beginning of kernel-doc comments.
The header fordrivers/nfc/nfcmrvlfollows this syntax, but the content inside does not comply with kernel-doc.
Quoted 8 lines
This line was probably not meant for kernel-doc parsing, but is parsed
due to the presence of kernel-doc like commentsyntax(i.e, '/**'), which
causes unexpected warnings from kernel-doc.
For e.g., runningscripts/kernel-doc-none ondrivers/nfc/nfcmrvl/spi.c
causes warning:
warning: expecting prototype for MarvellNFC(). Prototype was forSPI_WAIT_HANDSHAKE()instead[...]
Here is the summary with links:
- NFC: nfcmrvl: fix kernel-doc syntax in file headers
https://git.kernel.org/netdev/net/c/4dd649d130c6
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html