linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [xlnx:xlnx_rebase_v5.4 217/1755] drivers/media/i2c/adv7511-v4l2.c:2102:63: sparse: sparse: incorrect type in argument 1 (different base types)
@ 2021-04-28 10:41 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-04-28 10:41 UTC (permalink / raw)
  To: Radhey Shyam Pandey
  Cc: kbuild-all, linux-arm-kernel, Michal Simek, Davor Joja

[-- Attachment #1: Type: text/plain, Size: 19464 bytes --]

tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head:   77883b257c27f47445381c70c9236ade8f87eeaa
commit: 9836a252284b997aacd6b86766514a0bb84b4f43 [217/1755] drivers: media: Customized adv7511 for Xylon LogiCVC (deprecated)
config: x86_64-randconfig-s022-20210428 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-341-g8af24329-dirty
        # https://github.com/Xilinx/linux-xlnx/commit/9836a252284b997aacd6b86766514a0bb84b4f43
        git remote add xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xlnx xlnx_rebase_v5.4
        git checkout 9836a252284b997aacd6b86766514a0bb84b4f43
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


sparse warnings: (new ones prefixed by >>)
   drivers/media/i2c/adv7511-v4l2.c:427:16: sparse: sparse: return expression in void function
>> drivers/media/i2c/adv7511-v4l2.c:2102:63: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2102:63: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2102:63: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2106:65: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2106:65: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2106:65: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2110:62: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2110:62: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2110:62: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2117:55: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2117:55: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2117:55: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2121:55: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2121:55: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2121:55: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2125:55: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2125:55: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2125:55: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2129:55: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2129:55: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2129:55: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2133:55: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2133:55: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2133:55: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2137:55: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2137:55: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2137:55: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2141:55: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2141:55: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2141:55: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2151:42: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2151:42: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2151:42: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2157:55: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2157:55: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2157:55: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2161:55: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2161:55: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2161:55: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2165:55: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2165:55: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2165:55: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2169:55: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2169:55: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2169:55: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2174:63: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2174:63: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2174:63: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2181:72: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2181:72: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2181:72: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2186:72: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2186:72: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2186:72: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2191:72: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2191:72: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2191:72: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2196:72: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2196:72: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2196:72: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2201:72: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2201:72: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2201:72: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2206:72: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2206:72: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2206:72: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2211:72: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2211:72: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2211:72: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2216:72: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2216:72: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2216:72: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2221:72: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2221:72: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2221:72: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2226:72: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2226:72: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2226:72: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2231:72: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2231:72: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2231:72: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2236:72: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected restricted __be32 const [usertype] *p @@     got unsigned int const [usertype] *[assigned] prop @@
   drivers/media/i2c/adv7511-v4l2.c:2236:72: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2236:72: sparse:     got unsigned int const [usertype] *[assigned] prop

vim +2102 drivers/media/i2c/adv7511-v4l2.c

  2086	
  2087	
  2088	static void adv7511_get_ofdt_config(struct i2c_client *client,
  2089		struct adv7511_state *state)
  2090	{
  2091		struct device_node *dn = client->dev.of_node;
  2092		struct device_node *np;
  2093		struct adv7511_config *config = &state->cfg;
  2094		u32 const *prop;
  2095		int size;
  2096		bool vin_loaded, vout_loaded;
  2097	
  2098		vin_loaded = vout_loaded = false;
  2099	
  2100		prop = of_get_property(dn, "edid-addr", &size);
  2101		if (prop)
> 2102			state->pdata.i2c_edid = (uint8_t)be32_to_cpup(prop);
  2103	
  2104		prop = of_get_property(dn, "pktmem-addr", &size);
  2105		if (prop)
  2106			state->pdata.i2c_pktmem = (uint8_t)be32_to_cpup(prop);
  2107	
  2108		prop = of_get_property(dn, "cec-addr", &size);
  2109		if (prop)
  2110			state->pdata.i2c_cec = (uint8_t)be32_to_cpup(prop);
  2111	
  2112		np = of_find_node_by_name(dn, "video-input");
  2113		if (np) {
  2114			prop = of_get_property(np, "input-id", &size);
  2115			if (prop)
  2116				config->in_params.input_id =
  2117					(uint8_t)be32_to_cpup(prop);
  2118			prop = of_get_property(np, "input-style", &size);
  2119			if (prop)
  2120				config->in_params.input_style =
  2121					(uint8_t)be32_to_cpup(prop);
  2122			prop = of_get_property(np, "input-color-depth", &size);
  2123			if (prop)
  2124				config->in_params.input_color_depth =
  2125					(uint8_t)be32_to_cpup(prop);
  2126			prop = of_get_property(np, "bit-justification", &size);
  2127			if (prop)
  2128				config->in_params.bit_justification =
  2129					(uint8_t)be32_to_cpup(prop);
  2130			prop = of_get_property(np, "hsync-polarity", &size);
  2131			if (prop)
  2132				config->in_params.hsync_polarity =
  2133					(uint8_t)be32_to_cpup(prop);
  2134			prop = of_get_property(np, "vsync-polarity", &size);
  2135			if (prop)
  2136				config->in_params.vsync_polarity =
  2137					(uint8_t)be32_to_cpup(prop);
  2138			prop = of_get_property(np, "clock-delay", &size);
  2139			if (prop)
  2140				config->in_params.clock_delay =
  2141					(uint8_t)be32_to_cpup(prop);
  2142			vin_loaded = true;
  2143		} else {
  2144			pr_info("No video input configuration, using device default\n");
  2145		}
  2146	
  2147		np = of_find_node_by_name(dn, "video-output");
  2148		if (np) {
  2149			prop = of_get_property(np, "hdmi-mode", &size);
  2150			if (prop) {
  2151				if (be32_to_cpup(prop) == 1)
  2152					config->out_params.hdmi_mode = true;
  2153			}
  2154			prop = of_get_property(np, "output-format", &size);
  2155			if (prop)
  2156				config->out_params.output_format =
  2157					(uint8_t)be32_to_cpup(prop);
  2158			prop = of_get_property(np, "output-color-space", &size);
  2159			if (prop)
  2160				config->out_params.output_color_space =
  2161					(uint8_t)be32_to_cpup(prop);
  2162			prop = of_get_property(np, "up-conversion", &size);
  2163			if (prop)
  2164				config->out_params.up_conversion =
  2165					(uint8_t)be32_to_cpup(prop);
  2166			prop = of_get_property(np, "csc-enable", &size);
  2167			if (prop)
  2168				config->out_params.csc_enable =
  2169					(uint8_t)be32_to_cpup(prop);
  2170			if (config->out_params.csc_enable) {
  2171				prop = of_get_property(np, "csc-scaling-factor", &size);
  2172				if (prop) {
  2173					config->out_params.csc_scaling_factor =
  2174						(uint8_t)be32_to_cpup(prop);
  2175				}
  2176				np = of_find_node_by_name(dn, "csc-coefficients");
  2177				if (np) {
  2178					prop = of_get_property(np, "a1", &size);
  2179					if (prop) {
  2180						config->out_params.csc_coeff.a1 =
  2181							(uint16_t)be32_to_cpup(prop);
  2182					}
  2183					prop = of_get_property(np, "a2", &size);
  2184					if (prop) {
  2185						config->out_params.csc_coeff.a2 =
  2186							(uint16_t)be32_to_cpup(prop);
  2187					}
  2188					prop = of_get_property(np, "a3", &size);
  2189					if (prop) {
  2190						config->out_params.csc_coeff.a3 =
  2191							(uint16_t)be32_to_cpup(prop);
  2192					}
  2193					prop = of_get_property(np, "a4", &size);
  2194					if (prop) {
  2195						config->out_params.csc_coeff.a4 =
  2196							(uint16_t)be32_to_cpup(prop);
  2197					}
  2198					prop = of_get_property(np, "b1", &size);
  2199					if (prop) {
  2200						config->out_params.csc_coeff.b1 =
  2201							(uint16_t)be32_to_cpup(prop);
  2202					}
  2203					prop = of_get_property(np, "b2", &size);
  2204					if (prop) {
  2205						config->out_params.csc_coeff.b2 =
  2206							(uint16_t)be32_to_cpup(prop);
  2207					}
  2208					prop = of_get_property(np, "b3", &size);
  2209					if (prop) {
  2210						config->out_params.csc_coeff.b3 =
  2211							(uint16_t)be32_to_cpup(prop);
  2212					}
  2213					prop = of_get_property(np, "b4", &size);
  2214					if (prop) {
  2215						config->out_params.csc_coeff.b4 =
  2216							(uint16_t)be32_to_cpup(prop);
  2217					}
  2218					prop = of_get_property(np, "c1", &size);
  2219					if (prop) {
  2220						config->out_params.csc_coeff.c1 =
  2221							(uint16_t)be32_to_cpup(prop);
  2222					}
  2223					prop = of_get_property(np, "c2", &size);
  2224					if (prop) {
  2225						config->out_params.csc_coeff.c2 =
  2226							(uint16_t)be32_to_cpup(prop);
  2227					}
  2228					prop = of_get_property(np, "c3", &size);
  2229					if (prop) {
  2230						config->out_params.csc_coeff.c3 =
  2231							(uint16_t)be32_to_cpup(prop);
  2232					}
  2233					prop = of_get_property(np, "c4", &size);
  2234					if (prop) {
  2235						config->out_params.csc_coeff.c4 =
  2236							(uint16_t)be32_to_cpup(prop);
  2237					}
  2238				} else {
  2239					pr_info("No CSC coefficients, using default\n");
  2240				}
  2241			}
  2242			vout_loaded = true;
  2243		} else {
  2244			pr_info("No video output configuration, using device default\n");
  2245		}
  2246	
  2247		if (vin_loaded && vout_loaded)
  2248			config->loaded = true;
  2249	}
  2250	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 29898 bytes --]

[-- Attachment #3: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-28 10:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-28 10:41 [xlnx:xlnx_rebase_v5.4 217/1755] drivers/media/i2c/adv7511-v4l2.c:2102:63: sparse: sparse: incorrect type in argument 1 (different base types) kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).