]> git.baikalelectronics.ru Git - kernel.git/commit
xen: Fix annoying compile-time warning
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 19 Oct 2012 18:54:21 +0000 (11:54 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 19 Oct 2012 18:54:21 +0000 (11:54 -0700)
commit41cad1aaaa06dd7a36034fb6e9942656b02fcaa0
tree578ec3affb4fe2a150404c3f7534a1be06d75244
parenta85a29b582bedaf8b3c8f853c934d69ae1f1c329
xen: Fix annoying compile-time warning

Commit 7844fb6ad79c ("xen/pv-on-hvm kexec: add quirk for Xen 3.4 and
shutdown watches.") added the xen_strict_xenbus_quirk() function with an
old K&R-style declaration without proper typing, causing gcc to rightly
complain:

  drivers/xen/xenbus/xenbus_xs.c:628:13: warning: function declaration isn’t a prototype [-Wstrict-prototypes]

because we really don't live in caves using stone-age tools any more,
and the kernel has always used properly typed ANSI C function
declarations.

So if a function doesn't take arguments, we tell the compiler so
explicitly by adding the proper "void" in the prototype.

I'm sure there are tons of other examples of this kind of stuff in the
tree, but this is the one that hits my workstation config, so..

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/xen/xenbus/xenbus_xs.c