Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1844389lqm; Fri, 3 May 2024 08:06:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW3DvBZiQfpZHiHeXhn1zL350b9uOxUUHEW5Wr3/HKXZNtugkkHRH68NuQRIuAgnBKv0f0u95xVI0CZV8ex/DwII9p6rSTZH5TVh+HPog== X-Google-Smtp-Source: AGHT+IFmYhqVMA0EIfJgNQ+hWdCStvrv2PP1azKwiKRZ4XzXWq15KN2Qlnh0LkO4CNmtG+cKtcfH X-Received: by 2002:a05:622a:1a92:b0:43a:e77c:352a with SMTP id s18-20020a05622a1a9200b0043ae77c352amr3079122qtc.17.1714748773476; Fri, 03 May 2024 08:06:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714748773; cv=pass; d=google.com; s=arc-20160816; b=dGAcE0WPb5NuN7UZFlCSdAmOXC+4KeUkWksS6mN88X3rZ+MsSrIHaZrDs8vQbuVJL9 HVJn2pJYWWrGStKvjZuzLqQl30q3qOVzziUQYXqApjhYMf4vHj1zq7SvYG+iuov0p6PZ lASLo4t1I8WmBEWYJwSuULTKx352ixp6gDumqZAq1JcmO2mLG/A+TmKlcBlEy5oZY7h4 mtYTRoB8aD2pcQjkHiR1fn5lnQ6xWGicN01+jr44OIsZEQPQF8QseiKCJoYoGsq+DEm1 hHV4wye9G5Nxy0ttWGOKuESghOY5e5BaMM9xhpQ9LzAFHTeVh+S3NVcjndmHCccvNRA7 Jp5A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:cc:to:from:date:references:in-reply-to:message-id :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:feedback-id:dkim-signature:dkim-signature; bh=JbVGGat4e5HAZ02u9XPTjIFCrew1jWN9uR5HkNHLs3M=; fh=Z9qgznGVJdB7J6P3Rxg6rmoRxF9cApsO3XTj3kbPVaE=; b=f1WzczVaW5kkfupfcMO3Q6XXO8NBXtXj4RsYxAliS1OKdiI8DRjxJNp3/bZakPb0n8 xAtJfebHStD6boGJHCthW/LKEfmUsIP6Mugk83KWFLaZpy6Y2SNXYJdQnm5cg1rDToWf e4d3S8z1Irv9kBpH2oVLDJ9+8fNnl2KKqcyujGpsZsftn0K0CCTJQFS5PpOrRjV/G/dm 7tkXum6GC8D17h49+X+trFzAScSFD8RVfQlCaah2eoQ7EmTYAAju1kivC57NLNGW79P6 HPzEGQSLRLTddRgW1B/crn821/qbBe21TrilbB6ytV3HZZv3sSavyvpj7oi+G0IZNFfw SEsQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=lK7TLf8v; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=d3ZL6Ft9; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-167802-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167802-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id e6-20020a05622a110600b0043aeea11a19si3610691qty.667.2024.05.03.08.06.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 08:06:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167802-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=@arndb.de header.s=fm2 header.b=lK7TLf8v; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=d3ZL6Ft9; arc=pass (i=1 spf=pass spfdomain=arndb.de dkim=pass dkdomain=arndb.de dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=arndb.de); spf=pass (google.com: domain of linux-kernel+bounces-167802-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167802-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=arndb.de 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 376D11C219B9 for ; Fri, 3 May 2024 15:06:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3CFC44AEFE; Fri, 3 May 2024 15:06:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="lK7TLf8v"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="d3ZL6Ft9" Received: from fout8-smtp.messagingengine.com (fout8-smtp.messagingengine.com [103.168.172.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7CBDE57C84; Fri, 3 May 2024 15:06:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.151 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714748767; cv=none; b=Y0w7+qEmDjMZxhFi/3cr7WJh2ld+89YAZPKHNCKh8q9RCLD8YNEr7ag0/VExnIX+nXjQ+JkyyVHwDlQZQIoXj65jGvdvnI134GLWcnQVm5YUDm23hO0cW4jGBV/jsTbj5Hqx2NKF8ifTMif4fSBXmTt2wckz5h/Yr4iaXC21SKA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714748767; c=relaxed/simple; bh=JnpGwDMbq5BJ45XOyGa6afSjXzlIb4yHoH5QASjnFbg=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=eC0/JgH6s5wLqAPScd48Usz86wIbSaG878loGQxEsK6KyWNjcfFmhkskXzLQTLodtLE8etuE4xiXKf6NADd34ZWt0XZF84C8jb7tvIWs5mcYXjuj4VFv9T+CzGEdWMntKymAHGypaz612tz44CrH80EZ14k89ioXhn+CgvHUtE4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=lK7TLf8v; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=d3ZL6Ft9; arc=none smtp.client-ip=103.168.172.151 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.nyi.internal (Postfix) with ESMTP id 9D10813803B7; Fri, 3 May 2024 11:06:02 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Fri, 03 May 2024 11:06:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1714748762; x=1714835162; bh=JbVGGat4e5 HAZ02u9XPTjIFCrew1jWN9uR5HkNHLs3M=; b=lK7TLf8vrFhT+1WnJsXkGgy6T4 BYVijdxdGtOcVpZIZQG4xpRoGrZly+BWL2Xkdi/AF1q9UQmLtJgnekuQU8Gvip9N qAuREOv91ycGHxV38u7VRECiASV50H46G5qqozccoetwwVNQRPba+6bn/fn0p0Ab pBiivUJ8fFUvJYDobLgsgYMLoTckD7WR3oWFUqzdi+3uIVyJehXgzV+1R3zzvqXJ 6ZOkRv4KM4fmDDNQz8BbPcu7/u+61Nu25bGh5VTqfgigB/3Q0Ri5gZYXlBTWUSZm r8pu9vGn8jgyk4Wwjn2+AbK3WjfC46WGpvuXYA8qGslAqtjm41TrQ5FAhRbg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1714748762; x=1714835162; bh=JbVGGat4e5HAZ02u9XPTjIFCrew1 jWN9uR5HkNHLs3M=; b=d3ZL6Ft9U3/8PK4t9hNei5S/rBllz4MFbVHmJKr7kaoV KoFSHVxhpJCQ6KHxF5UplOMyCyPskRWxGaxySb3mix2wCpzRa5WL6yElOyjF5nDH QzHi3p0Bv3Mwy128xFy8Q4JmWVr9t0ze/LFsvfDvxzTamLOHai3zXD8o4m1/Rj3s /ajvQXFJPbJLwQtReHGXchey2pd46tN0Em6fyGaVN2KilXkE0/W8vV9xejFknWTd 7OX5kHIwVtmG0KYBYWNruOx62B5lCnHzaddC7aTbQvPRHtwmEV73riPe4MaTCpmS XWeCyvYKuJxDp6eNqoizaz2mxnkfMSg838K4Ip627A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvddvtddgkeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 112F9B6008D; Fri, 3 May 2024 11:06:00 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-417-gddc99d37d-fm-hotfix-20240424.001-g2c179674 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: In-Reply-To: References: <20240420223836.241472-1-thorsten.blum@toblux.com> <42e6a510-9000-44a4-b6bf-2bca9cf74d5e@linux.intel.com> <99B58F85-CC9C-49F6-9A34-B8A59CABE162@toblux.com> Date: Fri, 03 May 2024 17:05:39 +0200 From: "Arnd Bergmann" To: "Thorsten Blum" Cc: =?UTF-8?Q?Amadeusz_S=C5=82awi=C5=84ski?= , "Xiao W Wang" , "Palmer Dabbelt" , "Charlie Jenkins" , "Namhyung Kim" , "Huacai Chen" , "Youling Tang" , "Tiezhu Yang" , "Jinyang He" , Linux-Arch , linux-kernel@vger.kernel.org Subject: Re: [PATCH] bitops: Change function return types from long to int Content-Type: text/plain On Fri, May 3, 2024, at 16:49, Thorsten Blum wrote: > On 22. Apr 2024, at 17:55, Arnd Bergmann wrote: >>> >>> I can generally merge such a series with architecture specific >>> changes through the asm-generic tree, with the appropriate Acks >>> from the maintainers. > > What would it take for this patch (with only generic type changes) to be > applied? > > I did some further investigations and disassembled my test kernel images. > The patch reduced the number of ARM instructions by 872 with GCC 13 and by > 2,354 with GCC 14. Other architectures that rely on the generic bitops > functions will most likely also benefit from this patch. > > Tests were done with base commit 9d1ddab261f3e2af7c384dc02238784ce0cf9f98. Sorry for failing to follow up earlier, I think this is ok, thanks for your thorough work on this. I've applied it to the asm-generic tree now. Arnd