|
@@ -73,7 +73,7 @@ EXPORT_SYMBOL(sg_nents);
|
|
|
**/
|
|
|
struct scatterlist *sg_last(struct scatterlist *sgl, unsigned int nents)
|
|
|
{
|
|
|
-#ifndef ARCH_HAS_SG_CHAIN
|
|
|
+#ifndef CONFIG_ARCH_HAS_SG_CHAIN
|
|
|
struct scatterlist *ret = &sgl[nents - 1];
|
|
|
#else
|
|
|
struct scatterlist *sg, *ret = NULL;
|
|
@@ -255,7 +255,7 @@ int __sg_alloc_table(struct sg_table *table, unsigned int nents,
|
|
|
|
|
|
if (nents == 0)
|
|
|
return -EINVAL;
|
|
|
-#ifndef ARCH_HAS_SG_CHAIN
|
|
|
+#ifndef CONFIG_ARCH_HAS_SG_CHAIN
|
|
|
if (WARN_ON_ONCE(nents > max_ents))
|
|
|
return -EINVAL;
|
|
|
#endif
|