Skip to content

Instantly share code, notes, and snippets.

@nomelif
Created February 12, 2020 18:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nomelif/1770d97628ce3d9c32310e4791445c0c to your computer and use it in GitHub Desktop.
Save nomelif/1770d97628ce3d9c32310e4791445c0c to your computer and use it in GitHub Desktop.
CC drivers/media/video/camdrv_ss.o
drivers/media/video/camdrv_ss.c:264:3: warning: initialization from incompatible pointer type
.show = rear_flash_show,
^
drivers/media/video/camdrv_ss.c:264:3: warning: (near initialization for 'dev_attr_rear_flash.show')
drivers/media/video/camdrv_ss.c: In function 'camdrv_ss_g_parm':
drivers/media/video/camdrv_ss.c:3915:36: warning: argument to 'sizeof' in 'memcpy' call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
memcpy(param, &state->strm, sizeof(param));
^
drivers/media/video/camdrv_ss.c: In function 'camdrv_ss_s_ctrl':
drivers/media/video/camdrv_ss.c:4208:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
struct task_struct *camdrv_ss_init_thread;
^
drivers/media/video/camdrv_ss.c: In function 'camdrv_ss_cap_mode_change_monitor':
drivers/media/video/camdrv_ss.c:4769:3: warning: too many arguments for format [-Wformat-extra-args]
CAM_ERROR_PRINTK(
^
drivers/media/video/camdrv_ss.c: In function 'camdrv_ss_probe':
drivers/media/video/camdrv_ss.c:5181:6: warning: unused variable 'ret' [-Wunused-variable]
int ret;
^
drivers/media/video/camdrv_ss.c: At top level:
drivers/media/video/camdrv_ss.c:88:14: warning: 'rear_flash_devnum' defined but not used [-Wunused-variable]
static dev_t rear_flash_devnum;
^
drivers/media/video/camdrv_ss.c:3495:12: warning: 'camdrv_ss_set_autocontrast' defined but not used [-Wunused-function]
static int camdrv_ss_set_autocontrast(struct v4l2_subdev *sd, struct v4l2_control *ctrl)
^
drivers/media/video/camdrv_ss.c: In function 'rear_flash_show':
drivers/media/video/camdrv_ss.c:209:4: warning: 'sd' may be used uninitialized in this function [-Wmaybe-uninitialized]
sensor.AAT_flash_control(sd, FLASH_CONTROL_OFF);
^
drivers/media/video/camdrv_ss.c: In function 'rear_flash_store':
drivers/media/video/camdrv_ss.c:235:4: warning: 'sd' may be used uninitialized in this function [-Wmaybe-uninitialized]
sensor.AAT_flash_control(sd, FLASH_CONTROL_OFF);
^
CC drivers/media/video/camdrv_ss_s5k4ecgx.o
drivers/media/video/camdrv_ss_s5k4ecgx.c:48:9: warning: type defaults to 'int' in declaration of 'camdrv_ss_s5k4ecgx_set_ae_stable_status' [-Wimplicit-int]
static camdrv_ss_s5k4ecgx_set_ae_stable_status(struct v4l2_subdev *sd, unsigned short value);//Nikhil
^
drivers/media/video/camdrv_ss_s5k4ecgx.c: In function 'camdrv_ss_s5k4ecgx_set_capture_start':
drivers/media/video/camdrv_ss_s5k4ecgx.c:625:6: warning: unused variable 'light_state' [-Wunused-variable]
int light_state = CAM_NORMAL_LIGHT;
^
drivers/media/video/camdrv_ss_s5k4ecgx.c: In function 'camdrv_ss_AAT_flash_write_data':
drivers/media/video/camdrv_ss_s5k4ecgx.c:1213:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
unsigned long flags;
^
drivers/media/video/camdrv_ss_s5k4ecgx.c: In function 'camdrv_ss_s5k4ecgx_get_iso_speed_rate':
drivers/media/video/camdrv_ss_s5k4ecgx.c:1287:6: warning: unused variable 'rows_num_' [-Wunused-variable]
int rows_num_=0;
^
drivers/media/video/camdrv_ss_s5k4ecgx.c: At top level:
drivers/media/video/camdrv_ss_s5k4ecgx.c:1348:9: warning: return type defaults to 'int' [-Wreturn-type]
static camdrv_ss_s5k4ecgx_set_ae_stable_status(struct v4l2_subdev *sd, unsigned short value)
^
drivers/media/video/camdrv_ss_s5k4ecgx.c: In function 'camdrv_ss_s5k4ecgx_set_ae_stable_status':
drivers/media/video/camdrv_ss_s5k4ecgx.c:1358:48: warning: large integer implicitly truncated to unsigned type [-Woverflow]
err += camdrv_ss_i2c_write_2_bytes(client, 0x0F12, value);
^
drivers/media/video/camdrv_ss_s5k4ecgx.c: In function 'camdrv_ss_s5k4ecgx_get_ae_stable_status':
drivers/media/video/camdrv_ss_s5k4ecgx.c:1421:9: warning: unused variable 'rows_num_' [-Wunused-variable]
int rows_num_=0;
^
drivers/media/video/camdrv_ss_s5k4ecgx.c: In function 'camdrv_ss_s5k4ecgx_set_auto_focus':
drivers/media/video/camdrv_ss_s5k4ecgx.c:1678:14: warning: unused variable 'n' [-Wunused-variable]
int n=0;//Nikhil
^
drivers/media/video/camdrv_ss_s5k4ecgx.c: In function 'camdrv_ss_s5k4ecgx_set_touch_focus_area':
drivers/media/video/camdrv_ss_s5k4ecgx.c:1919:9: warning: unused variable 'err' [-Wunused-variable]
int err = 0;
^
drivers/media/video/camdrv_ss_s5k4ecgx.c:1918:25: warning: unused variable 'ctrl' [-Wunused-variable]
struct v4l2_control ctrl = {0};
^
drivers/media/video/camdrv_ss_s5k4ecgx.c:1915:35: warning: unused variable 'SecondWinEndY' [-Wunused-variable]
unsigned short SecondWinEndX, SecondWinEndY, ConvSecondWinStartX, ConvSecondWinStartY;
^
drivers/media/video/camdrv_ss_s5k4ecgx.c:1915:20: warning: unused variable 'SecondWinEndX' [-Wunused-variable]
unsigned short SecondWinEndX, SecondWinEndY, ConvSecondWinStartX, ConvSecondWinStartY;
^
drivers/media/video/camdrv_ss_s5k4ecgx.c:1914:34: warning: unused variable 'FirstWinEndY' [-Wunused-variable]
unsigned short FirstWinEndX, FirstWinEndY, ConvFirstWinStartX, ConvFirstWinStartY;
^
drivers/media/video/camdrv_ss_s5k4ecgx.c:1914:20: warning: unused variable 'FirstWinEndX' [-Wunused-variable]
unsigned short FirstWinEndX, FirstWinEndY, ConvFirstWinStartX, ConvFirstWinStartY;
^
drivers/media/video/camdrv_ss_s5k4ecgx.c: In function 'camdrv_ss_s5k4ecgx_set_touch_focus':
drivers/media/video/camdrv_ss_s5k4ecgx.c:2079:19: warning: comparison between 'enum v4l2_touch_af' and 'enum v4l2_auto_focus' [-Wenum-compare]
else if(touch_af == AUTO_FOCUS_1ST_CANCEL)
^
drivers/media/video/camdrv_ss_s5k4ecgx.c:2103:23: warning: comparison between 'enum v4l2_touch_af' and 'enum v4l2_auto_focus' [-Wenum-compare]
else if(touch_af == AUTO_FOCUS_2ND_CANCEL )
^
drivers/media/video/camdrv_ss_s5k4ecgx.c: In function 'camdrv_ss_s5k4ecgx_get_mode_change':
drivers/media/video/camdrv_ss_s5k4ecgx.c:2732:3: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=]
CAM_ERROR_PRINTK("%s: mode change read failed(%d)\n", ret);
^
drivers/media/video/camdrv_ss_s5k4ecgx.c:2732:3: warning: format '%d' expects a matching 'int' argument [-Wformat=]
drivers/media/video/camdrv_ss_s5k4ecgx.c: In function 'camdrv_ss_s5k4ecgx_set_preflash_sequence':
drivers/media/video/camdrv_ss_s5k4ecgx.c:2752:14: warning: unused variable 'n' [-Wunused-variable]
int n=0;//Nikhil
^
drivers/media/video/camdrv_ss_s5k4ecgx.c: At top level:
drivers/media/video/camdrv_ss_s5k4ecgx.c:49:12: warning: 'camdrv_ss_s5k4ecgx_get_ae_stable_status_value' declared 'static' but never defined [-Wunused-function]
static int camdrv_ss_s5k4ecgx_get_ae_stable_status_value(struct v4l2_subdev *sd);//Nikihl
^
drivers/media/video/camdrv_ss_s5k4ecgx.c: In function 'camdrv_ss_s5k4ecgx_set_ae_stable_status':
drivers/media/video/camdrv_ss_s5k4ecgx.c:1365:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
drivers/media/video/camdrv_ss_s5k4ecgx.c: In function 'camdrv_ss_s5k4ecgx_set_touch_focus_area':
drivers/media/video/camdrv_ss_s5k4ecgx.c:2011:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
CC drivers/media/video/camdrv_ss_sr030pc50.o
drivers/media/video/camdrv_ss_sr030pc50.c: In function 'camdrv_ss_sr030pc50_get_exposureTime':
drivers/media/video/camdrv_ss_sr030pc50.c:446:45: warning: passing argument 3 of 'camdrv_ss_i2c_read_1_byte' from incompatible pointer type
camdrv_ss_i2c_read_1_byte(client, 0x80, &read_value1);
^
In file included from drivers/media/video/camdrv_ss_sr030pc50.c:17:0:
drivers/media/video/camdrv_ss.h:152:5: note: expected 'unsigned char *' but argument is of type 'unsigned int *'
int camdrv_ss_i2c_read_1_byte(struct i2c_client *client, unsigned char subaddr, unsigned char *data);
^
drivers/media/video/camdrv_ss_sr030pc50.c:447:45: warning: passing argument 3 of 'camdrv_ss_i2c_read_1_byte' from incompatible pointer type
camdrv_ss_i2c_read_1_byte(client, 0x81, &read_value2);
^
In file included from drivers/media/video/camdrv_ss_sr030pc50.c:17:0:
drivers/media/video/camdrv_ss.h:152:5: note: expected 'unsigned char *' but argument is of type 'unsigned int *'
int camdrv_ss_i2c_read_1_byte(struct i2c_client *client, unsigned char subaddr, unsigned char *data);
^
drivers/media/video/camdrv_ss_sr030pc50.c:448:45: warning: passing argument 3 of 'camdrv_ss_i2c_read_1_byte' from incompatible pointer type
camdrv_ss_i2c_read_1_byte(client, 0x82, &read_value3);
^
In file included from drivers/media/video/camdrv_ss_sr030pc50.c:17:0:
drivers/media/video/camdrv_ss.h:152:5: note: expected 'unsigned char *' but argument is of type 'unsigned int *'
int camdrv_ss_i2c_read_1_byte(struct i2c_client *client, unsigned char subaddr, unsigned char *data);
^
drivers/media/video/camdrv_ss_sr030pc50.c: In function 'camdrv_ss_sr030pc50_get_iso_speed_rate':
drivers/media/video/camdrv_ss_sr030pc50.c:466:45: warning: passing argument 3 of 'camdrv_ss_i2c_read_1_byte' from incompatible pointer type
camdrv_ss_i2c_read_1_byte(client, 0xb0, &read_value);
^
In file included from drivers/media/video/camdrv_ss_sr030pc50.c:17:0:
drivers/media/video/camdrv_ss.h:152:5: note: expected 'unsigned char *' but argument is of type 'short unsigned int *'
int camdrv_ss_i2c_read_1_byte(struct i2c_client *client, unsigned char subaddr, unsigned char *data);
^
drivers/media/video/camdrv_ss_sr030pc50.c:463:9: warning: unused variable 'rows_num_' [-Wunused-variable]
int rows_num_=0;
^
drivers/media/video/camdrv_ss_sr030pc50.c: In function 'camdrv_ss_sr030pc50_get_sensor_param_for_exif':
drivers/media/video/camdrv_ss_sr030pc50.c:675:2: warning: format '%d' expects argument of type 'int', but argument 3 has type 'double' [-Wformat=]
CAM_INFO_PRINTK("%s : exposureTime = %d \n",__func__,exposureTime);
^
drivers/media/video/camdrv_ss_sr030pc50.c: In function 'camdrv_ss_sr030pc50_set_preview_start':
drivers/media/video/camdrv_ss_sr030pc50.c:27:39: error: inlining failed in call to always_inline 'to_state': function body not available
extern inline struct camdrv_ss_state *to_state(struct v4l2_subdev *sd);
^
drivers/media/video/camdrv_ss_sr030pc50.c:385:26: error: called from here
struct camdrv_ss_state *state = to_state(sd);
^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment