Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp336233ybi; Fri, 24 May 2019 04:42:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqx0kRsDh5FfGL1aPFkpu+SIWnbmhbqJwW/Ev3zieyE0P3qkPfrMqUW2vxCZaE5bnGa34Sm6 X-Received: by 2002:a17:902:8f8f:: with SMTP id z15mr54505193plo.93.1558698136182; Fri, 24 May 2019 04:42:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558698136; cv=none; d=google.com; s=arc-20160816; b=JhUptxUCSosRkEcABw0/IseMbuEI1YCjBUTsVLcMRkuN0Q+XeOHjoP04Sjb2+VvuCa Xtj76uiA5ptmQCIuFf9O0QTXW8APvAUofVG5IRzuZuKnsG38yxvNi298pkVv7yQe4Jv/ vPyVnqIebLaejoiWTROkl16jUhlr2I8ow9PrNiPDUy7YeJHZTJG7ie+zGGSs48F0WIRb slV684HmErzi4eHQAuv30Cbu7Roo0Anqro1CGythChvuw2IX6IenOGLdVl1TosDDw2hQ 8O3Lgfp7Nb39Nm1kQqOmgdkMlwR/4/GysQt/dgqaWI0qVjvNfhgclKizFX9X0m2BRrP1 Nghg== 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:dkim-signature; bh=EmfQJ4TD8w0bfLH0qAJEEfNNudZv7mKGiAo+vR4LarY=; b=GjJd5w9bY+iiCJsjQOECPmxdtkF8qq7gnXmMgJyDLNdKEROKJFHmbdegLj+tZsR6Lp v31cuNJgtAngMqbpSNvMhFv07HsdiJZtR2gbpb8Gu2OJd/uBOHFhYGqT2wykzcTS3pQo diV6LHt8YvzOVCVxz1HReyhqAo0uqpg8zx51CP/MA6v8fY6ZpshT7+sCtbDCcBUfpKgk lU334nDvoZeslQPy2R5r1yLa1Q86ODlMgVP43PEBaTm/kxlGeeqxHgOp7Fn49Qh0xrxX cMu2Mm+idRDmZTjy4E/x/hkMS8BzdIOjll0hZb0cI4vW4vLlPOcpiD2VXTRdmGXcCyuk 9N5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=y766CFz2; 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 c8si3466899pjs.87.2019.05.24.04.42.00; Fri, 24 May 2019 04:42:16 -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=@kernel.org header.s=default header.b=y766CFz2; 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 S2391169AbfEXLkr (ORCPT + 99 others); Fri, 24 May 2019 07:40:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:37958 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390743AbfEXLkp (ORCPT ); Fri, 24 May 2019 07:40:45 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7FECC2184B; Fri, 24 May 2019 11:40:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558698045; bh=fQZ79S4453oANj/QYuLmNFpEoEAa4OcOEjjIQRyx0kM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=y766CFz20w56iQEiVbk+UYz2yopXFT5Ke8aJsWAKWhonFidfFmUARU6ydEoAYAjBv vKlG9a8R8B+HjXagnuhj/xgJS+damsWJFYAbmKC7brOAZmbR5zKS8kky5bqzAGOGsW 9iyEUl2/9bA2it5N1HD2zYyUlsDCf1HKLE2DPQjI= Date: Fri, 24 May 2019 13:40:42 +0200 From: Greg Kroah-Hartman To: Peter Zijlstra Cc: Andrea Parri , linux-kernel@vger.kernel.org, Arnd Bergmann , Jorgen Hansen , Will Deacon , Mark Rutland , "Paul E. McKenney" Subject: Re: [PATCH 1/2] vmw_vmci: Clean up uses of atomic*_set() Message-ID: <20190524114042.GA360@kroah.com> References: <1558694136-19226-1-git-send-email-andrea.parri@amarulasolutions.com> <1558694136-19226-2-git-send-email-andrea.parri@amarulasolutions.com> <20190524103934.GO2606@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190524103934.GO2606@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 24, 2019 at 12:39:34PM +0200, Peter Zijlstra wrote: > On Fri, May 24, 2019 at 12:35:35PM +0200, Andrea Parri wrote: > > The primitive vmci_q_set_pointer() relies on atomic*_set() being of > > type 'void', but this is a non-portable implementation detail. > > > > Reported-by: Mark Rutland > > Signed-off-by: Andrea Parri > > Cc: Arnd Bergmann > > Cc: Greg Kroah-Hartman > > Cc: Jorgen Hansen > > Cc: Peter Zijlstra > > Cc: Will Deacon > > Cc: Mark Rutland > > Cc: "Paul E. McKenney" > > --- > > include/linux/vmw_vmci_defs.h | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/include/linux/vmw_vmci_defs.h b/include/linux/vmw_vmci_defs.h > > index 0c06178e4985b..eb593868e2e9e 100644 > > --- a/include/linux/vmw_vmci_defs.h > > +++ b/include/linux/vmw_vmci_defs.h > > @@ -759,9 +759,9 @@ static inline void vmci_q_set_pointer(atomic64_t *var, > > u64 new_val) > > { > > #if defined(CONFIG_X86_32) > > - return atomic_set((atomic_t *)var, (u32)new_val); > > + atomic_set((atomic_t *)var, (u32)new_val); > > #else > > - return atomic64_set(var, new_val); > > + atomic64_set(var, new_val); > > #endif > > } > > All that should just die a horrible death. That code is crap. > > See: > > lkml.kernel.org/r/20190524103731.GN2606@hirez.programming.kicks-ass.net I agree, Peter's patch should be the thing that is applied, not this one. thanks, greg k-h