make -C /lib/modules/4.9.337-tegra/build M=/APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver modules
make[1]: Entering directory '/usr/src/linux-headers-4.9.337-tegra-ubuntu18.04_aarch64/kernel-4.9'
CC [M] /APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-core.o
CC [M] /APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.o
In file included from ./include/linux/kernel.h:13:0,
from ./include/linux/list.h:8,
from ./include/linux/kobject.h:20,
from ./include/linux/cdev.h:4,
from /APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.c:10:
/APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.c: In function ‘sgm_get_user_pages’:
/APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.c:184:11: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
pr_debug("sg_dma_len(&sgl[0])=0x%08x.\n", sg_dma_len(&sgl[0]));
^
./include/linux/printk.h:271:21: note: in definition of macro ‘pr_fmt’
#define pr_fmt(fmt) fmt
^~~
./include/linux/printk.h:319:2: note: in expansion of macro ‘dynamic_pr_debug’
dynamic_pr_debug(fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~
/APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.c:184:2: note: in expansion of macro ‘pr_debug’
pr_debug("sg_dma_len(&sgl[0])=0x%08x.\n", sg_dma_len(&sgl[0]));
^~~~~~~~
/APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.c:190:12: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 6 has type ‘long unsigned int’ [-Wformat=]
pr_debug("%04d: page=0x%p, pfn=%lu, offset=%u, length=%u (FIRST)\n", 0,
^
./include/linux/printk.h:271:21: note: in definition of macro ‘pr_fmt’
#define pr_fmt(fmt) fmt
^~~
./include/linux/printk.h:319:2: note: in expansion of macro ‘dynamic_pr_debug’
dynamic_pr_debug(fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~
/APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.c:190:3: note: in expansion of macro ‘pr_debug’
pr_debug("%04d: page=0x%p, pfn=%lu, offset=%u, length=%u (FIRST)\n", 0,
^~~~~~~~
/APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.c:190:12: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 7 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
pr_debug("%04d: page=0x%p, pfn=%lu, offset=%u, length=%u (FIRST)\n", 0,
^
./include/linux/printk.h:271:21: note: in definition of macro ‘pr_fmt’
#define pr_fmt(fmt) fmt
^~~
./include/linux/printk.h:319:2: note: in expansion of macro ‘dynamic_pr_debug’
dynamic_pr_debug(fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~
/APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.c:190:3: note: in expansion of macro ‘pr_debug’
pr_debug("%04d: page=0x%p, pfn=%lu, offset=%u, length=%u (FIRST)\n", 0,
^~~~~~~~
/APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.c:199:13: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 6 has type ‘long unsigned int’ [-Wformat=]
pr_debug("%04d: page=0x%p, pfn=%lu, offset=%u, length=%u\n", i,
^
./include/linux/printk.h:271:21: note: in definition of macro ‘pr_fmt’
#define pr_fmt(fmt) fmt
^~~
./include/linux/printk.h:319:2: note: in expansion of macro ‘dynamic_pr_debug’
dynamic_pr_debug(fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~
/APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.c:199:4: note: in expansion of macro ‘pr_debug’
pr_debug("%04d: page=0x%p, pfn=%lu, offset=%u, length=%u\n", i,
^~~~~~~~
/APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.c:199:13: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 7 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
pr_debug("%04d: page=0x%p, pfn=%lu, offset=%u, length=%u\n", i,
^
./include/linux/printk.h:271:21: note: in definition of macro ‘pr_fmt’
#define pr_fmt(fmt) fmt
^~~
./include/linux/printk.h:319:2: note: in expansion of macro ‘dynamic_pr_debug’
dynamic_pr_debug(fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~
/APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.c:199:4: note: in expansion of macro ‘pr_debug’
pr_debug("%04d: page=0x%p, pfn=%lu, offset=%u, length=%u\n", i,
^~~~~~~~
/APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.c:206:12: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 6 has type ‘long unsigned int’ [-Wformat=]
pr_debug("%04d: page=0x%p, pfn=%lu, offset=%u, length=%u (LAST)\n", i,
^
./include/linux/printk.h:271:21: note: in definition of macro ‘pr_fmt’
#define pr_fmt(fmt) fmt
^~~
./include/linux/printk.h:319:2: note: in expansion of macro ‘dynamic_pr_debug’
dynamic_pr_debug(fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~
/APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.c:206:3: note: in expansion of macro ‘pr_debug’
pr_debug("%04d: page=0x%p, pfn=%lu, offset=%u, length=%u (LAST)\n", i,
^~~~~~~~
/APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.c:206:12: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 7 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
pr_debug("%04d: page=0x%p, pfn=%lu, offset=%u, length=%u (LAST)\n", i,
^
./include/linux/printk.h:271:21: note: in definition of macro ‘pr_fmt’
#define pr_fmt(fmt) fmt
^~~
./include/linux/printk.h:319:2: note: in expansion of macro ‘dynamic_pr_debug’
dynamic_pr_debug(fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~
/APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.c:206:3: note: in expansion of macro ‘pr_debug’
pr_debug("%04d: page=0x%p, pfn=%lu, offset=%u, length=%u (LAST)\n", i,
^~~~~~~~
/APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.c:213:12: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 6 has type ‘long unsigned int’ [-Wformat=]
pr_debug("%04d: page=0x%p, pfn=%lu, offset=%u, length=%u (SINGLE/FIRST/LAST)\n", 0,
^
./include/linux/printk.h:271:21: note: in definition of macro ‘pr_fmt’
#define pr_fmt(fmt) fmt
^~~
./include/linux/printk.h:319:2: note: in expansion of macro ‘dynamic_pr_debug’
dynamic_pr_debug(fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~
/APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.c:213:3: note: in expansion of macro ‘pr_debug’
pr_debug("%04d: page=0x%p, pfn=%lu, offset=%u, length=%u (SINGLE/FIRST/LAST)\n", 0,
^~~~~~~~
/APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.c:213:12: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 7 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
pr_debug("%04d: page=0x%p, pfn=%lu, offset=%u, length=%u (SINGLE/FIRST/LAST)\n", 0,
^
./include/linux/printk.h:271:21: note: in definition of macro ‘pr_fmt’
#define pr_fmt(fmt) fmt
^~~
./include/linux/printk.h:319:2: note: in expansion of macro ‘dynamic_pr_debug’
dynamic_pr_debug(fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~
/APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.c:213:3: note: in expansion of macro ‘pr_debug’
pr_debug("%04d: page=0x%p, pfn=%lu, offset=%u, length=%u (SINGLE/FIRST/LAST)\n", 0,
^~~~~~~~
/APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.c: In function ‘sgm_kernel_pages’:
/APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.c:322:11: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
pr_debug("sg_dma_len(&sgl[0])=0x%08x.\n", sg_dma_len(&sgl[0]));
^
./include/linux/printk.h:271:21: note: in definition of macro ‘pr_fmt’
#define pr_fmt(fmt) fmt
^~~
./include/linux/printk.h:319:2: note: in expansion of macro ‘dynamic_pr_debug’
dynamic_pr_debug(fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~
/APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.c:322:2: note: in expansion of macro ‘pr_debug’
pr_debug("sg_dma_len(&sgl[0])=0x%08x.\n", sg_dma_len(&sgl[0]));
^~~~~~~~
/APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.c:328:12: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 6 has type ‘long unsigned int’ [-Wformat=]
pr_debug("%04d: page=0x%p, pfn=%lu, offset=%u length=%u (F)\n", 0,
^
./include/linux/printk.h:271:21: note: in definition of macro ‘pr_fmt’
#define pr_fmt(fmt) fmt
^~~
./include/linux/printk.h:319:2: note: in expansion of macro ‘dynamic_pr_debug’
dynamic_pr_debug(fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~
/APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.c:328:3: note: in expansion of macro ‘pr_debug’
pr_debug("%04d: page=0x%p, pfn=%lu, offset=%u length=%u (F)\n", 0,
^~~~~~~~
/APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.c:328:12: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 7 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
pr_debug("%04d: page=0x%p, pfn=%lu, offset=%u length=%u (F)\n", 0,
^
./include/linux/printk.h:271:21: note: in definition of macro ‘pr_fmt’
#define pr_fmt(fmt) fmt
^~~
./include/linux/printk.h:319:2: note: in expansion of macro ‘dynamic_pr_debug’
dynamic_pr_debug(fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~
/APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.c:328:3: note: in expansion of macro ‘pr_debug’
pr_debug("%04d: page=0x%p, pfn=%lu, offset=%u length=%u (F)\n", 0,
^~~~~~~~
/APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.c:337:13: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 6 has type ‘long unsigned int’ [-Wformat=]
pr_debug("%04d: page=0x%p, pfn=%lu, offset=%u length=%u\n", i,
^
./include/linux/printk.h:271:21: note: in definition of macro ‘pr_fmt’
#define pr_fmt(fmt) fmt
^~~
./include/linux/printk.h:319:2: note: in expansion of macro ‘dynamic_pr_debug’
dynamic_pr_debug(fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~
/APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.c:337:4: note: in expansion of macro ‘pr_debug’
pr_debug("%04d: page=0x%p, pfn=%lu, offset=%u length=%u\n", i,
^~~~~~~~
/APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.c:337:13: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 7 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
pr_debug("%04d: page=0x%p, pfn=%lu, offset=%u length=%u\n", i,
^
./include/linux/printk.h:271:21: note: in definition of macro ‘pr_fmt’
#define pr_fmt(fmt) fmt
^~~
./include/linux/printk.h:319:2: note: in expansion of macro ‘dynamic_pr_debug’
dynamic_pr_debug(fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~
/APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.c:337:4: note: in expansion of macro ‘pr_debug’
pr_debug("%04d: page=0x%p, pfn=%lu, offset=%u length=%u\n", i,
^~~~~~~~
/APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.c:344:12: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘long unsigned int’ [-Wformat=]
pr_debug("%04d: pfn=%lu, offset=%u length=%u (L)\n", i,
^
./include/linux/printk.h:271:21: note: in definition of macro ‘pr_fmt’
#define pr_fmt(fmt) fmt
^~~
./include/linux/printk.h:319:2: note: in expansion of macro ‘dynamic_pr_debug’
dynamic_pr_debug(fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~
/APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.c:344:3: note: in expansion of macro ‘pr_debug’
pr_debug("%04d: pfn=%lu, offset=%u length=%u (L)\n", i,
^~~~~~~~
/APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.c:344:12: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 6 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
pr_debug("%04d: pfn=%lu, offset=%u length=%u (L)\n", i,
^
./include/linux/printk.h:271:21: note: in definition of macro ‘pr_fmt’
#define pr_fmt(fmt) fmt
^~~
./include/linux/printk.h:319:2: note: in expansion of macro ‘dynamic_pr_debug’
dynamic_pr_debug(fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~
/APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.c:344:3: note: in expansion of macro ‘pr_debug’
pr_debug("%04d: pfn=%lu, offset=%u length=%u (L)\n", i,
^~~~~~~~
/APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.c:351:12: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘long unsigned int’ [-Wformat=]
pr_debug("%04d: pfn=%lu, offset=%u length=%u (F)\n", 0,
^
./include/linux/printk.h:271:21: note: in definition of macro ‘pr_fmt’
#define pr_fmt(fmt) fmt
^~~
./include/linux/printk.h:319:2: note: in expansion of macro ‘dynamic_pr_debug’
dynamic_pr_debug(fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~
/APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.c:351:3: note: in expansion of macro ‘pr_debug’
pr_debug("%04d: pfn=%lu, offset=%u length=%u (F)\n", 0,
^~~~~~~~
/APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.c:351:12: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 6 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
pr_debug("%04d: pfn=%lu, offset=%u length=%u (F)\n", 0,
^
./include/linux/printk.h:271:21: note: in definition of macro ‘pr_fmt’
#define pr_fmt(fmt) fmt
^~~
./include/linux/printk.h:319:2: note: in expansion of macro ‘dynamic_pr_debug’
dynamic_pr_debug(fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~
/APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-sgm.c:351:3: note: in expansion of macro ‘pr_debug’
pr_debug("%04d: pfn=%lu, offset=%u length=%u (F)\n", 0,
^~~~~~~~
CC [M] /APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-ioctl.o
CC [M] /APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma-bit.o
LD [M] /APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma.o
Building modules, stage 2.
MODPOST 1 modules
CC /APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma.mod.o
LD [M] /APP_linux_01/Xilinx_Answer_65444_Linux_Files/driver/xdma.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.9.337-tegra-ubuntu18.04_aarch64/kernel-4.9'