Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1833101lqm; Fri, 3 May 2024 07:49:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU2CFMHZDgaJRHxmTjGzpFR0nCRcn9cXIlRKv5rtmdXa2DV16xr149GoLytjcTvdHnSWXm6eFCYUn0Z90fAytcR7QaDe+dHj+OGJDhnMQ== X-Google-Smtp-Source: AGHT+IFozpH+Grw54yE/M4P21Yt4O/1jpg/xnBnQfB0etGY6QpIKDpSig5175q54sZKnkdNhs9rA X-Received: by 2002:a17:906:f2d1:b0:a52:4bde:4999 with SMTP id gz17-20020a170906f2d100b00a524bde4999mr2541979ejb.31.1714747768434; Fri, 03 May 2024 07:49:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714747768; cv=pass; d=google.com; s=arc-20160816; b=LIMgZMDAgb/Lz/Cp7fJ/jMJ/eOY5AIB7ggh4RPcFXnaPBks3giuS5/JefNZeGyt89p 7yighMVb9XK8rR+FB9ZEOYJWVLJCVPKiBCZ14NgFKe5Q62HWxpx68eUc0GUP+lhtDvGU DU1q3l032MRqibSJYZfsh67FfAhI5djyIE50JwgkXV+hvkrCpXanOAYcTM331pPL2I1/ WOk9zzviHVRpcS9RKvi02oIOAW2SkR58oLvMai99S9Ijp00PmhDnUzhYbBvhCdI1z5xb PV+/JSGxcZIaneqpXi5MHhcDdhwLWyKwNvpGZ+Ikgv5P41dle870708edCHzcajnZ5h/ 2Yuw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=vue7AEGpbhQWdtlSVezRt8OjfVIEQ/ARZwW50j0jLhw=; fh=QqNxOnn9mhCTPQd1xjOEXOrYgTSU2QMEAc94AhclZVs=; b=va2GYs4Vf1BhZbomSG7nnpEhCnw2ISdN9Brn+5F6XgIgF6qXjN1BC0CuTb3L0katuA +pnD0k3MbsDL5TnjH7PXbq6LZMkAcUNuMmT2Q1F4bCbqvs9vi2JZBu/HFhBphw/+ymRF uRWv8GGnL+7HBifIz+YBHa6jh5vW7xKXAU6M5SbfsZ56krColPpPtToZ7MaZ6YIrTIDG cD1jeTmFBj2HKQnL1qKOLIa8VQpbn6Q2eMRxDWN+s9ICRC6jeqx4XiqOXR49WODWqX/Z 22JG6rOtUIA5wmLKsWSgk3bTszDpvWNAY6IINluYnvcnYlOaYnJUyL0PrqUn1BTPpDwE G1eg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@toblux-com.20230601.gappssmtp.com header.s=20230601 header.b=a9cbh5sD; arc=pass (i=1 dkim=pass dkdomain=toblux-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-167793-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167793-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id kg18-20020a17090776f200b00a598b33872asi878372ejc.307.2024.05.03.07.49.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 07:49:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167793-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@toblux-com.20230601.gappssmtp.com header.s=20230601 header.b=a9cbh5sD; arc=pass (i=1 dkim=pass dkdomain=toblux-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-167793-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167793-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 2D39B1F21572 for ; Fri, 3 May 2024 14:49:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 182B54654E; Fri, 3 May 2024 14:49:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=toblux-com.20230601.gappssmtp.com header.i=@toblux-com.20230601.gappssmtp.com header.b="a9cbh5sD" Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) (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 D2F3942076 for ; Fri, 3 May 2024 14:49:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714747761; cv=none; b=HPCZ5P0x5L4ktO03qEIyQxEYufQIbFQF9b+D7c6hLvlN4Vo2PFltxPMzSqQbexpllVE4VHB/yWhugS5uA9gElWbqeO0EQhBeCbzJNGwKlJgUSxCCSDuNOssrkamew82n5ueCPPIHUS2BsF+6sWikeAANQfZNSsbp50LNoqtH944= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714747761; c=relaxed/simple; bh=sIkQv8FPBAXSI8J1xzgFSbGfjS0vfeSYsCzMMHqXQDY=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Message-Id:References:To; b=BD7eY5X2cUKSMp/mellz7oCYYmElp1WjlnIL/aZVrUgbw4kIkIAJJLTVXyyMG/4kVS3KPXQ4rAhYG/V23KKdsRPzDlQZDJLO31gQdRvm9UrUT9Yc5KADTMnyHvr2BQX4MQVDCObDPF8thCifcz8Gzhjr6UaqQtno9vyo4EKUV3M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=toblux.com; spf=none smtp.mailfrom=toblux.com; dkim=pass (2048-bit key) header.d=toblux-com.20230601.gappssmtp.com header.i=@toblux-com.20230601.gappssmtp.com header.b=a9cbh5sD; arc=none smtp.client-ip=209.85.208.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=toblux.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=toblux.com Received: by mail-ed1-f44.google.com with SMTP id 4fb4d7f45d1cf-572babec735so2496732a12.0 for ; Fri, 03 May 2024 07:49:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toblux-com.20230601.gappssmtp.com; s=20230601; t=1714747758; x=1715352558; darn=vger.kernel.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=vue7AEGpbhQWdtlSVezRt8OjfVIEQ/ARZwW50j0jLhw=; b=a9cbh5sDSwJDQ8iBvEeC2mEr7o3XLcgZEp77KkqkfMD/3UzJEHgbQq7Hm6cExjhipe kqZvDUllA3z2CvPereKBM6mNgtndcAC6lFVXN2N2I8pOhw1duTt1tOCXP7W7uoD00u6G GiLTVsEZQOsIgpz4nR4JzY0IfXghYwZUps9U6nV9esOUO4r03GM7OMBJNOIPV6e6dq0C Knvt+85JChzyaULAFrVDdudikLCslfy+KdiaFpaV2CazUhwKvHbHFL7S/JeVgYXJfZrq YDtakTeuA0858mw/imalZX7AHmas00g5qJXkW8VdbsQ6Eope6mhRAfD4wjEo8f7Cw6WQ ntyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714747758; x=1715352558; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vue7AEGpbhQWdtlSVezRt8OjfVIEQ/ARZwW50j0jLhw=; b=MAxvfTBaeD7I20sFdZhFp6O2nxtRX+VnqK133EX1CeOKtunjM5HeFhukxjyuF1xlg/ oFO3+j1Rm44gm5qJ+WDekywEncdN6rOI6Se7pYUN7a3w1PF8EvfG64/w7flsef33GlUX avesBv1U17rhOmYgTcc0HpJYmbeNHSIxoLPdJU0AbVvURfIMxGNgs8Nmqc67MWn4LkN+ uPIGVRQA81UaX0C6c3FsB6u4r/rozvCvxcjYb1xSw2swddqBAe8EKyoPS6iCOr6K5Jcr lrZFnKFT1B4reRiPlS9tRbdvjd3/FgCaUT4m99hweZ1S99zeGmO6ZE3AI1R9zUaa/2vV UzpQ== X-Forwarded-Encrypted: i=1; AJvYcCX32tURTts4q//vjBwL4FX5euWNoC//bzeAauW2mvrBYp9xc3f1gp4SvfQ3REiS6InQNWu59jHjSEBAXJfjbGAf84CqqwpSB3WgK5qv X-Gm-Message-State: AOJu0YxhGjnv2ulAcZqyS6HIr/Nhs45nQNfQqZNcqPHfUI61HalqoTAZ kEB8QHUnR+qDHGBhtKay81AoHvxq9HmBErW5RMHc8PWpKRnyk4hELfEmIS0bOyI= X-Received: by 2002:a50:9551:0:b0:572:aed3:a1b1 with SMTP id v17-20020a509551000000b00572aed3a1b1mr5220368eda.17.1714747758080; Fri, 03 May 2024 07:49:18 -0700 (PDT) Received: from smtpclient.apple ([2001:a61:aa3:5c01:ad5a:d037:b2a5:befe]) by smtp.gmail.com with ESMTPSA id ba17-20020a0564021ad100b00572ba362607sm1738666edb.51.2024.05.03.07.49.16 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 May 2024 07:49:17 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.500.171.1.1\)) Subject: Re: [PATCH] bitops: Change function return types from long to int From: Thorsten Blum In-Reply-To: <99B58F85-CC9C-49F6-9A34-B8A59CABE162@toblux.com> Date: Fri, 3 May 2024 16:49:05 +0200 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 Content-Transfer-Encoding: 7bit Message-Id: References: <20240420223836.241472-1-thorsten.blum@toblux.com> <42e6a510-9000-44a4-b6bf-2bca9cf74d5e@linux.intel.com> <99B58F85-CC9C-49F6-9A34-B8A59CABE162@toblux.com> To: Arnd Bergmann X-Mailer: Apple Mail (2.3774.500.171.1.1) 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. Thanks, Thorsten