Skip to contentSkip to conversation

HSI: Remove struct hsi_client private fields from kernel-doc

PATCH In review Javier Martinez Canillas 2 participants 4 messages Oct 8, 2015 – Nov 21, 2015 HSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 HSI: Remove struct hsi_client private fields from kernel-doc

The kernel-doc how to says that structure fields that are inside a "private:" area shouldn't be listed in the generated documentation but the private fields for struct hsi_client private are listed.

This also fixes the following make htmldocs warnings:

.//include/linux/hsi/hsi.h:150: warning: Excess struct/union/enum/typedef member 'e_handler' description in 'hsi_client' .//include/linux/hsi/hsi.h:150: warning: Excess struct/union/enum/typedef member 'pclaimed' description in 'hsi_client' .//include/linux/hsi/hsi.h:150: warning: Excess struct/union/enum/typedef member 'nb' description in 'hsi_client'

---

 include/linux/hsi/hsi.h | 3 ---
 1 file changed, 3 deletions(-)
include/linux/hsi/hsi.h +0 -3
index 5dd60c2e120f..2790591c77cf 100644
@@ -135,9 +135,6 @@ static inline int hsi_register_board_info(struct hsi_board_info const *info,
  * @device: Driver model representation of the device
  * @tx_cfg: HSI TX configuration
  * @rx_cfg: HSI RX configuration
- * @e_handler: Callback for handling port events (RX Wake High/Low)
- * @pclaimed: Keeps tracks if the clients claimed its associated HSI port
- * @nb: Notifier block for port events
  */
 struct hsi_client {
 	struct device		device;
Signature · 1 line
2.4.3
#1 lore raw

Hello Sebastian,

Quoted 23 lines · Javier Martinez Canillas

The kernel-doc how to says that structure fields that are inside a "private:" area shouldn't be listed in the generated documentation but the private fields for struct hsi_client private are listed.

This also fixes the following make htmldocs warnings:

.//include/linux/hsi/hsi.h:150: warning: Excess struct/union/enum/typedef member 'e_handler' description in 'hsi_client' .//include/linux/hsi/hsi.h:150: warning: Excess struct/union/enum/typedef member 'pclaimed' description in 'hsi_client' .//include/linux/hsi/hsi.h:150: warning: Excess struct/union/enum/typedef member 'nb' description in 'hsi_client'

---

 include/linux/hsi/hsi.h | 3 ---
 1 file changed, 3 deletions(-)
include/linux/hsi/hsi.h +0 -0
index 5dd60c2e120f..2790591c77cf 100644

include/linux/hsi/hsi.h static inline int hsi_register_board_info(struct hsi_board_info const *info, · line 140

Quoted 9 lines
include/linux/hsi/hsi.h +0 -3
@@ -135,9 +135,6 @@ static inline int hsi_register_board_info(struct hsi_board_info const *info,
  * @device: Driver model representation of the device
  * @tx_cfg: HSI TX configuration
  * @rx_cfg: HSI RX configuration
- * @e_handler: Callback for handling port events (RX Wake High/Low)
- * @pclaimed: Keeps tracks if the clients claimed its associated HSI port
- * @nb: Notifier block for port events
  */
 struct hsi_client {
 	struct device		device;

Any comments about this patch?

Best regards,

Signature · 3 lines
Javier Martinez Canillas
Open Source Group
Samsung Research America
#2 lore raw
Quoted 29 lines · Javier Martinez Canillas

Hello Sebastian,

Quoted 26 lines · Javier Martinez Canillas

The kernel-doc how to says that structure fields that are inside a "private:" area shouldn't be listed in the generated documentation but the private fields for struct hsi_client private are listed.

This also fixes the following make htmldocs warnings:

.//include/linux/hsi/hsi.h:150: warning: Excess struct/union/enum/typedef member 'e_handler' description in 'hsi_client' .//include/linux/hsi/hsi.h:150: warning: Excess struct/union/enum/typedef member 'pclaimed' description in 'hsi_client' .//include/linux/hsi/hsi.h:150: warning: Excess struct/union/enum/typedef member 'nb' description in 'hsi_client'

---

 include/linux/hsi/hsi.h | 3 ---
 1 file changed, 3 deletions(-)
include/linux/hsi/hsi.h +0 -1
index 5dd60c2e120f..2790591c77cf 100644
@@ -135,9 +135,6 @@ static inline int hsi_register_board_info(struct hsi_board_info const *info,
  * @device: Driver model representation of the device
  * @tx_cfg: HSI TX configuration
  * @rx_cfg: HSI RX configuration
- * @e_handler: Callback for handling port events (RX Wake High/Low)
Quoted 8 lines

include/linux/hsi/hsi.h static inline int hsi_register_board_info(struct hsi_board_info const *info, · line 140

Quoted 6 lines
include/linux/hsi/hsi.h +0 -2
- * @pclaimed: Keeps tracks if the clients claimed its associated HSI port
- * @nb: Notifier block for port events
  */
 struct hsi_client {
 	struct device		device;

Any comments about this patch?

The patch looks fine. I will queue it for 4.5 once 4.4-rc1 has been released.

-- Sebastian

#3 lore raw
In reply to Javier Martinez Canillas

Hi,

Quoted 11 lines · Javier Martinez Canillas

The kernel-doc how to says that structure fields that are inside a "private:" area shouldn't be listed in the generated documentation but the private fields for struct hsi_client private are listed.

This also fixes the following make htmldocs warnings:

.//include/linux/hsi/hsi.h:150: warning: Excess struct/union/enum/typedef member 'e_handler' description in 'hsi_client' .//include/linux/hsi/hsi.h:150: warning: Excess struct/union/enum/typedef member 'pclaimed' description in 'hsi_client' .//include/linux/hsi/hsi.h:150: warning: Excess struct/union/enum/typedef member 'nb' description in 'hsi_client'

Thanks, queued:

https://git.kernel.org/cgit/linux/kernel/git/sre/linux-hsi.git/commit/?h=for-next&id=403c5c0650816375527a6feecfb255d9b494dda3

-- Sebastian