• Paul Gortmaker's avatar
    clocksource/drivers/mips-gic-timer: Make gic_clocksource_of_init() return int · be5769e2
    Paul Gortmaker authored
    In commit:
    
      d8152bf8 ("clocksource/drivers/mips-gic-timer: Convert init function to return error")
    
    several return values were added to a void function resulting in the following warnings:
    
     clocksource/mips-gic-timer.c: In function 'gic_clocksource_of_init':
     clocksource/mips-gic-timer.c:175:3: warning: 'return' with a value, in function returning void [enabled by default]
     clocksource/mips-gic-timer.c:183:4: warning: 'return' with a value, in function returning void [enabled by default]
     clocksource/mips-gic-timer.c:190:3: warning: 'return' with a value, in function returning void [enabled by default]
     clocksource/mips-gic-timer.c:195:3: warning: 'return' with a value, in function returning void [enabled by default]
     clocksource/mips-gic-timer.c:200:3: warning: 'return' with a value, in function returning void [enabled by default]
     clocksource/mips-gic-timer.c:211:2: warning: 'return' with a value, in function returning void [enabled by default]
     clocksource/mips-gic-timer.c: At top level:
     clocksource/mips-gic-timer.c:213:1: warning: comparison of distinct pointer types lacks a cast [enabled by default]
     clocksource/mips-gic-timer.c: In function 'gic_clocksource_of_init':
     clocksource/mips-gic-timer.c:183:18: warning: ignoring return value of 'PTR_ERR', declared with attribute warn_unused_result [-Wunused-result]
    
    Given that the addition of the return values was intentional, it seems
    that the conversion of the containing function from void to int was
    simply overlooked.
    Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
    Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: linux-mips@linux-mips.org
    Fixes: d8152bf8 ("clocksource/drivers/mips-gic-timer: Convert init function to return error")
    Link: http://lkml.kernel.org/r/1471429296-9053-3-git-send-email-daniel.lezcano@linaro.orgSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
    be5769e2
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
acpi_pm.c Loading commit data...
arm_arch_timer.c Loading commit data...
arm_global_timer.c Loading commit data...
armv7m_systick.c Loading commit data...
asm9260_timer.c Loading commit data...
bcm2835_timer.c Loading commit data...
bcm_kona_timer.c Loading commit data...
cadence_ttc_timer.c Loading commit data...
clksrc-dbx500-prcmu.c Loading commit data...
clksrc-probe.c Loading commit data...
clksrc_st_lpc.c Loading commit data...
clps711x-timer.c Loading commit data...
cs5535-clockevt.c Loading commit data...
dummy_timer.c Loading commit data...
dw_apb_timer.c Loading commit data...
dw_apb_timer_of.c Loading commit data...
em_sti.c Loading commit data...
exynos_mct.c Loading commit data...
fsl_ftm_timer.c Loading commit data...
h8300_timer16.c Loading commit data...
h8300_timer8.c Loading commit data...
h8300_tpu.c Loading commit data...
i8253.c Loading commit data...
meson6_timer.c Loading commit data...
metag_generic.c Loading commit data...
mips-gic-timer.c Loading commit data...
mmio.c Loading commit data...
moxart_timer.c Loading commit data...
mps2-timer.c Loading commit data...
mtk_timer.c Loading commit data...
mxs_timer.c Loading commit data...
nomadik-mtu.c Loading commit data...
numachip.c Loading commit data...
pxa_timer.c Loading commit data...
qcom-timer.c Loading commit data...
rockchip_timer.c Loading commit data...
samsung_pwm_timer.c Loading commit data...
scx200_hrt.c Loading commit data...
sh_cmt.c Loading commit data...
sh_mtu2.c Loading commit data...
sh_tmu.c Loading commit data...
sun4i_timer.c Loading commit data...
tango_xtal.c Loading commit data...
tcb_clksrc.c Loading commit data...
tegra20_timer.c Loading commit data...
time-armada-370-xp.c Loading commit data...
time-efm32.c Loading commit data...
time-lpc32xx.c Loading commit data...
time-orion.c Loading commit data...
time-pistachio.c Loading commit data...
timer-atlas7.c Loading commit data...
timer-atmel-pit.c Loading commit data...
timer-atmel-st.c Loading commit data...
timer-digicolor.c Loading commit data...
timer-imx-gpt.c Loading commit data...
timer-integrator-ap.c Loading commit data...
timer-keystone.c Loading commit data...
timer-nps.c Loading commit data...
timer-oxnas-rps.c Loading commit data...
timer-prima2.c Loading commit data...
timer-sp.h Loading commit data...
timer-sp804.c Loading commit data...
timer-stm32.c Loading commit data...
timer-sun5i.c Loading commit data...
timer-ti-32k.c Loading commit data...
timer-u300.c Loading commit data...
versatile.c Loading commit data...
vf_pit_timer.c Loading commit data...
vt8500_timer.c Loading commit data...
zevio-timer.c Loading commit data...