X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=lib%2Fscatterlist.c;h=9ba349e775ef0839b11eb18d1bc671357ab68ae3;hb=1205b62390eed4e747232d183fbf412a5aecacd9;hp=7c6096a7170486449736d82a37fbd50326ac169e;hpb=4c11d7675827421194325b82b20ddc6c8b86c83d;p=linux.git 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