29 Aug, 2016

2 commits

  • We get 2 warnings when biuld kernel with W=1:
    drivers/mailbox/bcm-pdc-mailbox.c:472:6: warning: no previous prototype for 'pdc_setup_debugfs' [-Wmissing-prototypes]
    drivers/mailbox/bcm-pdc-mailbox.c:488:6: warning: no previous prototype for 'pdc_free_debugfs' [-Wmissing-prototypes]

    In fact, these functions are only used in the file in which they are
    declared and don't need a declaration, but can be made static.
    so this patch marks these functions with 'static'.

    Signed-off-by: Baoyou Xie
    Acked-by: Arnd Bergmann
    Signed-off-by: Jassi Brar

    Baoyou Xie
     
  • We can't pass NULL pointers to pdc_ring_free() so I moved the check for
    NULL.

    Signed-off-by: Dan Carpenter
    Signed-off-by: Jassi Brar

    Dan Carpenter
     

28 Jul, 2016

2 commits