Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2887418lqt; Tue, 23 Apr 2024 05:00:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXuaTCeUQuCm7ipYOtW9LS4cDmoO/QP4yKEfVazVRbF6R3B9Djs3ibaF2njnEvZJKnVHSYssNbZj+UiKzeh23sUtrWw7aa5Ud44iGDTEA== X-Google-Smtp-Source: AGHT+IGsOImtMQe7UT382DyhNQbjvfV31jvf4qzBcia+FUOOC5dfo9y71AO7zD1kq4oZDCr4rJ8B X-Received: by 2002:a05:620a:470d:b0:790:887b:2d45 with SMTP id bs13-20020a05620a470d00b00790887b2d45mr424301qkb.50.1713873648789; Tue, 23 Apr 2024 05:00:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713873648; cv=pass; d=google.com; s=arc-20160816; b=A3tTEIV2mmGbDpU18BaG4/dHDV3hPlbYU10US8QRa2bns+RBTFv0754hOl74YYcr8n 5U7jAM69UoQLJ9fVAfggAJaLsXIJQANHBlw4k4L/YV5B7bbiLy4YKgDbn2VVXZIO2hbS Cw05UEtAarM9ioUXIUEei8OeFonJEoll4QjHLOOjTmKAj1WAHw8vUjOhe5wp4mXFQHc8 oEtUWKzM1dmDB+cHIbpTe6MW//menqE7SW2WJVOqblhnHtzGSPmoMhpJcjr/gcQhVRkK L3FhB0Ul1IWW7mAnj10elWsrEyadJrgAS8rw6p4ZsO0ae2mjCC37IEUyIpmAvRmcbXO1 VvKw== 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=O0Ua43dYlU3Ikmubwkdm30RvMrIaRpbJc+vhrHYu4Js=; fh=0rQDMG/rIXLC+T4te3vMxvubIEkDQgph5rE5vWnd200=; b=EmIKQMZnfb8Twx8GeAKqM9LRc5pPHwt0IxQEaGAvxH8yGLPAkpmEC43qZAMfjR/Iwb 2183cfZq31RX7YJTNtEMIgFocfK37gyZmKg1wpO9Kha1RyLTUrN+Iu9ZfP5pLDwFDJya 7TydVll03ttrBJAzD6hET5k46ISPU8HlsIyjBPZMdunsh677XTu5ZdlrJ2WjVtCAbtiu AzuoDBxvEg1v/QIhSQulSrjYt+raNT0UCmh9Ra4mDXpiqfCmkBkGgjeAmPI7KfrvUMFn QbkoAk3C4wxSS4f/8ORzJVbnsVOlrx9byElUQShJKqec9etlwsp4Al2IN+80AI4lgXsh HBnQ==; 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=kKHE9Cki; arc=pass (i=1 dkim=pass dkdomain=toblux-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-155093-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155093-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id pi9-20020a05620a378900b0078d6b75004esi12140010qkn.271.2024.04.23.05.00.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 05:00:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155093-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=@toblux-com.20230601.gappssmtp.com header.s=20230601 header.b=kKHE9Cki; arc=pass (i=1 dkim=pass dkdomain=toblux-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-155093-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155093-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5C87C1C22005 for ; Tue, 23 Apr 2024 12:00:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EBFFA136676; Tue, 23 Apr 2024 11:45:44 +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="kKHE9Cki" Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (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 9D9C985298 for ; Tue, 23 Apr 2024 11:45:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713872744; cv=none; b=PjNr47d6AAEflsDgV3lgmjF4s64jnTPF2opC/3XbWNspersxLbfRiUDdS3BbKHrqsXny21JHI4Zq8Sh9pccLtaPYf8VVH52qyvDU0+JWKaUf4z7/t96ulDZnmw2Odq4a7dBf5zX5qw7u1DKgNahO+OSOYRuoq1d6C17CE4w0dcU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713872744; c=relaxed/simple; bh=O0Ua43dYlU3Ikmubwkdm30RvMrIaRpbJc+vhrHYu4Js=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Message-Id:References:To; b=tLA1XjI1ELlOU+JOFDNXSbf+0zjBjfZ763MJjoPDAWKD6WFcaMcGT+SRlPLrCJxIWaQUvDlul3nErMtMDM+jNMzBWXYbvV6hdHG0Lx2RYUOChnd4B48foEKHQ3D/5pXQ7FuBA1YYNBmC3ywO2uAM2psHrVt8UKAy2+SU21M4baw= 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=kKHE9Cki; arc=none smtp.client-ip=209.85.208.178 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-lj1-f178.google.com with SMTP id 38308e7fff4ca-2db2f6cb312so96548091fa.2 for ; Tue, 23 Apr 2024 04:45:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toblux-com.20230601.gappssmtp.com; s=20230601; t=1713872741; x=1714477541; 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=O0Ua43dYlU3Ikmubwkdm30RvMrIaRpbJc+vhrHYu4Js=; b=kKHE9CkiIkYm3NovvRSadFDbG0XsnjNGU3tHYWR4WTm6i2SSUTGFARC3L7zPiaw6EN g0acvT2DV1VdpKTi6BI2QS1xNJVBBC2+NvJDhwczdj2lvUzGrNHuH9qOz8Ac8YkoKOoK jM7B6Mxo3FYZbbNO/sr0JgFk/H0e/ck4013VWWIjJBqGwXDSermP6IuTV1tk7rfqXY1o sPaymHFVsKJbCIaz+fRQuXAyTtsaInTXOOeGdDsdpoCJbG7+iWA2tyKVK9H0mToXVJwh NxK0wCFMsewJqJkEgJ++BEqB9ceFTXF6p3kYme3Xgrwi1tXchvbmRkgMFXMhtWRp+YkT eeaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713872741; x=1714477541; 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=O0Ua43dYlU3Ikmubwkdm30RvMrIaRpbJc+vhrHYu4Js=; b=NS+yw5utVzGx60DU2LP07fHytLarr7ysXBUJHvmOQyFcThkmb18gdej36SziWuZ3KY WvGLCn1dCNdFfpVF3QaXs78m4YAWvT1NcLxY1Ao312H5N02NbecGJEUJm/fDZjSrUlxy 3o3U0jYqarKbt60GBXUA5W2crrCvs/pB0C3qYk8XrHOU/O8xgHH0V6uttnHnYo/SJcO6 0O6+DS6/4kFQ5vZ1drx+e3a3Y2/SRG4kHu6JPE5u6r1GulZtx+yrG8wRiEJsvj+u/otJ XkPval3d8GfK95HBi5T7WhqMPOyzBXVw+WK5nG+XMhtHBVxokuzvrL9djSi9YGTjNbd2 sptw== X-Forwarded-Encrypted: i=1; AJvYcCXe3SUghgWuIYTwz6dViAv0KDkqLYIgGUeIypVRmkNOrGwGmL3HU2rkFZILVUsvmet1MItV/1qGaHIX1GRkZNu5fvzrMlWQc3PI+AN3 X-Gm-Message-State: AOJu0Yy3/7O+Y/lo7yqSKIUpBTdjhc4wmRT1nLlFL/uJB09M1WhYoKdU 2n9oGyVn0oR+OKM6FG+AUSD4hlMgSSwpdhW6UofGExtKBj1bvl0gnX446BHq5nc= X-Received: by 2002:a2e:a26a:0:b0:2d6:f5c6:e5a1 with SMTP id k10-20020a2ea26a000000b002d6f5c6e5a1mr9602485ljm.12.1713872740655; Tue, 23 Apr 2024 04:45:40 -0700 (PDT) Received: from smtpclient.apple ([2001:a61:10c6:ce01:dd69:e1e7:9a09:9d7e]) by smtp.gmail.com with ESMTPSA id bi10-20020a170906a24a00b00a54c12de34dsm6918479ejb.188.2024.04.23.04.45.39 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Apr 2024 04:45:40 -0700 (PDT) Content-Type: text/plain; charset=utf-8 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: Date: Tue, 23 Apr 2024 13:45:28 +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: quoted-printable Message-Id: <99B58F85-CC9C-49F6-9A34-B8A59CABE162@toblux.com> References: <20240420223836.241472-1-thorsten.blum@toblux.com> <42e6a510-9000-44a4-b6bf-2bca9cf74d5e@linux.intel.com> To: Arnd Bergmann X-Mailer: Apple Mail (2.3774.500.171.1.1) On 22. Apr 2024, at 17:55, Arnd Bergmann wrote: > On Mon, Apr 22, 2024, at 16:30, Thorsten Blum wrote: >> On 22. Apr 2024, at 09:44, Amadeusz S=C5=82awi=C5=84ski=20 >> wrote: >>>=20 >>> I don't mind the idea, but in the past I've send some patches trying = to align some arch specific implementations with asm-generic ones. Now = you are changing only asm-generic implementation and leaving arch = specific ones untouched (that's probably why you see no size change on = some of them). >>=20 >> I would submit architecture-specific changes in another patch set to = keep it >> simple and to be able to review each arch separately. >=20 > I can generally merge such a series with architecture specific > changes through the asm-generic tree, with the appropriate Acks > from the maintainers. Ok. I would still prefer to keep this patch free from arch-specific changes, = if possible. The patch improves architectures that use the generic bitops functions (e.g., arm64) and doesn't impact any arch-specific = implementations, unless I'm missing something. Thanks, Thorsten=