Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1578974lqe; Mon, 8 Apr 2024 13:12:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWgEG/arwIn71Z+bnntX1QWeY64YBpk5/nyUj7xJu6laGDnldTopTXZ3g0EQ+XzaEiaQfWQLD9ajyipFWmYGJQF5pSClXEsx+KwLS+GMA== X-Google-Smtp-Source: AGHT+IHAu1J40H5n5/9eEBFv2QHbCri6CBcR8HBf+s0sDq+dzwX+vzhT2pv6/icUuslynlTvR06M X-Received: by 2002:a05:6871:3415:b0:22e:cbfa:678d with SMTP id nh21-20020a056871341500b0022ecbfa678dmr10933523oac.57.1712607143593; Mon, 08 Apr 2024 13:12:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712607143; cv=pass; d=google.com; s=arc-20160816; b=vXj751Qh3rVq2jj675aJCQwwo+JeC/ugk+59FO2HUnDLyWkwCIQUqW/6qr9oHQ1CBv AghMdh38LwPJOhKOLhn217jRBNfHXYTF7dccMB5nNhrLe2h/z/ujiSCgBOQF4KzCWJEv gAGWTZeWefT7OBaW8mUs4DXoMbJgXBJSwNiCyWBz2u7bhIlhVLIfBVzwrA1Hj4pIeONu RPcOCKodt555M6s/G+7SRn+sJUXwtLpG/ku8kdZhBkB7RB6HpZIEfB8++hhMJLDS3WDu gCrXpyQ+Jauip2M39JeGiusAPSUV3n1mo/yZRICwMbwgFHIoULHfjAF7OiYPF02oOUOg IyZQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=ciB+yk+sxj3WjvAOZ3AtBhLNrg4E8Qyg/edsGuYwbwE=; fh=CwoTugJpr9IRLx16LF4Ih/6t+JWUJg3E4Ts2R3GK3FU=; b=pzSFi6Zg7OjSeIdZnF7/2rkrLJ4ui32afOfoc3I4DFutOK/yZI1BA8RAEDztvawW8n R/tr21/cmcrpdbnvvYRROG7hogRYG4maPxJ6Y1J8F3QmqJDz1b01cVodh1ftp6y0dTpd 5bP87ZQ4EAs+SVqjCmxWGHBMkDwolkrwvSR7hYes7D7l9XMpXjTfTtcsyfvxT67pKZx/ DWPO6eJgQFcgBUTUEKjJjzSsZNDy+suRL3n5zVTdAYI9vQ+rlJX491esHOn7SJbqzEls Ph8TQoBQFEZc6T61h0WpIN4nmWQ4umvMuzhUaNHLusqAL630hLow7ayZZxoCEEDr2ssQ uEyw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=TiKOrn7s; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-135899-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135899-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id i5-20020a639d05000000b005d8e3c86163si7137822pgd.142.2024.04.08.13.12.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 13:12:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135899-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=TiKOrn7s; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-135899-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135899-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id DDB6AB2374F for ; Mon, 8 Apr 2024 20:11:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C5F2146A6C; Mon, 8 Apr 2024 20:11:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="TiKOrn7s" Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com [209.85.208.181]) (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 6E50B1465AE for ; Mon, 8 Apr 2024 20:11:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712607062; cv=none; b=EoTRXSSlHoa8nxxFkCgWjnnEJoz+dhdVEcG3U51rPA2UrpHNEaWCbOt/IY4bsHWrJcvZXocfKLTq63Vmt5Nu7oa6nzdj9Q6yG1Q4FWF5gvOpoiijAksEkCBRVD359BMB+jkb/KcJM3vhbiix36+i9EvBtExZzkgyOArsebpz8G8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712607062; c=relaxed/simple; bh=T9Axq0K/iXwEnSWdW8NNAFCF+A5jnAQA1gx3vfuBArU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Oe/Q74VPJmLI92s3ZVvVBI65TCxJigxZXuG6V06KDqygJwMl2lgX8mm6wkHMzY/MBUN2++OS+n7NQLKDL9Jkw5XrRWf7R/GYS3Hrtz4ALOWoJr1mvDnaPnQUpaffOY5JOP8yT53gKtLrFpvQw68XBY1Q3LVqT/zzyOq5iZCXqtA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=TiKOrn7s; arc=none smtp.client-ip=209.85.208.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-lj1-f181.google.com with SMTP id 38308e7fff4ca-2d476d7972aso63245711fa.1 for ; Mon, 08 Apr 2024 13:11:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1712607058; x=1713211858; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ciB+yk+sxj3WjvAOZ3AtBhLNrg4E8Qyg/edsGuYwbwE=; b=TiKOrn7spH/ePHJLsR6mEUJhWSHoai+QwFjNvuktLz1c7GPwlJ8pmPWDdTaUBjAo3O jqRVONsyznLKotfqB7M+gLE87zPB8yu4NFy8r9QEo6d8EaLuVKlYXZZBhOlxjqn9+RI2 qmcLAMMOUkUA9k/o7UMPuNyA0C9L09PxZBc0U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712607058; x=1713211858; h=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=ciB+yk+sxj3WjvAOZ3AtBhLNrg4E8Qyg/edsGuYwbwE=; b=BjDefSa4rD567oV7GWPzWQaEG7udWGtvAr63579Jwcr8IutGyDp5RvrpPcR1c84H8k Vej+iEz4yhUdwG6xG+xZb11gF/MI6Jj4PSyCjWZlnutwPhehaIIZhbQEAU/UWlzYp5G2 Lnpx9RtAtWEdZNFE38iLMrK9R5KKeefaZexyibsAoNOaXU1RyUcBrk9SptVuJE5sgiKH k600Y6JfoqQW/nuzClUhkRY0d/eiSMk0qz2rwi9bjQ7W8xHaI5JYyhnOdU3t/nj/7Fu9 IKswv7sFwRFZTB3IU07EgCwETL+n/YjQhrdHlIVMqwvX3fiRrLO8pvn/B5FaB4lkGMuJ W5vg== X-Forwarded-Encrypted: i=1; AJvYcCW0zwxbHMq3Fyz3aG2tAnLu7rYvLAHqK7OxWdKByCzE1/dxBD6U3e3DZHAUhfUuSGVe+vLd8VW90K+z/uuCjfrWk2Ao1Eah9V4aJclf X-Gm-Message-State: AOJu0Ywf8N9zfPWtAiZedQGuDCLI1m5fWeFPykN9eXYrtTPFbIiInYCU nCnVJIvlxdUedP/r1KJX7pD/+xNqMPaZRqT5YO1rQuzzp32RvwCMesObtV8Qc7Mz2nnw//demmP mozuQaw== X-Received: by 2002:a2e:9a9a:0:b0:2d4:744c:24ab with SMTP id p26-20020a2e9a9a000000b002d4744c24abmr7041254lji.27.1712607058193; Mon, 08 Apr 2024 13:10:58 -0700 (PDT) Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com. [209.85.167.52]) by smtp.gmail.com with ESMTPSA id bg39-20020a05651c0ba700b002d814bf6618sm1293755ljb.115.2024.04.08.13.10.57 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Apr 2024 13:10:57 -0700 (PDT) Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-516d0162fa1so5760750e87.3 for ; Mon, 08 Apr 2024 13:10:57 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCX/HbNotOU3pUzPMoLjyBgESp96EVnqSC2qoD+hmpTTJ9w0jvEUJLvOfu9Nvx7EhtaZhB7mxGcmKp/mXUVP45SKG02qYtpbhOoNGMhW X-Received: by 2002:ac2:54bc:0:b0:516:afb5:6a71 with SMTP id w28-20020ac254bc000000b00516afb56a71mr6509617lfk.67.1712607057038; Mon, 08 Apr 2024 13:10:57 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <7b3646e0-667c-48e2-8f09-e493c43c30cb@paulmck-laptop> <20240408174944.907695-8-paulmck@kernel.org> In-Reply-To: <20240408174944.907695-8-paulmck@kernel.org> From: Linus Torvalds Date: Mon, 8 Apr 2024 13:10:40 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH cmpxchg 08/14] parisc: add u16 support to cmpxchg() To: "Paul E. McKenney" Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, elver@google.com, akpm@linux-foundation.org, tglx@linutronix.de, peterz@infradead.org, dianders@chromium.org, pmladek@suse.com, Arnd Bergmann , Al Viro Content-Type: text/plain; charset="UTF-8" On Mon, 8 Apr 2024 at 10:50, Paul E. McKenney wrote: > > And get rid of manual truncation down to u8, etc. in there - the > only reason for those is to avoid bogus warnings about constant > truncation from sparse, and those are easy to avoid by turning > that switch into conditional expression. I support the use of the conditional, but why add the 16-bit case when it turns out we don't want it after all? Linus