[<prev] [next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.10.1609161537560.3049@hadrien>
Date: Fri, 16 Sep 2016 15:39:09 +0200 (CEST)
From: Julia Lawall <julia.lawall@...6.fr>
To: Netanel Belgazal <netanel@...apurnalabs.com>
cc: netdev@...r.kernel.org, kbuild-all@...org
Subject: [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.
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
Powered by blists - more mailing lists