Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3324052ybl; Sun, 8 Dec 2019 12:26:03 -0800 (PST) X-Google-Smtp-Source: APXvYqyqTyVTBV0CXE3oBLFBGka40K7fVUm7Tyh56kM5sPpIbsNL3Q/HzFWnkFxwcT3FioGoWz5V X-Received: by 2002:a9d:6396:: with SMTP id w22mr19480044otk.364.1575836762976; Sun, 08 Dec 2019 12:26:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575836762; cv=none; d=google.com; s=arc-20160816; b=IBlgGdDRYW980Y7hQlIJdGOldKnAkNfj0hJNygCCg0SevDX7J2k7qg+mzHnueWevt0 wdLjes5jNmKT8a3VkboTeFe5ADoH7BItZMB/1sg7/1vqEHKpXBYnh+qxoz5l5cf4/kwm dVb6cFB3QxcoB/Qy3z41TytOKDnyhUFRMz2ALwJ2JJCCqS0WRxf3x4J1TdjZ+MxasbFg QSJH0wuAiXj31J9F/dg3vH8zL896i8hAYLg+hjBy17QDX+/9TJP1jK8DHXw8Jty78y6X Wbi5fGwXSINv8ByQulSYa8thlAsyCPw6V2+wuCvqVnBStJMuY2ugjTIgj5IuVcK+9yC1 08PA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=rZuOVSsIOLORgQcyJUkFkX7+NHfebp3ftqDZpnNhVHI=; b=iCCRhamfGrLvbieiINWhqRIFp1n+u/TGxnzCIedwDsmmo99FeOMPpS3okSQipNS1cz MSFeavCzVEBMK8F5/d+jQwlpJ49c8D/Z5U+beSP0rHQZD/4LknNgZ8LNCAjWrWIu0/Mx lx7XpFuidI2JSLIMm28x5Zi422cCiRsomxCPupvFvx0n6jOMGlyzOB6lErYheJ2icty+ d/Qxkegi8uWCAXaGVpwu4Kvt7YV9qxGs8DlO8JPGBiZi3ONIgO0YIdwBKDRlram73jke dFv3wfEekRt9u10CLz5XNu2URmXLN//aO8QVmY7L+zRCByAjYESrv5Cw19/+dUYOemj+ 1ToA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kwIHKoYH; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h203si8381425oif.3.2019.12.08.12.25.51; Sun, 08 Dec 2019 12:26:02 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kwIHKoYH; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726597AbfLHUZZ (ORCPT + 99 others); Sun, 8 Dec 2019 15:25:25 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:52480 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726513AbfLHUZZ (ORCPT ); Sun, 8 Dec 2019 15:25:25 -0500 Received: by mail-wm1-f66.google.com with SMTP id p9so13217554wmc.2; Sun, 08 Dec 2019 12:25:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=rZuOVSsIOLORgQcyJUkFkX7+NHfebp3ftqDZpnNhVHI=; b=kwIHKoYHrbfekVTgSUlg1aLlX9zpLbsy6LZrajc6UkAYDIeNweO0S0s4hsvP1GtsU/ 34453WviStBNhCXxisY8OaAsrKEqKM4f27LS5VW1NryK85Bhp5Ik6P4Z9Aj9eGJveQ6C /Fkc9neUMThjUO1JZMhbCw6y3Iy+89Dfst8RXduhjM8a1DcB86KAmu5QbFgHJbjMQPqp 2mHHH601DHQLZ7Q76zhdnyrk86HgPZT49SWIRwzZYSp3W/4JNTdf3KR1ztOdTLz8rsr+ SkYBUIw7IRpyEi41n7PaQLm6uVozsLXtB8a1OK+KBpN8uoHy/LJ5eL5ZkZXDymZUiHFM SWBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=rZuOVSsIOLORgQcyJUkFkX7+NHfebp3ftqDZpnNhVHI=; b=fbU9vYsUQYX5f6Jx2psnUsLw1LTOTUmP9BeyNhuqpZiKmpG0Qgamu7JTzh7vlt4l0j oq8/KJ9Wsb23ZOKusXyPOPg9TYx9KytM9SFSoDaaZpi7IEN0pgG2AEh+FZMmzB8svDD+ hTQdm8QKJRPuNnBXEOUSgUzZsAOzwMwNeRXn7EEHX90J2hhRx72+LRzUm4WOyFFTFIkP E9PpUaQPW65W0g7C0APG+GM7fdgg2be2nVyAfh2/LpSUdgopIETR+05Qb6QNxT61FL8b 6GPluWgD7HrmNXeg1ffxNu/DYzzF8ogcD9XBg3HZDv8EwYDG4H8hzBVnQ4VgTWEZU9Z+ CRlA== X-Gm-Message-State: APjAAAWoIczHQQuAaI4wKIyfUck68uuDE3l082riwUVFrs5Jt/p/auS4 ZhikDAlv6x3Wy6Vr+PhcITfXrvuOGeIXSYZzD/j25ZEPMTA= X-Received: by 2002:a7b:c0d8:: with SMTP id s24mr22284690wmh.30.1575836722869; Sun, 08 Dec 2019 12:25:22 -0800 (PST) MIME-Version: 1.0 References: <1575554335-27197-1-git-send-email-alencar.fmce@imbel.gov.br> <201912090055.QXDo7ygw%lkp@intel.com> In-Reply-To: <201912090055.QXDo7ygw%lkp@intel.com> From: Rodrigo Alencar <455.rodrigo.alencar@gmail.com> Date: Sun, 8 Dec 2019 17:25:11 -0300 Message-ID: Subject: Re: [PATCH] video: fbdev: added driver for sharp memory lcd displays To: linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Rodrigo Rolim Mendes de Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Em dom., 8 de dez. de 2019 =C3=A0s 13:56, kbuild test robot = escreveu: > > 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 specif= y the > base tree in git format-patch, please see https://stackoverflow.com/a/374= 06982] > > url: https://github.com/0day-ci/linux/commits/Rodrigo-Rolim-Mendes-de-= Alencar/video-fbdev-added-driver-for-sharp-memory-lcd-displays/20191207-112= 607 > base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.gi= t 26bc672134241a080a83b2ab9aa8abede8d30e1c > reproduce: > # apt-get install sparse > # sparse version: v0.6.1-91-g817270f-dirty > make ARCH=3Dx86_64 allmodconfig > make C=3D1 CF=3D'-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 [use= rtype] *vmem @@ got signed char [usertype] *vmem @@ > >> drivers/video/fbdev/smemlcdfb.c:71:29: sparse: expected unsigned ch= ar [usertype] *vmem > >> drivers/video/fbdev/smemlcdfb.c:71:29: sparse: got char [noderef] <= asn:2> *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 =3D par->spi; > > 71 u8 *vmem =3D par->info->screen_base; A cast is really necessary here? > 72 u8 *buf_ptr =3D par->spi_buf; > 73 int ret; > 74 u32 i,j; > 75 > 76 if (par->start + par->height > par->info->var.yres) { > 77 par->start =3D 0; > 78 par->height =3D 0; > 79 } > 80 /* go to start line */ > 81 vmem +=3D par->start * par->vmem_width; > 82 /* update vcom */ > 83 par->vcom ^=3D SMEMLCD_FRAME_INVERSION; > 84 /* mode selection */ > 85 *(buf_ptr++) =3D (par->height)? (SMEMLCD_DATA_UPDATE | pa= r->vcom) : par->vcom; > 86 > 87 /* not all SPI masters have LSB-first mode, bitrev8 is us= ed */ > 88 for (i =3D par->start + 1; i < par->start + par->height += 1; i++) { > 89 /* gate line address */ > 90 *(buf_ptr++) =3D bitrev8(i); > 91 /* data writing */ > 92 for (j =3D 0; j < par->spi_width; j++) > 93 *(buf_ptr++) =3D bitrev8(*(vmem++)); > 94 /* dummy data */ > 95 *(buf_ptr++) =3D SMEMLCD_DUMMY_DATA; > 96 /* video memory alignment */ > 97 for (; j < par->vmem_width; j++) > 98 vmem++; > 99 } > 100 /* dummy data */ > 101 *(buf_ptr++) =3D SMEMLCD_DUMMY_DATA; > 102 > 103 ret =3D 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 =3D U32_MAX; > 108 par->height =3D 0; > 109 } > 110 > > --- > 0-DAY kernel test infrastructure Open Source Technology C= enter > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corpor= ation