Skip to content

Commit 87074c1

Browse files
committed
static inline functions that's defined in headers.
Signed-off-by: Jaco Kroon <jaco@uls.co.za>
1 parent 4238225 commit 87074c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compat.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ struct timeval {
220220
long tv_usec; /* microseconds */
221221
};
222222

223-
unsigned long timeval_to_jiffies(const struct timeval *tv)
223+
static inline unsigned long timeval_to_jiffies(const struct timeval *tv)
224224
{
225225
return timespec64_to_jiffies(&(struct timespec64){
226226
tv->tv_sec,
@@ -387,7 +387,7 @@ static int sockaddr_cmp(const struct sockaddr_storage *sa1, const struct sockadd
387387
#ifndef IN6PTON_XDIGIT
388388
#define hex_to_bin compat_hex_to_bin
389389
/* lib/hexdump.c */
390-
int hex_to_bin(char ch)
390+
static inline int hex_to_bin(char ch)
391391
{
392392
if ((ch >= '0') && (ch <= '9'))
393393
return ch - '0';

0 commit comments

Comments
 (0)