All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Moudy Ho <moudy.ho@mediatek.com>,
	Mauro Carvalho Chehab <mchehab@kernel.org>,
	Rob Herring <robh+dt@kernel.org>,
	Matthias Brugger <matthias.bgg@gmail.com>,
	Hans Verkuil <hverkuil@xs4all.nl>,
	Jernej Skrabec <jernej.skrabec@siol.net>
Cc: kbuild-all@lists.01.org, linux-media@vger.kernel.org,
	Maoguang Meng <maoguang.meng@mediatek.com>,
	daoyuan huang <daoyuan.huang@mediatek.com>,
	Ping-Hsun Wu <ping-hsun.wu@mediatek.com>
Subject: Re: [PATCH v5 3/3] media: platform: mtk-mdp3: Add Mediatek MDP3 driver
Date: Mon, 19 Jul 2021 18:57:07 +0800	[thread overview]
Message-ID: <202107191824.qJGzfwwI-lkp@intel.com> (raw)
In-Reply-To: <20210719074640.25058-4-moudy.ho@mediatek.com>

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

Hi Moudy,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linuxtv-media/master]
[also build test WARNING on robh/for-next mediatek/for-next v5.14-rc2 next-20210719]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Moudy-Ho/media-mediatek-support-mdp3-on-mt8183-platform/20210719-154845
base:   git://linuxtv.org/media_tree.git master
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 10.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/0day-ci/linux/commit/ca5b8c1fac55efa08e8362a4aa345c474b798326
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Moudy-Ho/media-mediatek-support-mdp3-on-mt8183-platform/20210719-154845
        git checkout ca5b8c1fac55efa08e8362a4aa345c474b798326
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=arc 

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

All warnings (new ones prefixed by >>):

   drivers/media/platform/mtk-mdp3/mtk-mdp3-comp.c: In function 'mdp_sub_comps_create':
>> drivers/media/platform/mtk-mdp3/mtk-mdp3-comp.c:1232:29: warning: implicit conversion from 'enum mdp_comp_id' to 'enum mdp_comp_type' [-Wenum-conversion]
    1232 |   enum mdp_comp_type type = MDP_COMP_NONE;
         |                             ^~~~~~~~~~~~~
   drivers/media/platform/mtk-mdp3/mtk-mdp3-comp.c: In function 'mdp_mm_init':
   drivers/media/platform/mtk-mdp3/mtk-mdp3-comp.c:1282:6: warning: unused variable 'ret' [-Wunused-variable]
    1282 |  int ret;
         |      ^~~


vim +1232 drivers/media/platform/mtk-mdp3/mtk-mdp3-comp.c

  1222	
  1223	static int mdp_sub_comps_create(struct mdp_dev *mdp, struct device_node *node)
  1224	{
  1225		struct device *dev = &mdp->pdev->dev;
  1226		struct property *prop;
  1227		const char *name;
  1228		int index = 0;
  1229	
  1230		of_property_for_each_string(node, "mdp3-comps", prop, name) {
  1231			const struct of_device_id *matches = mdp_sub_comp_dt_ids;
> 1232			enum mdp_comp_type type = MDP_COMP_NONE;
  1233			u32 alias_id;
  1234			int id, ret;
  1235			struct mdp_comp *comp;
  1236	
  1237			for (; matches->compatible[0]; matches++) {
  1238				if (of_compat_cmp(name, matches->compatible,
  1239						 strlen(matches->compatible)) == 0) {
  1240					type = (enum mdp_comp_type)matches->data;
  1241					break;
  1242				}
  1243			}
  1244	
  1245			ret = of_property_read_u32_index(node, "mdp3-comp-ids",
  1246							index, &alias_id);
  1247			if (ret) {
  1248				dev_warn(dev, "Skipping unknown component %s\n", name);
  1249				return ret;
  1250			}
  1251	
  1252			id = mdp_comp_get_id(type, alias_id);
  1253			if (id < 0) {
  1254				dev_err(dev, "Failed to get component id: "
  1255					"%s type %d, alias %d\n", name, type, alias_id);
  1256				return -ENODEV;
  1257			}
  1258	
  1259			comp = mdp_comp_create(mdp, node, id);
  1260			if (IS_ERR(comp))
  1261				return PTR_ERR(comp);
  1262	
  1263			index++;
  1264		}
  1265		return 0;
  1266	}
  1267	

---
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: 68149 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH v5 3/3] media: platform: mtk-mdp3: Add Mediatek MDP3 driver
Date: Mon, 19 Jul 2021 18:57:07 +0800	[thread overview]
Message-ID: <202107191824.qJGzfwwI-lkp@intel.com> (raw)
In-Reply-To: <20210719074640.25058-4-moudy.ho@mediatek.com>

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

Hi Moudy,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on linuxtv-media/master]
[also build test WARNING on robh/for-next mediatek/for-next v5.14-rc2 next-20210719]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Moudy-Ho/media-mediatek-support-mdp3-on-mt8183-platform/20210719-154845
base:   git://linuxtv.org/media_tree.git master
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 10.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/0day-ci/linux/commit/ca5b8c1fac55efa08e8362a4aa345c474b798326
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Moudy-Ho/media-mediatek-support-mdp3-on-mt8183-platform/20210719-154845
        git checkout ca5b8c1fac55efa08e8362a4aa345c474b798326
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=arc 

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

All warnings (new ones prefixed by >>):

   drivers/media/platform/mtk-mdp3/mtk-mdp3-comp.c: In function 'mdp_sub_comps_create':
>> drivers/media/platform/mtk-mdp3/mtk-mdp3-comp.c:1232:29: warning: implicit conversion from 'enum mdp_comp_id' to 'enum mdp_comp_type' [-Wenum-conversion]
    1232 |   enum mdp_comp_type type = MDP_COMP_NONE;
         |                             ^~~~~~~~~~~~~
   drivers/media/platform/mtk-mdp3/mtk-mdp3-comp.c: In function 'mdp_mm_init':
   drivers/media/platform/mtk-mdp3/mtk-mdp3-comp.c:1282:6: warning: unused variable 'ret' [-Wunused-variable]
    1282 |  int ret;
         |      ^~~


vim +1232 drivers/media/platform/mtk-mdp3/mtk-mdp3-comp.c

  1222	
  1223	static int mdp_sub_comps_create(struct mdp_dev *mdp, struct device_node *node)
  1224	{
  1225		struct device *dev = &mdp->pdev->dev;
  1226		struct property *prop;
  1227		const char *name;
  1228		int index = 0;
  1229	
  1230		of_property_for_each_string(node, "mdp3-comps", prop, name) {
  1231			const struct of_device_id *matches = mdp_sub_comp_dt_ids;
> 1232			enum mdp_comp_type type = MDP_COMP_NONE;
  1233			u32 alias_id;
  1234			int id, ret;
  1235			struct mdp_comp *comp;
  1236	
  1237			for (; matches->compatible[0]; matches++) {
  1238				if (of_compat_cmp(name, matches->compatible,
  1239						 strlen(matches->compatible)) == 0) {
  1240					type = (enum mdp_comp_type)matches->data;
  1241					break;
  1242				}
  1243			}
  1244	
  1245			ret = of_property_read_u32_index(node, "mdp3-comp-ids",
  1246							index, &alias_id);
  1247			if (ret) {
  1248				dev_warn(dev, "Skipping unknown component %s\n", name);
  1249				return ret;
  1250			}
  1251	
  1252			id = mdp_comp_get_id(type, alias_id);
  1253			if (id < 0) {
  1254				dev_err(dev, "Failed to get component id: "
  1255					"%s type %d, alias %d\n", name, type, alias_id);
  1256				return -ENODEV;
  1257			}
  1258	
  1259			comp = mdp_comp_create(mdp, node, id);
  1260			if (IS_ERR(comp))
  1261				return PTR_ERR(comp);
  1262	
  1263			index++;
  1264		}
  1265		return 0;
  1266	}
  1267	

---
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: 68149 bytes --]

  reply	other threads:[~2021-07-19 10:57 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-19  7:46 [PATCH v5 0/3] media: mediatek: support mdp3 on mt8183 platform Moudy Ho
2021-07-19  7:46 ` Moudy Ho
2021-07-19  7:46 ` Moudy Ho
2021-07-19  7:46 ` [PATCH v5 1/3] dt-binding: mt8183: Add Mediatek MDP3 dt-bindings Moudy Ho
2021-07-19  7:46   ` Moudy Ho
2021-07-19  7:46   ` Moudy Ho
2021-07-21 11:01   ` Enric Balletbo Serra
2021-07-21 11:01     ` Enric Balletbo Serra
2021-07-21 11:01     ` Enric Balletbo Serra
2021-07-23 23:13   ` Rob Herring
2021-07-23 23:13     ` Rob Herring
2021-07-23 23:13     ` Rob Herring
2021-07-19  7:46 ` [PATCH v5 2/3] dts: arm64: mt8183: Add Mediatek MDP3 nodes Moudy Ho
2021-07-19  7:46   ` Moudy Ho
2021-07-19  7:46   ` Moudy Ho
2021-07-21 11:01   ` Enric Balletbo Serra
2021-07-21 11:01     ` Enric Balletbo Serra
2021-07-21 11:01     ` Enric Balletbo Serra
2021-08-02  2:14   ` CK Hu
2021-08-02  2:14     ` CK Hu
2021-08-02  2:14     ` CK Hu
2021-07-19  7:46 ` [PATCH v5 3/3] media: platform: mtk-mdp3: Add Mediatek MDP3 driver Moudy Ho
2021-07-19  7:46   ` Moudy Ho
2021-07-19 10:57   ` kernel test robot [this message]
2021-07-19 10:57     ` kernel test robot
2021-07-20 14:18   ` kernel test robot
2021-07-20 14:18     ` kernel test robot
2021-07-21 10:45   ` Enric Balletbo Serra
2021-07-21 10:45     ` Enric Balletbo Serra
2021-07-21 10:45     ` Enric Balletbo Serra
2021-07-25  1:06   ` Chun-Kuang Hu
2021-07-25  1:06     ` Chun-Kuang Hu
2021-07-25  1:06     ` Chun-Kuang Hu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202107191824.qJGzfwwI-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=daoyuan.huang@mediatek.com \
    --cc=hverkuil@xs4all.nl \
    --cc=jernej.skrabec@siol.net \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-media@vger.kernel.org \
    --cc=maoguang.meng@mediatek.com \
    --cc=matthias.bgg@gmail.com \
    --cc=mchehab@kernel.org \
    --cc=moudy.ho@mediatek.com \
    --cc=ping-hsun.wu@mediatek.com \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.