netfilter: nft_meta: use raw_smp_processor_id()
authorPatrick McHardy <kaber@trash.net>
Wed, 25 Mar 2015 08:09:56 +0000 (08:09 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 25 Mar 2015 11:09:40 +0000 (12:09 +0100)
Using smp_processor_id() triggers warnings with PREEMPT_RCU. There is no
point in disabling preemption since we only collect the numeric value,
so use raw_smp_processor_id() instead.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_meta.c

index abe68119a76c5cf7594de49fb7d7d7cbd894c312..5197874372ec4a2055a3f9251f3a3ec248f53fbb 100644 (file)
@@ -153,7 +153,7 @@ void nft_meta_get_eval(const struct nft_expr *expr,
                }
                break;
        case NFT_META_CPU:
-               dest->data[0] = smp_processor_id();
+               dest->data[0] = raw_smp_processor_id();
                break;
        case NFT_META_IIFGROUP:
                if (in == NULL)