diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2021-02-20 21:56:49 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-02-20 21:56:49 -0800 |
commit | 55f62bc873477dae2c45bbbc30b86cf3e0982f3b (patch) | |
tree | 8a3e1c3d1fa76dfcafcf9b1ff7d59a9c6406e072 /drivers/pnp/interface.c | |
parent | 3c8f504b3a486e4e984ac8dc619eba3afa24cec4 (diff) | |
parent | 96228223933bf5ac920f93862c82449ec28247c0 (diff) |
Merge tag 'pnp-5.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull PNP updates from Rafael Wysocki:
"These make two janitorial changes of the code.
Specifics:
- Add printf annotation to a logging function (Tom Rix)
- Use DEFINE_SPINLOCK() for defining a spinlock so as to initialize
it statically (Zheng Yongjun)"
* tag 'pnp-5.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
PNP: pnpbios: Use DEFINE_SPINLOCK() for spinlock
PNP: add printf attribute to log function
Diffstat (limited to 'drivers/pnp/interface.c')
-rw-r--r-- | drivers/pnp/interface.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pnp/interface.c b/drivers/pnp/interface.c index 187e4a1175b0..602c46893e83 100644 --- a/drivers/pnp/interface.c +++ b/drivers/pnp/interface.c @@ -33,6 +33,7 @@ struct pnp_info_buffer { typedef struct pnp_info_buffer pnp_info_buffer_t; +__printf(2, 3) static int pnp_printf(pnp_info_buffer_t * buffer, char *fmt, ...) { va_list args; |