From: kernel test robot <lkp@intel.com>
To: Lee Shawn C <shawn.c.lee@intel.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
0day robot <lkp@intel.com>
Subject: drivers/gpu/drm/i915/display/intel_dsi_dcs_backlight.c:69:20: sparse: sparse: incorrect type in initializer (different base types)
Date: Fri, 27 Aug 2021 01:23:09 +0800 [thread overview]
Message-ID: <202108270103.PPBdyLfw-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2357 bytes --]
tree: https://github.com/0day-ci/linux/commits/UPDATE-20210824-220043/Lee-Shawn-C/MIPI-DSI-driver-enhancements/20210812-234252
head: 58a94ed6aed682f6c0a500505f879d140da0a3ba
commit: 58a94ed6aed682f6c0a500505f879d140da0a3ba drm/i915/dsi: Send proper brightness value via MIPI DCS command
date: 2 days ago
config: x86_64-randconfig-s031-20210826 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-348-gf0e6938b-dirty
# https://github.com/0day-ci/linux/commit/58a94ed6aed682f6c0a500505f879d140da0a3ba
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review UPDATE-20210824-220043/Lee-Shawn-C/MIPI-DSI-driver-enhancements/20210812-234252
git checkout 58a94ed6aed682f6c0a500505f879d140da0a3ba
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/i915/display/intel_dsi_dcs_backlight.c:69:20: sparse: sparse: incorrect type in initializer (different base types) @@ expected unsigned short [usertype] data @@ got restricted __be16 [usertype] @@
drivers/gpu/drm/i915/display/intel_dsi_dcs_backlight.c:69:20: sparse: expected unsigned short [usertype] data
drivers/gpu/drm/i915/display/intel_dsi_dcs_backlight.c:69:20: sparse: got restricted __be16 [usertype]
vim +69 drivers/gpu/drm/i915/display/intel_dsi_dcs_backlight.c
64
65 static void dcs_set_backlight(const struct drm_connector_state *conn_state, u32 level)
66 {
67 struct intel_dsi *intel_dsi = enc_to_intel_dsi(to_intel_encoder(conn_state->best_encoder));
68 struct mipi_dsi_device *dsi_device;
> 69 u16 data = cpu_to_be16(level);
70 enum port port;
71
72 for_each_dsi_port(port, intel_dsi->dcs_backlight_ports) {
73 dsi_device = intel_dsi->dsi_hosts[port]->device;
74 mipi_dsi_dcs_write(dsi_device, MIPI_DCS_SET_DISPLAY_BRIGHTNESS,
75 &data, sizeof(data));
76 }
77 }
78
---
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: 35550 bytes --]
reply other threads:[~2021-08-26 17:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202108270103.PPBdyLfw-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=shawn.c.lee@intel.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