Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2435899ioo; Sat, 28 May 2022 13:36:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/Ruh/HO+YZVIpgIAGXaVVa2nsvJeejaaJFY+/T2kTKMV0mVpnTZ9Ux4NQF38t7xZ6RADk X-Received: by 2002:a17:90b:4b0c:b0:1e0:96b:c3fe with SMTP id lx12-20020a17090b4b0c00b001e0096bc3femr14924199pjb.212.1653770218649; Sat, 28 May 2022 13:36:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653770218; cv=none; d=google.com; s=arc-20160816; b=eJ8ArWyksaHNXcAUebHEIHCMr4SJQlWsUZotbc1JtxzxDqxYq6QFIbUATBeZaFiSQV B9qxaKtjqRo/FfU5VgR6Cm50Hi+k9uSz3LHWogBd+jQrOe/2/i12FljSimi6F6hUSYes jTFQ6ILZLya9o2UkurnWWKzYzvKPrS4UlYExTHBrtS/d+y1XCqGOxIc8GjNHraC7MXXR BUOguo6FGe6KoS84LxAcF2HFaVlmuyAsHBZ22JWrbQ6HsGCYx1WHukolTbkZVipxexEN FcjlTJ/7e7JI5LA9qJ6ZsyQqu0Mn5D5mxdSPw7dUc4448Xgx3YV6vmt+b+OEZ64kLw1o 0Vqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=zzL7axEXi14arYEiuXdlV0isDBGHzH5hbVMhER+3/Kk=; b=nYHCuSTXE7/Pd6ZLuBil9dV9jEOOB2wD1GjnF+I4u0R4R3l5XEOqHHZ8bJxdU+IF92 wWXtYJtUab1cyuo9Q3Fnz+3rTBz92uAL4rNFmt03h07du6Oetv6mhZKX0ef+D9c8emTP B7jBj7HVPLyHM4DBDKrzCTs+J6oxkgrJz0nEnQi1FfWNkKtwetz9GmnC/zoISJbzm5yy cJnHaE+KUvSt8viSCc3QYlDZc2rVTHpv2TEnCmpKzUG4EJPDDbBpRsv6bMpIE7YZPtIM jr6qX7rGpE82NTrNI0Qs+tbIwvkbqtU0+Ij2R5tmS9u7ALHAMtAAhRjpahfcndilQCgg GQKQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id z16-20020a170902ccd000b001637d6a52e8si9119646ple.19.2022.05.28.13.36.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 13:36:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E7DB45D658; Sat, 28 May 2022 12:38:23 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349119AbiEZU5T (ORCPT + 99 others); Thu, 26 May 2022 16:57:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343816AbiEZU5A (ORCPT ); Thu, 26 May 2022 16:57:00 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35D1B6A06F for ; Thu, 26 May 2022 13:56:59 -0700 (PDT) Received: from ip5b412258.dynamic.kabel-deutschland.de ([91.65.34.88] helo=phil.lan) by gloria.sntech.de with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nuKXJ-0006ZH-Qa; Thu, 26 May 2022 22:56:49 +0200 From: Heiko Stuebner To: palmer@dabbelt.com, paul.walmsley@sifive.com Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, wefu@redhat.com, guoren@kernel.org, mick@ics.forth.gr, samuel@sholland.org, cmuellner@linux.com, philipp.tomsich@vrull.eu, hch@lst.de, Heiko Stuebner , kernel test robot Subject: [PATCH v2 1/5] riscv: drop cpufeature_apply_feature tracking variable Date: Thu, 26 May 2022 22:56:42 +0200 Message-Id: <20220526205646.258337-2-heiko@sntech.de> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220526205646.258337-1-heiko@sntech.de> References: <20220526205646.258337-1-heiko@sntech.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The variable was tracking which feature patches got applied but that information was never actually used - and thus resulted in a warning as well. Drop the variable. Reported-by: kernel test robot Signed-off-by: Heiko Stuebner --- arch/riscv/kernel/cpufeature.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/riscv/kernel/cpufeature.c b/arch/riscv/kernel/cpufeature.c index dea3ea19deee..b33564df81e1 100644 --- a/arch/riscv/kernel/cpufeature.c +++ b/arch/riscv/kernel/cpufeature.c @@ -294,7 +294,6 @@ void __init_or_module riscv_cpufeature_patch_func(struct alt_entry *begin, unsigned int stage) { u32 cpu_req_feature = cpufeature_probe(stage); - u32 cpu_apply_feature = 0; struct alt_entry *alt; u32 tmp; @@ -308,10 +307,8 @@ void __init_or_module riscv_cpufeature_patch_func(struct alt_entry *begin, } tmp = (1U << alt->errata_id); - if (cpu_req_feature & tmp) { + if (cpu_req_feature & tmp) patch_text_nosync(alt->old_ptr, alt->alt_ptr, alt->alt_len); - cpu_apply_feature |= tmp; - } } } #endif -- 2.35.1