staging: vchiq_core: Drop vchiq_pagelist.h
authorUmang Jain <umang.jain@ideasonboard.com>
Thu, 19 Sep 2024 14:21:30 +0000 (19:51 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Oct 2024 09:59:07 +0000 (11:59 +0200)
vchiq_pagelist.h only defines one struct and a couple of macros.
It can be merged with vchiq_core since all the pagelist related
function helpers are now in vchiq_core for bulk transfers.

Move the struct and related macros to vchiq_core header and drop
vchiq_pagelist.h.

Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/20240919142130.1331495-4-umang.jain@ideasonboard.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_pagelist.h [deleted file]

index 586c41cd1ed5cb51efdf31fba1676602aba4b900..1281f3bc5548eebc41d699dfe5d9d3a0e84543d2 100644 (file)
 #define MAKE_REMOTE_USE                        (VCHIQ_MSG_REMOTE_USE << TYPE_SHIFT)
 #define MAKE_REMOTE_USE_ACTIVE         (VCHIQ_MSG_REMOTE_USE_ACTIVE << TYPE_SHIFT)
 
+#define PAGELIST_WRITE                 0
+#define PAGELIST_READ                  1
+#define PAGELIST_READ_WITH_FRAGMENTS   2
+
 #define BELL2  0x08
 
 /* Ensure the fields are wide enough */
index 6662dd21e8279894b008a9da45d53e035b2a10ea..400472f1aa068788915285faf75b6c2f45aa674d 100644 (file)
@@ -17,7 +17,6 @@
 
 #include "../../include/linux/raspberrypi/vchiq.h"
 #include "vchiq_cfg.h"
-#include "vchiq_pagelist.h"
 
 /* Do this so that we can test-build the code on non-rpi systems */
 #if IS_ENABLED(CONFIG_RASPBERRYPI_FIRMWARE)
@@ -411,6 +410,16 @@ struct vchiq_state {
        struct opaque_platform_state *platform_state;
 };
 
+struct pagelist {
+       u32 length;
+       u16 type;
+       u16 offset;
+       u32 addrs[1];   /* N.B. 12 LSBs hold the number
+                        * of following pages at consecutive
+                        * addresses.
+                        */
+};
+
 struct vchiq_pagelist_info {
        struct pagelist *pagelist;
        size_t pagelist_buffer_size;
diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_pagelist.h b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_pagelist.h
deleted file mode 100644 (file)
index ebd12bf..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
-/* Copyright (c) 2010-2012 Broadcom. All rights reserved. */
-
-#ifndef VCHIQ_PAGELIST_H
-#define VCHIQ_PAGELIST_H
-
-#define PAGELIST_WRITE 0
-#define PAGELIST_READ 1
-#define PAGELIST_READ_WITH_FRAGMENTS 2
-
-struct pagelist {
-       u32 length;
-       u16 type;
-       u16 offset;
-       u32 addrs[1];   /* N.B. 12 LSBs hold the number
-                        * of following pages at consecutive
-                        * addresses.
-                        */
-};
-
-#endif /* VCHIQ_PAGELIST_H */