net: skbuff: fix compile error in skb_panic()
authorJames Hogan <james.hogan@imgtec.com>
Wed, 13 Feb 2013 11:20:27 +0000 (11:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Feb 2013 16:52:04 +0000 (11:52 -0500)
commit99d5851eefe589346c976a4b539ee498267bc5fd
tree9b56c9c0f956a08b6ed47950d85c9ab824fda48a
parentc6d14ff11bec4c02601be198c84a5c76d1af90fc
net: skbuff: fix compile error in skb_panic()

I get the following build error on next-20130213 due to the following
commit:

commit f05de73bf82fbbc00265c06d12efb7273f7dc54a ("skbuff: create
skb_panic() function and its wrappers").

It adds an argument called panic to a function that uses the BUG() macro
which tries to call panic, but the argument masks the panic() function
declaration, resulting in the following error (gcc 4.2.4):

net/core/skbuff.c In function 'skb_panic':
net/core/skbuff.c +126 : error: called object 'panic' is not a function

This is fixed by renaming the argument to msg.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Jean Sacren <sakiwit@gmail.com>
Cc: Jiri Pirko <jiri@resnulli.us>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c