Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2600270lqt; Mon, 22 Apr 2024 16:10:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWCarKEZOiGPcwRU8tucAWBUb/nn86vyGYc6cOEzOV9afS+HPtoqBBxhxwBs7PiDYtwAdJ5VnyU8hDZUtfeHCqrQl/5zZNgTzOZtDxWiQ== X-Google-Smtp-Source: AGHT+IErZOr7tLhZ+qOaKMx7Qs70V7RehL3ajN0Ko1VfhlrTiGLCb05GNup6Ceswly7WVyvF7IHc X-Received: by 2002:a05:622a:48c:b0:437:ba24:2dd0 with SMTP id p12-20020a05622a048c00b00437ba242dd0mr14708695qtx.31.1713827455817; Mon, 22 Apr 2024 16:10:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713827455; cv=pass; d=google.com; s=arc-20160816; b=EUL8gmvZfy5KkrT/Hup8dI7CHWH3z44ozAIP1uLLza0GemYz4f+2+WM67mbYkwsHsD 6Rt86kYyQlmSzlgbpwHERqTIE+zifsckbcZftXI/IRYsJEMqQBIFeg94VG6CXPvWpV3Z dXcqdnhssvKszF8cP3uvssFOn5wMWX/LljrGH/0CWY6GDXuc4p86sUQnOkaNs03JiZMA 9+7N9VEPuiB2SC4fv+H1Jaru6PgeSDYrmiIljbfNtbtz0VEVBFNMgWNsyc3/CJCRHKhs sMnYKIW3+8OXmFe0LswHa3iyadEjot5QmIkWehV53EfrGZKvFbp6e2bIWYl9aW3LozZj PArg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=H+vHDpfrpWXucDC0uFH0aat5EFwvU5PRrpWR2paW/O4=; fh=UGnNlMPWTYCQ83puhrNCtR7SaTf2GTACXl5TM1b2jsQ=; b=aCXbjYw9VA8LDNl7yCbFgeZk4tJqrvddO2w0JTX9r+PNfQ4ppFEm/n3JQUhTuVD0go h7WuEEN9c9uIWXhCk3irlqXYCBkzTtlH2McQBZ4QaFViRoxQDqJQtA46DE0NptbEoKdh VrM6L4nYSHJXvGmNRkEVyrXB6QuSMdwUSSpWPCIICUndZm6FJOCzRw4Xe8ohSAD6GDBA NrsdgqOQ/3XRVUm9BTUFz5L/AhSWFA3Mrk27RsGE8UhNfUqFN3oL1Ke3tgsGZurRSvqx 21k0bsEssh7oprTlcOHXZ+PJowjfBoPlyN8QZEQnKmn4Fvuu7sPaLVEA9Iy9hB/jKqEZ 8xwA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jCinPE1x; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-154179-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154179-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id wi10-20020a05620a570a00b0078ec44f70bdsi11263136qkn.279.2024.04.22.16.10.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 16:10:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-154179-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jCinPE1x; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-154179-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154179-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 8A9901C20A68 for ; Mon, 22 Apr 2024 23:10:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9E9D016DED9; Mon, 22 Apr 2024 23:04:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jCinPE1x" Received: from mail-yw1-f175.google.com (mail-yw1-f175.google.com [209.85.128.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5F49944C73; Mon, 22 Apr 2024 23:04:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713827068; cv=none; b=GayMkHgeTo/S+WGE59WJuKRZnJATpypj9mVj5UZ+CIm5LUTL8QYQmRhXwCEohL0HNFYWuD/xroq8FnOaeKJIAN4avV7Yvx0qoh5aiTEAWQ166+bqaR9uNBFo7T+y07Vt12usP4PmuXsEo26erKpngpa08zRaCRy63xC0yne/CAc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713827068; c=relaxed/simple; bh=6Ac6vQ0aXcvvz3srSM0acKosA+te7+BqjbTdKTXWGyE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=gYPv0SKuGm95SpwHu2g3bE8cfa7jDe37sPSWEW1t6dXZkBqH/KUaS5Xylq7NjJ/fzwxWHJMBRZYO+WigTJdmfuTrX+dwW3zmVzGEa1ZnyRQ/M9cTe5SKSrQ3+YNFNfTEcKnuSsH4QXt7TqfL/h2XGhOjeMyuM5arBnJQVXIcfLw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=jCinPE1x; arc=none smtp.client-ip=209.85.128.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yw1-f175.google.com with SMTP id 00721157ae682-6114c9b4d83so40490957b3.3; Mon, 22 Apr 2024 16:04:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713827065; x=1714431865; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=H+vHDpfrpWXucDC0uFH0aat5EFwvU5PRrpWR2paW/O4=; b=jCinPE1x3BqBxQMTSxeTqH8QlKgzroVdulPE2kuEZXWPEfFofPlEKflWai9QZo6CJK pqUCd+rPYMeIkr+0t+sO1kLRTMIg9wK7LOrvF7PvIv9avUXHgpWdfSdxZv/TKwq96I0c eGwPNUIUq6Y/UOg/m/Qa2yZVOT2ETnA0fQZq9XA5gNgS3fCifcPzHEYfu8WslSGyFxCo xKouKXbNUwKeN1inf+8mYlBw87KPrpKqNaziV9dsIp3hpunR0NCBchSgTdn1xCkcw+KV 5ae5Iy7uSqFiFTWT4o+zoqe5E4W4v7mJ2uxn6N6Tm+Kp6H1XSWfCEc2twYJUw68duDHY Ib3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713827065; x=1714431865; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=H+vHDpfrpWXucDC0uFH0aat5EFwvU5PRrpWR2paW/O4=; b=GXFwfhWTIYgntcnJqr18qYyf4+Fr0LCdxVUXksYSIroEx0/rLQjwZwj4aKKuTmRRRV TN0ANHB7c4IpBtkRjjWl8iJmURJOz+CWKum8+FSYoXNWMWiZs3XdxgOPklbIw4weeD4I 99LCkAzZuuCHs9CbDioAex91SFx6LuzeCMC7OQaKqlWOV8FIf+ycsJwuSF4IZLpgIrUw DdJBJZGDDGhG3PEBgU7AO5Hcjb+RCWAHNaJm7NYzFhdTmIohYItyBrwD+HQ8KWb6u7ho 2ow/Q4l/wpHVFLCWzD0PJW8eRRV0lA1cciRgVJEuIWNiPhLKheg2A5lCsuIaIeJFmXSS 4t7Q== X-Forwarded-Encrypted: i=1; AJvYcCVwaQNEwvoJT6yOEe5HaL0fYYrlibf/cmUzs8G1i9rBOG40F+jPNCizIdzH1gDS/fE4aJOTjqVMJASOKN5ymLEvhI7MQTGo/4h+qvf8r71b7WFciDkZZcanm5TZ1qcu0CSlLMmIEJ5BGA== X-Gm-Message-State: AOJu0YxPDTeUzjPnZJc7lEm+gkN/VtGPAT+FEWnR5aC1hu8kYOUBXXB7 HfQuqQesNv0xETROBzvj6vC7ABjiY3OP9En8o9hJf+9wdGVOU24w3DlOMA== X-Received: by 2002:a05:690c:3701:b0:61b:33b7:9e11 with SMTP id fv1-20020a05690c370100b0061b33b79e11mr10814531ywb.9.1713827065225; Mon, 22 Apr 2024 16:04:25 -0700 (PDT) Received: from localhost ([2601:344:8301:57f0:baf4:bd67:a305:2140]) by smtp.gmail.com with ESMTPSA id 5-20020a5b0105000000b00dcda90f43d7sm2194016ybx.59.2024.04.22.16.04.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 16:04:24 -0700 (PDT) Date: Mon, 22 Apr 2024 16:04:23 -0700 From: Yury Norov To: Thomas Bogendoerfer Cc: Florian Fainelli , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/2] MIPS: SGI-IP27: micro-optimize arch_init_irq() Message-ID: References: <20240416173711.613750-1-yury.norov@gmail.com> <20240416173711.613750-2-yury.norov@gmail.com> 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=us-ascii Content-Disposition: inline In-Reply-To: On Wed, Apr 17, 2024 at 01:10:52PM +0200, Thomas Bogendoerfer wrote: > On Tue, Apr 16, 2024 at 10:37:10AM -0700, Yury Norov wrote: > > The function sets adjusted groups of bits in hub_irq_map by using > > for-loops. There's a bitmap_set() function dedicated to do this. > > > > Because [0, CPU_CALL_B_IRQ] and [NI_BRDCAST_ERR_A, MSC_PANIC_INTR] > > ranges belong to the same machine word, bitmap_set() would boil down > > to an inline wrapper in both cases, avoiding generating a loop, with > > the associate overhead. Effectively, it would be a compile-time: > > > > *hub_irq_map = GENMASK() | GENMASK(); > > > > Signed-off-by: Yury Norov > > --- > > arch/mips/sgi-ip27/ip27-irq.c | 8 ++------ > > 1 file changed, 2 insertions(+), 6 deletions(-) > > > > diff --git a/arch/mips/sgi-ip27/ip27-irq.c b/arch/mips/sgi-ip27/ip27-irq.c > > index 8f5299b269e7..d8acdf0439d2 100644 > > --- a/arch/mips/sgi-ip27/ip27-irq.c > > +++ b/arch/mips/sgi-ip27/ip27-irq.c > > @@ -277,7 +277,6 @@ void __init arch_init_irq(void) > > { > > struct irq_domain *domain; > > struct fwnode_handle *fn; > > - int i; > > I've already applied your first version, so I need an incremental > patch, which just removes the unused variable. Sure, please find below. From ce447fe69092c48bb59a6c4cb08ee5f9080f0ad6 Mon Sep 17 00:00:00 2001 From: Yury Norov Date: Mon, 22 Apr 2024 15:52:12 -0700 Subject: [PATCH] MIPS: SGI-IP27: fix -Wunused-variable in arch_init_irq() Commit 40e20fbccfb722f21 (MIPS: SGI-IP27: micro-optimize arch_init_irq()) replaced a for-loop iteration with bitmap_set() calls, but didn't remove an iteration variable. Fixes: 40e20fbccfb722f21 (MIPS: SGI-IP27: micro-optimize arch_init_irq()) Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202404161933.izfqZ32k-lkp@intel.com/ Signed-off-by: Yury Norov --- arch/mips/sgi-ip27/ip27-irq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/mips/sgi-ip27/ip27-irq.c b/arch/mips/sgi-ip27/ip27-irq.c index dcb14a234b1c..d8acdf0439d2 100644 --- a/arch/mips/sgi-ip27/ip27-irq.c +++ b/arch/mips/sgi-ip27/ip27-irq.c @@ -277,7 +277,6 @@ void __init arch_init_irq(void) { struct irq_domain *domain; struct fwnode_handle *fn; - int i; mips_cpu_irq_init(); -- 2.40.1