History

Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild

Pull kbuild updates from Michal Marek: - fix for make headers_install argv explosion with too long path - scripts/setlocalversion does not call git update-index needlessly - fix for the src.rpm produced by make rpm-pkg. The new make image_name can be useful also for other packaging tools. - scripts/mod/devicetable-offsets.o is not rebuilt during each make run - make modules_install dependency fix - scripts/sortextable portability fix - fix for kbuild to generate the output directory for all object files in subdirs. - a couple of minor fixes * 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild: kbuild: create directory for dir/file.o tools/include: use stdint types for user-space byteshift headers Makefile: Fix install error with make -j option Fix a build warning in scripts/mod/file2alias.c improve modalias building scripts/mod: Spelling s/DEVICEVTABLE/DEVICETABLE/ kbuild: fix error when building from src rpm scripts/setlocalversion on write-protected source tree Makefile.lib: align DTB quiet_cmd kbuild: fix make headers_install when path is too long

Linus Torvalds committed 13 years ago

Commit cb63fc22 parents a9642fa 4d47dde10 files · +73 −63Browse files

Unified · Split

10 files
  1. Makefile +6 −2
  2. scripts/Makefile.headersinst +14 −6
  3. scripts/Makefile.lib +2 −2
  4. scripts/headers_install.sh +5 −2
  5. scripts/mod/Makefile +5 −10
  6. scripts/mod/file2alias.c +6 −4
  7. scripts/package/mkspec +1 −0
  8. scripts/setlocalversion +0 −3
  9. tools/include/tools/be_byteshift.h +17 −17
  10. tools/include/tools/le_byteshift.h +17 −17
Makefile+6−2
@@ -981,7 +981,7 @@ _modinst_: · 980 unmodified lines
981# boot a modules.dep even before / is mounted read-write. However the981# boot a modules.dep even before / is mounted read-write. However the
982# boot script depmod is the master version.982# boot script depmod is the master version.
983PHONY += _modinst_post983PHONY += _modinst_post
984_modinst_post: _modinst_984_modinst_post: include/config/kernel.release _modinst_
985 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.fwinst obj=firmware __fw_modinst985 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.fwinst obj=firmware __fw_modinst
986 $(call cmd,depmod)986 $(call cmd,depmod)
987 987
@@ -1116,6 +1116,7 @@ help: · 128 unmodified lines
1116 @echo ' gtags - Generate GNU GLOBAL index'1116 @echo ' gtags - Generate GNU GLOBAL index'
1117 @echo ' kernelrelease - Output the release version string'1117 @echo ' kernelrelease - Output the release version string'
1118 @echo ' kernelversion - Output the version stored in Makefile'1118 @echo ' kernelversion - Output the version stored in Makefile'
1119 @echo ' image_name - Output the image name'
1119 @echo ' headers_install - Install sanitised kernel headers to INSTALL_HDR_PATH'; \1120 @echo ' headers_install - Install sanitised kernel headers to INSTALL_HDR_PATH'; \
1120 echo ' (default: $(INSTALL_HDR_PATH))'; \1121 echo ' (default: $(INSTALL_HDR_PATH))'; \
1121 echo ''1122 echo ''
@@ -1310,7 +1311,7 @@ export_report: · 188 unmodified lines
1310endif #ifeq ($(config-targets),1)1311endif #ifeq ($(config-targets),1)
1311endif #ifeq ($(mixed-targets),1)1312endif #ifeq ($(mixed-targets),1)
1312 1313
1313PHONY += checkstack kernelrelease kernelversion1314PHONY += checkstack kernelrelease kernelversion image_name
1314 1315
1315# UML needs a little special treatment here. It wants to use the host1316# UML needs a little special treatment here. It wants to use the host
1316# toolchain, so needs $(SUBARCH) passed to checkstack.pl. Everyone1317# toolchain, so needs $(SUBARCH) passed to checkstack.pl. Everyone
@@ -1331,6 +1332,9 @@ kernelrelease: · 14 unmodified lines
1331kernelversion:1332kernelversion:
1332 @echo $(KERNELVERSION)1333 @echo $(KERNELVERSION)
1333 1334
1335image_name:
1336 @echo $(KBUILD_IMAGE)
1337
1334# Clear a bunch of variables before executing the submake1338# Clear a bunch of variables before executing the submake
1335tools/: FORCE1339tools/: FORCE
1336 $(Q)mkdir -p $(objtree)/tools1340 $(Q)mkdir -p $(objtree)/tools
scripts/Makefile.headersinst+14−6
@@ -47,18 +47,24 @@ header-y := $(filter-out $(generic-y), $(header-y)) · 46 unmodified lines
47all-files := $(header-y) $(genhdr-y) $(wrapper-files)47all-files := $(header-y) $(genhdr-y) $(wrapper-files)
48output-files := $(addprefix $(installdir)/, $(all-files))48output-files := $(addprefix $(installdir)/, $(all-files))
49 49
50input-files := $(foreach hdr, $(header-y), \50input-files1 := $(foreach hdr, $(header-y), \
51 $(if $(wildcard $(srcdir)/$(hdr)), \51 $(if $(wildcard $(srcdir)/$(hdr)), \
52 $(wildcard $(srcdir)/$(hdr)), \52 $(wildcard $(srcdir)/$(hdr))) \
53 )
54input-files1-name := $(notdir $(input-files1))
55input-files2 := $(foreach hdr, $(header-y), \
56 $(if $(wildcard $(srcdir)/$(hdr)),, \
53 $(if $(wildcard $(oldsrcdir)/$(hdr)), \57 $(if $(wildcard $(oldsrcdir)/$(hdr)), \
54 $(wildcard $(oldsrcdir)/$(hdr)), \58 $(wildcard $(oldsrcdir)/$(hdr)), \
55 $(error Missing UAPI file $(srcdir)/$(hdr))) \59 $(error Missing UAPI file $(srcdir)/$(hdr))) \
56 )) \60 ))
57 $(foreach hdr, $(genhdr-y), \61input-files2-name := $(notdir $(input-files2))
62input-files3 := $(foreach hdr, $(genhdr-y), \
58 $(if $(wildcard $(gendir)/$(hdr)), \63 $(if $(wildcard $(gendir)/$(hdr)), \
59 $(wildcard $(gendir)/$(hdr)), \64 $(wildcard $(gendir)/$(hdr)), \
60 $(error Missing generated UAPI file $(gendir)/$(hdr)) \65 $(error Missing generated UAPI file $(gendir)/$(hdr)) \
61 ))66 ))
67input-files3-name := $(notdir $(input-files3))
62 68
63# Work out what needs to be removed69# Work out what needs to be removed
64oldheaders := $(patsubst $(installdir)/%,%,$(wildcard $(installdir)/*.h))70oldheaders := $(patsubst $(installdir)/%,%,$(wildcard $(installdir)/*.h))
@@ -72,7 +78,9 @@ printdir = $(patsubst $(INSTALL_HDR_PATH)/%/,%,$(dir $@)) · 7 unmodified lines
72quiet_cmd_install = INSTALL $(printdir) ($(words $(all-files))\78quiet_cmd_install = INSTALL $(printdir) ($(words $(all-files))\
73 file$(if $(word 2, $(all-files)),s))79 file$(if $(word 2, $(all-files)),s))
74 cmd_install = \80 cmd_install = \
75 $(CONFIG_SHELL) $< $(installdir) $(input-files); \81 $(CONFIG_SHELL) $< $(installdir) $(srcdir) $(input-files1-name); \
82 $(CONFIG_SHELL) $< $(installdir) $(oldsrcdir) $(input-files2-name); \
83 $(CONFIG_SHELL) $< $(installdir) $(gendir) $(input-files3-name); \
76 for F in $(wrapper-files); do \84 for F in $(wrapper-files); do \
77 echo "\#include <asm-generic/$$F>" > $(installdir)/$$F; \85 echo "\#include <asm-generic/$$F>" > $(installdir)/$$F; \
78 done; \86 done; \
@@ -98,7 +106,7 @@ __headersinst: $(subdirs) $(install-file) · 19 unmodified lines
98 @:106 @:
99 107
100targets += $(install-file)108targets += $(install-file)
101$(install-file): scripts/headers_install.sh $(input-files) FORCE109$(install-file): scripts/headers_install.sh $(input-files1) $(input-files2) $(input-files3) FORCE
102 $(if $(unwanted),$(call cmd,remove),)110 $(if $(unwanted),$(call cmd,remove),)
103 $(if $(wildcard $(dir $@)),,$(shell mkdir -p $(dir $@)))111 $(if $(wildcard $(dir $@)),,$(shell mkdir -p $(dir $@)))
104 $(call if_changed,install)112 $(call if_changed,install)
scripts/Makefile.lib+2−2
@@ -63,7 +63,7 @@ multi-objs := $(multi-objs-y) $(multi-objs-m) · 62 unmodified lines
63subdir-obj-y := $(filter %/built-in.o, $(obj-y))63subdir-obj-y := $(filter %/built-in.o, $(obj-y))
64 64
65# $(obj-dirs) is a list of directories that contain object files65# $(obj-dirs) is a list of directories that contain object files
66obj-dirs := $(dir $(multi-objs) $(subdir-obj-y))66obj-dirs := $(dir $(multi-objs) $(obj-y))
67 67
68# Replace multi-part objects by their individual parts, look at local dir only68# Replace multi-part objects by their individual parts, look at local dir only
69real-objs-y := $(foreach m, $(filter-out $(subdir-obj-y), $(obj-y)), $(if $(strip $($(m:.o=-objs)) $($(m:.o=-y))),$($(m:.o=-objs)) $($(m:.o=-y)),$(m))) $(extra-y)69real-objs-y := $(foreach m, $(filter-out $(subdir-obj-y), $(obj-y)), $(if $(strip $($(m:.o=-objs)) $($(m:.o=-y))),$($(m:.o=-objs)) $($(m:.o=-y)),$(m))) $(extra-y)
@@ -244,7 +244,7 @@ cmd_gzip = (cat $(filter-out FORCE,$^) | gzip -n -f -9 > $@) || \ · 174 unmodified lines
244# ---------------------------------------------------------------------------244# ---------------------------------------------------------------------------
245 245
246# Generate an assembly file to wrap the output of the device tree compiler246# Generate an assembly file to wrap the output of the device tree compiler
247quiet_cmd_dt_S_dtb= DTB $@247quiet_cmd_dt_S_dtb= DTB $@
248cmd_dt_S_dtb= \248cmd_dt_S_dtb= \
249( \249( \
250 echo '\#include <asm-generic/vmlinux.lds.h>'; \250 echo '\#include <asm-generic/vmlinux.lds.h>'; \
scripts/headers_install.sh+5−2
@@ -2,7 +2,7 @@ · 1 unmodified line
2 2
3if [ $# -lt 1 ]3if [ $# -lt 1 ]
4then4then
5 echo "Usage: headers_install.sh OUTDIR [FILES...]5 echo "Usage: headers_install.sh OUTDIR SRCDIR [FILES...]
6 echo6 echo
7 echo "Prepares kernel header files for use by user space, by removing"7 echo "Prepares kernel header files for use by user space, by removing"
8 echo "all compiler.h definitions and #includes, removing any"8 echo "all compiler.h definitions and #includes, removing any"
@@ -10,6 +10,7 @@ then · 1 unmodified line
10 echo "asm/inline/volatile keywords."10 echo "asm/inline/volatile keywords."
11 echo11 echo
12 echo "OUTDIR: directory to write each userspace header FILE to."12 echo "OUTDIR: directory to write each userspace header FILE to."
13 echo "SRCDIR: source directory where files are picked."
13 echo "FILES: list of header files to operate on."14 echo "FILES: list of header files to operate on."
14 15
15 exit 116 exit 1
@@ -19,6 +20,8 @@ fi · 3 unmodified lines
19 20
20OUTDIR="$1"21OUTDIR="$1"
21shift22shift
23SRCDIR="$1"
24shift
22 25
23# Iterate through files listed on command line26# Iterate through files listed on command line
24 27
@@ -34,7 +37,7 @@ do · 9 unmodified lines
34 -e 's/(^|[^a-zA-Z0-9])__packed([^a-zA-Z0-9_]|$)/\1__attribute__((packed))\2/g' \37 -e 's/(^|[^a-zA-Z0-9])__packed([^a-zA-Z0-9_]|$)/\1__attribute__((packed))\2/g' \
35 -e 's/(^|[ \t(])(inline|asm|volatile)([ \t(]|$)/\1__\2__\3/g' \38 -e 's/(^|[ \t(])(inline|asm|volatile)([ \t(]|$)/\1__\2__\3/g' \
36 -e 's@#(ifndef|define|endif[ \t]*/[*])[ \t]*_UAPI@#\1 @' \39 -e 's@#(ifndef|define|endif[ \t]*/[*])[ \t]*_UAPI@#\1 @' \
37 "$i" > "$OUTDIR/$FILE.sed" || exit 140 "$SRCDIR/$i" > "$OUTDIR/$FILE.sed" || exit 1
38 scripts/unifdef -U__KERNEL__ -D__EXPORTED_HEADERS__ "$OUTDIR/$FILE.sed" \41 scripts/unifdef -U__KERNEL__ -D__EXPORTED_HEADERS__ "$OUTDIR/$FILE.sed" \
39 > "$OUTDIR/$FILE"42 > "$OUTDIR/$FILE"
40 [ $? -gt 1 ] && exit 143 [ $? -gt 1 ] && exit 1
scripts/mod/Makefile+5−10
@@ -15,8 +15,8 @@ endef · 14 unmodified lines
15quiet_cmd_offsets = GEN $@15quiet_cmd_offsets = GEN $@
16define cmd_offsets16define cmd_offsets
17 (set -e; \17 (set -e; \
18 echo "#ifndef __DEVICEVTABLE_OFFSETS_H__"; \18 echo "#ifndef __DEVICETABLE_OFFSETS_H__"; \
19 echo "#define __DEVICEVTABLE_OFFSETS_H__"; \19 echo "#define __DEVICETABLE_OFFSETS_H__"; \
20 echo "/*"; \20 echo "/*"; \
21 echo " * DO NOT MODIFY."; \21 echo " * DO NOT MODIFY."; \
22 echo " *"; \22 echo " *"; \
@@ -29,15 +29,10 @@ define cmd_offsets · 6 unmodified lines
29 echo "#endif" ) > $@29 echo "#endif" ) > $@
30endef30endef
31 31
32# We use internal kbuild rules to avoid the "is up to date" message from make32$(obj)/$(devicetable-offsets-file): $(obj)/devicetable-offsets.s
33scripts/mod/devicetable-offsets.s: scripts/mod/devicetable-offsets.c FORCE33 $(call if_changed,offsets)
34 $(Q)mkdir -p $(dir $@)
35 $(call if_changed_dep,cc_s_c)
36 34
37$(obj)/$(devicetable-offsets-file): scripts/mod/devicetable-offsets.s35targets += $(devicetable-offsets-file) devicetable-offsets.s
38 $(call cmd,offsets)
39
40targets += $(devicetable-offsets-file)
41 36
42# dependencies on generated files need to be listed explicitly37# dependencies on generated files need to be listed explicitly
43 38
scripts/mod/file2alias.c+6−4
@@ -79,10 +79,12 @@ struct devtable **__start___devtable, **__stop___devtable; · 78 unmodified lines
79extern struct devtable *__start___devtable[], *__stop___devtable[];79extern struct devtable *__start___devtable[], *__stop___devtable[];
80#endif /* __MACH__ */80#endif /* __MACH__ */
81 81
82#if __GNUC__ == 3 && __GNUC_MINOR__ < 382#if !defined(__used)
83# define __used __attribute__((__unused__))83# if __GNUC__ == 3 && __GNUC_MINOR__ < 3
84#else84# define __used __attribute__((__unused__))
85# define __used __attribute__((__used__))85# else
86# define __used __attribute__((__used__))
87# endif
86#endif88#endif
87 89
88/* Define a variable f that holds the value of field f of struct devid90/* Define a variable f that holds the value of field f of struct devid
scripts/package/mkspec+1−0
@@ -74,6 +74,7 @@ echo "" · 73 unmodified lines
74fi74fi
75 75
76echo "%install"76echo "%install"
77echo 'KBUILD_IMAGE=$(make image_name)'
77echo "%ifarch ia64"78echo "%ifarch ia64"
78echo 'mkdir -p $RPM_BUILD_ROOT/boot/efi $RPM_BUILD_ROOT/lib/modules'79echo 'mkdir -p $RPM_BUILD_ROOT/boot/efi $RPM_BUILD_ROOT/lib/modules'
79echo 'mkdir -p $RPM_BUILD_ROOT/lib/firmware'80echo 'mkdir -p $RPM_BUILD_ROOT/lib/firmware'
scripts/setlocalversion+0−3
@@ -71,9 +71,6 @@ scm_version() · 70 unmodified lines
71 printf -- '-svn%s' "`git svn find-rev $head`"71 printf -- '-svn%s' "`git svn find-rev $head`"
72 fi72 fi
73 73
74 # Update index only on r/w media
75 [ -w . ] && git update-index --refresh --unmerged > /dev/null
76
77 # Check for uncommitted changes74 # Check for uncommitted changes
78 if git diff-index --name-only HEAD | grep -qv "^scripts/package"; then75 if git diff-index --name-only HEAD | grep -qv "^scripts/package"; then
79 printf '%s' -dirty76 printf '%s' -dirty
tools/include/tools/be_byteshift.h+17−17
@@ -1,68 +1,68 @@
1#ifndef _TOOLS_BE_BYTESHIFT_H1#ifndef _TOOLS_BE_BYTESHIFT_H
2#define _TOOLS_BE_BYTESHIFT_H2#define _TOOLS_BE_BYTESHIFT_H
3 3
4#include <linux/types.h>4#include <stdint.h>
5 5
6static inline __u16 __get_unaligned_be16(const __u8 *p)6static inline uint16_t __get_unaligned_be16(const uint8_t *p)
7{7{
8 return p[0] << 8 | p[1];8 return p[0] << 8 | p[1];
9}9}
10 10
11static inline __u32 __get_unaligned_be32(const __u8 *p)11static inline uint32_t __get_unaligned_be32(const uint8_t *p)
12{12{
13 return p[0] << 24 | p[1] << 16 | p[2] << 8 | p[3];13 return p[0] << 24 | p[1] << 16 | p[2] << 8 | p[3];
14}14}
15 15
16static inline __u64 __get_unaligned_be64(const __u8 *p)16static inline uint64_t __get_unaligned_be64(const uint8_t *p)
17{17{
18 return (__u64)__get_unaligned_be32(p) << 32 |18 return (uint64_t)__get_unaligned_be32(p) << 32 |
19 __get_unaligned_be32(p + 4);19 __get_unaligned_be32(p + 4);
20}20}
21 21
22static inline void __put_unaligned_be16(__u16 val, __u8 *p)22static inline void __put_unaligned_be16(uint16_t val, uint8_t *p)
23{23{
24 *p++ = val >> 8;24 *p++ = val >> 8;
25 *p++ = val;25 *p++ = val;
26}26}
27 27
28static inline void __put_unaligned_be32(__u32 val, __u8 *p)28static inline void __put_unaligned_be32(uint32_t val, uint8_t *p)
29{29{
30 __put_unaligned_be16(val >> 16, p);30 __put_unaligned_be16(val >> 16, p);
31 __put_unaligned_be16(val, p + 2);31 __put_unaligned_be16(val, p + 2);
32}32}
33 33
34static inline void __put_unaligned_be64(__u64 val, __u8 *p)34static inline void __put_unaligned_be64(uint64_t val, uint8_t *p)
35{35{
36 __put_unaligned_be32(val >> 32, p);36 __put_unaligned_be32(val >> 32, p);
37 __put_unaligned_be32(val, p + 4);37 __put_unaligned_be32(val, p + 4);
38}38}
39 39
40static inline __u16 get_unaligned_be16(const void *p)40static inline uint16_t get_unaligned_be16(const void *p)
41{41{
42 return __get_unaligned_be16((const __u8 *)p);42 return __get_unaligned_be16((const uint8_t *)p);
43}43}
44 44
45static inline __u32 get_unaligned_be32(const void *p)45static inline uint32_t get_unaligned_be32(const void *p)
46{46{
47 return __get_unaligned_be32((const __u8 *)p);47 return __get_unaligned_be32((const uint8_t *)p);
48}48}
49 49
50static inline __u64 get_unaligned_be64(const void *p)50static inline uint64_t get_unaligned_be64(const void *p)
51{51{
52 return __get_unaligned_be64((const __u8 *)p);52 return __get_unaligned_be64((const uint8_t *)p);
53}53}
54 54
55static inline void put_unaligned_be16(__u16 val, void *p)55static inline void put_unaligned_be16(uint16_t val, void *p)
56{56{
57 __put_unaligned_be16(val, p);57 __put_unaligned_be16(val, p);
58}58}
59 59
60static inline void put_unaligned_be32(__u32 val, void *p)60static inline void put_unaligned_be32(uint32_t val, void *p)
61{61{
62 __put_unaligned_be32(val, p);62 __put_unaligned_be32(val, p);
63}63}
64 64
65static inline void put_unaligned_be64(__u64 val, void *p)65static inline void put_unaligned_be64(uint64_t val, void *p)
66{66{
67 __put_unaligned_be64(val, p);67 __put_unaligned_be64(val, p);
68}68}
tools/include/tools/le_byteshift.h+17−17
@@ -1,68 +1,68 @@
1#ifndef _TOOLS_LE_BYTESHIFT_H1#ifndef _TOOLS_LE_BYTESHIFT_H
2#define _TOOLS_LE_BYTESHIFT_H2#define _TOOLS_LE_BYTESHIFT_H
3 3
4#include <linux/types.h>4#include <stdint.h>
5 5
6static inline __u16 __get_unaligned_le16(const __u8 *p)6static inline uint16_t __get_unaligned_le16(const uint8_t *p)
7{7{
8 return p[0] | p[1] << 8;8 return p[0] | p[1] << 8;
9}9}
10 10
11static inline __u32 __get_unaligned_le32(const __u8 *p)11static inline uint32_t __get_unaligned_le32(const uint8_t *p)
12{12{
13 return p[0] | p[1] << 8 | p[2] << 16 | p[3] << 24;13 return p[0] | p[1] << 8 | p[2] << 16 | p[3] << 24;
14}14}
15 15
16static inline __u64 __get_unaligned_le64(const __u8 *p)16static inline uint64_t __get_unaligned_le64(const uint8_t *p)
17{17{
18 return (__u64)__get_unaligned_le32(p + 4) << 32 |18 return (uint64_t)__get_unaligned_le32(p + 4) << 32 |
19 __get_unaligned_le32(p);19 __get_unaligned_le32(p);
20}20}
21 21
22static inline void __put_unaligned_le16(__u16 val, __u8 *p)22static inline void __put_unaligned_le16(uint16_t val, uint8_t *p)
23{23{
24 *p++ = val;24 *p++ = val;
25 *p++ = val >> 8;25 *p++ = val >> 8;
26}26}
27 27
28static inline void __put_unaligned_le32(__u32 val, __u8 *p)28static inline void __put_unaligned_le32(uint32_t val, uint8_t *p)
29{29{
30 __put_unaligned_le16(val >> 16, p + 2);30 __put_unaligned_le16(val >> 16, p + 2);
31 __put_unaligned_le16(val, p);31 __put_unaligned_le16(val, p);
32}32}
33 33
34static inline void __put_unaligned_le64(__u64 val, __u8 *p)34static inline void __put_unaligned_le64(uint64_t val, uint8_t *p)
35{35{
36 __put_unaligned_le32(val >> 32, p + 4);36 __put_unaligned_le32(val >> 32, p + 4);
37 __put_unaligned_le32(val, p);37 __put_unaligned_le32(val, p);
38}38}
39 39
40static inline __u16 get_unaligned_le16(const void *p)40static inline uint16_t get_unaligned_le16(const void *p)
41{41{
42 return __get_unaligned_le16((const __u8 *)p);42 return __get_unaligned_le16((const uint8_t *)p);
43}43}
44 44
45static inline __u32 get_unaligned_le32(const void *p)45static inline uint32_t get_unaligned_le32(const void *p)
46{46{
47 return __get_unaligned_le32((const __u8 *)p);47 return __get_unaligned_le32((const uint8_t *)p);
48}48}
49 49
50static inline __u64 get_unaligned_le64(const void *p)50static inline uint64_t get_unaligned_le64(const void *p)
51{51{
52 return __get_unaligned_le64((const __u8 *)p);52 return __get_unaligned_le64((const uint8_t *)p);
53}53}
54 54
55static inline void put_unaligned_le16(__u16 val, void *p)55static inline void put_unaligned_le16(uint16_t val, void *p)
56{56{
57 __put_unaligned_le16(val, p);57 __put_unaligned_le16(val, p);
58}58}
59 59
60static inline void put_unaligned_le32(__u32 val, void *p)60static inline void put_unaligned_le32(uint32_t val, void *p)
61{61{
62 __put_unaligned_le32(val, p);62 __put_unaligned_le32(val, p);
63}63}
64 64
65static inline void put_unaligned_le64(__u64 val, void *p)65static inline void put_unaligned_le64(uint64_t val, void *p)
66{66{
67 __put_unaligned_le64(val, p);67 __put_unaligned_le64(val, p);
68}68}