mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Chris Zhong <zyw@rock-chips.com>
Cc: kbuild-all@01.org, heiko@sntech.de,
	linux-rockchip@lists.infradead.org,
	Mark Yao <mark.yao@rock-chips.com>,
	Chris Zhong <zyw@rock-chips.com>,
	Russell King <rmk+kernel@arm.linux.org.uk>,
	Vincent Palatin <vpalatin@chromium.org>,
	Andrew Bresticker <abrestic@chromium.org>,
	Thierry Reding <treding@nvidia.com>,
	Philipp Zabel <p.zabel@pengutronix.de>,
	linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
	Inki Dae <inki.dae@samsung.com>,
	Andy Yan <andy.yan@rock-chips.com>,
	David Airlie <airlied@linux.ie>,
	Ajay Kumar <ajaykumar.rs@samsung.com>
Subject: Re: [PATCH v3 06/12] drm/bridge: Add Synopsys DesignWare MIPI DSI host controller driver
Date: Thu, 19 Nov 2015 13:29:24 +0800	[thread overview]
Message-ID: <201511191338.K6FaNeSJ%fengguang.wu@intel.com> (raw)
In-Reply-To: <1447904131-29328-7-git-send-email-zyw@rock-chips.com>

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

Hi Chris,

[auto build test WARNING on drm/drm-next]
[also build test WARNING on v4.4-rc1 next-20151118]
[cannot apply to rockchip/for-next]

url:    https://github.com/0day-ci/linux/commits/Chris-Zhong/Add-mipi-dsi-support-for-rk3288/20151119-114228
base:   git://people.freedesktop.org/~airlied/linux.git drm-next
config: xtensa-allmodconfig (attached as .config)
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=xtensa 

All warnings (new ones prefixed by >>):

   In file included from arch/xtensa/include/generated/asm/div64.h:1:0,
                    from include/linux/kernel.h:136,
                    from include/linux/clk.h:16,
                    from drivers/gpu/drm/bridge/dw_mipi_dsi.c:10:
   drivers/gpu/drm/bridge/dw_mipi_dsi.c: In function 'dw_mipi_dsi_get_hcomponent_lbcc':
   include/asm-generic/div64.h:43:28: warning: comparison of distinct pointer types lacks a cast
     (void)(((typeof((n)) *)0) == ((uint64_t *)0)); \
                               ^
>> drivers/gpu/drm/bridge/dw_mipi_dsi.c:819:9: note: in expansion of macro 'do_div'
     frac = do_div(lbcc, dsi->mode->clock);
            ^
   drivers/gpu/drm/bridge/dw_mipi_dsi.c:819:2: warning: right shift count >= width of type
     frac = do_div(lbcc, dsi->mode->clock);
     ^
   In file included from arch/xtensa/include/generated/asm/div64.h:1:0,
                    from include/linux/kernel.h:136,
                    from include/linux/clk.h:16,
                    from drivers/gpu/drm/bridge/dw_mipi_dsi.c:10:
   include/asm-generic/div64.h:48:11: warning: passing argument 1 of '__div64_32' from incompatible pointer type
      __rem = __div64_32(&(n), __base); \
              ^
>> drivers/gpu/drm/bridge/dw_mipi_dsi.c:819:9: note: in expansion of macro 'do_div'
     frac = do_div(lbcc, dsi->mode->clock);
            ^
   include/asm-generic/div64.h:35:17: note: expected 'uint64_t *' but argument is of type 'u32 *'
    extern uint32_t __div64_32(uint64_t *dividend, uint32_t divisor);
                    ^

vim +/do_div +819 drivers/gpu/drm/bridge/dw_mipi_dsi.c

   803	static void dw_mipi_dsi_command_mode_config(struct dw_mipi_dsi *dsi)
   804	{
   805		dsi_write(dsi, DSI_TO_CNT_CFG, HSTX_TO_CNT(1000) | LPRX_TO_CNT(1000));
   806		dsi_write(dsi, DSI_BTA_TO_CNT, 0xd00);
   807		dsi_write(dsi, DSI_CMD_MODE_CFG, CMD_MODE_ALL_LP);
   808		dsi_write(dsi, DSI_MODE_CFG, ENABLE_CMD_MODE);
   809	}
   810	
   811	/* Get lane byte clock cycles. */
   812	static u32 dw_mipi_dsi_get_hcomponent_lbcc(struct dw_mipi_dsi *dsi,
   813						   u32 hcomponent)
   814	{
   815		u32 frac, lbcc;
   816	
   817		lbcc = hcomponent * dsi->lane_mbps * MSEC_PER_SEC / 8;
   818	
 > 819		frac = do_div(lbcc, dsi->mode->clock);
   820		if (frac)
   821			lbcc++;
   822	
   823		return lbcc;
   824	}
   825	
   826	static void dw_mipi_dsi_line_timer_config(struct dw_mipi_dsi *dsi)
   827	{

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

  parent reply	other threads:[~2015-11-19  5:30 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-19  3:35 [PATCH v3 00/12] Add mipi dsi support for rk3288 Chris Zhong
2015-11-19  3:35 ` [PATCH v3 01/12] clk: rockchip: add id for mipidsi sclk on rk3288 Chris Zhong
2015-11-19  3:35 ` [PATCH v3 02/12] clk: rockchip: add mipidsi clocks " Chris Zhong
2015-11-19  3:35 ` [PATCH v3 03/12] drm/rockchip: return a true clock rate to adjusted_mode Chris Zhong
2015-11-19  7:08   ` Mark yao
2015-11-19  8:10     ` Chris Zhong
2015-11-19  3:35 ` [PATCH v3 04/12] drm/dsi: Add a helper to get bits per pixel of MIPI DSI pixel format Chris Zhong
2015-11-19  3:35 ` [PATCH v3 05/12] Documentation: dt-bindings: Add bindings for Synopsys DW MIPI DSI DRM bridge driver Chris Zhong
2015-11-19 15:12   ` Rob Herring
2015-11-19  3:35 ` [PATCH v3 06/12] drm/bridge: Add Synopsys DesignWare MIPI DSI host controller driver Chris Zhong
2015-11-19  4:25   ` kbuild test robot
2015-11-19  4:33   ` kbuild test robot
2015-11-19  5:29   ` kbuild test robot [this message]
2015-11-19  3:35 ` [PATCH v3 07/12] drm: rockchip: Support Synopsys DesignWare MIPI DSI host controller Chris Zhong
2015-11-19  3:35 ` [PATCH v3 08/12] Documentation: dt-bindings: Add bindings for rk3288 DW MIPI DSI driver Chris Zhong
2015-11-19 17:19   ` Rob Herring
2015-11-19  3:35 ` [PATCH v3 09/12] ARM: dts: rockchip: add rk3288 mipi_dsi nodes Chris Zhong
2015-11-19  3:35 ` [PATCH v3 10/12] drm/panel: simple: Add support for BOE TV080WUM-NL0 Chris Zhong
2015-11-19 14:46   ` Emil Velikov
2015-11-19  3:35 ` [PATCH v3 11/12] drm/panel: simple: Add boe,tv080wum-nl0 simple panel device tree binding Chris Zhong
2015-11-19 17:19   ` Rob Herring
2015-11-19  3:35 ` [PATCH v3 12/12] ARM: dts: rockchip: add support mipi panel tv080wum-nl0 for rk3288-evb Chris Zhong
2015-11-19 14:41 ` [PATCH v3 00/12] Add mipi dsi support for rk3288 Emil Velikov
2015-11-20  7:02   ` Chris Zhong
2015-11-20 12:19     ` Emil Velikov

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=201511191338.K6FaNeSJ%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=abrestic@chromium.org \
    --cc=airlied@linux.ie \
    --cc=ajaykumar.rs@samsung.com \
    --cc=andy.yan@rock-chips.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=heiko@sntech.de \
    --cc=inki.dae@samsung.com \
    --cc=kbuild-all@01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=mark.yao@rock-chips.com \
    --cc=p.zabel@pengutronix.de \
    --cc=rmk+kernel@arm.linux.org.uk \
    --cc=treding@nvidia.com \
    --cc=vpalatin@chromium.org \
    --cc=zyw@rock-chips.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®