]> git.baikalelectronics.ru Git - kernel.git/commit
scripts/kernel-doc: Fix struct and struct field attribute processing
authorSakari Ailus <sakari.ailus@linux.intel.com>
Thu, 22 Nov 2018 11:06:04 +0000 (13:06 +0200)
committerJonathan Corbet <corbet@lwn.net>
Sun, 25 Nov 2018 19:35:45 +0000 (12:35 -0700)
commiteb87b8026d473d5d8638ec39f25c166bec1a12d1
treed71356ec115b2959c90bc0ca38256076016f0eb1
parenta03652c893476b1a9924cebc7ae7db7131cb0cb8
scripts/kernel-doc: Fix struct and struct field attribute processing

The kernel-doc attempts to clear the struct and struct member attributes
from the API documentation it produces. It falls short of the job in the
following respects:

- extra whitespaces are left where __attribute__((...)) was removed,

- only a single attribute is removed per struct,

- attributes (such as aligned) containing numbers were not removed,

- attributes are only cleared from struct fields, not structs themselves.

This patch addresses these issues by removing the attributes.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
scripts/kernel-doc