Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5820318ybc; Wed, 27 Nov 2019 09:56:35 -0800 (PST) X-Google-Smtp-Source: APXvYqwmaObYCDrbfaJ55zP+nH9p3oyuBSEMZIbkscaHVHVPGSlJmfbnHSwjqNSsR8TqoPkcyKdG X-Received: by 2002:a17:906:a28d:: with SMTP id i13mr33804169ejz.154.1574877395638; Wed, 27 Nov 2019 09:56:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574877395; cv=none; d=google.com; s=arc-20160816; b=j85S9adW51gYugJNJfrFfFmCHznRF5VAlibFYYEjdmFfft0KWSEi2ANMgTExjqTP7H thWpas8OnHPf1VnIcYIa6DAznD70Us5DPDWPUk/NAeKVYGJZ+v+qVCm+csvapOGUriRb duw6mvorbAgBpwCT6xxT2UzjBbzktlVmDH6eaZcvQrlBgdJJl7EYmDlF+5akD32GziIK uXwdP7gbeMkdCKgSR53tW/y4sAl9jX3o2UqOZcfHEE40L9xBYeA2W2+JNr8PiPEyzFME dWO3zP5HgNgDeEieHw4kL+9/NX33HYTAml5N4D/wjIGgKfFam0y4rwFSqt9Jp/pIJEh/ TruA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=mvcvqAyxnSZryj2Pg3WEqsLIQ5VR9B7EJrbepjuqado=; b=HrL2CYkT62JrVnCohz7HLa5M0A+/QZI/Fz4iJQMfZPHlIK5Zhay3scLyfduni0S2zl uy3qyiPT/L+VaLx+7v6qdKOeFOHL/+tjAi8Dod+GcNeAN1fQR4odwvukHxnia9gixfhf tahJ/GwDzvjCkGbI7bwPRuq3lc6xnCHjjaFQQ2KUCQlEncNmWrXCL4+amyoqwddxxCd+ 8NpCRxCEU3PmoeEDap4Q5Lwmlgtcq9Kku7FCA7KQKuin5VwgOQLV+nqJokgo3U8j7bJE wz5cfEB6VI7qRxBnB9ll+zp+XRA5BSKdBhXV/UV1vszhcUXxQn4AJZUuMuiKvrFTQZKc PjUQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t23si10027492eji.404.2019.11.27.09.56.11; Wed, 27 Nov 2019 09:56:35 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727092AbfK0Rxy (ORCPT + 99 others); Wed, 27 Nov 2019 12:53:54 -0500 Received: from mail-qk1-f193.google.com ([209.85.222.193]:40059 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726990AbfK0Rxx (ORCPT ); Wed, 27 Nov 2019 12:53:53 -0500 Received: by mail-qk1-f193.google.com with SMTP id a137so18480074qkc.7; Wed, 27 Nov 2019 09:53:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=mvcvqAyxnSZryj2Pg3WEqsLIQ5VR9B7EJrbepjuqado=; b=bmz680+k1+q1KN+2jAAYJrY2Z0axaXAwr4PHnqhEhtEQtW9x1yjI9wAepxZqXefIaW AHQ3Jh1TlsWYOf3BuCI4iaDl0mIOI28Mx66c+xGlP9yHiIjNC/xzmy+UhE3n71I8CJvJ kGyZDAxoXgDrFtoVrnN5+3YKclRPPYWitXNzMKmDW5J7kjA4nIPXaDVSvkXT2CPvxYeF Tvkzh/j5XXtbuQUABP4AH4z99mrLDd1MOpIUTOBSkQgfFfO643mtzVwP5E5TLezkiBh3 aI27zxJH599psJnmeyVgcfsuMmZqEGM/p5238PHnKnb2GcKPc2kOadmgKuth4Mu6ZDlh UAFg== X-Gm-Message-State: APjAAAXzi3J9pC2RdmJYcs98xriax3MlFBAjQ7PmR1oNsBh/WqIMnafR 8GFFpaCVicbbvoByuNLnt4hOWogAUryAfg== X-Received: by 2002:a37:a947:: with SMTP id s68mr5823051qke.168.1574877232909; Wed, 27 Nov 2019 09:53:52 -0800 (PST) Received: from dennisz-mbp.dhcp.thefacebook.com ([2620:10d:c091:500::3:5762]) by smtp.gmail.com with ESMTPSA id l186sm7208107qkc.58.2019.11.27.09.53.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Nov 2019 09:53:52 -0800 (PST) Date: Wed, 27 Nov 2019 12:53:50 -0500 From: Dennis Zhou To: Christopher Lameter Cc: Luc Van Oostenryck , Dennis Zhou , Ben Dooks , linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Tejun Heo , Nicholas Piggin , Arnd Bergmann Subject: Re: [PATCH] fix __percpu annotation in asm-generic Message-ID: <20191127175350.GA52308@dennisz-mbp.dhcp.thefacebook.com> References: <20191126200619.63348-1-luc.vanoostenryck@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 27, 2019 at 03:55:19PM +0000, Christopher Lameter wrote: > On Tue, 26 Nov 2019, Luc Van Oostenryck wrote: > > > So, fix the declaration of the 'pcp' variable to its correct type: > > the plain (non-percpu) pointer corresponding to its address. > > Same for raw_cpu_generic_xchg(), raw_cpu_generic_cmpxchg() & > > raw_cpu_generic_cmpxchg_double(). > > Acked-by: Christoph Lameter > > Maybe a better fix is to come up with a typeof_strip_percu() or so > macro for all the places where this needs to be done? I like the idea of typeof_strip_percpu(). Luc do you mind spinning v2 with a macro for this instead? Thanks, Dennis