Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'firewire-update' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394

Pull FireWire updates from Stefan Richter:

- another y2038 fix

- janitorial code movement

* tag 'firewire-update' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394:
firewire: core: code cleanup after vm_map_pages_zero introduction
firewire: ohci: stop using get_seconds() for BUS_TIME

+3 -11
+2 -1
drivers/firewire/core-cdev.c
··· 1686 1686 if (ret < 0) 1687 1687 goto fail; 1688 1688 1689 - ret = fw_iso_buffer_map_vma(&client->buffer, vma); 1689 + ret = vm_map_pages_zero(vma, client->buffer.pages, 1690 + client->buffer.page_count); 1690 1691 if (ret < 0) 1691 1692 goto fail; 1692 1693
-7
drivers/firewire/core-iso.c
··· 91 91 } 92 92 EXPORT_SYMBOL(fw_iso_buffer_init); 93 93 94 - int fw_iso_buffer_map_vma(struct fw_iso_buffer *buffer, 95 - struct vm_area_struct *vma) 96 - { 97 - return vm_map_pages_zero(vma, buffer->pages, 98 - buffer->page_count); 99 - } 100 - 101 94 void fw_iso_buffer_destroy(struct fw_iso_buffer *buffer, 102 95 struct fw_card *card) 103 96 {
-2
drivers/firewire/core.h
··· 158 158 int fw_iso_buffer_alloc(struct fw_iso_buffer *buffer, int page_count); 159 159 int fw_iso_buffer_map_dma(struct fw_iso_buffer *buffer, struct fw_card *card, 160 160 enum dma_data_direction direction); 161 - int fw_iso_buffer_map_vma(struct fw_iso_buffer *buffer, 162 - struct vm_area_struct *vma); 163 161 164 162 165 163 /* -topology */
+1 -1
drivers/firewire/ohci.c
··· 1752 1752 1753 1753 if (unlikely(!ohci->bus_time_running)) { 1754 1754 reg_write(ohci, OHCI1394_IntMaskSet, OHCI1394_cycle64Seconds); 1755 - ohci->bus_time = (lower_32_bits(get_seconds()) & ~0x7f) | 1755 + ohci->bus_time = (lower_32_bits(ktime_get_seconds()) & ~0x7f) | 1756 1756 (cycle_time_seconds & 0x40); 1757 1757 ohci->bus_time_running = true; 1758 1758 }