Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp641977ybz; Wed, 15 Apr 2020 15:46:34 -0700 (PDT) X-Google-Smtp-Source: APiQypLx1RsEqyQC1nXf0pg3hYwY+HdzoQrRMgg+Jpnn72iOE6J8reitmI7TSicIdpnrzg5DSkvC X-Received: by 2002:aa7:d1d5:: with SMTP id g21mr26770535edp.162.1586990794129; Wed, 15 Apr 2020 15:46:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586990794; cv=none; d=google.com; s=arc-20160816; b=jZgef1gd9LlfdWApAP6UH7rMFaBlSFiwCOpHXMDL2hYWEozdOhP/ve3n+9g0x1WS6T ZJgVtVDPAwh76HdHhERD9N+kFvm9WhvTcoKgzmE3uDZo5CLFywoKXk6c8RCQawk0NGqj 5C4zhtINCDOSNd5RG0/3s3YSF42F9CXEbTUzUGlLYFKAsODT+bLlto31vDDCFV9Qa8A2 Vf4c9q8uQZSbJzGmw/bbzthtBb5riE1Aqu3+Pt9RtdB65IIklJhVyeul2+qU0yktVLvV tntH5yWGX0dyQxDqA0Cb9S6AwLcGI8vOAmGql+aJgc13ccWOcvQDOjMsGdWw1W0ILCHd /+gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :organization:in-reply-to:subject:cc:to:from:ironport-sdr :ironport-sdr; bh=KRwntTesEDuGkHeOyrBseqO+iht5diN/MkuQqS7PReE=; b=qCZ821mVucXickxoTQhSBDZTkyZ6ifhO/KyxinFG5DKLlphM/UK1F1hRkaWPKv6g78 xe30cFMUxDewaA2fEIJ15uGp0BPvA3JgChWTOjAlRnyfSDWJP3st2ycJkahrCajRaQMp roXFwBZBmcJpLCbMc1Dqw9lYZi8MAIsqI6wtflzOduvMdqV/Wv6sFPA3kJDsHL8mLybD 5x1fpxyflMP+2HnIxMSwJHYULAC+UITtrAzGeUZCsNXxJK0cDOQ0/a531FQZeNA8dJco lEJPtOux+0mGRBX7lijUxOPfRMcPpXK6XW1Dbx+AkAufsQHaik2uG74nIrxN7nUaA26Q NF+Q== 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 l18si7126675ejb.405.2020.04.15.15.46.10; Wed, 15 Apr 2020 15:46:34 -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 S2390622AbgDOJH4 (ORCPT + 99 others); Wed, 15 Apr 2020 05:07:56 -0400 Received: from mga03.intel.com ([134.134.136.65]:25045 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2408269AbgDOJHx (ORCPT ); Wed, 15 Apr 2020 05:07:53 -0400 IronPort-SDR: mcDPuQ8ZC2YWJwiaZaEe7oX4/W6f0bJCaPwY07F8R+QzbMd1Dw/VHInAhiX6l0P3VB4u1DZfHT Z2dzdWN3riqg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2020 02:07:52 -0700 IronPort-SDR: dIcvUqmm8vkltmzBbRt7swG9EIHcpliBK18dHSes44YOxPl9GSHu+CpHbMxzexYHs+shu+VVQy da/XylUQ7VEQ== X-IronPort-AV: E=Sophos;i="5.72,386,1580803200"; d="scan'208";a="427370602" Received: from ssolodk-mobl1.ccr.corp.intel.com (HELO localhost) ([10.252.48.37]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2020 02:07:47 -0700 From: Jani Nikula To: Colin Ian King , Dan Carpenter , kbuild@lists.01.org Cc: lkp@intel.com, kbuild-all@lists.01.org, Joonas Lahtinen , Rodrigo Vivi , David Airlie , Daniel Vetter , Chris Wilson , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/i915/gt: remove redundant assignment to variable x In-Reply-To: <43eb0cbb-9bf0-c99a-470d-8121c3108a5e@canonical.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20200414092359.GC1163@kadam> <43eb0cbb-9bf0-c99a-470d-8121c3108a5e@canonical.com> Date: Wed, 15 Apr 2020 12:07:44 +0300 Message-ID: <87blnt5d7j.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 14 Apr 2020, Colin Ian King wrote: > Hi Dan, > > I'd post a revert, but I don't seem to see an upstream commit for this > this to revert against. What's the revert policy in these cases? Or can > the patch be just ignored by the maintainers so it's not applied? It has not been applied, and will be ignored, in part thanks to the report. However I think Dan's report is misleading in that it looks like it's about a commit while I think it should emphasize that it's a pre-merge report on the patch on the mailing list. BR, Jani. > > Colin > > > On 14/04/2020 10:23, Dan Carpenter wrote: >> Hi Colin, >> >> url: https://github.com/0day-ci/linux/commits/Colin-King/drm-i915-gt-remove-redundant-assignment-to-variable-x/20200411-032731 >> base: git://anongit.freedesktop.org/drm-intel for-linux-next >> >> If you fix the issue, kindly add following tag as appropriate >> Reported-by: kbuild test robot >> Reported-by: Dan Carpenter >> >> smatch warnings: >> drivers/gpu/drm/i915/gt/intel_engine_cs.c:1210 print_request() error: uninitialized symbol 'x'. >> >> # https://github.com/0day-ci/linux/commit/6ee08d455bba0066e8f5f276dcd43d9e3e594dc5 >> git remote add linux-review https://github.com/0day-ci/linux >> git remote update linux-review >> git checkout 6ee08d455bba0066e8f5f276dcd43d9e3e594dc5 >> vim +/x +1210 drivers/gpu/drm/i915/gt/intel_engine_cs.c >> >> f636edb214a5ff drivers/gpu/drm/i915/intel_engine_cs.c Chris Wilson 2017-10-09 1202 static void print_request(struct drm_printer *m, >> e61e0f51ba7974 drivers/gpu/drm/i915/intel_engine_cs.c Chris Wilson 2018-02-21 1203 struct i915_request *rq, >> f636edb214a5ff drivers/gpu/drm/i915/intel_engine_cs.c Chris Wilson 2017-10-09 1204 const char *prefix) >> f636edb214a5ff drivers/gpu/drm/i915/intel_engine_cs.c Chris Wilson 2017-10-09 1205 { >> ab2681512b4c10 drivers/gpu/drm/i915/intel_engine_cs.c Chris Wilson 2018-03-14 1206 const char *name = rq->fence.ops->get_timeline_name(&rq->fence); >> 96d4f03c20d04c drivers/gpu/drm/i915/intel_engine_cs.c Chris Wilson 2018-05-17 1207 char buf[80] = ""; >> 6ee08d455bba00 drivers/gpu/drm/i915/gt/intel_engine_cs.c Colin Ian King 2020-04-10 1208 int x; >> ^^^^^ >> >> 247870ac8ea729 drivers/gpu/drm/i915/intel_engine_cs.c Chris Wilson 2018-04-24 1209 >> 247870ac8ea729 drivers/gpu/drm/i915/intel_engine_cs.c Chris Wilson 2018-04-24 @1210 x = print_sched_attr(rq->i915, &rq->sched.attr, buf, x, sizeof(buf)); >> ^ >> Uninitialized variable >> >> ab2681512b4c10 drivers/gpu/drm/i915/intel_engine_cs.c Chris Wilson 2018-03-14 1211 >> b300fde8965fdd drivers/gpu/drm/i915/intel_engine_cs.c Chris Wilson 2019-02-26 1212 drm_printf(m, "%s %llx:%llx%s%s %s @ %dms: %s\n", >> b7268c5eed0ab4 drivers/gpu/drm/i915/intel_engine_cs.c Chris Wilson 2018-04-18 1213 prefix, >> b300fde8965fdd drivers/gpu/drm/i915/intel_engine_cs.c Chris Wilson 2019-02-26 1214 rq->fence.context, rq->fence.seqno, >> 8547444137ec61 drivers/gpu/drm/i915/intel_engine_cs.c Chris Wilson 2019-01-29 1215 i915_request_completed(rq) ? "!" : >> 8547444137ec61 drivers/gpu/drm/i915/intel_engine_cs.c Chris Wilson 2019-01-29 1216 i915_request_started(rq) ? "*" : >> 8547444137ec61 drivers/gpu/drm/i915/intel_engine_cs.c Chris Wilson 2019-01-29 1217 "", >> 8c334f24e3b448 drivers/gpu/drm/i915/gt/intel_engine_cs.c Chris Wilson 2019-05-01 1218 test_bit(DMA_FENCE_FLAG_SIGNALED_BIT, >> 8c334f24e3b448 drivers/gpu/drm/i915/gt/intel_engine_cs.c Chris Wilson 2019-05-01 1219 &rq->fence.flags) ? "+" : >> 52c0fdb25c7c91 drivers/gpu/drm/i915/intel_engine_cs.c Chris Wilson 2019-01-29 1220 test_bit(DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT, >> 8c334f24e3b448 drivers/gpu/drm/i915/gt/intel_engine_cs.c Chris Wilson 2019-05-01 1221 &rq->fence.flags) ? "-" : >> 8c334f24e3b448 drivers/gpu/drm/i915/gt/intel_engine_cs.c Chris Wilson 2019-05-01 1222 "", >> 247870ac8ea729 drivers/gpu/drm/i915/intel_engine_cs.c Chris Wilson 2018-04-24 1223 buf, >> f636edb214a5ff drivers/gpu/drm/i915/intel_engine_cs.c Chris Wilson 2017-10-09 1224 jiffies_to_msecs(jiffies - rq->emitted_jiffies), >> ab2681512b4c10 drivers/gpu/drm/i915/intel_engine_cs.c Chris Wilson 2018-03-14 1225 name); >> f636edb214a5ff drivers/gpu/drm/i915/intel_engine_cs.c Chris Wilson 2017-10-09 1226 } >> >> --- >> 0-DAY CI Kernel Test Service, Intel Corporation >> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org >> > -- Jani Nikula, Intel Open Source Graphics Center