• Hidetoshi Seto's avatar
    virtio-9p: fix build on !CONFIG_UTIMENSAT · 38671423
    Hidetoshi Seto authored
    This patch introduce a fallback mechanism for old systems that do not
    support utimensat().  This fix build failure with following warnings:
    
    hw/virtio-9p-local.c: In function 'local_utimensat':
    hw/virtio-9p-local.c:479: warning: implicit declaration of function 'utimensat'
    hw/virtio-9p-local.c:479: warning: nested extern declaration of 'utimensat'
    
    and:
    
    hw/virtio-9p.c: In function 'v9fs_setattr_post_chmod':
    hw/virtio-9p.c:1410: error: 'UTIME_NOW' undeclared (first use in this function)
    hw/virtio-9p.c:1410: error: (Each undeclared identifier is reported only once
    hw/virtio-9p.c:1410: error: for each function it appears in.)
    hw/virtio-9p.c:1413: error: 'UTIME_OMIT' undeclared (first use in this function)
    hw/virtio-9p.c: In function 'v9fs_wstat_post_chmod':
    hw/virtio-9p.c:2905: error: 'UTIME_OMIT' undeclared (first use in this function)
    
    [NOTE: At this time virtio-9p is only user of utimensat(), and is available
           only when host is linux and CONFIG_VIRTFS is defined.  So there are
           no similar warning for win32.  Please provide a wrapper for win32 in
           oslib-win32.c if new user really requires it.]
    
    v5:
      - Allow fallback on runtime
      - Move qemu_utimensat() to oslib-posix.c
      - Rebased on latest qemu.git
    v4:
      - Use tv_now.tv_usec
    v3:
      - Use better alternative handling for UTIME_NOW/OMIT
      - Move qemu_utimensat() to cutils.c
    V2:
      - Introduce qemu_utimensat()
    Acked-by: default avatarChris Wright <chrisw@sous-sol.org>
    Acked-by: default avatarM. Mohan Kumar <mohan@in.ibm.com>
    Acked-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
    Signed-off-by: default avatarHidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
    Signed-off-by: default avatarVenkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
    38671423
Name
Last commit
Last update
..
ide Loading commit data...
9p.h Loading commit data...
a9mpcore.c Loading commit data...
ac97.c Loading commit data...
acpi.c Loading commit data...
acpi.h Loading commit data...
acpi_piix4.c Loading commit data...
adb.c Loading commit data...
adlib.c Loading commit data...
ads7846.c Loading commit data...
alpha_palcode.c Loading commit data...
an5206.c Loading commit data...
apb_pci.c Loading commit data...
apb_pci.h Loading commit data...
apic.c Loading commit data...
apic.h Loading commit data...
apm.c Loading commit data...
apm.h Loading commit data...
applesmc.c Loading commit data...
arm-misc.h Loading commit data...
arm11mpcore.c Loading commit data...
arm_boot.c Loading commit data...
arm_gic.c Loading commit data...
arm_pic.c Loading commit data...
arm_sysctl.c Loading commit data...
arm_timer.c Loading commit data...
armv7m.c Loading commit data...
armv7m_nvic.c Loading commit data...
audiodev.h Loading commit data...
axis_dev88.c Loading commit data...
baum.c Loading commit data...
baum.h Loading commit data...
bitbang_i2c.c Loading commit data...
bitbang_i2c.h Loading commit data...
blizzard.c Loading commit data...
blizzard_template.h Loading commit data...
boards.h Loading commit data...
bonito.c Loading commit data...
bt-hci-csr.c Loading commit data...
bt-hci.c Loading commit data...
bt-hid.c Loading commit data...
bt-l2cap.c Loading commit data...
bt-sdp.c Loading commit data...
bt.c Loading commit data...
bt.h Loading commit data...
cbus.c Loading commit data...
cdrom.c Loading commit data...
cirrus_vga.c Loading commit data...
cirrus_vga_rop.h Loading commit data...
cirrus_vga_rop2.h Loading commit data...
cris-boot.c Loading commit data...
cris-boot.h Loading commit data...
cris_pic_cpu.c Loading commit data...
cs4231.c Loading commit data...
cs4231a.c Loading commit data...
cuda.c Loading commit data...
debugcon.c Loading commit data...
dec_pci.c Loading commit data...
dec_pci.h Loading commit data...
device-hotplug.c Loading commit data...
devices.h Loading commit data...
dma.c Loading commit data...
dp8393x.c Loading commit data...
ds1225y.c Loading commit data...
ds1338.c Loading commit data...
dummy_m68k.c Loading commit data...
e1000.c Loading commit data...
e1000_hw.h Loading commit data...
ecc.c Loading commit data...
eccmemctl.c Loading commit data...
eepro100.c Loading commit data...
eeprom93xx.c Loading commit data...
eeprom93xx.h Loading commit data...
elf_ops.h Loading commit data...
empty_slot.c Loading commit data...
empty_slot.h Loading commit data...
es1370.c Loading commit data...
escc.c Loading commit data...
escc.h Loading commit data...
esp.c Loading commit data...
esp.h Loading commit data...
etraxfs.c Loading commit data...
etraxfs.h Loading commit data...
etraxfs_dma.c Loading commit data...
etraxfs_dma.h Loading commit data...
etraxfs_eth.c Loading commit data...
etraxfs_pic.c Loading commit data...
etraxfs_ser.c Loading commit data...
etraxfs_timer.c Loading commit data...
event_notifier.c Loading commit data...
event_notifier.h Loading commit data...
fdc.c Loading commit data...
fdc.h Loading commit data...
file-op-9p.h Loading commit data...
firmware_abi.h Loading commit data...
flash.h Loading commit data...
fmopl.c Loading commit data...
fmopl.h Loading commit data...
framebuffer.c Loading commit data...
framebuffer.h Loading commit data...
fw_cfg.c Loading commit data...
fw_cfg.h Loading commit data...
g364fb.c Loading commit data...
grackle_pci.c Loading commit data...
gt64xxx.c Loading commit data...
gumstix.c Loading commit data...
gus.c Loading commit data...
gusemu.h Loading commit data...
gusemu_hal.c Loading commit data...
gusemu_mixer.c Loading commit data...
gustate.h Loading commit data...
hda-audio.c Loading commit data...
heathrow_pic.c Loading commit data...
hpet.c Loading commit data...
hpet_emul.h Loading commit data...
hw.h Loading commit data...
i2c.c Loading commit data...
i2c.h Loading commit data...
i8254.c Loading commit data...
i8259.c Loading commit data...
ide.h Loading commit data...
integratorcp.c Loading commit data...
intel-hda-defs.h Loading commit data...
intel-hda.c Loading commit data...
intel-hda.h Loading commit data...
ioapic.c Loading commit data...
ioh3420.c Loading commit data...
ioh3420.h Loading commit data...
irq.c Loading commit data...
irq.h Loading commit data...
isa-bus.c Loading commit data...
isa.h Loading commit data...
isa_mmio.c Loading commit data...
ivshmem.c Loading commit data...
jazz_led.c Loading commit data...
lan9118.c Loading commit data...
lance.c Loading commit data...
lm832x.c Loading commit data...
loader.c Loading commit data...
loader.h Loading commit data...
lsi53c895a.c Loading commit data...
m48t59.c Loading commit data...
mac_dbdma.c Loading commit data...
mac_dbdma.h Loading commit data...
mac_nvram.c Loading commit data...
macio.c Loading commit data...
mainstone.c Loading commit data...
mainstone.h Loading commit data...
marvell_88w8618_audio.c Loading commit data...
max111x.c Loading commit data...
max7310.c Loading commit data...
mc146818rtc.c Loading commit data...
mc146818rtc.h Loading commit data...
mcf.h Loading commit data...
mcf5206.c Loading commit data...
mcf5208.c Loading commit data...
mcf_fec.c Loading commit data...
mcf_intc.c Loading commit data...
mcf_uart.c Loading commit data...
microblaze_pic_cpu.c Loading commit data...
mips-bios.h Loading commit data...
mips.h Loading commit data...
mips_addr.c Loading commit data...
mips_cpudevs.h Loading commit data...
mips_fulong2e.c Loading commit data...
mips_int.c Loading commit data...
mips_jazz.c Loading commit data...
mips_malta.c Loading commit data...
mips_mipssim.c Loading commit data...
mips_r4k.c Loading commit data...
mips_timer.c Loading commit data...
mipsnet.c Loading commit data...
mpcore.c Loading commit data...
msi.c Loading commit data...
msi.h Loading commit data...
msix.c Loading commit data...
msix.h Loading commit data...
msmouse.c Loading commit data...
msmouse.h Loading commit data...
mst_fpga.c Loading commit data...
multiboot.c Loading commit data...
multiboot.h Loading commit data...
musicpal.c Loading commit data...
nand.c Loading commit data...
ne2000-isa.c Loading commit data...
ne2000.c Loading commit data...
ne2000.h Loading commit data...
nseries.c Loading commit data...
nvram.h Loading commit data...
omap.h Loading commit data...
omap1.c Loading commit data...
omap2.c Loading commit data...
omap_clk.c Loading commit data...
omap_dma.c Loading commit data...
omap_dss.c Loading commit data...
omap_gpio.c Loading commit data...
omap_gpmc.c Loading commit data...
omap_gptimer.c Loading commit data...
omap_i2c.c Loading commit data...
omap_intc.c Loading commit data...
omap_l4.c Loading commit data...
omap_lcd_template.h Loading commit data...
omap_lcdc.c Loading commit data...
omap_mmc.c Loading commit data...
omap_sdrc.c Loading commit data...
omap_spi.c Loading commit data...
omap_sx1.c Loading commit data...
omap_synctimer.c Loading commit data...
omap_tap.c Loading commit data...
omap_uart.c Loading commit data...
onenand.c Loading commit data...
openpic.c Loading commit data...
openpic.h Loading commit data...
palm.c Loading commit data...
parallel.c Loading commit data...
pc.c Loading commit data...
pc.h Loading commit data...
pc_piix.c Loading commit data...
pci-hotplug.c Loading commit data...
pci.c Loading commit data...
pci.h Loading commit data...
pci_bridge.c Loading commit data...
pci_bridge.h Loading commit data...
pci_host.c Loading commit data...
pci_host.h Loading commit data...
pci_ids.h Loading commit data...
pci_internals.h Loading commit data...
pci_regs.h Loading commit data...
pcie.c Loading commit data...
pcie.h Loading commit data...
pcie_aer.c Loading commit data...
pcie_aer.h Loading commit data...
pcie_host.c Loading commit data...
pcie_host.h Loading commit data...
pcie_port.c Loading commit data...
pcie_port.h Loading commit data...
pcie_regs.h Loading commit data...
pckbd.c Loading commit data...
pcmcia.h Loading commit data...
pcnet-pci.c Loading commit data...
pcnet.c Loading commit data...
pcnet.h Loading commit data...
pcspk.c Loading commit data...
petalogix_s3adsp1800_mmu.c Loading commit data...
pflash_cfi01.c Loading commit data...
pflash_cfi02.c Loading commit data...
piix4.c Loading commit data...
piix_pci.c Loading commit data...
pixel_ops.h Loading commit data...
pl011.c Loading commit data...
pl022.c Loading commit data...
pl031.c Loading commit data...
pl050.c Loading commit data...
pl061.c Loading commit data...
pl080.c Loading commit data...
pl110.c Loading commit data...
pl110_template.h Loading commit data...
pl181.c Loading commit data...
pl190.c Loading commit data...
pm_smbus.c Loading commit data...
pm_smbus.h Loading commit data...
ppc.c Loading commit data...
ppc.h Loading commit data...
ppc405.h Loading commit data...
ppc405_boards.c Loading commit data...
ppc405_uc.c Loading commit data...
ppc440.c Loading commit data...
ppc440.h Loading commit data...
ppc440_bamboo.c Loading commit data...
ppc4xx.h Loading commit data...
ppc4xx_devs.c Loading commit data...
ppc4xx_pci.c Loading commit data...
ppc_mac.h Loading commit data...
ppc_newworld.c Loading commit data...
ppc_oldworld.c Loading commit data...
ppc_prep.c Loading commit data...
ppce500.h Loading commit data...
ppce500_mpc8544ds.c Loading commit data...
ppce500_pci.c Loading commit data...
prep_pci.c Loading commit data...
prep_pci.h Loading commit data...
primecell.h Loading commit data...
ps2.c Loading commit data...
ps2.h Loading commit data...
ptimer.c Loading commit data...
pxa.h Loading commit data...
pxa2xx.c Loading commit data...
pxa2xx_dma.c Loading commit data...
pxa2xx_gpio.c Loading commit data...
pxa2xx_keypad.c Loading commit data...
pxa2xx_lcd.c Loading commit data...
pxa2xx_mmci.c Loading commit data...
pxa2xx_pcmcia.c Loading commit data...
pxa2xx_pic.c Loading commit data...
pxa2xx_template.h Loading commit data...
pxa2xx_timer.c Loading commit data...
qdev-addr.c Loading commit data...
qdev-addr.h Loading commit data...
qdev-properties.c Loading commit data...
qdev.c Loading commit data...
qdev.h Loading commit data...
r2d.c Loading commit data...
rc4030.c Loading commit data...
realview.c Loading commit data...
realview_gic.c Loading commit data...
rtl8139.c Loading commit data...
s390-virtio-bus.c Loading commit data...
s390-virtio-bus.h Loading commit data...
s390-virtio.c Loading commit data...
sb16.c Loading commit data...
sbi.c Loading commit data...
scsi-bus.c Loading commit data...
scsi-defs.h Loading commit data...
scsi-disk.c Loading commit data...
scsi-generic.c Loading commit data...
scsi.h Loading commit data...
sd.c Loading commit data...
sd.h Loading commit data...
serial.c Loading commit data...
sh.h Loading commit data...
sh7750.c Loading commit data...
sh7750_regnames.c Loading commit data...
sh7750_regnames.h Loading commit data...
sh7750_regs.h Loading commit data...
sh_intc.c Loading commit data...
sh_intc.h Loading commit data...
sh_pci.c Loading commit data...
sh_pci.h Loading commit data...
sh_serial.c Loading commit data...
sh_timer.c Loading commit data...
sharpsl.h Loading commit data...
shix.c Loading commit data...
slavio_intctl.c Loading commit data...
slavio_misc.c Loading commit data...
slavio_timer.c Loading commit data...
sm501.c Loading commit data...
sm501_template.h Loading commit data...
smbios.c Loading commit data...
smbios.h Loading commit data...
smbus.c Loading commit data...
smbus.h Loading commit data...
smbus_eeprom.c Loading commit data...
smc91c111.c Loading commit data...
soc_dma.c Loading commit data...
soc_dma.h Loading commit data...
sparc32_dma.c Loading commit data...
sparc32_dma.h Loading commit data...
spitz.c Loading commit data...
ssd0303.c Loading commit data...
ssd0323.c Loading commit data...
ssi-sd.c Loading commit data...
ssi.c Loading commit data...
ssi.h Loading commit data...
stellaris.c Loading commit data...
stellaris_enet.c Loading commit data...
stellaris_input.c Loading commit data...
sun4c_intctl.c Loading commit data...
sun4m.c Loading commit data...
sun4m.h Loading commit data...
sun4m_iommu.c Loading commit data...
sun4u.c Loading commit data...
syborg.c Loading commit data...
syborg.h Loading commit data...
syborg_fb.c Loading commit data...
syborg_interrupt.c Loading commit data...
syborg_keyboard.c Loading commit data...
syborg_pointer.c Loading commit data...
syborg_rtc.c Loading commit data...
syborg_serial.c Loading commit data...
syborg_timer.c Loading commit data...
syborg_virtio.c Loading commit data...
sysbus.c Loading commit data...
sysbus.h Loading commit data...
tc58128.c Loading commit data...
tc6393xb.c Loading commit data...
tc6393xb_template.h Loading commit data...
tcx.c Loading commit data...
tmp105.c Loading commit data...
tosa.c Loading commit data...
tsc2005.c Loading commit data...
tsc210x.c Loading commit data...
tusb6010.c Loading commit data...
twl92230.c Loading commit data...
unin_pci.c Loading commit data...
usb-bt.c Loading commit data...
usb-bus.c Loading commit data...
usb-hid.c Loading commit data...
usb-hub.c Loading commit data...
usb-msd.c Loading commit data...
usb-musb.c Loading commit data...
usb-net.c Loading commit data...
usb-ohci.c Loading commit data...
usb-ohci.h Loading commit data...
usb-serial.c Loading commit data...
usb-uhci.c Loading commit data...
usb-uhci.h Loading commit data...
usb-wacom.c Loading commit data...
usb.c Loading commit data...
usb.h Loading commit data...
versatile_pci.c Loading commit data...
versatilepb.c Loading commit data...
vga-isa-mm.c Loading commit data...
vga-isa.c Loading commit data...
vga-pci.c Loading commit data...
vga.c Loading commit data...
vga_int.h Loading commit data...
vga_template.h Loading commit data...
vhost.c Loading commit data...
vhost.h Loading commit data...
vhost_net.c Loading commit data...
vhost_net.h Loading commit data...
virtex_ml507.c Loading commit data...
virtio-9p-debug.c Loading commit data...
virtio-9p-debug.h Loading commit data...
virtio-9p-local.c Loading commit data...
virtio-9p-posix-acl.c Loading commit data...
virtio-9p-xattr-user.c Loading commit data...
virtio-9p-xattr.c Loading commit data...
virtio-9p-xattr.h Loading commit data...
virtio-9p.c Loading commit data...
virtio-9p.h Loading commit data...
virtio-balloon.c Loading commit data...
virtio-balloon.h Loading commit data...
virtio-blk.c Loading commit data...
virtio-blk.h Loading commit data...
virtio-console.c Loading commit data...
virtio-net.c Loading commit data...
virtio-net.h Loading commit data...
virtio-pci.c Loading commit data...
virtio-serial-bus.c Loading commit data...
virtio-serial.h Loading commit data...
virtio.c Loading commit data...
virtio.h Loading commit data...
vmmouse.c Loading commit data...
vmport.c Loading commit data...
vmware_vga.c Loading commit data...
vmware_vga.h Loading commit data...
vt82c686.c Loading commit data...
vt82c686.h Loading commit data...
watchdog.c Loading commit data...
watchdog.h Loading commit data...
wdt_i6300esb.c Loading commit data...
wdt_ib700.c Loading commit data...
wm8750.c Loading commit data...
xen.h Loading commit data...
xen_backend.c Loading commit data...
xen_backend.h Loading commit data...
xen_blkif.h Loading commit data...
xen_common.h Loading commit data...
xen_console.c Loading commit data...
xen_devconfig.c Loading commit data...
xen_disk.c Loading commit data...
xen_domainbuild.c Loading commit data...
xen_domainbuild.h Loading commit data...
xen_machine_pv.c Loading commit data...
xen_nic.c Loading commit data...
xenfb.c Loading commit data...
xilinx.h Loading commit data...
xilinx_ethlite.c Loading commit data...
xilinx_intc.c Loading commit data...
xilinx_timer.c Loading commit data...
xilinx_uartlite.c Loading commit data...
xio3130_downstream.c Loading commit data...
xio3130_downstream.h Loading commit data...
xio3130_upstream.c Loading commit data...
xio3130_upstream.h Loading commit data...
zaurus.c Loading commit data...