Commit 6fc8b9e7 authored by Herbert Xu's avatar Herbert Xu Committed by David S. Miller

[IPCOMP]: Fix false smp_processor_id warning

This patch fixes a false-positive from debug_smp_processor_id().

The processor ID is only used to look up crypto_tfm objects.
Any processor ID is acceptable here as long as it is one that is
iterated on by for_each_cpu().
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cb94c62c
...@@ -358,7 +358,7 @@ static struct crypto_tfm **ipcomp_alloc_tfms(const char *alg_name) ...@@ -358,7 +358,7 @@ static struct crypto_tfm **ipcomp_alloc_tfms(const char *alg_name)
int cpu; int cpu;
/* This can be any valid CPU ID so we don't need locking. */ /* This can be any valid CPU ID so we don't need locking. */
cpu = smp_processor_id(); cpu = raw_smp_processor_id();
list_for_each_entry(pos, &ipcomp_tfms_list, list) { list_for_each_entry(pos, &ipcomp_tfms_list, list) {
struct crypto_tfm *tfm; struct crypto_tfm *tfm;
......
...@@ -354,7 +354,7 @@ static struct crypto_tfm **ipcomp6_alloc_tfms(const char *alg_name) ...@@ -354,7 +354,7 @@ static struct crypto_tfm **ipcomp6_alloc_tfms(const char *alg_name)
int cpu; int cpu;
/* This can be any valid CPU ID so we don't need locking. */ /* This can be any valid CPU ID so we don't need locking. */
cpu = smp_processor_id(); cpu = raw_smp_processor_id();
list_for_each_entry(pos, &ipcomp6_tfms_list, list) { list_for_each_entry(pos, &ipcomp6_tfms_list, list) {
struct crypto_tfm *tfm; struct crypto_tfm *tfm;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment