All of lore.kernel.org
 help / color / mirror / Atom feed
* [xilinx-xlnx:xlnx_rebase_v5.15_LTS 622/1160] drivers/media/i2c/adv7511-v4l2.c:2096:63: sparse: sparse: incorrect type in argument 1 (different base types)
@ 2022-06-12  3:57 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-06-12  3:57 UTC (permalink / raw)
  To: Radhey Shyam Pandey
  Cc: kbuild-all, linux-arm-kernel, Michal Simek, Davor Joja

tree:   https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.15_LTS
head:   21e0373d8477c67f5e78448385cda0548d5fdc18
commit: 59e26517c7b77c4c82aad32cfac74ae39c32b76b [622/1160] drivers: media: Customized adv7511 for Xylon LogiCVC (deprecated)
config: sparc64-randconfig-s032-20220612 (https://download.01.org/0day-ci/archive/20220612/202206121138.1ZNDtBxU-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 11.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.4-30-g92122700-dirty
        # https://github.com/Xilinx/linux-xlnx/commit/59e26517c7b77c4c82aad32cfac74ae39c32b76b
        git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.15_LTS
        git checkout 59e26517c7b77c4c82aad32cfac74ae39c32b76b
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=sparc64 SHELL=/bin/bash drivers/media/i2c/

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


sparse warnings: (new ones prefixed by >>)
>> drivers/media/i2c/adv7511-v4l2.c:2096: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:2096:63: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2096:63: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2100: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:2100:65: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2100:65: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2104: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:2104:62: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2104:62: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2111: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:2111:55: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2111:55: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2115: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:2115:55: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2115:55: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2119: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:2119:55: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2119:55: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2123: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:2123:55: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2123:55: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2127: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:2127:55: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2127:55: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2131: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:2131:55: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2131:55: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2135: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:2135:55: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2135:55: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2145: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:2145:42: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2145:42: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2151: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:2151:55: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2151:55: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2155: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:2155:55: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2155:55: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2159: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:2159:55: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2159:55: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2163: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:2163:55: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2163:55: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2168: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:2168:63: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2168:63: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2175: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:2175:72: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2175:72: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2180: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:2180:72: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2180:72: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2185: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:2185:72: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2185:72: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2190: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:2190:72: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2190:72: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2195: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:2195:72: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2195:72: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2200: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:2200:72: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2200:72: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2205: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:2205:72: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2205:72: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2210: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:2210:72: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2210:72: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2215: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:2215:72: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2215:72: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2220: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:2220:72: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2220:72: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2225: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:2225:72: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2225:72: sparse:     got unsigned int const [usertype] *[assigned] prop
   drivers/media/i2c/adv7511-v4l2.c:2230: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:2230:72: sparse:     expected restricted __be32 const [usertype] *p
   drivers/media/i2c/adv7511-v4l2.c:2230:72: sparse:     got unsigned int const [usertype] *[assigned] prop

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

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

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

_______________________________________________
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:[~2022-06-12  3:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-12  3:57 [xilinx-xlnx:xlnx_rebase_v5.15_LTS 622/1160] drivers/media/i2c/adv7511-v4l2.c:2096:63: sparse: sparse: incorrect type in argument 1 (different base types) kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.