VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   57 Tags
author: Sami Tolvanen <samitolvanen@google.com> 2021-04-08 11:28:34 -0700 committer: Kees Cook <keescook@chromium.org> 2021-04-08 16:04:22 -0700 commit: 4f0f586bf0c898233d8f316f471a21db2abd522d parent: 9f5b4009980f369acb80b72235b2d66c3fd6eca6
Commit Summary:
treewide: Change list_sort to use const pointers
Diffstat:
1 file changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/sram.c b/drivers/misc/sram.c
index 6c1a23cb3e8c..202bf951e909 100644
--- a/drivers/misc/sram.c
+++ b/drivers/misc/sram.c
@@ -144,8 +144,8 @@ static void sram_free_partitions(struct sram_dev *sram)
 	}
 }
 
-static int sram_reserve_cmp(void *priv, struct list_head *a,
-					struct list_head *b)
+static int sram_reserve_cmp(void *priv, const struct list_head *a,
+					const struct list_head *b)
 {
 	struct sram_reserve *ra = list_entry(a, struct sram_reserve, list);
 	struct sram_reserve *rb = list_entry(b, struct sram_reserve, list);