Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Tony Prisk <linux@prisktech.co.nz>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Yijing Wang <wangyijing@huawei.com>,
	John Stultz <john.stultz@linaro.org>,
	Thomas Gleixner <tglx@linutronix.de>,
	Linux MIPS Mailing List <linux-mips@linux-mips.org>,
	Daniel Lezcano <daniel.lezcano@linaro.org>,
	Kevin Hilman <khilman@deeprootsystems.com>,
	Benjamin Herrenschmidt <benh@kernel.crashing.org>,
	linux <linux@lists.openrisc.net>, Sekhar Nori <nsekhar@ti.com>,
	Paul Mackerras <paulus@samba.org>,
	"H. Peter Anvin" <hpa@zytor.com>,
	Daniel Walker <dwalker@fifo99.com>,
	Hans-Christian Egtvedt <egtvedt@samfundet.no>,
	Jonas Bonn <jonas@southpole.se>,
	Kukjin Kim <kgene.kim@samsung.com>,
	Russell King <linux@arm.linux.org.uk>,
	Richard Weinberger <richard@nod.at>,
	the arch/x86 maintainers <x86@kernel.org>,
	Tony Lindgren <tony@atomide.com>, Ingo Molnar <mingo@redhat.com>,
	linux-arm-msm@vger.kernel.org,
	David Brown <davidb@codeaurora.org>,
	Haavard Skinnemoen <hskinnemoen@gmail.com>,
	Mike Frysinger <vapier@gentoo.org>,
	uml-devel <user-mode-linux-devel@lists.sourceforge.net>,
	Nicolas Ferre <nicolas.ferre@atmel.com>,
	Jeff Dike <jdike@addtoit.com>, Barry Song <baohua@kernel.org>,
	linux-samsung-soc@vger.kernel.org,
	uml-user <user-mode-linux-user@lists.sourceforge.net>,
	"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	"linux-arm-kernel@lists.infradead.org" 
	<linux-arm-kernel@lists.infradead.org>,
	davinci-linux-open-source@linux.davincidsp.com,
	Michal Simek <monstr@monstr.eu>,
	Jim Cromie <jim.cromie@gmail.com>,
	microblaze-uclinux@itee.uq.edu.au,
	Hanjun Guo <guohanjun@huawei.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Ralf Baechle <ralf@linux-mips.org>,
	Bryan Huntsman <bryanh@codeaurora.org>,
	"uclinux-dist-devel@blackfin.uclinux.org" 
	<uclinux-dist-devel@blackfin.uclinux.org>,
	"linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>
Subject: Re: [PATCH 2/2] clocksource: Make clocksource register functions void
Date: Thu, 23 Jan 2014 21:04:40 +1300	[thread overview]
Message-ID: <52E0CD18.5080104@prisktech.co.nz> (raw)
In-Reply-To: <CAMuHMdUcKb8m71Z7dUo86MQ_KZgPujxsduUUt3Mz8Oke+DLSVw@mail.gmail.com>

On 23/01/14 20:58, Geert Uytterhoeven wrote:
> On Thu, Jan 23, 2014 at 8:45 AM, Tony Prisk <linux@prisktech.co.nz> wrote:
>>>    -static inline int clocksource_register_hz(struct clocksource *cs, u32
>>> hz)
>>> +static inline void clocksource_register_hz(struct clocksource *cs, u32
>>> hz)
>>>    {
>>>          return __clocksource_register_scale(cs, 1, hz);
>>>    }
>>
>> This doesn't make sense - you are still returning a value on a function
>> declared void, and the return is now from a function that doesn't return
>> anything either ?!?!
>> Doesn't this throw a compile-time warning??
> No, passing on void in functions returning void doesn't cause compiler
> warnings.
>
> Gr{oetje,eeting}s,
>
>                          Geert
>
> --
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
>
> In personal conversations with technical people, I call myself a hacker. But
> when I'm talking to journalists I just say "programmer" or something like that.
>                                  -- Linus Torvalds
Doesn't seem right to me (even if there is no warning) but that's 
probably because I used to program in Pascal where functions with no 
return were 'procedures' :)
Whether it needs to be changed or not:

For the vt8500 part -
Acked-by: Tony Prisk <linux@prisktech.co.nz>

Regards
Tony Prisk

  parent reply	other threads:[~2014-01-23  8:04 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-23  7:12 [PATCH 2/2] clocksource: Make clocksource register functions void Yijing Wang
2014-01-23  7:12 ` Yijing Wang
2014-01-23  7:40 ` Hans-Christian Egtvedt
2014-01-23  7:45 ` Tony Prisk
2014-01-23  7:58   ` Geert Uytterhoeven
2014-01-23  7:58     ` Geert Uytterhoeven
2014-01-23  8:04     ` Tony Prisk [this message]
2014-01-23  8:04       ` Tony Prisk
2014-01-23  8:17       ` Yijing Wang
2014-01-23  8:17         ` Yijing Wang
2014-01-23 11:40   ` David Laight
2014-01-23 11:40     ` David Laight
2014-02-05 20:40     ` Thomas Gleixner
2014-02-05 20:40       ` Thomas Gleixner
2014-02-10  1:13       ` Yijing Wang
2014-02-10  1:13         ` Yijing Wang
2014-01-23  8:40 ` Daniel Lezcano
2014-01-23  9:01   ` Yijing Wang
2014-01-23  9:01     ` Yijing Wang
2014-02-05 20:39   ` Thomas Gleixner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52E0CD18.5080104@prisktech.co.nz \
    --to=linux@prisktech.co.nz \
    --cc=baohua@kernel.org \
    --cc=benh@kernel.crashing.org \
    --cc=bryanh@codeaurora.org \
    --cc=daniel.lezcano@linaro.org \
    --cc=davidb@codeaurora.org \
    --cc=davinci-linux-open-source@linux.davincidsp.com \
    --cc=dwalker@fifo99.com \
    --cc=egtvedt@samfundet.no \
    --cc=geert@linux-m68k.org \
    --cc=guohanjun@huawei.com \
    --cc=hpa@zytor.com \
    --cc=hskinnemoen@gmail.com \
    --cc=jdike@addtoit.com \
    --cc=jim.cromie@gmail.com \
    --cc=john.stultz@linaro.org \
    --cc=jonas@southpole.se \
    --cc=kgene.kim@samsung.com \
    --cc=khilman@deeprootsystems.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@linux-mips.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=linux@lists.openrisc.net \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=microblaze-uclinux@itee.uq.edu.au \
    --cc=mingo@redhat.com \
    --cc=monstr@monstr.eu \
    --cc=nicolas.ferre@atmel.com \
    --cc=nsekhar@ti.com \
    --cc=paulus@samba.org \
    --cc=ralf@linux-mips.org \
    --cc=richard@nod.at \
    --cc=tglx@linutronix.de \
    --cc=tony@atomide.com \
    --cc=uclinux-dist-devel@blackfin.uclinux.org \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    --cc=user-mode-linux-user@lists.sourceforge.net \
    --cc=vapier@gentoo.org \
    --cc=wangyijing@huawei.com \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox