Thread (4 messages) flat view 4 messages, 2 authors, 2021-01-06

[cip-dev] [PATCH 4.19.y-cip] spi: spi-mem: Make spi_mem_default_supports_op() static inline

From: "Lad Prabhakar" <prabhakar.mahadev-lad.rj@bp.renesas.com>
Date: 2021-01-06 13:22:30
Subsystem: spi subsystem, the rest · Maintainers: Mark Brown, Linus Torvalds

From: YueHaibing <redacted>

commit b5881b153bc81d63a5a7e82a35e8a4bdbe1f8c73 upstream.

Stub helper spi_mem_default_supports_op() should
be set to static inline

Signed-off-by: YueHaibing <redacted>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
---
Hi Pavel,

This is a incremental patch on top of series [1], as you pointed out in
patch [2] the function should be static, this patch fixes this issue
and is backported from upstream kernel.

[1] https://patchwork.kernel.org/project/cip-dev/list/?series=409359
[2] https://patchwork.kernel.org/project/cip-dev/patch/20210105135757
    .11069-9-prabhakar.mahadev-lad.rj@bp.renesas.com/

Cheers,
Prabhakar
---
 include/linux/spi/spi-mem.h | 1 +
 1 file changed, 1 insertion(+)
diff --git a/include/linux/spi/spi-mem.h b/include/linux/spi/spi-mem.h
index 762b3974cf9c..46497e742e7f 100644
--- a/include/linux/spi/spi-mem.h
+++ b/include/linux/spi/spi-mem.h
@@ -315,6 +315,7 @@ spi_controller_dma_unmap_mem_op_data(struct spi_controller *ctlr,
 {
 }
 
+static inline
 bool spi_mem_default_supports_op(struct spi_mem *mem,
 				 const struct spi_mem_op *op)
 {
-- 
2.17.1

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help