Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp6833071pxu; Thu, 24 Dec 2020 14:29:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJxL4DJKwmT2pUBWD1+B3XA4HtOfaZQqXXpXwP7s0t+Ycw2ZbvSHZFbVqIAZ0vebDPtn2Ss+ X-Received: by 2002:a17:906:3bcd:: with SMTP id v13mr29665534ejf.181.1608848997297; Thu, 24 Dec 2020 14:29:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608848997; cv=none; d=google.com; s=arc-20160816; b=HwzN8KlEyOLh/VO+yc3VtNCxEID//WVdfxbWHslKRM+Y88eGq8m6KvJqmlalv9GXsO VhjzA/QeZDD4UhmS3NZo3TYGO8vlqXwmbnrDqaGtJdh04+/VYRfmDEiaAHAufAAUUtvM Q5ZNkq8+22iczT8rxL6O25wLgjFefIOswqNo0IUmeKkN3i47BhMqRlyxiuRVEuLAv7xs mF022e1XEqUYH8cfpne8m8nZDuGV/rXr7UuV+BoX+Zi2s8S82nzTBzbwQ7e+LQKViGKG BCgAC5j44KxXdssTlezd4a0WWeNou+yZ6CgTxMdGycrFh+a8UoxkVJSrsJAcC7OBY3Cb ZJsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=WVgMIe6f2x4NkzIsowkEU5VbeVfG+KlVYzro8vABtIM=; b=UjYdNwozX6x+QK1i90aNgUYZifYNZG9mhAE//d+Z58dppjK7SEbBz7bR3sg9Wln30j 9IYGpwl8QJcT7d4cSk8q2UZ++CfbPBfXVrjF8R6oLGA1C1YibxEA9AtRDAH+d3XXPnfv AspLBfv1MaRjJPGqgA/TJfc1+dQocImVU36CgQO1SM7Y5lSlHKHnOQLUKDEK3QbrDc7C mSFWA4KW5Oo3HEG5eoijmnTZBqPshncw7a39iPsbpk5Z900SJLoOGEtppcfRwBqup1+W ErwJArtRWVhd8GARn1R07wt0Xf4RBSDg5KVImBeYnagPNlIWPGKTE+xv+s210hwitPRY 5Z+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="NdHD/MMF"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k16si15361260edr.236.2020.12.24.14.29.34; Thu, 24 Dec 2020 14:29:57 -0800 (PST) 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; dkim=pass header.i=@linux-foundation.org header.s=google header.b="NdHD/MMF"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728942AbgLXW3H (ORCPT + 99 others); Thu, 24 Dec 2020 17:29:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728704AbgLXW3H (ORCPT ); Thu, 24 Dec 2020 17:29:07 -0500 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D92C5C061573 for ; Thu, 24 Dec 2020 14:28:26 -0800 (PST) Received: by mail-lf1-x136.google.com with SMTP id 23so7100019lfg.10 for ; Thu, 24 Dec 2020 14:28:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WVgMIe6f2x4NkzIsowkEU5VbeVfG+KlVYzro8vABtIM=; b=NdHD/MMFyljQPE+PPWLewgCWLzpbm6c4NlPaMatyjNaGyF2AEH8Su97p86MebNW14h ydm4/y81NkkFvapcqo1DICsysejvjE3Ao+251ZzZnPUmsaqTy5kp+HdKJQe0oJGCkU/l HI0AEMLAxASH3RBX4w2TuPqez8l8rlA55cgF4= 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; bh=WVgMIe6f2x4NkzIsowkEU5VbeVfG+KlVYzro8vABtIM=; b=nzRXM5mA3TVmMu+aKWlHLuzSDYAKIrVoRYVd1PQs4nuq2iuQ3Acag1+KEuk8bYxRtP TpCy9oVrwZyop+AP5YSMScHzZpISAyr5c3S8E5B4EATK6vFXIdj2415GpSRC2QuvrNi5 xhxSWFafK3VmYPOEpWrT3Qo5JoOZKDOS1M/SiVvSS/Z9jpFP1T8+j7xj0rHvOleuUm1e d6Z7SYV6GJ2JRwCtpklYkpmZtOZ+ZGIp1AKybOiwodgsSkujBrGshr7pPG6+WmxfdJUU XVo12vKFBUS27uE4Ox9OBc5uWn0VBvr18bo32VFP7oL4z6CT1cjbqPCqJozsLlICSEuL 5gIQ== X-Gm-Message-State: AOAM532US/Oar4WIpAxKOlAcq79cfcbpFXwzM1eeqtgYRj2CTFr0OYs1 sosJ4XKnl8+ovE6eMjExvIArzh8uqu6Nyg== X-Received: by 2002:a19:5e03:: with SMTP id s3mr12756224lfb.186.1608848904798; Thu, 24 Dec 2020 14:28:24 -0800 (PST) Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com. [209.85.167.49]) by smtp.gmail.com with ESMTPSA id l22sm2671029lfc.303.2020.12.24.14.28.23 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 24 Dec 2020 14:28:24 -0800 (PST) Received: by mail-lf1-f49.google.com with SMTP id m25so7084496lfc.11 for ; Thu, 24 Dec 2020 14:28:23 -0800 (PST) X-Received: by 2002:a05:6512:3048:: with SMTP id b8mr13773066lfb.421.1608848903361; Thu, 24 Dec 2020 14:28:23 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Linus Torvalds Date: Thu, 24 Dec 2020 14:28:07 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [git pull] drm fixes for 5.11-rc1 To: Dave Airlie , Josip Pavic , Bindu Ramamurthy , Alex Deucher Cc: Daniel Vetter , dri-devel , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 23, 2020 at 6:29 PM Dave Airlie wrote: > > Xmas eve pull request present. Just some fixes that trickled in this > past week. Mostly amdgpu fixes, with a dma-buf/mips build fix and some > misc komeda fixes. Well, I already pulled and pushed out my merge, but only noticed afterwards that clang complains about this, and I think it's a real bug: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_mpc.c:475:6: warning: variable 'val' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] and it sure is true: the code literally does uint32_t val; if (opp_id < MAX_OPP && REG(MUX[opp_id])) REG_GET(MUX[opp_id], MPC_OUT_MUX, &val); return val; so clearly 'val' isn't initialized if that if-statement isn't true. I assume 'opp_id' is always presumed to be valid, but that code really is disgusting. Just make it return 0 (or whatever) for invalid, possibly together with a WARN_ON_ONCE(). Ok? Linus