Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp269837ybi; Fri, 24 May 2019 03:37:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqxK/eTJutoglpZqnkjmHs35B50qilyliQt2kvjqQaVykGrY+2TPH2YCeH0qvfxC8DgVblhx X-Received: by 2002:a17:90a:8d86:: with SMTP id d6mr7899850pjo.127.1558694277295; Fri, 24 May 2019 03:37:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558694277; cv=none; d=google.com; s=arc-20160816; b=U3L7/QuU5Af2IwYIl3IOUVNtrtYFGon4Cp5ubLiJPqeJ7CGgHEUIHgCvKxKqJN11kO v9d7+6KjG3yGjtOaq+mRcrejb0N4+2j07v0FH2PRqFT8KlE9yWJJ/CZDvXDVHP567fW4 4fqvCjZTEp8J1DZk45MiMpnX2q2amry5oJiyHwB0CdlZpNiby+AfhQLdHqD56DYOZCBy L3KybTf7oNBbSluEB7+w2iUyEGGvyPiFDNXUGBweSr4KLx5Hg1H5EYerI249jLnuRq4f LnIpK0xwo4YaH2/ChhplsIHh9obg3OVDSyH4g7fBm8TMntyeorwn66+fSLpUxGd/Zl0d GFFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=Jv+/uIukQfW/OxHNR7bAyqpTVp/OLgnxi44gYUFQRII=; b=KE6iN9KAxFcBPnD3P3Ry+UtNNN9ZY1x7SVXV5CLHtAlvfBjXQFUyC8OgXsmgomsFRr 7DJN2ILHMhEZt/VrBEGoH1rcB21PzzkTNig1wbv9W1Di1q2YS0iezimaQSibxQ6bEbt3 ocaE6peDchUFta3DKAEIpSiu5m09h8wJbsnnRw5ywXtJAclxSi9Oq9S7Zz1ENYcKmWuH NoifQNOw7OXySlVYeZFmdWeTIYPfTkPifwF3DC1R33AMTq6+jK3iwROWmBso+teeVCuL M6go0+W9GkTY8pKwzTv/XbJA8N42q0PjIFDHwBErhKqEkF769X31dwYJz4fEIlqVPpae 3dDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=jHBVOno5; 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 d80si3443801pfd.9.2019.05.24.03.37.39; Fri, 24 May 2019 03:37:57 -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=@amarulasolutions.com header.s=google header.b=jHBVOno5; 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 S2390538AbfEXKgP (ORCPT + 99 others); Fri, 24 May 2019 06:36:15 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:54826 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389448AbfEXKgP (ORCPT ); Fri, 24 May 2019 06:36:15 -0400 Received: by mail-wm1-f65.google.com with SMTP id i3so8822353wml.4 for ; Fri, 24 May 2019 03:36:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Jv+/uIukQfW/OxHNR7bAyqpTVp/OLgnxi44gYUFQRII=; b=jHBVOno5BwcUjYCRe7UBEvjFH9aCoBem8UeQ5No34z4H12/N1RpbLZ4NMlFLqgkLpr WSXAmoVrdKhO8EDk5TWIf0j9VxTfpRvbJx/PYTYbQ9z1VxboNHY7mAduSHrqtQv70pGQ yPYyisaApP7w0nx0i523LCSXi4ZFr2nrN1LC8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Jv+/uIukQfW/OxHNR7bAyqpTVp/OLgnxi44gYUFQRII=; b=A8wJWgEEgSeKOJH7ucRVohKqPfocUVk3U0q70kdtGmMHLLyHIun/PsFBkfhAIpMVMy hcRoO4q3g4OCcdbGp5EXb4Xfm1hvzxLALca4iEKuJtSPPFhlk95kXJOURnMy0rFOsHGD HkNyVPLlh/aCVuSSKNLEmOoWq0o/X8K6yDcpdWCnZCq19kMJ206Z6gzFU1ab5IwrAwNs xjNCvtN5WsamXRYg7bqQ4igOXj+Aa5uaN6OCGr/W7pfzZ8oDVBswdDChX5xhzx9ur4tp COlBv9qoc2VSZ8Xgu8JaXqST435408YxUsA/ptcxJLnQSc93f2X00WmSoQ5fKYf/PBZ9 LMCw== X-Gm-Message-State: APjAAAVF/6XK5shFb5hFfDxdqkf9Ot9sEfC0+DSw0LmM6LOs40YupcKe pyg95IoKMoM31uzPHsQ6KuZTNpTe7BS+bg== X-Received: by 2002:a1c:1d4:: with SMTP id 203mr16760046wmb.76.1558694172544; Fri, 24 May 2019 03:36:12 -0700 (PDT) Received: from localhost.localdomain (86.100.broadband17.iol.cz. [109.80.100.86]) by smtp.gmail.com with ESMTPSA id n4sm2111272wrp.61.2019.05.24.03.36.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 May 2019 03:36:12 -0700 (PDT) From: Andrea Parri To: linux-kernel@vger.kernel.org Cc: Andrea Parri , Arnd Bergmann , Greg Kroah-Hartman , Jorgen Hansen , Peter Zijlstra , Will Deacon , Mark Rutland , "Paul E. McKenney" Subject: [PATCH 1/2] vmw_vmci: Clean up uses of atomic*_set() Date: Fri, 24 May 2019 12:35:35 +0200 Message-Id: <1558694136-19226-2-git-send-email-andrea.parri@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1558694136-19226-1-git-send-email-andrea.parri@amarulasolutions.com> References: <1558694136-19226-1-git-send-email-andrea.parri@amarulasolutions.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 } -- 2.7.4