Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6455954rdb; Tue, 2 Jan 2024 02:28:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IGWzvjXvVIY2IwixlpAXqo51abV0SFp9INct3SGTK5rUJN1IT2hAMKdZE+rQ+QUzO8YpX6N X-Received: by 2002:aa7:c355:0:b0:556:8a68:6541 with SMTP id j21-20020aa7c355000000b005568a686541mr691772edr.31.1704191311160; Tue, 02 Jan 2024 02:28:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704191311; cv=none; d=google.com; s=arc-20160816; b=PK9cb5LWiA3eUwhRhg7u7Wt0zjxm9zm2N7AadPPRADdn8wXBaQFAZXYVa1FgBAw+4W xaxQpjTz6ewt/ldlkJq7GoXYAm0X2z6X3FxPNXGxmnsd89GamjBLsoTxt0TTL0LazKhT rhSUC1g+OXVFyZSe5y/6zmnFGCR51MILk/Dy0VaQHxvo0UTEP9/RYfCHGu1uB6Pvbgrw kUci5SN9pAoq1W9I9Hu9LQPlnl10BXBA+4tmhaI66Gw073OT2JfZsWNZZ4bnHZ7XuYgg 4xwzg6ZKbQR+CiairAo4YDY9IrE9FJaVlJqzH5xsVlnhKjwSG3SyLvdUGWBGyHuQnrAO l/IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence; bh=SGUYue1hsQCNLrCF4HXCzjQx8nMIh5sStGYQ5m2PA10=; fh=pC9Ukj5TKaVsMnbX8WJnP+P/kFkYoWUTOpAhgxgVGbc=; b=Up1OyKpAZlFz7xLKxX8sZSIjG8D1GrgMqMTOcD6FQ6w/P6PoEXb2gJsDgKBUAQoBvh pzEdeOk354QmKpG6cAjRSPkXp43OT571G29r9kyv6q8nXVQO72GXQCYb4kz2uXAiKEBR qZ8RThGm4jEjkNwicSY7zFSgDpvWFVv8i8PdsRxmHCJtYVzL8cWt8shMZRee7kHWfgcA lVHqYrTNNfC/DKPdDsMwBLmQmhSH99HEivJEEK4iCBzr/jw+l144R3Ee1LFatXJfE1Pp n8AhsJCw4glWjyc4YbBGT6/wmMs3KbU82AxXW33O5oExo6AKcLcvGY7J7Z2cBUVSmLjC S0rQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-14241-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14241-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id q6-20020a50cc86000000b00553de437edesi9242433edi.59.2024.01.02.02.28.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 02:28:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14241-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-14241-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14241-linux.lists.archive=gmail.com@vger.kernel.org" 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 am.mirrors.kernel.org (Postfix) with ESMTPS id AC5F01F224C9 for ; Tue, 2 Jan 2024 10:28:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 00FFBD2E5; Tue, 2 Jan 2024 10:28:23 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from mail-yw1-f170.google.com (mail-yw1-f170.google.com [209.85.128.170]) (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 E0D2DD285; Tue, 2 Jan 2024 10:28:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yw1-f170.google.com with SMTP id 00721157ae682-5edf3780534so40861667b3.0; Tue, 02 Jan 2024 02:28:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704191300; x=1704796100; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SGUYue1hsQCNLrCF4HXCzjQx8nMIh5sStGYQ5m2PA10=; b=IhF8XbFOtM2sbFIMTsvtFcYVn+ZhlUEbik3Am4co+9XxYgYZzesV+ymi3wrCx9/duu nZRUzM/rHrRFKnetQZelKIczbYooxe2AWVbKPXNd6OMUddNChMF8EJ7+R15Geh8BzidH xeaeQcuWjQ/aNSUZ/1YgVdf2sh7020PMsC/xcxHvlFyxd4gxVdYuCXzOmrKbkAgADQr5 YL2VZk9NQkU+9UTVwqAuRiGnUuAEAhZ48xKbQlgVgeDH3I4KPjFIUamLpYooWC0zb5LY aOzJT//5uHPzUZpaaQSqaNEQBzlb0PETS+33zamkIkH3Ve+eeOEGMrt3GdlawiPfuIhl 1HXg== X-Gm-Message-State: AOJu0YwMwZSQ/i6EwHUH0Vu9X/dhihrDpwgUdAObBNsm5AOX65WSr8YY 7q1a1x9Dq36alrz9DPdMbugE95Wa3AVijA== X-Received: by 2002:a05:690c:309:b0:5ef:91bd:f6f9 with SMTP id bg9-20020a05690c030900b005ef91bdf6f9mr4071978ywb.35.1704191299787; Tue, 02 Jan 2024 02:28:19 -0800 (PST) Received: from mail-yw1-f181.google.com (mail-yw1-f181.google.com. [209.85.128.181]) by smtp.gmail.com with ESMTPSA id q2-20020a818002000000b005d3ba95d418sm11865738ywf.108.2024.01.02.02.28.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 02 Jan 2024 02:28:19 -0800 (PST) Received: by mail-yw1-f181.google.com with SMTP id 00721157ae682-5e7f0bf46a2so74147597b3.1; Tue, 02 Jan 2024 02:28:19 -0800 (PST) X-Received: by 2002:a81:b661:0:b0:5f3:6024:53c with SMTP id h33-20020a81b661000000b005f36024053cmr393594ywk.32.1704191299465; Tue, 02 Jan 2024 02:28:19 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20221111081316.30373-1-mailhol.vincent@wanadoo.fr> <20231217071250.892867-1-mailhol.vincent@wanadoo.fr> <20231217071250.892867-2-mailhol.vincent@wanadoo.fr> In-Reply-To: <20231217071250.892867-2-mailhol.vincent@wanadoo.fr> From: Geert Uytterhoeven Date: Tue, 2 Jan 2024 11:28:08 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 1/5] m68k/bitops: force inlining of all bitops functions To: Vincent Mailhol Cc: Andrew Morton , linux-kernel@vger.kernel.org, Yury Norov , Nick Desaulniers , Douglas Anderson , Kees Cook , Petr Mladek , Randy Dunlap , Zhaoyang Huang , Geert Uytterhoeven , Marco Elver , Brian Cain , Matthew Wilcox , "Paul E . McKenney" , linux-hexagon@vger.kernel.org, linux-m68k@lists.linux-m68k.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Vincent, Thanks for your patch! On Sun, Dec 17, 2023 at 8:13=E2=80=AFAM Vincent Mailhol wrote: > The inline keyword actually does not guarantee that the compiler will > inline a functions. Whenever the goal is to actually inline a > function, __always_inline should always be preferred instead. > > On an allyesconfig, with GCC 13.2.1, it saves roughly 5 KB. > > $ size --format=3DGNU vmlinux.before vmlinux.after > text data bss total filename > 60449738 70975612 2288988 133714338 vmlinux.before > 60446534 70972412 2289596 133708542 vmlinux.after With gcc 9.5.0-1ubuntu1~22.04, the figures are completely different (i.e. a size increase): allyesconfig: text data bss total filename 58878600 72415994 2283652 133578246 vmlinux.before 58882250 72419706 2284004 133585960 vmlinux.after atari_defconfig: text data bss total filename 4112060 1579862 151680 5843602 vmlinux-v6.7-rc8 4117008 1579350 151680 5848038 vmlinux-v6.7-rc8-1-m68k-bitops-force-inlining The next patch offsets that for allyesconfig, but not for atari_defconfig. > Reference: commit 8dd5032d9c54 ("x86/asm/bitops: Force inlining of > test_and_set_bit and friends") Please don't split lines containing tags. > Link: https://git.kernel.org/torvalds/c/8dd5032d9c54 > > Signed-off-by: Vincent Mailhol Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert --=20 Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k= .org In personal conversations with technical people, I call myself a hacker. Bu= t when I'm talking to journalists I just say "programmer" or something like t= hat. -- Linus Torvalds