VisionFive2 Linux kernel

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

More than 9999 Commits   32 Branches   54 Tags
author: Christoph Hellwig <hch@lst.de> 2018-11-09 09:51:00 +0100 committer: Christoph Hellwig <hch@lst.de> 2018-12-06 07:04:56 -0800 commit: 7c703e54cc71df5baa962e24a5663d88173bba5c parent: b14b9d25a3c707c85e7e31e15766a71365b52ab7
Commit Summary:
arch: switch the default on ARCH_HAS_SG_CHAIN
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/lib/scatterlist.c b/lib/scatterlist.c
index 7c6096a71704..9ba349e775ef 100644
--- a/lib/scatterlist.c
+++ b/lib/scatterlist.c
@@ -271,7 +271,7 @@ int __sg_alloc_table(struct sg_table *table, unsigned int nents,
 
 	if (nents == 0)
 		return -EINVAL;
-#ifndef CONFIG_ARCH_HAS_SG_CHAIN
+#ifdef CONFIG_ARCH_NO_SG_CHAIN
 	if (WARN_ON_ONCE(nents > max_ents))
 		return -EINVAL;
 #endif