+ init-calibratec-provide-proper-prototype.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: init/calibrate.c: provide proper prototype
has been added to the -mm tree.  Its filename is
     init-calibratec-provide-proper-prototype.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/init-calibratec-provide-proper-prototype.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/init-calibratec-provide-proper-prototype.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Valdis Kletnieks <valdis.kletnieks@xxxxxx>
Subject: init/calibrate.c: provide proper prototype

Sparse issues a warning:

  CHECK   init/calibrate.c
init/calibrate.c:271:28: warning: symbol 'calibration_delay_done' was not declared. Should it be static?

The actual issue is that it's a __weak symbol that archs can override (in fact,
ARM does so), but no prototype is provided. Let's provide one to prevent
surprises.

Link: http://lkml.kernel.org/r/18827.1548750938@xxxxxxxxxxxxxxxxxxxxxxx
Signed-off-by: Valdis Kletnieks <valdis.kletnieks@xxxxxx>
Reviewed-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 include/linux/delay.h |    1 +
 1 file changed, 1 insertion(+)

--- a/include/linux/delay.h~init-calibratec-provide-proper-prototype
+++ a/include/linux/delay.h
@@ -55,6 +55,7 @@ static inline void ndelay(unsigned long
 
 extern unsigned long lpj_fine;
 void calibrate_delay(void);
+void __attribute__((weak)) calibration_delay_done(void);
 void msleep(unsigned int msecs);
 unsigned long msleep_interruptible(unsigned int msecs);
 void usleep_range(unsigned long min, unsigned long max);
_

Patches currently in -mm which might be from valdis.kletnieks@xxxxxx are

kernel-hung_taskc-fix-sparse-warnings.patch
init-calibratec-provide-proper-prototype.patch




[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux