From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793013539; b=wtsCFYL4dSRezg7LdA9/sace9cnvXTMLX/5P31bKGbKkP1xQkiwLx6JcdpizjIsEY9tj Qida7CFkJSppxsqpE5YRG0DtuuiObQ9561B/t/EcsAvBLk+9wGLk58ewxLdVdna+3dnwX gCea15ZZjQ6Hg6jfKbqdgUB2vBFmym5WCRxyur8o8ACwBSOLso2Fv8obcpqJV5z3joTbs hw0eofwalF8c7UDfQ+lj+c6q2DSLLtYpXna3KdoqrwhIuRrC9OVa4HTvkIDHStg4+Oo4f IT3yf7mAB5nIeUj7MyZscRsVKMtxEkqnUfV7p0l1g0La2R1EjlsO8606eVurYoymhjQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793013539; h=DMARC-Filter:DKIM-Signature:Received:X-MC-Unique: X-Mimecast-MFC-AGG-ID:Received:Received:From:To:Cc:Subject:Date: Message-ID:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-Scanned-By; bh=UH+pNH61tGfbI/sfWK5JCj5eLjZl6kiMykE8M9E2Fnw=; b=AyfZw58z/xDlfxSHfwqXN+o4wenSqX83qbQCJ60RGYE7I4an3ZgXD8u/0VSMq/Q9LNXj ynI0M4WiTGV4ZgdlP87Ej3mYWBcwSaknrCuSk4bss780UZ5IC59ZLjnMmtc+z1zR1JG5e rNlAjSh45waT8B7WzhSSe3JoQhEnzmu59EJeQfxc8yFVZeU0KL3IxhGeActPB/xcBElBs MPVS9WacK7GxgAW0sghP0RA4QO6bzfTdFy2Vz2QD3xYGSL405DELlRA9nDM5Y9zDzzH0g 4KMf7UtM33hCq+7PwTYRzk8o2AH9atiCfa3vzl6Fe5zOc9RzzPPL7roBZaF8BChX6nA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=gx4IFvxc; arc=none smtp.remote-ip=170.10.133.124 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 10F03606A33E for ; Mon, 26 Oct 2026 11:18:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 10F03606A33E Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=gx4IFvxc DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1793013537; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UH+pNH61tGfbI/sfWK5JCj5eLjZl6kiMykE8M9E2Fnw=; b=gx4IFvxcYtAEGC2v3qQ5PsRHU613sYlHcoStUKwGMfEuxGWpoeexK7tzjwMYkw41cI8g8b cJcT9bJw+gNGcop/m+GzZ7N6kd+2bv+kHXCnaV1eTDiTFUhfmkAYbdspKhWgTG6PpreKd7 8SyAFv4w6r6wJCg2gmt0C/aikICSroQ= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-316-8_xtSpd0PHWI3KD0x8CetQ-1; Mon, 26 Oct 2026 07:18:52 -0400 X-MC-Unique: 8_xtSpd0PHWI3KD0x8CetQ-1 X-Mimecast-MFC-AGG-ID: 8_xtSpd0PHWI3KD0x8CetQ_1793013529 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id F3C4E1800651; Mon, 26 Oct 2026 11:18:48 +0000 (UTC) Received: from jmarchan-thinkpadx1carbongen9.tpbc.csb (headnet04.pony-001.prod.iad2.dc.redhat.com [10.2.32.116]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 770D01956087; Mon, 26 Oct 2026 11:18:43 +0000 (UTC) From: Jerome Marchand To: Richard Henderson , Matt Turner , Magnus Lindholm , Huacai Chen , WANG Xuerui , Thomas Bogendoerfer , Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Ritesh Harjani , Shrikanth Hegde , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen Cc: linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org, loongarch@lists.linux.dev, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arch@vger.kernel.org, Jerome Marchand Subject: [PATCH 3/7] mips: Remove the unused non-atomic local_t functions Date: Mon, 26 Oct 2026 12:18:18 +0100 Message-ID: <20261026111822.458404-4-jmarchan@redhat.com> In-Reply-To: <20261026111822.458404-1-jmarchan@redhat.com> References: <20261026111822.458404-1-jmarchan@redhat.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 While working on a fix for a tracing soft lockup, it came to my attention that __local_dec() was broken on ppc64 and other arches (it actually increment the value). My first instinct was to fix it but the fact that this function was utterly broken for so long, decades for some arches makes me thing that those functions have not been used for a long time, if ever. Anyway, they're not used now, so remove them. Signed-off-by: Jerome Marchand --- arch/mips/include/asm/local.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/arch/mips/include/asm/local.h b/arch/mips/include/asm/local.h index 86fc240222425..c9381e5e3eff9 100644 --- a/arch/mips/include/asm/local.h +++ b/arch/mips/include/asm/local.h @@ -176,14 +176,4 @@ local_add_unless(local_t *l, long a, long u) */ #define local_add_negative(i, l) (local_add_return(i, (l)) < 0) -/* Use these for per-cpu local_t variables: on some archs they are - * much more efficient than these naive implementations. Note they take - * a variable, not an address. - */ - -#define __local_inc(l) ((l)->a.counter++) -#define __local_dec(l) ((l)->a.counter++) -#define __local_add(i, l) ((l)->a.counter+=(i)) -#define __local_sub(i, l) ((l)->a.counter-=(i)) - #endif /* _ARCH_MIPS_LOCAL_H */ -- 2.56.0