Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp941905ybm; Wed, 22 May 2019 14:21:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqzDDZvLudOQW5ddCNUZmPLcIxK8BIPjAvAdSob9lMLhdqMS/ybSjmWCFyfVrHdOwH5hq82E X-Received: by 2002:a63:171c:: with SMTP id x28mr92803349pgl.12.1558560072311; Wed, 22 May 2019 14:21:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558560072; cv=none; d=google.com; s=arc-20160816; b=websnfBDoqTE4UtiI75HN7KDhy2SQ3bNP8Qatwba20pER9e/qtvErNA61qb2IL9rHW 8QjAPNLzW2EsntqCsy3ovFncQJb4kyB0NGrOriAAnCV46gaNlk1qOkC/1rZdEncYbPWC MomCbh51SteZ/LHBQF1EyR2FN9HgEKkxluw1Qu5f5v2Xb+4VHRpMSpkZdk7vh3PnQyXy Zc6WzMt3U3li8bH6T8fE7frynIivepLgSVyFtvvXVqqlORlkYWmZhxdoVJh54SQD55JZ E6jC22qwtt8y6uhTak3poUks1rlwsyNFk2MApwW/SbtJss0n2VMqjb1PZF90WaFlQm7b NhmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=QutE0frdZrFjtR+kepVTzgGv/IyM+j4DHLDgWKVoQ6Q=; b=JVuN1EdFiNAkUhhQmDZJUGAt0Qsp44hzDBOSx3UDQYPkxqefPpHQWmQvZFtQ/M40uq 7yDFkzImiIAfqg5n0PR+G3xu6DJ3FriFyszotjpGyAFzxrzQdGmLV7kreyax9yrxsukk u24r2rN9Iv0vrPfXQs4xwSLkRzy+sVs2vo8JJF6rYxqJ4zqVCRbQ4AwNQ2QIMgB+iCm5 H4RgFj0vT6hgEIB+L6+CYhIFsGKl0Cn6BdyNKeA7csoNWA8A+fMeUqk8dydF8i16yuVn XwTyMImkMVhbqvKAVlE4FemWxEH8LqSeCfdoU+c+36rJXDcQy802co3vk6EYMC2jI8rH JE1g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cp18si17944279plb.196.2019.05.22.14.20.56; Wed, 22 May 2019 14:21:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730267AbfEVVTR (ORCPT + 99 others); Wed, 22 May 2019 17:19:17 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:35354 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729720AbfEVVTR (ORCPT ); Wed, 22 May 2019 17:19:17 -0400 Received: by mail-qk1-f195.google.com with SMTP id c15so2502130qkl.2; Wed, 22 May 2019 14:19:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QutE0frdZrFjtR+kepVTzgGv/IyM+j4DHLDgWKVoQ6Q=; b=Mz9dCjiGwJ8XlmlfA1S6hkj0JBuO1pBCWDvRhcSjERE5azzOG5QvxSyExhb+Cj+Bz7 eYykbfDMxiAJG5rEC25BEJpUssKOXGgNZ4UYodL8Aohm7IHDBHmwlkROhd8uMBmIYl2w 7Ki18i8KkSkfh7Fk6ta5RVAKxMpJxrHEpWtv/ZM3J5hajJcY6VPIqgOA0zfe5qjPi9Sl BpMaMemYTx5z8A1BtRHyVdI1B+P4GoTqP9DqYNPEGFvK4hO1g0d7MPropxjYGu/T4ll6 xBwQwUzTk7GzVl9A9cqaKCRXk2IJ4rjc9J+hP9o6buC8ezeR+BN3PuGDalNU64/qI/ze dL0w== X-Gm-Message-State: APjAAAXejuDlNrmqs3c7JvjYo//w1OZZAiCs/naAav8S1O1ahfvZD+A/ mOCwRcs6rMUci/OqF3nhayogQkGpxjrz1sIDpJQ= X-Received: by 2002:a05:620a:5ed:: with SMTP id z13mr33906637qkg.84.1558559956356; Wed, 22 May 2019 14:19:16 -0700 (PDT) MIME-Version: 1.0 References: <20190522132250.26499-1-mark.rutland@arm.com> In-Reply-To: <20190522132250.26499-1-mark.rutland@arm.com> From: Arnd Bergmann Date: Wed, 22 May 2019 23:18:59 +0200 Message-ID: Subject: Re: [PATCH 00/18] locking/atomic: atomic64 type cleanup To: Mark Rutland Cc: Linux Kernel Mailing List , Peter Zijlstra , Will Deacon , Albert Ou , Borislav Petkov , Catalin Marinas , David Miller , Fenghua Yu , Heiko Carstens , Herbert Xu , Ivan Kokshaysky , James Hogan , Russell King - ARM Linux , Matt Turner , Ingo Molnar , Michael Ellerman , Palmer Dabbelt , Paul Burton , Paul Mackerras , Ralf Baechle , Richard Henderson , "# 3.4.x" , Thomas Gleixner , Tony Luck , Vineet Gupta Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 22, 2019 at 3:23 PM Mark Rutland wrote: > > Currently architectures return inconsistent types for atomic64 ops. Some return > long (e..g. powerpc), some return long long (e.g. arc), and some return s64 > (e.g. x86). > > This is a bit messy, and causes unnecessary pain (e.g. as values must be cast > before they can be printed [1]). > > This series reworks all the atomic64 implementations to use s64 as the base > type for atomic64_t (as discussed [2]), and to ensure that this type is > consistently used for parameters and return values in the API, avoiding further > problems in this area. > > This series (based on v5.1-rc1) can also be found in my atomics/type-cleanup > branch [3] on kernel.org. Nice cleanup! I've provided an explicit Ack for the asm-generic patch if someone wants to pick up the entire series, but I can also put it all into my asm-generic tree if you want, after more people have had a chance to take a look. Arnd