Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/common/include/linux use __inline



details:   https://anonhg.NetBSD.org/src/rev/7b014c92a82b
branches:  trunk
changeset: 454861:7b014c92a82b
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Sep 30 12:20:54 2019 +0000

description:
use __inline
add missing __printflike attributes

diffstat:

 sys/external/bsd/common/include/linux/kernel.h |  16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diffs (70 lines):

diff -r 2ed1642eb046 -r 7b014c92a82b sys/external/bsd/common/include/linux/kernel.h
--- a/sys/external/bsd/common/include/linux/kernel.h    Mon Sep 30 10:22:14 2019 +0000
+++ b/sys/external/bsd/common/include/linux/kernel.h    Mon Sep 30 12:20:54 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kernel.h,v 1.22 2019/09/29 00:10:02 mrg Exp $  */
+/*     $NetBSD: kernel.h,v 1.23 2019/09/30 12:20:54 christos Exp $     */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -138,13 +138,13 @@
        __access_once_tmp;                                                    \
 })
 
-static inline int64_t
+static __inline int64_t
 abs64(int64_t x)
 {
        return (x < 0? (-x) : x);
 }
 
-static inline uintmax_t
+static __inline uintmax_t
 mult_frac(uintmax_t x, uintmax_t multiplier, uintmax_t divisor)
 {
        uintmax_t q = (x / divisor);
@@ -155,7 +155,7 @@
 
 static int panic_timeout __unused = 0;
 
-static inline int
+static __inline int __printflike(3, 0)
 vscnprintf(char *buf, size_t size, const char *fmt, va_list va)
 {
        int ret;
@@ -171,7 +171,7 @@
        return ret;
 }
 
-static inline int
+static __inline int __printflike(3, 4)
 scnprintf(char *buf, size_t size, const char *fmt, ...)
 {
        va_list va;
@@ -184,7 +184,7 @@
        return ret;
 }
 
-static inline int
+static __inline int
 kstrtol(const char *s, unsigned base, long *vp)
 {
        long long v;
@@ -196,7 +196,7 @@
        return 0;
 }
 
-static inline char *
+static __inline char * __printflike(2, 0)
 kvasprintf(gfp_t gfp, const char *fmt, va_list va)
 {
        va_list tva;
@@ -215,7 +215,7 @@
        return str;
 }
 
-static inline char * __printflike(2,3)
+static __inline char * __printflike(2, 3)
 kasprintf(gfp_t gfp, const char *fmt, ...)
 {
        va_list va;



Home | Main Index | Thread Index | Old Index