From: Alex Elder <hidden> Date: 2021-01-07 23:35:05
This series adds the IPA driver as a possible target when
the COMPILE_TEST configuration is enabled. Two small changes to
dependent subsystems needed to be made for this to work.
Version 2 of this series adds one more patch, which adds the
declation of struct page to "gsi_trans.h". The Intel kernel test
robot reported that this was a problem for the alpha build.
David/Jakub, please take all four of these patches through the
net-next tree if you find them acceptable.
Thanks.
-Alex
Alex Elder (4):
remoteproc: qcom: expose types for COMPILE_TEST
soc: qcom: mdt_loader: define stubs for COMPILE_TEST
net: ipa: declare the page pointer type in "gsi_trans.h"
net: ipa: support COMPILE_TEST
drivers/net/ipa/Kconfig | 10 +++++---
drivers/net/ipa/gsi_trans.h | 1 +
include/linux/remoteproc/qcom_rproc.h | 4 +--
include/linux/soc/qcom/mdt_loader.h | 35 +++++++++++++++++++++++++++
4 files changed, 44 insertions(+), 6 deletions(-)
--
2.20.1
From: Alex Elder <hidden> Date: 2021-01-07 23:35:45
The second argument to gsi_trans_page_add() is a page pointer.
That declaration is found in header files used by "gsi_trans.h" for
(at least) arm64 and x86 builds, but apparently not for alpha
builds.
Fix this by adding a declaration of struct page to the top of
"gsi_trans.h".
Reported-by: kernel test robot <redacted>
Signed-off-by: Alex Elder <redacted>
---
drivers/net/ipa/gsi_trans.h | 1 +
1 file changed, 1 insertion(+)
From: Alex Elder <hidden> Date: 2021-01-07 23:35:45
Stub functions are defined for SSR notifier registration in case
QCOM_RPROC_COMMON is not configured. As a result, code that uses
these functions can link successfully even if the common remoteproc
code is not built.
Code that registers an SSR notifier function likely needs the
types defined in "qcom_rproc.h", but those are only exposed if
QCOM_RPROC_COMMON is enabled.
Rearrange the conditional definition so the qcom_ssr_notify_data
structure and qcom_ssr_notify_type enumerated type are defined
whether or not QCOM_RPROC_COMMON is enabled.
Reviewed-by: Bjorn Andersson <redacted>
Signed-off-by: Alex Elder <redacted>
---
include/linux/remoteproc/qcom_rproc.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
From: Alex Elder <hidden> Date: 2021-01-07 23:35:45
Define stub functions for the exposed MDT functions in case
QCOM_MDT_LOADER is not configured. This allows users of these
functions to link correctly for COMPILE_TEST builds without
QCOM_SCM enabled.
Reviewed-by: Bjorn Andersson <redacted>
Signed-off-by: Alex Elder <redacted>
---
include/linux/soc/qcom/mdt_loader.h | 35 +++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
From: Alex Elder <hidden> Date: 2021-01-07 23:36:17
Arrange for the IPA driver to be built when COMPILE_TEST is enabled.
Update the help text to reflect that we support two Qualcomm SoCs.
Suggested-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Alex Elder <redacted>
---
drivers/net/ipa/Kconfig | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
Arrange for the IPA driver to be built when COMPILE_TEST is enabled.
Update the help text to reflect that we support two Qualcomm SoCs.
Suggested-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Alex Elder <redacted>
From: Jakub Kicinski <kuba@kernel.org> Date: 2021-01-09 21:54:39
On Thu, 7 Jan 2021 17:34:00 -0600 Alex Elder wrote:
This series adds the IPA driver as a possible target when
the COMPILE_TEST configuration is enabled. Two small changes to
dependent subsystems needed to be made for this to work.
Version 2 of this series adds one more patch, which adds the
declation of struct page to "gsi_trans.h". The Intel kernel test
robot reported that this was a problem for the alpha build.
David/Jakub, please take all four of these patches through the
net-next tree if you find them acceptable.