Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1066697rwi; Thu, 20 Oct 2022 08:16:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6+iZdO1Nzv0/S/bfG0ZT4dvnafXIrffX29H+//BAbCD6oz9ZzH19SlFi1xPxXTu95q4EzL X-Received: by 2002:a50:fe85:0:b0:458:5562:bf1e with SMTP id d5-20020a50fe85000000b004585562bf1emr12517741edt.167.1666279010851; Thu, 20 Oct 2022 08:16:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666279010; cv=none; d=google.com; s=arc-20160816; b=Fx5IUAF07/6+c+mO0tSpNTvdx6pVQok+cjxfXd2axpvdJMfMpWfSi2aISRmBgukzew VHTgBljSbZkhpMM2YKIpmu0vK+myISLLTTb4ha3WVIpKA9amElWn4edY52Xr84oY/HHl tcy64yu2ApFWLG38wBNZNIgwg5S6H1KNL2n2FrucAS7LsX8erhxMIy9v9b7YVrhQFLXv aj0ycUOL0TdfSDUMABKl7LCSSdXgnZ67gZaaSLd+ZRaYlGC7OsfZ9VftV86OImOL28U4 avsDs9yogABVP2h+TRxSZPdoTofCWa9m6ins8zwflRm0UW9LQMRdkCwNt1SFfU5SW6Bp MVoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=qX7WGaoSK1q1bdZUJXrK9ouuTl4TgOi1mdqqgTucn2k=; b=dQHx/Fq8vGZrejhI0+p+3aKIIMLkacRK99O7/YkI6Eqrw/8DLDLKr8Aznooi66FcOx hAbUI3aScflSrk3cheDruNV5oMPT3FiZU8L2GWSK/88lPYfthWFcJJmyUNiQuYyXFjyE XpTTRIR6EfZvffSyZFbwLB5AFY99qSUCoqmw4++Z62Ti6riXnUDMs8EuajAJd1MZkZve GCaS1qLmil2dTV4zBPglriZDYsVstCzRvUb17CIkNeapyLRmDFRV79AH42ij/EN9GgGL oCeT8y1f8fk+zAVd37giMZMphKx+ncs6m1Yw6TGlGqKDyha9rPTkwsIwVFaCITn9alXR u1Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=cd7dP5fp; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y66-20020a50bb48000000b00458ea8cbfb2si15906121ede.505.2022.10.20.08.16.20; Thu, 20 Oct 2022 08:16:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=cd7dP5fp; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230053AbiJTON6 (ORCPT + 99 others); Thu, 20 Oct 2022 10:13:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229515AbiJTONs (ORCPT ); Thu, 20 Oct 2022 10:13:48 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36C071DCCD6; Thu, 20 Oct 2022 07:13:47 -0700 (PDT) Date: Thu, 20 Oct 2022 14:13:44 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1666275225; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qX7WGaoSK1q1bdZUJXrK9ouuTl4TgOi1mdqqgTucn2k=; b=cd7dP5fp8sDtQOB+twZK82vxjWfqEO8aibIqgSIzB0mIh0ISFNjUH5WhLqJGW/ZAnjkF2E Slm8lvHw622y9NKbHZAdLOCV7K9U/03BnGMIS0htN4zbgkkLmh43X2CfOA+5WR68CK4lcW T7gMAtPQNGUoy1ZU5uMNN82DkA1n5njxNnu2p1a3nLbF49kUa6QCMv/FwtkvTru1euGfvD UY8gSOxJ0JO7glnzIm1WC0EnPs5JFPphwfBzVaP1qXlJhC2eohoaRQR8nkgT0mtQlIKqsU R1aGqWbrF+ob1pwnAdQ7xImxsQS2ffqFjumoLEjmSG0vduf3WIDWD73uNb9ETw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1666275225; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qX7WGaoSK1q1bdZUJXrK9ouuTl4TgOi1mdqqgTucn2k=; b=1jkMuUvIQXnEpYGfe8qIXplrIFUXnNa72tQoaYE0sDn4H/J6ODNHgD7i4/v8jw2LOkmR0o G73Ww+k4jJxa9HDg== From: "tip-bot2 for Juergen Gross" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/cpu] x86/mtrr: Remove unused cyrix_set_all() function Cc: Juergen Gross , Borislav Petkov , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20221004081023.32402-3-jgross@suse.com> References: <20221004081023.32402-3-jgross@suse.com> MIME-Version: 1.0 Message-ID: <166627522453.401.11341421010355263315.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham 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 following commit has been merged into the x86/cpu branch of tip: Commit-ID: 04ba8747e1329fa9e274b4634d792f811a3b0677 Gitweb: https://git.kernel.org/tip/04ba8747e1329fa9e274b4634d792f811a3b0677 Author: Juergen Gross AuthorDate: Tue, 04 Oct 2022 10:10:09 +02:00 Committer: Borislav Petkov CommitterDate: Thu, 20 Oct 2022 15:58:11 +02:00 x86/mtrr: Remove unused cyrix_set_all() function The Cyrix CPU specific MTRR function cyrix_set_all() will never be called as the mtrr_ops->set_all() callback will only be called in the use_intel() case, which would require the use_intel_if member of struct mtrr_ops to be set, which isn't the case for Cyrix. Signed-off-by: Juergen Gross Signed-off-by: Borislav Petkov Link: https://lore.kernel.org/r/20221004081023.32402-3-jgross@suse.com --- arch/x86/kernel/cpu/mtrr/cyrix.c | 34 +------------------------------- 1 file changed, 34 deletions(-) diff --git a/arch/x86/kernel/cpu/mtrr/cyrix.c b/arch/x86/kernel/cpu/mtrr/cyrix.c index ca67091..c77d3b0 100644 --- a/arch/x86/kernel/cpu/mtrr/cyrix.c +++ b/arch/x86/kernel/cpu/mtrr/cyrix.c @@ -234,42 +234,8 @@ static void cyrix_set_arr(unsigned int reg, unsigned long base, post_set(); } -typedef struct { - unsigned long base; - unsigned long size; - mtrr_type type; -} arr_state_t; - -static arr_state_t arr_state[8] = { - {0UL, 0UL, 0UL}, {0UL, 0UL, 0UL}, {0UL, 0UL, 0UL}, {0UL, 0UL, 0UL}, - {0UL, 0UL, 0UL}, {0UL, 0UL, 0UL}, {0UL, 0UL, 0UL}, {0UL, 0UL, 0UL} -}; - -static unsigned char ccr_state[7] = { 0, 0, 0, 0, 0, 0, 0 }; - -static void cyrix_set_all(void) -{ - int i; - - prepare_set(); - - /* the CCRs are not contiguous */ - for (i = 0; i < 4; i++) - setCx86(CX86_CCR0 + i, ccr_state[i]); - for (; i < 7; i++) - setCx86(CX86_CCR4 + i, ccr_state[i]); - - for (i = 0; i < 8; i++) { - cyrix_set_arr(i, arr_state[i].base, - arr_state[i].size, arr_state[i].type); - } - - post_set(); -} - static const struct mtrr_ops cyrix_mtrr_ops = { .vendor = X86_VENDOR_CYRIX, - .set_all = cyrix_set_all, .set = cyrix_set_arr, .get = cyrix_get_arr, .get_free_region = cyrix_get_free_region,