public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [net-next:master 58/374] drivers/net/ethernet/amazon/ena/ena_netdev.c:3026:1-11: Use setup_timer function for function on line 3028.
@ 2016-09-16 13:39 Julia Lawall
  0 siblings, 0 replies; only message in thread
From: Julia Lawall @ 2016-09-16 13:39 UTC (permalink / raw)
  To: Netanel Belgazal; +Cc: netdev, kbuild-all

Setup_timer could be used instead of the cvall to init_timer and the
initializations of the function and data fields.

julia


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head:   84ce3da1bfd6fd12fce3cd06691e405a36f72cde
commit: 1738cd3ed342294360d6a74d4e58800004bff854 [58/374] net: ena: Add a driver for Amazon Elastic Network Adapters (ENA)
:::::: branch date: 5 hours ago
:::::: commit date: 5 weeks ago

>> drivers/net/ethernet/amazon/ena/ena_netdev.c:3026:1-11: Use setup_timer function for function on line 3028.

git remote add net-next https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git
git remote update net-next
git checkout 1738cd3ed342294360d6a74d4e58800004bff854
vim +3026 drivers/net/ethernet/amazon/ena/ena_netdev.c

1738cd3e Netanel Belgazal 2016-08-10  3020  	INIT_WORK(&adapter->suspend_io_task, ena_device_io_suspend);
1738cd3e Netanel Belgazal 2016-08-10  3021  	INIT_WORK(&adapter->resume_io_task, ena_device_io_resume);
1738cd3e Netanel Belgazal 2016-08-10  3022  	INIT_WORK(&adapter->reset_task, ena_fw_reset_device);
1738cd3e Netanel Belgazal 2016-08-10  3023
1738cd3e Netanel Belgazal 2016-08-10  3024  	adapter->last_keep_alive_jiffies = jiffies;
1738cd3e Netanel Belgazal 2016-08-10  3025
1738cd3e Netanel Belgazal 2016-08-10 @3026  	init_timer(&adapter->timer_service);
1738cd3e Netanel Belgazal 2016-08-10  3027  	adapter->timer_service.expires = round_jiffies(jiffies + HZ);
1738cd3e Netanel Belgazal 2016-08-10 @3028  	adapter->timer_service.function = ena_timer_service;
1738cd3e Netanel Belgazal 2016-08-10  3029  	adapter->timer_service.data = (unsigned long)adapter;
1738cd3e Netanel Belgazal 2016-08-10  3030
1738cd3e Netanel Belgazal 2016-08-10  3031  	add_timer(&adapter->timer_service);

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-09-16 13:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-16 13:39 [net-next:master 58/374] drivers/net/ethernet/amazon/ena/ena_netdev.c:3026:1-11: Use setup_timer function for function on line 3028 Julia Lawall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox