maru: apply -Werror on subdirectories under maru
authorSeokYeon Hwang <syeon.hwang@samsung.com>
Fri, 15 Jul 2016 07:18:26 +0000 (16:18 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Fri, 15 Jul 2016 07:18:26 +0000 (16:18 +0900)
Change-Id: I03d846536185729830dedd8e4fdb88855e33a701
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
drivers/maru/sensors/Makefile
drivers/maru/tv/Makefile
drivers/maru/tv/maru_dummy.c

index 5a9914616e081a52f5e7bbb6e6215f9187eed683..de588ff7b7a9e13c26e51ec2bae8716d1b3f9d97 100644 (file)
@@ -1,3 +1,4 @@
+ccflags-y += -Werror
 obj-$(CONFIG_MARU_VIRTIO_SENSOR) += maru_virtio_sensor.o       \
                                                                        maru_accel.o                    \
                                                                        maru_geo.o                              \
index fd3700925acb090855fcfcfedb8f61719a6fa840..04c14603f583997555e36e6115b894d6b02549f0 100644 (file)
@@ -1,3 +1,4 @@
+ccflags-y += -Werror
 obj-$(CONFIG_MARU_TV_EEPROM) += maru_eeprom.o
 obj-$(CONFIG_MARU_TV_DUMMY) += maru_dummy.o
 obj-$(CONFIG_MARU_TV_SECURITY) += maru_dummy_security.o
index 725490e65e4a47fb8751db4f65da18a09b000d6c..bbaa48403a55ff0f73fc7a21f70feb93d5b3ca94 100644 (file)
@@ -78,7 +78,7 @@ static long maru_##_dev##_ioctl(struct file *file, unsigned int cmd, unsigned lo
 static ssize_t maru_##_dev##_write(struct file *file, const char __user *buf,                  \
                                                                size_t len, loff_t *ppos)       \
 {                                                                                              \
-       maru_device_dbg(1, "write is called. size: %d, buf: %s, \n", len, buf);                 \
+       maru_device_dbg(1, "write is called. size: %zu, buf: %s, \n", len, buf);                        \
        return len;                                                                             \
 }                                                                                              \
 static unsigned int maru_##_dev##_poll(struct file *file, struct poll_table_struct *wait)      \
@@ -216,4 +216,4 @@ static void __exit maru_dummy_exit(void)
 }
 
 module_init(maru_dummy_init);
-module_exit(maru_dummy_exit);
\ No newline at end of file
+module_exit(maru_dummy_exit);