From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A864280043 for ; Wed, 25 Sep 2024 10:23:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727259813; cv=none; b=NjUcd62Q87RvWg2pId4U5yzkDen6UKZs0fEKIy2CfH4M61ICemaRVhZqH9F+k0tw0nH1mm/vT4cRx7BUPpZnU4oPzOXbl0h0DXroKgJLf3snbsTqMmRIhWE0k08Mut/N7rUlhqBLb5bZobagNi+XjAdkpYVqWROnMTeiISa5kZU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727259813; c=relaxed/simple; bh=vjWycP45HhhCp3ETqGH7uuChLSDiaSwQ0IlTcy1jKJ8=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=qAELcum5yyb8W36nS9qkeBGbsC3MIu4ncJXBTkdusZHvLZshxeqb2razXL/vNkckt/luRVrMCmOce428BOrQ+wPoOGDlPTTCyXZi+sGswEqy+A/aeAejR9mH2NSHud3ORSBMpNLvEv4NvHknIEwSsSKQiLv9COFiS9dZ2TJzBRo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=sOiCfeLc; arc=none smtp.client-ip=209.85.221.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="sOiCfeLc" Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-37cca239886so155926f8f.2 for ; Wed, 25 Sep 2024 03:23:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1727259810; x=1727864610; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=ZziYVmQUzLLCEW/TBrSqZS3UISZIG6me6ba4iQL8NZ4=; b=sOiCfeLceSDdArbRp6GocL1q+V55iYAr74QzYvpHgNh6ATKjO/9BL8TpwA/tJh6UwG w0uzl6hfQ/p4E+a4GyjGPdawr1Z/HevzDVNPg6nsrZ4ybkYNMq6cZY4C3P1AV+xqivyJ jPmWrFN7TfnA5ir/Se1VVOef9nh2xdN6nRt2B0km3oNndoE+uyRZ0I5jPAa6PIgmzlta X/HfVhs7eDuagPVfi6tBpRViVbc5X3AWwCc4AG+NaD6uh5YRXW9QvjyXDBer30LAIcwN KX1Q0hzbRyz5XRympmw+NhBjP1Yq7iucMXUifdCMUuO9e63SU0qrYAOTdHnuoc+2Z86w KHaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727259810; x=1727864610; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ZziYVmQUzLLCEW/TBrSqZS3UISZIG6me6ba4iQL8NZ4=; b=X2M6RVghyLpAQ6gqcVBWim5fFW0yic0jplyivMq9TEpvAgqrwU1T70tQPQ7+Ztl0zb rPucGuHSA/GIZ1cw2QK++4eWC1vqapAYDJ93PgRwG1HoL2SWMd+pX7MZUJzmyT7GCbzs ir4pyX257Bs1E2P+pAfGeSs/N4M+jYWlf6Eexem1s1iRtyPl5rvJWMo77FHh6OgAk1cO 79xHqP9R39c8Tzp2Jkig8IMbRpnwsBnhsPUY5KmdMb+k5i0SgE8LrQH5nTqsDGjtyNNV sytjqRtpkxzGmlWWR5etPpo30uh1a9xrhOQhPrWeYCM/HulWqlJIsf9ReN7V60tttU5/ ECPA== X-Forwarded-Encrypted: i=1; AJvYcCVrknKuNIupiZEituGVxBp3InWbyWkEDhETF6bO4sFOL2+ygABvxWHFVATtGPRl4jBRjrG7QHv/1cKsqaw=@vger.kernel.org X-Gm-Message-State: AOJu0Yw73e3wOCZ3QkiNeCljkNeCY4MS00z/SHT6RR41xfpjXjXaHUDq HydL4+A7B/5R5wkUL8Jf1RnhTnXITZQrJd84r1+LjLrK0fwJZGFn+t3iw67P0T0vc27IT1Wd7Ny Q X-Google-Smtp-Source: AGHT+IEt3Ucx92nE4o8sPcm5FzMm8vaXledTlK+sxljdxxDzyyiUHK3Swgy39bKRoFqZFE6YNyIfxg== X-Received: by 2002:adf:f28e:0:b0:374:c712:507a with SMTP id ffacd0b85a97d-37cc2479442mr1256564f8f.32.1727259809740; Wed, 25 Sep 2024 03:23:29 -0700 (PDT) Received: from localhost ([196.207.164.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37cbc2a8af4sm3578413f8f.1.2024.09.25.03.23.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 03:23:28 -0700 (PDT) Date: Wed, 25 Sep 2024 13:23:25 +0300 From: Dan Carpenter To: oe-kbuild@lists.linux.dev, Manikandan Muralidharan Cc: lkp@intel.com, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Sam Ravnborg , Hari Prasath Gujulan Elango , Durai Manickam KR Subject: drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c:573 atmel_hlcdc_plane_update_buffers() error: uninitialized symbol 'sr'. Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: f8eb5bd9a818cc5f2a1e50b22b0091830b28cc36 commit: d498771b0b830140a70cb8118ee0ee522be94f39 drm: atmel_hlcdc: Add support for XLCDC using IP specific driver ops config: sparc-randconfig-r071-20240923 (https://download.01.org/0day-ci/archive/20240924/202409240320.MZPgi3Up-lkp@intel.com/config) compiler: sparc64-linux-gcc (GCC) 14.1.0 If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Reported-by: Dan Carpenter | Closes: https://lore.kernel.org/r/202409240320.MZPgi3Up-lkp@intel.com/ smatch warnings: drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c:573 atmel_hlcdc_plane_update_buffers() error: uninitialized symbol 'sr'. vim +/sr +573 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c aa71584b323acf Manikandan Muralidharan 2024-04-24 556 static void atmel_hlcdc_plane_update_buffers(struct atmel_hlcdc_plane *plane, aa71584b323acf Manikandan Muralidharan 2024-04-24 557 struct atmel_hlcdc_plane_state *state) aa71584b323acf Manikandan Muralidharan 2024-04-24 558 { aa71584b323acf Manikandan Muralidharan 2024-04-24 559 const struct atmel_hlcdc_layer_desc *desc = plane->layer.desc; aa71584b323acf Manikandan Muralidharan 2024-04-24 560 struct atmel_hlcdc_dc *dc = plane->base.dev->dev_private; aa71584b323acf Manikandan Muralidharan 2024-04-24 561 struct drm_framebuffer *fb = state->base.fb; aa71584b323acf Manikandan Muralidharan 2024-04-24 562 u32 sr; aa71584b323acf Manikandan Muralidharan 2024-04-24 563 int i; aa71584b323acf Manikandan Muralidharan 2024-04-24 564 d498771b0b8301 Manikandan Muralidharan 2024-04-24 565 if (!dc->desc->is_xlcdc) aa71584b323acf Manikandan Muralidharan 2024-04-24 566 sr = atmel_hlcdc_layer_read_reg(&plane->layer, ATMEL_HLCDC_LAYER_CHSR); Uninitialized on else path. aa71584b323acf Manikandan Muralidharan 2024-04-24 567 aa71584b323acf Manikandan Muralidharan 2024-04-24 568 for (i = 0; i < state->nplanes; i++) { aa71584b323acf Manikandan Muralidharan 2024-04-24 569 struct drm_gem_dma_object *gem = drm_fb_dma_get_gem_obj(fb, i); aa71584b323acf Manikandan Muralidharan 2024-04-24 570 aa71584b323acf Manikandan Muralidharan 2024-04-24 571 state->dscrs[i]->addr = gem->dma_addr + state->offsets[i]; aa71584b323acf Manikandan Muralidharan 2024-04-24 572 aa71584b323acf Manikandan Muralidharan 2024-04-24 @573 dc->desc->ops->lcdc_update_buffers(plane, state, sr, i); ^^ aa71584b323acf Manikandan Muralidharan 2024-04-24 574 9a45d33cdf82f1 Boris Brezillon 2017-02-06 575 if (desc->layout.xstride[i]) 9a45d33cdf82f1 Boris Brezillon 2017-02-06 576 atmel_hlcdc_layer_write_cfg(&plane->layer, 9a45d33cdf82f1 Boris Brezillon 2017-02-06 577 desc->layout.xstride[i], 9a45d33cdf82f1 Boris Brezillon 2017-02-06 578 state->xstride[i]); 9a45d33cdf82f1 Boris Brezillon 2017-02-06 579 9a45d33cdf82f1 Boris Brezillon 2017-02-06 580 if (desc->layout.pstride[i]) 9a45d33cdf82f1 Boris Brezillon 2017-02-06 581 atmel_hlcdc_layer_write_cfg(&plane->layer, 9a45d33cdf82f1 Boris Brezillon 2017-02-06 582 desc->layout.pstride[i], 2389fc1305fc1e Boris Brezillon 2015-02-05 583 state->pstride[i]); 1a396789f65a22 Boris Brezillon 2015-01-06 584 } 1a396789f65a22 Boris Brezillon 2015-01-06 585 } -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki