Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10422383ybi; Wed, 24 Jul 2019 22:57:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqx5AXoDlYeuNlsbLw/1ZZtCY3KZpDfNakTul03BLIMtvCa5XeCs6Kbt/A++h7i9IU7MKBQF X-Received: by 2002:a65:60cd:: with SMTP id r13mr58505765pgv.315.1564034231028; Wed, 24 Jul 2019 22:57:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564034231; cv=none; d=google.com; s=arc-20160816; b=SitAKHUpAmTfLOKq5rUHd3RRC4u39EGGo0yoq6pol6ssHfAAKpafWHtmi4j1ZWnVg+ lIgGd6A0+cN0YE4Qf7Nc5nCUdZ6vFvpi+R0dEOzqwPRdVdEQ2zB4ZIyW+f1ctAAbPude aP6bkF11Yrxhb2gNj6jWinGNaIJ9BGh2emm3Gpr3wcpxmhty63AWigS/bh4VdOhF/VYD DsT3kO4u5Ezj/tkM57Ebcpu4faGuXhxF1OFv7IL0mgsMdC+PFTgK5HJ3Ysm8iufbuVS1 MOa2ZDUAz9w9j/6HxYRZuihvV9cwC4u7UrrC94jsYLaX8wbZrSW+hw7og2OfDkYII5Pt XeRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=WL8gp+hizqIEHRA7omyVMh7SZD4aIpvH9e4xn2noph0=; b=sOhhrUJm0OxCLHhahLUmgNZO3V+8w6Y01XXFn4SCMJZ34EuJDo4LGhYDOlgPA5OTq6 EX7fUrnrJaL+mxKy/U1nayJSfiHq10YPmVxrrViqAint7TMRJinWak6J7jCTCP0dNsxt HtsyHOYlfRaHc5ODYyJa/dnsCv58Or6yvJ+e2uKSfQVKQ87gBupbR62h4MdZN/QWayQf aaJ7rW3LdAfD6yczADg74TLs5LMxAJ6bJIFusq9HAaJp4gNM8+HQnWwMu+rgTEKCXC3K lCAWgyVVdyGaJiUIGwy3zFHa1EryTwujDiNTMR7LUBJOOCvUrLA0U7ml3sma3akeIxDU 5m8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cRooWgfI; 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 d67si17603443pgc.62.2019.07.24.22.56.56; Wed, 24 Jul 2019 22:57:11 -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=cRooWgfI; 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 S2404110AbfGYFjh (ORCPT + 99 others); Thu, 25 Jul 2019 01:39:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:53816 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404099AbfGYFje (ORCPT ); Thu, 25 Jul 2019 01:39:34 -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 83CCC22BEF; Thu, 25 Jul 2019 05:39:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564033174; bh=aoMdvRpuYKhI8barI7UHl9rwv9UGaS5nDWQl5NAdW/I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cRooWgfIGRV+Adrfs5U7euuzifvQ6IxZvL5uzuyYwqelQXwK1YUV12sHsCUCKs3dg y6D0CJfaqcClu3WR/QciZ5DZE63h9UmiON0KIzKdcVfIg3Txc3mwf7/l1dd27+ycao qTnZU8ztZUG6NNqW5t9P1ZSa72piikqnfIbGaglo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nathan Chancellor , Nick Desaulniers , Jonathan Lemon , =?UTF-8?q?Bj=C3=B6rn=20T=C3=B6pel?= , Song Liu , Daniel Borkmann , Sasha Levin Subject: [PATCH 4.19 116/271] xsk: Properly terminate assignment in xskq_produce_flush_desc Date: Wed, 24 Jul 2019 21:19:45 +0200 Message-Id: <20190724191705.183354868@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190724191655.268628197@linuxfoundation.org> References: <20190724191655.268628197@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit f7019b7b0ad14bde732b8953161994edfc384953 ] Clang warns: In file included from net/xdp/xsk_queue.c:10: net/xdp/xsk_queue.h:292:2: warning: expression result unused [-Wunused-value] WRITE_ONCE(q->ring->producer, q->prod_tail); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler.h:284:6: note: expanded from macro 'WRITE_ONCE' __u.__val; \ ~~~ ^~~~~ 1 warning generated. The q->prod_tail assignment has a comma at the end, not a semi-colon. Fix that so clang no longer warns and everything works as expected. Fixes: c497176cb2e4 ("xsk: add Rx receive functions and poll support") Link: https://github.com/ClangBuiltLinux/linux/issues/544 Signed-off-by: Nathan Chancellor Acked-by: Nick Desaulniers Acked-by: Jonathan Lemon Acked-by: Björn Töpel Acked-by: Song Liu Signed-off-by: Daniel Borkmann Signed-off-by: Sasha Levin --- net/xdp/xsk_queue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/xdp/xsk_queue.h b/net/xdp/xsk_queue.h index 8a64b150be54..fe96c0d039f2 100644 --- a/net/xdp/xsk_queue.h +++ b/net/xdp/xsk_queue.h @@ -239,7 +239,7 @@ static inline void xskq_produce_flush_desc(struct xsk_queue *q) /* Order producer and data */ smp_wmb(); - q->prod_tail = q->prod_head, + q->prod_tail = q->prod_head; WRITE_ONCE(q->ring->producer, q->prod_tail); } -- 2.20.1