Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3851829ybi; Mon, 29 Jul 2019 13:56:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqz+fuDucpDuzrpPybdPsNwwl6rGWOFCO6TiPKFimbDkPbYxJd//DQe4dr1StYd7H4A+qMDm X-Received: by 2002:a17:902:b949:: with SMTP id h9mr103383630pls.120.1564433806081; Mon, 29 Jul 2019 13:56:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564433806; cv=none; d=google.com; s=arc-20160816; b=PAcGmZwURJ/TSw5V3a4kPg65xVz5WCo+khAyuqREd+SuyhsDZDDXbFl/EaoZPNm13x 4TAIurxogX2Iz7wKGT56aFBszJYYtvaXHO3laGe9VnJGjOzXFI91TjH8nXigdiHFphHq H3ANJcvNAa+64UhhUuWFcgJ5andQC/QS9VeD5/+OxPEehQP5EEZVf60dWmXWc7ovON5d Ua4T21SCQ6zUnRZhlOSKj5lpoaQUkgo27lGGejH78HkZXL4iTCFFg+0UB8n9h3maCiEA suHmEQ5v86zQaqGWfT2Ss3ZHY1OfsvL9xbe95Vcwjg+fQ9cd2kXTrgQSDnlkm7jMTGia UN0w== 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=kUnRI+uvJWm0GEes59B4xRjFxCb8u1sHiDruwlb6sEw=; b=A+A6ByHpRxPROj4KnYCjrxeDB2W0srmlbtWOcs2wBSiS6IBkltPc2TibFPXiKf7Rj7 YYFccW43XRdxa8ROQ8+uYbbK30DgC0tSRkmCoWAFBSoqO6637P5h7wH36C/WM6ex7Zr6 J6528MwjWGz+kHZtz1fg0gI5OL7VeFahV3wFLzcpnDDG4ctm5sZTowocpvRprnUJ9lUq OLyF1giGrH91huZPHHerrwsGHevIUiZXAnk6CPUVacoyVHfYL8tSzwCyYGjxrzQNZ4KH EsfemPZ2naH3dQ/4AuzJnclLDW1Pp/mYZkGSevhryX8M2/oLuYVAmch5v7nt/MKWjRMl oq3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=PUZtEkof; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i127si26327639pfc.177.2019.07.29.13.56.30; Mon, 29 Jul 2019 13:56:46 -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=@chromium.org header.s=google header.b=PUZtEkof; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388277AbfG2Uy0 (ORCPT + 99 others); Mon, 29 Jul 2019 16:54:26 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:33745 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388000AbfG2Uy0 (ORCPT ); Mon, 29 Jul 2019 16:54:26 -0400 Received: by mail-pg1-f196.google.com with SMTP id f20so19614551pgj.0 for ; Mon, 29 Jul 2019 13:54:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=kUnRI+uvJWm0GEes59B4xRjFxCb8u1sHiDruwlb6sEw=; b=PUZtEkofS0tuKRa0Y42gQnH+EFFqyMmBaoflL0/HCseT3Azp1TlUimsvuLHBQZ8faM j9QFOlyizkdyatCpizKD1XCXy2Z+fWIA7Hq+J/+D8LbDAYffTvRy7ZDB09u/dLC7dlgg ULxTcBoFONaKZXa4SbYNcBynaEHTTrN9295v8= 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=kUnRI+uvJWm0GEes59B4xRjFxCb8u1sHiDruwlb6sEw=; b=ThNAArZczYz0ll0Fd7ZPmZSkYmLU45EqhCMjMH50E3W5gUVRyGvicJN8IbwJ2eSfxC c3X3u0T2wq0gmsRdabkCAYngSU263MX7hlI9EfVE5wcHl5kgzx3RW+DG3KKTNOMFEtOC Vrco6wjW8zvwvGuJAdRBnnSwg2FgEluyrzHlGo/N/zrBmXsae9FU/cCB8rNF+O10vXwk tKnwSWI+Ok5y30t5fMYBzk9G5aXhHLcNBRK8s8Plzt7DwA5SKeDWoqxuUAVEJTxF1sYr fOgn4pYMvntkcZoUa1BOQNB5gkwAgUliTb6lG0oJCZCHQ7Sv6Uo/1PzIV/6YLndHhgoM QFcA== X-Gm-Message-State: APjAAAUaidmjvYea3N5IiEi+bY0D8IckW3cu0AOS7T+XygHrq6GEFKhu YrY5bmcxtFocBYMi6uBE6gUs3Q== X-Received: by 2002:a63:ab08:: with SMTP id p8mr16749967pgf.340.1564433665728; Mon, 29 Jul 2019 13:54:25 -0700 (PDT) Received: from localhost ([2620:15c:202:1:75a:3f6e:21d:9374]) by smtp.gmail.com with ESMTPSA id 201sm74608960pfz.24.2019.07.29.13.54.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jul 2019 13:54:25 -0700 (PDT) Date: Mon, 29 Jul 2019 13:54:22 -0700 From: Matthias Kaehlcke To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Douglas Anderson , Nick Desaulniers , Alexander Duyck , "David S. Miller" , Sasha Levin , Toralf =?utf-8?Q?F=C3=B6rster?= , Nathan Huckleberry Subject: Re: [PATCH 5.2 083/215] net/ipv4: fib_trie: Avoid cryptic ternary expressions Message-ID: <20190729205422.GH250418@google.com> References: <20190729190739.971253303@linuxfoundation.org> <20190729190753.998851246@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190729190753.998851246@linuxfoundation.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, Toralf just pointed out in another thread that the commit message and the content of this patch don't match (https://lkml.org/lkml/2019/7/29/1475) I did some minor digging, the content of the queued patch is: commit 4df607cc6fe8e46b258ff2a53d0a60ca3008ffc7 Author: Nathan Huckleberry Date: Mon Jun 17 10:28:29 2019 -0700 kbuild: Remove unnecessary -Wno-unused-value however the commit message is from: commit 25cec756891e8733433efea63b2254ddc93aa5cc Author: Matthias Kaehlcke Date: Tue Jun 18 14:14:40 2019 -0700 net/ipv4: fib_trie: Avoid cryptic ternary expressions It seems this hasn't been commited to -stable yet, so we are probably in time to remove it from the queue before it becomes git history and have Nathan re-spin the patch(es). On Mon, Jul 29, 2019 at 09:21:19PM +0200, Greg Kroah-Hartman wrote: > [ Upstream commit 25cec756891e8733433efea63b2254ddc93aa5cc ] > > empty_child_inc/dec() use the ternary operator for conditional > operations. The conditions involve the post/pre in/decrement > operator and the operation is only performed when the condition > is *not* true. This is hard to parse for humans, use a regular > 'if' construct instead and perform the in/decrement separately. > > This also fixes two warnings that are emitted about the value > of the ternary expression being unused, when building the kernel > with clang + "kbuild: Remove unnecessary -Wno-unused-value" > (https://lore.kernel.org/patchwork/patch/1089869/): > > CC net/ipv4/fib_trie.o > net/ipv4/fib_trie.c:351:2: error: expression result unused [-Werror,-Wunused-value] > ++tn_info(n)->empty_children ? : ++tn_info(n)->full_children; > > Fixes: 95f60ea3e99a ("fib_trie: Add collapse() and should_collapse() to resize") > Signed-off-by: Matthias Kaehlcke > Reviewed-by: Douglas Anderson > Reviewed-by: Nick Desaulniers > Acked-by: Alexander Duyck > Signed-off-by: David S. Miller > Signed-off-by: Sasha Levin > --- > scripts/Makefile.extrawarn | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn > index 3ab8d1a303cd..b293246e48fe 100644 > --- a/scripts/Makefile.extrawarn > +++ b/scripts/Makefile.extrawarn > @@ -68,7 +68,6 @@ else > > ifdef CONFIG_CC_IS_CLANG > KBUILD_CFLAGS += -Wno-initializer-overrides > -KBUILD_CFLAGS += -Wno-unused-value > KBUILD_CFLAGS += -Wno-format > KBUILD_CFLAGS += -Wno-sign-compare > KBUILD_CFLAGS += -Wno-format-zero-length