All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/16] Eliminate GCC -Wmissing-prototype warnings
@ 2015-03-04 13:32 Darshana Padmadas
  2015-03-04 13:32 ` [PATCH 01/16] arch: x86: boot: Make function static and add function prototype Darshana Padmadas
                   ` (15 more replies)
  0 siblings, 16 replies; 20+ messages in thread
From: Darshana Padmadas @ 2015-03-04 13:32 UTC (permalink / raw)
  To: linux-kernel; +Cc: tglx, mingo, hpa, x86, josh, Darshana Padmadas

GCC warns about functions without previous 
prototypes i.e -Wmissing-prototypes warnings.

In the following patches the following fixes have 
been adopted to eliminate these warnings:
    - Functions defined in a file, that are internal
      to that file have been made static.
    - Header files have been included in files whose
      non-internal functions have their prototypes defined
      in these headers files.
    - Adding prototypes for several non-internal 
      functions in the appropriate header file while keeping
      the structure definitions of the parameters used by the 
      functions in mind.
    - Add the prototype above the 
      function definition.

These warnings can be generated by adding -Wmissing-prototypes
to KBUILD_FLAGS in the top-level Makefile and then perform the
build.      

Darshana Padmadas (16):
  arch: x86: boot: Make function static and add function prototype
  arch: x86: boot: Add prototype for decompress_kernel
  arch: x86: boot: Include header string.h for function prototypes
  arch: x86: ia32: Add prototype for compat_ni_syscall
  arch: x86: kernel: Make internal functions static in
    cpu/intel_cacheinfo.c
  arch: x86: kernel: cpu: Mark function mce_chrdev_write static
  arch: x86: kernel: Mark internal function EVT_TO_HPET_DEV static
  arch: x86: kernel: Mark internal functions static in kvm.c
  arch: x86: kernel: Include <asm/switch_to.h> for function prototype
  arch: x86: kernel: Add prototype for function sys32_x32_rt_sigreturn
  arch: x86: kernel: Add prototype for smp_reboot_interrupt
  arch: x86: kernel: Add prototype for fixup_bad_iret in traps.c
  arch: x86: xen: Add prototype for xen_start_kernel in enlighten.c
  arch: x86: xen: Mark internal function xen_flush_tlb_all static.
  arch: x86: xen: Add prototypes for functions defined in mmu.c
  arch: x86: xen: Mark internal functions static in setup.c

 arch/x86/boot/compressed/eboot.c      | 9 ++++++++-
 arch/x86/boot/compressed/misc.c       | 7 +++++++
 arch/x86/boot/string.c                | 1 +
 arch/x86/ia32/nosyscall.c             | 2 ++
 arch/x86/kernel/cpu/intel_cacheinfo.c | 4 ++--
 arch/x86/kernel/cpu/mcheck/mce.c      | 2 +-
 arch/x86/kernel/hpet.c                | 2 +-
 arch/x86/kernel/kvm.c                 | 4 ++--
 arch/x86/kernel/process.c             | 1 +
 arch/x86/kernel/signal.c              | 3 +++
 arch/x86/kernel/smp.c                 | 2 ++
 arch/x86/kernel/traps.c               | 3 +++
 arch/x86/xen/enlighten.c              | 2 ++
 arch/x86/xen/mmu.c                    | 2 +-
 arch/x86/xen/mmu.h                    | 8 ++++++++
 arch/x86/xen/setup.c                  | 4 ++--
 16 files changed, 46 insertions(+), 10 deletions(-)

-- 
1.9.1


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2015-03-04 18:54 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-04 13:32 [PATCH 00/16] Eliminate GCC -Wmissing-prototype warnings Darshana Padmadas
2015-03-04 13:32 ` [PATCH 01/16] arch: x86: boot: Make function static and add function prototype Darshana Padmadas
2015-03-04 18:50   ` Ingo Molnar
2015-03-04 13:32 ` [PATCH 02/16] arch: x86: boot: Add prototype for decompress_kernel Darshana Padmadas
2015-03-04 13:32 ` [PATCH 03/16] arch: x86: boot: Include header string.h for function prototypes Darshana Padmadas
2015-03-04 13:32 ` [PATCH 04/16] arch: x86: ia32: Add prototype for compat_ni_syscall Darshana Padmadas
2015-03-04 13:32 ` [PATCH 05/16] arch: x86: kernel: Make internal functions static in cpu/intel_cacheinfo.c Darshana Padmadas
2015-03-04 18:46   ` Borislav Petkov
2015-03-04 18:54     ` Ingo Molnar
2015-03-04 13:32 ` [PATCH 06/16] arch: x86: kernel: cpu: Mark function mce_chrdev_write static Darshana Padmadas
2015-03-04 13:32 ` [PATCH 07/16] arch: x86: kernel: Mark internal function EVT_TO_HPET_DEV static Darshana Padmadas
2015-03-04 13:32 ` [PATCH 08/16] arch: x86: kernel: Mark internal functions static in kvm.c Darshana Padmadas
2015-03-04 13:32 ` [PATCH 09/16] arch: x86: kernel: Include <asm/switch_to.h> for function prototype Darshana Padmadas
2015-03-04 13:32 ` [PATCH 10/16] arch: x86: kernel: Add prototype for function sys32_x32_rt_sigreturn Darshana Padmadas
2015-03-04 13:32 ` [PATCH 11/16] arch: x86: kernel: Add prototype for smp_reboot_interrupt Darshana Padmadas
2015-03-04 13:32 ` [PATCH 12/16] arch: x86: kernel: Add prototype for fixup_bad_iret in traps.c Darshana Padmadas
2015-03-04 13:32 ` [PATCH 13/16] arch: x86: xen: Add prototype for xen_start_kernel in enlighten.c Darshana Padmadas
2015-03-04 13:32 ` [PATCH 14/16] arch: x86: xen: Mark internal function xen_flush_tlb_all static Darshana Padmadas
2015-03-04 13:32 ` [PATCH 15/16] arch: x86: xen: Add prototypes for functions defined in mmu.c Darshana Padmadas
2015-03-04 13:32 ` [PATCH 16/16] arch: x86: xen: Mark internal functions static in setup.c Darshana Padmadas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.