Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2568786lqp; Mon, 25 Mar 2024 02:59:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXdXnSqAeO5rt52xJl9JXY3F4eUPIFQJfr44K0uSCyu1Hd4vbTXTkrW72S5EChvSO9PRKc8b0NtCbsen17GK7bmnN4T9iZy4ZeNh/ra/g== X-Google-Smtp-Source: AGHT+IE8zdIeS+tVfNGHx9o0EdeLAYXN5CSVfCGZkwQV3fv7JCnXyGHIaRRAf1iruXH/8TazBHv/ X-Received: by 2002:a05:6a00:2304:b0:6ea:7b62:8e6a with SMTP id h4-20020a056a00230400b006ea7b628e6amr8277762pfh.3.1711360761735; Mon, 25 Mar 2024 02:59:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711360761; cv=pass; d=google.com; s=arc-20160816; b=dunXnG5sR0Bjnk/mmueafMg4kyJZBO0W+7sW/hI0FaRyRFa0vwCmeBaq8ZcSrgO6XE G7ACCZPE8FzKpM6nlokqaVa+MBSYalOSTdNQkn7dRwuPmJaIvoxGoU6Sg0nZKbjCSoId izkKPIddmf5BXFpRBiFjwnqrCaND05s4E2KUBpyT5kQbf4ZIzNn6qLHeO2YQwOAqPmUd Vsfz3xCtdivWshFZh+CjpatjDdWbDQqr3YRoOsv1NLB66TG3kLqmv+dQD7GRMjFiKL9y b+O3/Lax4ySqwn9+kkJ58ykhdOHKwsJj71zAga1KHU8S+9nvDXowZBfMIMMV88H1Q5sa TAVg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=tZt097J8SAtT2uQqBjMkC2VGsz15J+G3EUhUrARPA2E=; fh=mcwsZsVr3lKblFkr14MVCDIX3OKqJ1Mtt4jrDo0UHLg=; b=ITsgPLxrEAN4H7nOT+HlYKR2KGBSHYu57ep6WeXRBoLU7IFjXLoJHFt8gdFDQNE6s7 NWDs2UmYbW/FE58upguJgFXMPQhg0XxEXfAVzt3omIlWfuqaYSOT6AuM5tGp+8ZidXcP L+iCJUwKCL/b0qb8SbmjFwlZ/JDr1ZcY6ZAMFDWmTqiXn0x4NBm+moW5dkTDJnkg3kt4 Lkgod/zvMYwB2aU5PZXl6L1O5Im0FF06Lt0q9o610N2RMYCEJZwfusy1a8AwPGJLOYYy JEkmdQgHuKn6H2YHUJIGtStkxssOwlbV+PzEL2hR9OrFSz4AYUHUlWP3+FUBTqVtbGxW ybtA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=D6SjBdma; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115966-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115966-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id i64-20020a638743000000b005e4f14d49c1si6831513pge.195.2024.03.25.02.59.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 02:59:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-115966-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=D6SjBdma; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115966-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115966-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id A8C3529E95F for ; Mon, 25 Mar 2024 09:55:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 52BE33949AC; Mon, 25 Mar 2024 03:04:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="D6SjBdma" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 005F22310F6; Sun, 24 Mar 2024 23:17:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711322242; cv=none; b=dmvw/T9yJY+Oq1vylkAAQnzoET6aL6FX3JDPqr57w4YueBMUlE8EM1VVeviKbEI/GGiwBpDrdu/Pg3X8JSmIKgYk3boedvcCl93EPyGW3pwmlSe5TP1ECyYGalGXp8ozBWP/mG5OsWp1nax0US5gQmwSzsVSn4AzlPU7vrKgY5E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711322242; c=relaxed/simple; bh=CtjPN60KHWabBCP40nzTYEuMUXB7PpgyH+0xKuKgn8I=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=AhKtAvlofoMWzkdWQUVB++p7pyVLpY87oLqGJRbm3zl2oeKlfnNSkoKTx8nopPMgTHYKVV4smxz00bMNV8kJI5DzV1Dta3vXkIOSiDOEv3BJx8k2qzvfyBLXNLhK5iSOHi0zVCZwcTW67ZwrGmdvDLLhjdqPpp9LY2/qjgiXAcY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=D6SjBdma; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0C7E2C433C7; Sun, 24 Mar 2024 23:17:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711322241; bh=CtjPN60KHWabBCP40nzTYEuMUXB7PpgyH+0xKuKgn8I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=D6SjBdmalySKva+SaiZrJXU4KY3SYh9XH9j4cYQtLiWvisD3Izx35dgOO56bpbr6t gBPhnC24cw4olL39QIv9l4AVvRTQiE3yezXIV0C1zj9yVQi+agoxaNbWhlpqOrZuKH CiIwrrHnnwU5CCHGODTbC7GrSz13e9QGlwWZZnve1JjwBNuE7MfOeEGr/wGgfXxabr AAmEs00uC3qazMoJENVeLdJPCnMrXIOUQ1U5L6rUwwWv1+Eg4RClbqf4mykXoICQPu qnfHIBZ55GloSW5Y3JjO2xYzSeuSkzIEZxbECxWGdaQlkYgKjgs8x4MI33azQ2l6wv QjuNSjL9rLYYg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Srinivasan Shanmugam , Jammy Zhou , =?UTF-8?q?Christian=20K=C3=B6nig?= , Alex Deucher , Sasha Levin Subject: [PATCH 6.1 323/451] drm/amdgpu: Fix missing break in ATOM_ARG_IMM Case of atom_get_src_int() Date: Sun, 24 Mar 2024 19:09:59 -0400 Message-ID: <20240324231207.1351418-324-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324231207.1351418-1-sashal@kernel.org> References: <20240324231207.1351418-1-sashal@kernel.org> 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=UTF-8 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Srinivasan Shanmugam [ Upstream commit 7cf1ad2fe10634238b38442a851d89514cb14ea2 ] Missing break statement in the ATOM_ARG_IMM case of a switch statement, adds the missing break statement, ensuring that the program's control flow is as intended. Fixes the below: drivers/gpu/drm/amd/amdgpu/atom.c:323 atom_get_src_int() warn: ignoring unreachable code. Fixes: d38ceaf99ed0 ("drm/amdgpu: add core driver (v4)") Cc: Jammy Zhou Cc: Christian König Cc: Alex Deucher Signed-off-by: Srinivasan Shanmugam Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/amdgpu/atom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/atom.c b/drivers/gpu/drm/amd/amdgpu/atom.c index 1c5d9388ad0bb..cb6eb47aab65b 100644 --- a/drivers/gpu/drm/amd/amdgpu/atom.c +++ b/drivers/gpu/drm/amd/amdgpu/atom.c @@ -313,7 +313,7 @@ static uint32_t atom_get_src_int(atom_exec_context *ctx, uint8_t attr, DEBUG("IMM 0x%02X\n", val); return val; } - return 0; + break; case ATOM_ARG_PLL: idx = U8(*ptr); (*ptr)++; -- 2.43.0