Merge branch 'net-ipa-header-hygiene'
authorPaolo Abeni <pabeni@redhat.com>
Thu, 18 Apr 2024 11:01:07 +0000 (13:01 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 18 Apr 2024 11:01:08 +0000 (13:01 +0200)
commit576fedf87bbdb990f0172a26fb33374e2390e5b4
treea7813e0be1181c1207c7b6d18d87aa90ed41c037
parent5cb431dcf8048572e9ffc6c30cdbd8832cbe502d
parent884122775e675985c25702c2da8c8150a764a6c8
Merge branch 'net-ipa-header-hygiene'

Alex Elder says:

====================
net: ipa: header hygiene

The end result of this series is that the list of files included in
every IPA source file will be maintained in sorted order.  This
imposes some consistency that was previously not possible.

If an IPA header file requires a symbol or type declared in another
header, that other header must be included.  E.g., if bool or u32
type is used in a function declaration in an IPA header file, the
IPA header must include <linux/types.h>.

If a type used is just a struct or union *pointer* or enum type (and
no members within these types are needed), then these types only need
to be *declared* within the header that uses it.

This is sufficient, but in addition, this series removes includes of
files that aren't necessary, as well as unneeded type declarations.
====================

Link: https://lore.kernel.org/r/20240416231018.389520-1-elder@linaro.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>