Skip to content

Commit

Permalink
[IPCOMP]: Fix false smp_processor_id warning
Browse files Browse the repository at this point in the history
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: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Herbert Xu authored and David S. Miller committed Aug 18, 2005
1 parent cb94c62 commit 6fc8b9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion net/ipv4/ipcomp.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ static struct crypto_tfm **ipcomp_alloc_tfms(const char *alg_name)
int cpu;

/* 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) {
struct crypto_tfm *tfm;
Expand Down
2 changes: 1 addition & 1 deletion net/ipv6/ipcomp6.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ static struct crypto_tfm **ipcomp6_alloc_tfms(const char *alg_name)
int cpu;

/* 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) {
struct crypto_tfm *tfm;
Expand Down

0 comments on commit 6fc8b9e

Please sign in to comment.