]> git.baikalelectronics.ru Git - kernel.git/commit
kernel-doc: add support for ____cacheline_aligned attribute
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 10 Sep 2020 18:54:15 +0000 (19:54 +0100)
committerJonathan Corbet <corbet@lwn.net>
Wed, 16 Sep 2020 18:27:28 +0000 (12:27 -0600)
commit852a7c64047511f4a655ed3e8e5b4d3fd40af7d3
tree3251a1c607d2533f7f461f39e576f2bc55cbe1b2
parente676608a29d18d996989d8b82220905f6a081e61
kernel-doc: add support for ____cacheline_aligned attribute

Subroutine dump_struct uses type attributes to check if the struct
syntax is valid. Then, it removes all attributes before using it for
output. `____cacheline_aligned` is an attribute that is
not included in both steps. Add it, since it is used by kernel structs.

Based on previous patch to add ____cacheline_aligned_in_smp.
Motivated by patches to reorder this attribute to before the
variable name.   Whilst we could do that in all cases, that would
be a massive change and it is more common in the kernel to place
this particular attribute after the variable name. A quick grep
suggests approximately 400 instances of which 341 have this
attribute just before a semicolon and hence after the variable name.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20200910185415.653139-1-jic23@kernel.org
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
scripts/kernel-doc