From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9C1E9C10F25 for ; Sun, 8 Mar 2020 01:39:31 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 5C1D5206D5 for ; Sun, 8 Mar 2020 01:39:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5C1D5206D5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id B1F786B0005; Sat, 7 Mar 2020 20:39:30 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id ACFA96B0006; Sat, 7 Mar 2020 20:39:30 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9C09D6B0007; Sat, 7 Mar 2020 20:39:30 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0157.hostedemail.com [216.40.44.157]) by kanga.kvack.org (Postfix) with ESMTP id 806CC6B0005 for ; Sat, 7 Mar 2020 20:39:30 -0500 (EST) Received: from smtpin19.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 402252488 for ; Sun, 8 Mar 2020 01:39:30 +0000 (UTC) X-FDA: 76570487700.19.month65_52dec1e0df105 X-HE-Tag: month65_52dec1e0df105 X-Filterd-Recvd-Size: 4638 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by imf28.hostedemail.com (Postfix) with ESMTP for ; Sun, 8 Mar 2020 01:39:29 +0000 (UTC) X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Mar 2020 17:39:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,528,1574150400"; d="scan'208";a="235259445" Received: from lkp-server01.sh.intel.com (HELO lkp-server01) ([10.239.97.150]) by orsmga008.jf.intel.com with ESMTP; 07 Mar 2020 17:39:26 -0800 Received: from kbuild by lkp-server01 with local (Exim 4.89) (envelope-from ) id 1jAkub-00052o-Qe; Sun, 08 Mar 2020 09:39:25 +0800 Date: Sun, 8 Mar 2020 09:39:01 +0800 From: kbuild test robot To: Andrew Morton Cc: kbuild-all@lists.01.org, Linux Memory Management List Subject: [linux-next:master 1162/7050] drivers/gpu/drm/tiny/ili9486.c:61:16: sparse: sparse: incorrect type in assignment (different base types) Message-ID: <202003080959.opm2YjZv%lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: b86a6a241b7c60ca7a6ca4fb3c0d2aedbbf2c1b6 commit: cdb702a655582e80139525156c57e6e48da08393 [1162/7050] drm/tiny: add support for tft displays based on ilitek,ili9486 reproduce: # apt-get install sparse # sparse version: v0.6.1-174-g094d5a94-dirty git checkout cdb702a655582e80139525156c57e6e48da08393 make ARCH=x86_64 allmodconfig make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' If you fix the issue, kindly add following tag Reported-by: kbuild test robot sparse warnings: (new ones prefixed by >>) >> drivers/gpu/drm/tiny/ili9486.c:61:16: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] @@ got resunsigned short [usertype] @@ drivers/gpu/drm/tiny/ili9486.c:61:16: sparse: expected unsigned short [usertype] drivers/gpu/drm/tiny/ili9486.c:61:16: sparse: got restricted __be16 [usertype] drivers/gpu/drm/tiny/ili9486.c:71:32: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned short [usertype] @@ got resunsigned short [usertype] @@ drivers/gpu/drm/tiny/ili9486.c:71:32: sparse: expected unsigned short [usertype] drivers/gpu/drm/tiny/ili9486.c:71:32: sparse: got restricted __be16 [usertype] vim +61 drivers/gpu/drm/tiny/ili9486.c 35 36 /* 37 * The PiScreen/waveshare rpi-lcd-35 has a SPI to 16-bit parallel bus converter 38 * in front of the display controller. This means that 8-bit values have to be 39 * transferred as 16-bit. 40 */ 41 static int waveshare_command(struct mipi_dbi *mipi, u8 *cmd, u8 *par, 42 size_t num) 43 { 44 struct spi_device *spi = mipi->spi; 45 void *data = par; 46 u32 speed_hz; 47 int i, ret; 48 u16 *buf; 49 50 buf = kmalloc(32 * sizeof(u16), GFP_KERNEL); 51 if (!buf) 52 return -ENOMEM; 53 54 /* 55 * The displays are Raspberry Pi HATs and connected to the 8-bit only 56 * SPI controller, so 16-bit command and parameters need byte swapping 57 * before being transferred as 8-bit on the big endian SPI bus. 58 * Pixel data bytes have already been swapped before this function is 59 * called. 60 */ > 61 buf[0] = cpu_to_be16(*cmd); 62 gpiod_set_value_cansleep(mipi->dc, 0); 63 speed_hz = mipi_dbi_spi_cmd_max_speed(spi, 2); 64 ret = mipi_dbi_spi_transfer(spi, speed_hz, 8, buf, 2); 65 if (ret || !num) 66 goto free; 67 68 /* 8-bit configuration data, not 16-bit pixel data */ 69 if (num <= 32) { 70 for (i = 0; i < num; i++) 71 buf[i] = cpu_to_be16(par[i]); 72 num *= 2; 73 speed_hz = mipi_dbi_spi_cmd_max_speed(spi, num); 74 data = buf; 75 } 76 77 gpiod_set_value_cansleep(mipi->dc, 1); 78 ret = mipi_dbi_spi_transfer(spi, speed_hz, 8, data, num); 79 free: 80 kfree(buf); 81 82 return ret; 83 } 84 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org