Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3173105ybl; Sun, 8 Dec 2019 08:57:01 -0800 (PST) X-Google-Smtp-Source: APXvYqyPHLSlw037sUHEd1sYka8TMT10qC2Sa5gYJiHMdPTTtC+Sk2qfYCdg7CVifg++X/Y9+8Zp X-Received: by 2002:aca:fd58:: with SMTP id b85mr21815610oii.106.1575824220975; Sun, 08 Dec 2019 08:57:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575824220; cv=none; d=google.com; s=arc-20160816; b=TudR0WyyX1XEz+Qyqle0cDKB4sacGgcUIk+YMbGwC/PtuM1bPXB+cjoz2jBt6Rnyo3 duj9niz5ZKuMUA0siX/yJ/h9IzYw36nok/GowE2Nl+DIYZJJEnA1js4YeDao6NPeZfzd 6ddRm/kw72rVqqiLLU8oeHMIJnRn2NZGdiVAiBGHlpPoIlO+L5+5LwQG0pEHKCP1JX/8 RfMUBeI3joPhb7iKsv3g1FVK5iRqyaZYfAb16Yr5U+7ug4pfVP1Jj0Zho2CAbUJlEDtr HqhpZES7Q+i5g2LQBhtJKtA2QRKrWghaw9iz/LxUlwlhmAeosTgxGbEqhpsbAN/AT2hQ J+eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=8lQ/jalrkW7m/YT1NxEbgB+khHHqPnPLHsTFEcf5ptc=; b=WWanr4toSZEk+uBmJnBcF2EdUsP+JejXYsI1UNCEra+GGLjUx6ub+W+G4+kEUfkSGf hqrYNfUyEpSjVdT2UZRwZeKpaNoYyHj5EARGh9JWZv5tEOeQspL2zta95rHEDM9pIIcr MzA0jM3XCR3yY30vXxMe2mkGOGJ84Glo3XZxl7bBTXT1EKkyVzMolCBHAoKcdh6mBsu+ GsNr/BcWr/ztxmLjFZiw/JYsHDDmYilg8VQRGieV4E1CY8rkm4S7II/+FAosTQt/MaaM pbzN2n+UQ2TahgDqNeYm67TNMaMjRL4+p1kA35EX0Lzz6pXwutSUjRDrC+WSoWwg4QCH 2/zg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d4si9696053oti.263.2019.12.08.08.56.48; Sun, 08 Dec 2019 08:57:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726491AbfLHQ4X (ORCPT + 99 others); Sun, 8 Dec 2019 11:56:23 -0500 Received: from mga09.intel.com ([134.134.136.24]:14998 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726465AbfLHQ4X (ORCPT ); Sun, 8 Dec 2019 11:56:23 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Dec 2019 08:56:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,292,1571727600"; d="scan'208";a="224546789" Received: from lkp-server01.sh.intel.com (HELO lkp-server01) ([10.239.97.150]) by orsmga002.jf.intel.com with ESMTP; 08 Dec 2019 08:56:21 -0800 Received: from kbuild by lkp-server01 with local (Exim 4.89) (envelope-from ) id 1idzr2-0009Ae-Ih; Mon, 09 Dec 2019 00:56:20 +0800 Date: Mon, 9 Dec 2019 00:55:22 +0800 From: kbuild test robot To: Rodrigo Rolim Mendes de Alencar <455.rodrigo.alencar@gmail.com> Cc: kbuild-all@lists.01.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, alencar.fmce@imbel.gov.br, Rodrigo Alencar <455.rodrigo.alencar@gmail.com> Subject: Re: [PATCH] video: fbdev: added driver for sharp memory lcd displays Message-ID: <201912090055.QXDo7ygw%lkp@intel.com> References: <1575554335-27197-1-git-send-email-alencar.fmce@imbel.gov.br> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1575554335-27197-1-git-send-email-alencar.fmce@imbel.gov.br> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rodrigo, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linux/master] [also build test WARNING on robh/for-next linus/master v5.4 next-20191208] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Rodrigo-Rolim-Mendes-de-Alencar/video-fbdev-added-driver-for-sharp-memory-lcd-displays/20191207-112607 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 26bc672134241a080a83b2ab9aa8abede8d30e1c reproduce: # apt-get install sparse # sparse version: v0.6.1-91-g817270f-dirty 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/video/fbdev/smemlcdfb.c:71:29: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected unsigned char [usertype] *vmem @@ got signed char [usertype] *vmem @@ >> drivers/video/fbdev/smemlcdfb.c:71:29: sparse: expected unsigned char [usertype] *vmem >> drivers/video/fbdev/smemlcdfb.c:71:29: sparse: got char [noderef] *screen_base vim +71 drivers/video/fbdev/smemlcdfb.c 67 68 static void smemlcd_update(struct smemlcd_par *par) 69 { 70 struct spi_device *spi = par->spi; > 71 u8 *vmem = par->info->screen_base; 72 u8 *buf_ptr = par->spi_buf; 73 int ret; 74 u32 i,j; 75 76 if (par->start + par->height > par->info->var.yres) { 77 par->start = 0; 78 par->height = 0; 79 } 80 /* go to start line */ 81 vmem += par->start * par->vmem_width; 82 /* update vcom */ 83 par->vcom ^= SMEMLCD_FRAME_INVERSION; 84 /* mode selection */ 85 *(buf_ptr++) = (par->height)? (SMEMLCD_DATA_UPDATE | par->vcom) : par->vcom; 86 87 /* not all SPI masters have LSB-first mode, bitrev8 is used */ 88 for (i = par->start + 1; i < par->start + par->height + 1; i++) { 89 /* gate line address */ 90 *(buf_ptr++) = bitrev8(i); 91 /* data writing */ 92 for (j = 0; j < par->spi_width; j++) 93 *(buf_ptr++) = bitrev8(*(vmem++)); 94 /* dummy data */ 95 *(buf_ptr++) = SMEMLCD_DUMMY_DATA; 96 /* video memory alignment */ 97 for (; j < par->vmem_width; j++) 98 vmem++; 99 } 100 /* dummy data */ 101 *(buf_ptr++) = SMEMLCD_DUMMY_DATA; 102 103 ret = spi_write(spi, &(par->spi_buf[0]), par->height * (par->spi_width + 2) + 2); 104 if (ret < 0) 105 dev_err(&spi->dev, "Couldn't send SPI command.\n"); 106 107 par->start = U32_MAX; 108 par->height = 0; 109 } 110 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation