From nobody Mon Feb 9 00:42:02 2026 Received: from mail-vk1-f201.google.com (mail-vk1-f201.google.com [209.85.221.201]) (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 AD18B1E0DD8 for ; Thu, 4 Dec 2025 15:31:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764862292; cv=none; b=ddbzqyWRuh2ISIisJpvOkDhgA4vsSGERbTRtxf4l9xC00yeZe3qh9AxSaR/GfrXi06898EJ3CRYZTPWM4UQ4306oyTZYvZatoP4jGcSnhxViLAhprZtCCBxvito9se0HpiT2bPxETkzLe6o3ug5UM+iHEoIIkK3VkiQTDVo58lM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764862292; c=relaxed/simple; bh=VBBsloPbVef61Hd86hFn99i3oDfEY1aTEj/WdMY9AAo=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=RCn81tJ0UeZWpbscy/LkQObO84yMANGS+21REJCASYHjzNwAgzcQJkCPZ9TKM9AvhpioyFvh3G05xSIVNKpjUWBnVXFYATQRH+jT9dbIi5WiLxkMJ0nue4GxJ8ZqFFCbeuiYAjT2f2kUyDF6RuIsAfDhjLSOH+58UnVsyxk5UX4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--edumazet.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=cvuy/J9M; arc=none smtp.client-ip=209.85.221.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--edumazet.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="cvuy/J9M" Received: by mail-vk1-f201.google.com with SMTP id 71dfb90a1353d-559549c0edbso1507432e0c.3 for ; Thu, 04 Dec 2025 07:31:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1764862289; x=1765467089; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=+AnM9lKvu8C6BSb0KNc5WBQYHvGN1eAf0z4RhbQHbQ4=; b=cvuy/J9MxHkc1Un4lnID/1XOl1pLxoNe5rNe+X1H78qhpOqUEuEFTHh7e4bMi3gkYH AZP/cOYl4O28fwhOAKdBnWaVLnura3vHyc8JfiMsc6BetX1kV3FTepkU/Rqt1dJVcZXz oIFTsVT1jkizmovJgilusMwvfC2vq0h6i4ObvcD4TiauRwHdLbNjGTTC8+8l9gnjpSMA g8JFc9qsLqoU+1NNLfB/xlnFlW9wC/Lt1PUE/EqHEqJFRoMZMUtRhMTihNVcIOW6haCI ZAwTfOdhoHnUQknieHyzusryy0+WNcn7IIf5ogDYbnw+SWfNXtKz3qG52IeRS0Gynxzk YIdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764862289; x=1765467089; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=+AnM9lKvu8C6BSb0KNc5WBQYHvGN1eAf0z4RhbQHbQ4=; b=kzizSYLOg2rJARhPzPm+dg2PE5YOd2GqXELRY5eR1tOxM6dGlRoPrkaVZR2Su3tcaN vNxJakSAhI7f6DRhF1uxCYVd72LuCZiZL1aabrAgtQfGF5pDNmFUBrh5eorlBbtUyf5s Fi40O4JtxwsTX249pGvCPM7QrwKmJeVdQZdK+v4kL9DBRxhDvdYE6YheGnHo+oO3WXvC Hz/PdC/zybAVqMW3qmIDaCmgzZ9N9Bq+ZKWJ+c30t0z0bH1/numoP1lUp0PWufHwyj/F hm48iIeWcqOjJ8/VS9sfwMiclH7b47+Gfbz3q4dlGOlSj8YWQojmg1hd81WgVJVHFfF4 4crg== X-Gm-Message-State: AOJu0YxZFpjx2VZFQZt84Vkw8RX4tDjkVRBPFoyXtHj1dyvueOYV7wUC X8gOM1QWs97iGM+DWshpsocnMIAVI/I2vFzt9uanZv5WSCzqvzawzO4MLDDfhQLGSeXjU2MDUUk 3aWuzuY44En0Ppg== X-Google-Smtp-Source: AGHT+IHKN1mELhIbvkzEc5bo9hFEDY3RRV6I76SZZizL6chE23anZ1O4eK6wkjSEXYuwJWZkvKsFGFNlefVRVg== X-Received: from qknrv8.prod.google.com ([2002:a05:620a:6888:b0:8b2:eb77:a152]) (user=edumazet job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6122:d92:b0:539:44bc:78f1 with SMTP id 71dfb90a1353d-55e5be62e8dmr2371776e0c.5.1764862289344; Thu, 04 Dec 2025 07:31:29 -0800 (PST) Date: Thu, 4 Dec 2025 15:31:27 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.52.0.177.g9f829587af-goog Message-ID: <20251204153127.1321824-1-edumazet@google.com> Subject: [PATCH] entry: always inline local_irq_{enable,disable}_exit_to_user() From: Eric Dumazet To: Peter Zijlstra , Thomas Gleixner , Andy Lutomirski Cc: linux-kernel , Eric Dumazet , Eric Dumazet Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" clang needs __always_inline instead of inline, even for tiny helpers. This saves some cycles in system call fast path, and saves 195 bytes on x86_64 build: $ size vmlinux.before vmlinux.after text data bss dec hex filename 34652814 22291961 5875180 62819955 3be8e73 vmlinux.before 34652619 22291961 5875180 62819760 3be8db0 vmlinux.after Signed-off-by: Eric Dumazet --- include/linux/irq-entry-common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/irq-entry-common.h b/include/linux/irq-entry-com= mon.h index 6ab913e57da0a8acde84a1002645a9dfa5e6303a..d26d1b1bcbfb9798885426fbb2b= 978f43fcfcdc1 100644 --- a/include/linux/irq-entry-common.h +++ b/include/linux/irq-entry-common.h @@ -110,7 +110,7 @@ static __always_inline void enter_from_user_mode(struct= pt_regs *regs) static inline void local_irq_enable_exit_to_user(unsigned long ti_work); =20 #ifndef local_irq_enable_exit_to_user -static inline void local_irq_enable_exit_to_user(unsigned long ti_work) +static __always_inline void local_irq_enable_exit_to_user(unsigned long ti= _work) { local_irq_enable(); } @@ -125,7 +125,7 @@ static inline void local_irq_enable_exit_to_user(unsign= ed long ti_work) static inline void local_irq_disable_exit_to_user(void); =20 #ifndef local_irq_disable_exit_to_user -static inline void local_irq_disable_exit_to_user(void) +static __always_inline void local_irq_disable_exit_to_user(void) { local_irq_disable(); } --=20 2.52.0.177.g9f829587af-goog