[xlnx:xlnx_rebase_v5.4 217/1696] drivers/media/i2c/adv7511-v4l2.c:2102:63: sparse: sparse: incorrect type in argument 1 (different base types)

kernel test robot lkp at intel.com
Thu Dec 3 06:44:09 EST 2020


tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.4
head:   61e889430e4c71c59bc43d5b4a23ef1f5845cd70
commit: 9836a252284b997aacd6b86766514a0bb84b4f43 [217/1696] drivers: media: Customized adv7511 for Xylon LogiCVC (deprecated)
config: sparc64-randconfig-s031-20201203 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.3-179-ga00755aa-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
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=sparc64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 21813 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20201203/ed51b72a/attachment-0001.gz>


More information about the linux-arm-kernel mailing list