Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4722165imm; Mon, 14 May 2018 11:51:47 -0700 (PDT) X-Google-Smtp-Source: AB8JxZokFSyT2lWOYn37McS4mSyLWUFoyF4/q/jszFllXIj1IcsJwquhhDUV4nHm//BwC4hx4RyL X-Received: by 2002:a62:e04c:: with SMTP id f73-v6mr11742638pfh.88.1526323907734; Mon, 14 May 2018 11:51:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526323907; cv=none; d=google.com; s=arc-20160816; b=zU7ZlXppEbuN9llmsnFRX3vRgP4BjcyoKGUtxUPDtW/iNmYAuCh56NI84APl9Rz/Qx 8Vwt7OdkYEcrOa/ChE59vhGEhZIDlEKmVSujzjWGrhM6APXqn8BkutHYQ2Q04rS/TT/o xZECaaZoOBM9Zqi1Tg/ses1/efE52hWanP2/ENhZ4MMQww5Ms8qE8hyTXACGcn/YmhSR 9+nsSv9mwhQfZOPHq2Gu+tcVjR6IH3mkOFg4bU3fSX/eY2d3NVe6x7+49fbWPG72OUty JFWLEYrtM5IF3QaTw/nCNlBCU+sJpKA+KFt7mKKT5F+SZ85Qc3lHT175hBRiPhnXzZ4i Ab2A== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=AoVdQA3uVOWn5RUf6yAN6jSjre4SnygGV6+BqCLD5WE=; b=EsmMHdbs6ECTHCCAiYNr5Tx0/I8WTuUS15cIIoavkNdLeqYOVsld0COU3olGcGi1+f /xqC0GjjuD6hafS6shGO9nlxbZYGwkzQjTqm2Ts3JfCas6oiV6bC76tg1SmdjLZfyqYv Jfu+rbvCENr038/k90fakZXHSgzBPL12KYPNvQDhRZ141WdtuDNTma+IQ/smj26g9ggF 32UnUCc2n3VgDs8gBPK2u0YLEEPW5AP2EcgXMfo4e6zn86WQ7IaSHFWmd+O06728R0VY vZaone/g4M3ueQ3kuZCSL8PvHeJwKKN+bjLPeZRw2cWndD7/cqTmnM2sTLjrJDBfOEvG IzVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hYjP8z3M; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u19-v6si10280301pfn.241.2018.05.14.11.51.33; Mon, 14 May 2018 11:51:47 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hYjP8z3M; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752206AbeENSuY (ORCPT + 99 others); Mon, 14 May 2018 14:50:24 -0400 Received: from mail-yw0-f196.google.com ([209.85.161.196]:46013 "EHLO mail-yw0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752070AbeENSuV (ORCPT ); Mon, 14 May 2018 14:50:21 -0400 Received: by mail-yw0-f196.google.com with SMTP id g9-v6so3897983ywb.12; Mon, 14 May 2018 11:50:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=AoVdQA3uVOWn5RUf6yAN6jSjre4SnygGV6+BqCLD5WE=; b=hYjP8z3MrCgSyCbGulQ+01UIWTtR3IAkdTFWmYZoT7BpowpWf2VF3R8RXp8iC+0u09 8Rp/gqN5UH+2bScM5YbNsyweD+F2peCaz5NXkJNZ3IwPNrrb8oCzgjeX/RO8HyZS7L81 ZXDiKZjXBGps3rt504v8WS8mMVBH0f0IrGfVNlDglRNP1N5eDIwSsBEUfp/RQghRwlOF Vq4jGZucpBPPS/8eu1KdqQjiBpD2UBNwVF90+tyWF+3f0ryZoQppfPuaGeu3ovTnu9Fq qYHNC6yHesshlZklgkrWRN5Ek+vwnKa+IKZveZiLu8C8/SKciQpM2vUKvEd10OXQjPwt eggg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=AoVdQA3uVOWn5RUf6yAN6jSjre4SnygGV6+BqCLD5WE=; b=hI9qF9JmdUM+VZKq1utIBTJJFdmp4JvZXOLfzL6S2jjQclUn3Em5A5+hhT1yp3g2fV yHoUbrhFUgkAWuvUf73KsYOK+Kzg9UwX5bzVUZRp9f7sDcrQBLnoVDk8nr+S8VN7lTCL Lla9jnGHS7aOrHMoJPR0prgq0M9/3FXaipfK/ZpgfgJ9Ysumo/roIwe23ao+bNlVeOFb k2GCsQ0Gk06xlyzGvT0/6nFsRfZogDb4vxYwD3UOH3GR9A5cJTZJdJS2heFZiaqR1LfP z0wiScJ6C1asI+rnqpzbBjLfQw2JPOqYvXgyNVD7tbcjVNodRMWcp2Z8CNJ/36qy+whP 0fbw== X-Gm-Message-State: ALKqPwdv+mgl92ldx5MI/tigVY3nOaENI+psCbSv4pqYuysN8to0X/HU B7lN8jBo9FnlIIKkpx3wR9RdkIYJD0MVu8L8AZM= X-Received: by 2002:a81:8787:: with SMTP id x129-v6mr5006184ywf.129.1526323820681; Mon, 14 May 2018 11:50:20 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:2ce:0:0:0:0:0 with HTTP; Mon, 14 May 2018 11:50:20 -0700 (PDT) In-Reply-To: <20180514184634.2160-2-bart.vanassche@wdc.com> References: <20180514184634.2160-1-bart.vanassche@wdc.com> <20180514184634.2160-2-bart.vanassche@wdc.com> From: Max Filippov Date: Mon, 14 May 2018 11:50:20 -0700 Message-ID: Subject: Re: [PATCH v9 1/2] arch/*: Add CONFIG_ARCH_HAVE_CMPXCHG64 To: Bart Van Assche Cc: Jens Axboe , linux-block@vger.kernel.org, LKML , Christoph Hellwig , Catalin Marinas , Will Deacon , Tony Luck , Fenghua Yu , Geert Uytterhoeven , "James E.J. Bottomley" , Helge Deller , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Martin Schwidefsky , Heiko Carstens , "David S . Miller" , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , Chris Zankel , Arnd Bergmann 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 Mon, May 14, 2018 at 11:46 AM, Bart Van Assche wrote: > The next patch in this series introduces a call to cmpxchg64() > in the block layer core for those architectures on which this > functionality is available. Make it possible to test whether > cmpxchg64() is available by introducing CONFIG_ARCH_HAVE_CMPXCHG64. > > --- [...] > diff --git a/arch/xtensa/Kconfig b/arch/xtensa/Kconfig > index c921e8bccdc8..8234278a821d 100644 > --- a/arch/xtensa/Kconfig > +++ b/arch/xtensa/Kconfig > @@ -23,6 +23,7 @@ config XTENSA > select HAVE_DMA_CONTIGUOUS > select HAVE_EXIT_THREAD > select HAVE_FUNCTION_TRACER > + select ARCH_HAVE_CMPXCHG64 This breaks alphabetical sorting of Kconfig entries. > select HAVE_FUTEX_CMPXCHG if !MMU > select HAVE_HW_BREAKPOINT if PERF_EVENTS > select HAVE_IRQ_TIME_ACCOUNTING -- Thanks. -- Max