Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp793789pxa; Wed, 5 Aug 2020 12:56:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2zNhRFij2wSht5d/Fu2xq/7zI5wEemuoMlUaL1fNk1lt+BAuip9B45AAt6q1nWTUT5iXV X-Received: by 2002:a17:906:413:: with SMTP id d19mr946561eja.523.1596657405082; Wed, 05 Aug 2020 12:56:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596657405; cv=none; d=google.com; s=arc-20160816; b=hVqVyuchvgW4mXJxMY9oj2xqLckKOI57CUlwdwuPvyk/QbL/qhc8TOGw+tq+CoNbGc 6V40cIYQLntRWXv+Ihae+mVyLUohSiru5ZPOJ6qDxtH3EY8cVNrpwlx0gQZycDtMoPIy I6OfYD52umni350QKNpU/Gt6C0N+w9tQSn1pAaZgotIGJcbirTIQe/dx7794EpNSuPZn uxL9sD8pEX1ckPZr7TbkPJoF2wK3LYes9HRTfAoNonA6Gwpsuu3iziTirHFC4dakqp6E 9iRP4EkViQhoxCYSde/NdXRmyw0AX5CQhR0q5c8DMlQBLpZgW5JLoCBp5QGj6lp/kUsc YRCQ== 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:ironport-sdr:ironport-sdr; bh=rx9X6KYuN3jwlAxNvoJqCGoIS27VHo7Ry/QWtJyElLs=; b=nHVHADb2ewkPSY4WgjG772PVrA42D92VF+iydDCXspGza6KN9kNm+DSCq1sAU3sw2T lNeFmOlrJY+vPkOX39AoQZV9epC0vd9bR+PA8l3sboMsLOZBKjjfpglnznobe+JJcUdw 5XgBpVWmn64dAWhKDe1CKrjgBiU4fev6Yywe0jQ1GRF7iCW0dinKNoi1TUZ+O9xgGxha h7ajR1eMLBWmrLao5U24vBMA2bn2tKPoQ3CfnSQCP97eU0Pst0GruxPwLJh+Sxt8UbyA jmSHdr0XJyne66hsK4aF+I1Pq69TkZ4SHpEspMr+zA91y2eAjMiF/RXANdkQ9YNEa9Ve +Ruw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id t23si2301989ejj.626.2020.08.05.12.56.22; Wed, 05 Aug 2020 12:56:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1729621AbgHETy7 (ORCPT + 99 others); Wed, 5 Aug 2020 15:54:59 -0400 Received: from mga01.intel.com ([192.55.52.88]:32825 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727945AbgHEQsL (ORCPT ); Wed, 5 Aug 2020 12:48:11 -0400 IronPort-SDR: nwkqXAT6CZOZ69x8LDzWCwzN33zlJckC1mY5EC5ptco192YfQkftpxb0bLRLMRp89yiItIwNGD CFFRomAQscsw== X-IronPort-AV: E=McAfee;i="6000,8403,9703"; a="170622868" X-IronPort-AV: E=Sophos;i="5.75,436,1589266800"; d="scan'208";a="170622868" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Aug 2020 07:36:34 -0700 IronPort-SDR: 5s5xL7ULjjcKwA1ZbMpzVSNN1By1k0TkGC8gswbPhyywEmWjzJT3xp3c7P9Gm/qC4oSD3648GN nvO0VM/eQO3A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,436,1589266800"; d="scan'208";a="323117445" Received: from lkp-server02.sh.intel.com (HELO 37a337f97289) ([10.239.97.151]) by orsmga008.jf.intel.com with ESMTP; 05 Aug 2020 07:36:30 -0700 Received: from kbuild by 37a337f97289 with local (Exim 4.92) (envelope-from ) id 1k3KWs-0000oK-7X; Wed, 05 Aug 2020 14:36:30 +0000 Date: Wed, 5 Aug 2020 22:35:32 +0800 From: kernel test robot To: Oleksandr Andrushchenko , xen-devel@lists.xenproject.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, boris.ostrovsky@oracle.com, jgross@suse.com, airlied@linux.ie, daniel@ffwll.ch Cc: kbuild-all@lists.01.org, intel-gfx@lists.freedesktop.org, sstabellini@kernel.org, dan.carpenter@oracle.com Subject: Re: [Intel-gfx] [PATCH 6/6] drm/xen-front: Add support for EDID based configuration Message-ID: <202008052221.duhA3v0p%lkp@intel.com> References: <20200731125109.18666-7-andr2000@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200731125109.18666-7-andr2000@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Oleksandr, I love your patch! Perhaps something to improve: [auto build test WARNING on drm-exynos/exynos-drm-next] [also build test WARNING on drm-intel/for-linux-next tegra-drm/drm/tegra/for-next drm-tip/drm-tip linus/master v5.8 next-20200804] [cannot apply to xen-tip/linux-next drm/drm-next] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Oleksandr-Andrushchenko/Fixes-and-improvements-for-Xen-pvdrm/20200731-205350 base: https://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos.git exynos-drm-next compiler: aarch64-linux-gcc (GCC) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot cppcheck warnings: (new ones prefixed by >>) >> drivers/irqchip/irq-gic.c:161:24: warning: Local variable gic_data shadows outer variable [shadowVar] struct gic_chip_data *gic_data = irq_data_get_irq_chip_data(d); ^ drivers/irqchip/irq-gic.c:123:29: note: Shadowed declaration static struct gic_chip_data gic_data[CONFIG_ARM_GIC_MAX_NR] __read_mostly; ^ drivers/irqchip/irq-gic.c:161:24: note: Shadow variable struct gic_chip_data *gic_data = irq_data_get_irq_chip_data(d); ^ drivers/irqchip/irq-gic.c:167:24: warning: Local variable gic_data shadows outer variable [shadowVar] struct gic_chip_data *gic_data = irq_data_get_irq_chip_data(d); ^ drivers/irqchip/irq-gic.c:123:29: note: Shadowed declaration static struct gic_chip_data gic_data[CONFIG_ARM_GIC_MAX_NR] __read_mostly; ^ drivers/irqchip/irq-gic.c:167:24: note: Shadow variable struct gic_chip_data *gic_data = irq_data_get_irq_chip_data(d); ^ >> drivers/irqchip/irq-gic.c:400:28: warning: Local variable gic_irq shadows outer function [shadowFunction] unsigned int cascade_irq, gic_irq; ^ drivers/irqchip/irq-gic.c:171:28: note: Shadowed declaration static inline unsigned int gic_irq(struct irq_data *d) ^ drivers/irqchip/irq-gic.c:400:28: note: Shadow variable unsigned int cascade_irq, gic_irq; ^ >> drivers/irqchip/irq-gic.c:1507:14: warning: Local variable gic_cpu_base shadows outer function [shadowFunction] phys_addr_t gic_cpu_base; ^ drivers/irqchip/irq-gic.c:165:29: note: Shadowed declaration static inline void __iomem *gic_cpu_base(struct irq_data *d) ^ drivers/irqchip/irq-gic.c:1507:14: note: Shadow variable phys_addr_t gic_cpu_base; ^ >> drivers/irqchip/irq-gic-v3.c:874:71: warning: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] gic_data.rdists.has_direct_lpi &= (!!(typer & GICR_TYPER_DirectLPIS) | ^ >> drivers/irqchip/irq-gic-v3.c:1808:6: warning: Local variable nr_redist_regions shadows outer variable [shadowVar] u32 nr_redist_regions; ^ drivers/irqchip/irq-gic-v3.c:1880:6: note: Shadowed declaration u32 nr_redist_regions; ^ drivers/irqchip/irq-gic-v3.c:1808:6: note: Shadow variable u32 nr_redist_regions; ^ >> drivers/irqchip/irq-gic-v3.c:2042:6: warning: Local variable maint_irq_mode shadows outer variable [shadowVar] int maint_irq_mode; ^ drivers/irqchip/irq-gic-v3.c:1884:6: note: Shadowed declaration int maint_irq_mode; ^ drivers/irqchip/irq-gic-v3.c:2042:6: note: Shadow variable int maint_irq_mode; ^ >> drivers/gpu/drm/xen/xen_drm_front_cfg.c:76:6: warning: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment] ret = xen_drm_front_get_edid(front_info, index, pages, ^ drivers/gpu/drm/xen/xen_drm_front_cfg.c:61:0: note: Variable 'ret' is reassigned a value before the old one has been used. int i, npages, ret = -ENOMEM; ^ drivers/gpu/drm/xen/xen_drm_front_cfg.c:76:6: note: Variable 'ret' is reassigned a value before the old one has been used. ret = xen_drm_front_get_edid(front_info, index, pages, ^ vim +/ret +76 drivers/gpu/drm/xen/xen_drm_front_cfg.c 54 55 static void cfg_connector_edid(struct xen_drm_front_info *front_info, 56 struct xen_drm_front_cfg_connector *connector, 57 int index) 58 { 59 struct page **pages; 60 u32 edid_sz; 61 int i, npages, ret = -ENOMEM; 62 63 connector->edid = vmalloc(XENDISPL_EDID_MAX_SIZE); 64 if (!connector->edid) 65 goto fail; 66 67 npages = DIV_ROUND_UP(XENDISPL_EDID_MAX_SIZE, PAGE_SIZE); 68 pages = kvmalloc_array(npages, sizeof(struct page *), GFP_KERNEL); 69 if (!pages) 70 goto fail_free_edid; 71 72 for (i = 0; i < npages; i++) 73 pages[i] = vmalloc_to_page((u8 *)connector->edid + 74 i * PAGE_SIZE); 75 > 76 ret = xen_drm_front_get_edid(front_info, index, pages, 77 XENDISPL_EDID_MAX_SIZE, &edid_sz); 78 79 kvfree(pages); 80 81 if (ret < 0) 82 goto fail_free_edid; 83 84 ret = -EINVAL; 85 if (!edid_sz || (edid_sz % EDID_LENGTH)) 86 goto fail_free_edid; 87 88 if (!drm_edid_is_valid(connector->edid)) 89 goto fail_free_edid; 90 91 DRM_INFO("Connector %s: using EDID for configuration, size %d\n", 92 connector->xenstore_path, edid_sz); 93 return; 94 95 fail_free_edid: 96 cfg_connector_free_edid(connector); 97 fail: 98 /* 99 * If any error this is not critical as we can still read 100 * connector settings from XenStore, so just warn. 101 */ 102 DRM_WARN("Connector %s: cannot read or wrong EDID: %d\n", 103 connector->xenstore_path, ret); 104 } 105 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org