Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d87de1f3 authored by Mark Rustad's avatar Mark Rustad Committed by David S. Miller
Browse files

netlink: Fix shadow warning on jiffies



Change formal parameter name to not shadow the global jiffies.

Signed-off-by: default avatarMark Rustad <mark.d.rustad@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f1b714bb
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -949,12 +949,12 @@ static inline int nla_put_flag(struct sk_buff *skb, int attrtype)
 * nla_put_msecs - Add a msecs netlink attribute to a socket buffer
 * @skb: socket buffer to add attribute to
 * @attrtype: attribute type
 * @jiffies: number of msecs in jiffies
 * @njiffies: number of jiffies to convert to msecs
 */
static inline int nla_put_msecs(struct sk_buff *skb, int attrtype,
				unsigned long jiffies)
				unsigned long njiffies)
{
	u64 tmp = jiffies_to_msecs(jiffies);
	u64 tmp = jiffies_to_msecs(njiffies);
	return nla_put(skb, attrtype, sizeof(u64), &tmp);
}