mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Jitao Shi <jitao.shi@mediatek.com>
Cc: kbuild-all@01.org, David Airlie <airlied@linux.ie>,
	Matthias Brugger <matthias.bgg@gmail.com>,
	Rob Herring <robh+dt@kernel.org>, Pawel Moll <pawel.moll@arm.com>,
	Mark Rutland <mark.rutland@arm.com>,
	Ian Campbell <ijc+devicetree@hellion.org.uk>,
	Kumar Gala <galak@codeaurora.org>,
	Jitao Shi <jitao.shi@mediatek.com>,
	Thierry Reding <treding@nvidia.com>,
	Ajay Kumar <ajaykumar.rs@samsung.com>,
	Inki Dae <inki.dae@samsung.com>,
	Rahul Sharma <rahul.sharma@samsung.com>,
	Sean Paul <seanpaul@chromium.org>,
	Vincent Palatin <vpalatin@chromium.org>,
	Andy Yan <andy.yan@rock-chips.com>,
	Philipp Zabel <p.zabel@pengutronix.de>,
	Russell King <rmk+kernel@arm.linux.org.uk>,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	dri-devel@lists.freedesktop.org,
	linux-arm-kernel@lists.infradead.org,
	linux-mediatek@lists.infradead.org, srv_heupstream@mediatek.com,
	Sascha Hauer <kernel@pengutronix.de>,
	yingjoe.chen@mediatek.com, eddie.huang@mediatek.com,
	cawa.cheng@mediatek.com, bibby.hsieh@mediatek.com,
	ck.hu@mediatek.com, stonea168@163.com
Subject: Re: [PATCH v12 2/2] drm/bridge: Add I2C based driver for ps8640 bridge
Date: Wed, 16 Mar 2016 23:00:10 +0800	[thread overview]
Message-ID: <201603162215.JRlvsJLx%fengguang.wu@intel.com> (raw)
In-Reply-To: <1458134885-6748-2-git-send-email-jitao.shi@mediatek.com>

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

Hi Jitao,

[auto build test WARNING on drm/drm-next]
[also build test WARNING on v4.5 next-20160316]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url:    https://github.com/0day-ci/linux/commits/Jitao-Shi/Documentation-bridge-Add-documentation-for-ps8640-DT-properties/20160316-213031
base:   git://people.freedesktop.org/~airlied/linux.git drm-next
config: x86_64-allmodconfig (attached as .config)
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All warnings (new ones prefixed by >>):

   include/linux/compiler.h:228:8: sparse: attribute 'no_sanitize_address': unknown attribute
   drivers/gpu/drm/bridge/parade-ps8640.c:114:30: sparse: invalid initializer
   drivers/gpu/drm/bridge/parade-ps8640.c:430:24: sparse: undefined identifier 'of_find_mipi_dsi_host_by_node'
   drivers/gpu/drm/bridge/parade-ps8640.c:114:37: warning: excess elements in scalar initializer
    static const u8 hw_chip_id = {0x00, 0x0a, 0x00, 0x30};
                                        ^
   drivers/gpu/drm/bridge/parade-ps8640.c:114:37: note: (near initialization for 'hw_chip_id')
   drivers/gpu/drm/bridge/parade-ps8640.c:114:43: warning: excess elements in scalar initializer
    static const u8 hw_chip_id = {0x00, 0x0a, 0x00, 0x30};
                                              ^
   drivers/gpu/drm/bridge/parade-ps8640.c:114:43: note: (near initialization for 'hw_chip_id')
   drivers/gpu/drm/bridge/parade-ps8640.c:114:49: warning: excess elements in scalar initializer
    static const u8 hw_chip_id = {0x00, 0x0a, 0x00, 0x30};
                                                    ^
   drivers/gpu/drm/bridge/parade-ps8640.c:114:49: note: (near initialization for 'hw_chip_id')
   drivers/gpu/drm/bridge/parade-ps8640.c: In function 'ps8640_bridge_attach':
   drivers/gpu/drm/bridge/parade-ps8640.c:430:10: error: implicit declaration of function 'of_find_mipi_dsi_host_by_node' [-Werror=implicit-function-declaration]
      host = of_find_mipi_dsi_host_by_node(dsi_node);
             ^
   drivers/gpu/drm/bridge/parade-ps8640.c:430:8: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
      host = of_find_mipi_dsi_host_by_node(dsi_node);
           ^
   drivers/gpu/drm/bridge/parade-ps8640.c: In function 'ps8640_check_chip_id':
>> drivers/gpu/drm/bridge/parade-ps8640.c:717:21: warning: passing argument 2 of 'memcmp' makes pointer from integer without a cast [-Wint-conversion]
     return memcmp(buf, hw_chip_id, sizeof(buf));
                        ^
   In file included from include/linux/bitmap.h:8:0,
                    from include/linux/cpumask.h:11,
                    from arch/x86/include/asm/cpumask.h:4,
                    from arch/x86/include/asm/msr.h:10,
                    from arch/x86/include/asm/processor.h:20,
                    from arch/x86/include/asm/thread_info.h:52,
                    from include/linux/thread_info.h:54,
                    from arch/x86/include/asm/preempt.h:6,
                    from include/linux/preempt.h:59,
                    from include/linux/spinlock.h:50,
                    from include/linux/mmzone.h:7,
                    from include/linux/gfp.h:5,
                    from include/linux/firmware.h:6,
                    from drivers/gpu/drm/bridge/parade-ps8640.c:16:
   include/linux/string.h:112:12: note: expected 'const void *' but argument is of type 'u8 {aka const unsigned char}'
    extern int memcmp(const void *,const void *,__kernel_size_t);
               ^
   cc1: some warnings being treated as errors

sparse warnings: (new ones prefixed by >>)

   include/linux/compiler.h:228:8: sparse: attribute 'no_sanitize_address': unknown attribute
>> drivers/gpu/drm/bridge/parade-ps8640.c:114:30: sparse: invalid initializer
   drivers/gpu/drm/bridge/parade-ps8640.c:430:24: sparse: undefined identifier 'of_find_mipi_dsi_host_by_node'
   drivers/gpu/drm/bridge/parade-ps8640.c:114:37: warning: excess elements in scalar initializer
    static const u8 hw_chip_id = {0x00, 0x0a, 0x00, 0x30};
                                        ^
   drivers/gpu/drm/bridge/parade-ps8640.c:114:37: note: (near initialization for 'hw_chip_id')
   drivers/gpu/drm/bridge/parade-ps8640.c:114:43: warning: excess elements in scalar initializer
    static const u8 hw_chip_id = {0x00, 0x0a, 0x00, 0x30};
                                              ^
   drivers/gpu/drm/bridge/parade-ps8640.c:114:43: note: (near initialization for 'hw_chip_id')
   drivers/gpu/drm/bridge/parade-ps8640.c:114:49: warning: excess elements in scalar initializer
    static const u8 hw_chip_id = {0x00, 0x0a, 0x00, 0x30};
                                                    ^
   drivers/gpu/drm/bridge/parade-ps8640.c:114:49: note: (near initialization for 'hw_chip_id')
   drivers/gpu/drm/bridge/parade-ps8640.c: In function 'ps8640_bridge_attach':
   drivers/gpu/drm/bridge/parade-ps8640.c:430:10: error: implicit declaration of function 'of_find_mipi_dsi_host_by_node' [-Werror=implicit-function-declaration]
      host = of_find_mipi_dsi_host_by_node(dsi_node);
             ^
   drivers/gpu/drm/bridge/parade-ps8640.c:430:8: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
      host = of_find_mipi_dsi_host_by_node(dsi_node);
           ^
   drivers/gpu/drm/bridge/parade-ps8640.c: In function 'ps8640_check_chip_id':
   drivers/gpu/drm/bridge/parade-ps8640.c:717:21: warning: passing argument 2 of 'memcmp' makes pointer from integer without a cast [-Wint-conversion]
     return memcmp(buf, hw_chip_id, sizeof(buf));
                        ^
   In file included from include/linux/bitmap.h:8:0,
                    from include/linux/cpumask.h:11,
                    from arch/x86/include/asm/cpumask.h:4,
                    from arch/x86/include/asm/msr.h:10,
                    from arch/x86/include/asm/processor.h:20,
                    from arch/x86/include/asm/thread_info.h:52,
                    from include/linux/thread_info.h:54,
                    from arch/x86/include/asm/preempt.h:6,
                    from include/linux/preempt.h:59,
                    from include/linux/spinlock.h:50,
                    from include/linux/mmzone.h:7,
                    from include/linux/gfp.h:5,
                    from include/linux/firmware.h:6,
                    from drivers/gpu/drm/bridge/parade-ps8640.c:16:
   include/linux/string.h:112:12: note: expected 'const void *' but argument is of type 'u8 {aka const unsigned char}'
    extern int memcmp(const void *,const void *,__kernel_size_t);
               ^
   cc1: some warnings being treated as errors

vim +/memcmp +717 drivers/gpu/drm/bridge/parade-ps8640.c

   701	
   702		ret = ps8640_wait_rom_idle(ps_bridge);
   703		if (ret) {
   704			dev_err(dev, "fail wait rom idle: %d\n", ret);
   705			return ret;
   706		}
   707	
   708		return 0;
   709	}
   710	
   711	static int ps8640_check_chip_id(struct ps8640 *ps_bridge)
   712	{
   713		struct i2c_client *client = ps_bridge->page[4];
   714		u8 buf[4];
   715	
   716		ps8640_read(client, PAGE4_REV_L, buf, 4);
 > 717		return memcmp(buf, hw_chip_id, sizeof(buf));
   718	}
   719	
   720	static int ps8640_validate_firmware(struct ps8640 *ps_bridge,
   721					    const struct firmware *fw)
   722	{
   723		struct i2c_client *client = ps_bridge->page[0];
   724		u16 fw_chip_id;
   725	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 53172 bytes --]

      parent reply	other threads:[~2016-03-16 15:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-16 13:28 [PATCH v12 1/2] Documentation: bridge: Add documentation for ps8640 DT properties Jitao Shi
2016-03-16 13:28 ` [PATCH v12 2/2] drm/bridge: Add I2C based driver for ps8640 bridge Jitao Shi
2016-03-16 14:39   ` kbuild test robot
2016-03-16 15:00   ` kbuild test robot [this message]

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=201603162215.JRlvsJLx%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=airlied@linux.ie \
    --cc=ajaykumar.rs@samsung.com \
    --cc=andy.yan@rock-chips.com \
    --cc=bibby.hsieh@mediatek.com \
    --cc=cawa.cheng@mediatek.com \
    --cc=ck.hu@mediatek.com \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=eddie.huang@mediatek.com \
    --cc=galak@codeaurora.org \
    --cc=ijc+devicetree@hellion.org.uk \
    --cc=inki.dae@samsung.com \
    --cc=jitao.shi@mediatek.com \
    --cc=kbuild-all@01.org \
    --cc=kernel@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=mark.rutland@arm.com \
    --cc=matthias.bgg@gmail.com \
    --cc=p.zabel@pengutronix.de \
    --cc=pawel.moll@arm.com \
    --cc=rahul.sharma@samsung.com \
    --cc=rmk+kernel@arm.linux.org.uk \
    --cc=robh+dt@kernel.org \
    --cc=seanpaul@chromium.org \
    --cc=srv_heupstream@mediatek.com \
    --cc=stonea168@163.com \
    --cc=treding@nvidia.com \
    --cc=vpalatin@chromium.org \
    --cc=yingjoe.chen@mediatek.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®