Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp940915ybh; Sun, 19 Jul 2020 03:51:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuFuSwHjDw6n5bdmV6Mn+jpA9iTMogb17kjRCXrK6IVg/H6t+a5nlcs8duwkWGBBPxb1ng X-Received: by 2002:a05:6402:741:: with SMTP id p1mr16562139edy.222.1595155892124; Sun, 19 Jul 2020 03:51:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595155892; cv=none; d=google.com; s=arc-20160816; b=YomrjLzEpVoBW0/E2SskipKiO1mTJvNg1PA/adC+PEaMbdYkxbmQxi4F4FiJi6Q8mx +GY8d3bwNpEvCN7fLKwMKC0E+j1xgH2kaTlTNQmgaogZuNVR1pDVs/6sKr0USwGF4tSF lTbwjm9LCDL1F7vBd6R65yvU9Kef1NYEP1uMQ7R46ZK5AUMhgLr24fjJ5e3iL5mw5lfO T7Sn5Z9MzaBwpmrUr2wxcvLTOfefz9fG+hBMTDgvYeE7wCXmbhRERtV2RL3Xm1MyuZAN IGISk+WB73+y13I2NMPsXtiuNqu0D3CHnu+jeWf2zF2ueSYoZ6Wj65VDi3muxcsQPkQ8 JHvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=i5Q3QT1Ih4QGY3ZrYvsBBkkl/Y6OC9HOiRLycKPMyv8=; b=yGvtAM/TGosBwo/OPZxiITvYTqLZ8tCkVQ/Kd4GNVoug/+sIouMHwq9gia8+mhtGMW E9utqXtZZu5MeMh7vy5IDE5mnte5CZ8CduSimlC3d45jTrNbXtOLEeOD7m0VtX8Rktt8 lG4+Jzo/yJ+9e+vKtq13r85mLdz1W6zxXA/NDeUesSHuZOATWCoZ8C+bNfJkbxKUbCIT Cq5vi7xnj0PJjWj2XsdC/JS3+GegqNLBKJpSnTYBnY5f/DrT6wnd2HYJM03uzIi7MAgS xtJCHd8Gu0G+wPR5Zp4fGoJ3rTyJXB8XPPA1TBFtH3dudwI8aBQ9AOOrvsQwPurK+yz0 QkNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Q/U2OuR8"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cf15si8546948edb.350.2020.07.19.03.51.07; Sun, 19 Jul 2020 03:51:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Q/U2OuR8"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726073AbgGSKvA (ORCPT + 99 others); Sun, 19 Jul 2020 06:51:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725836AbgGSKvA (ORCPT ); Sun, 19 Jul 2020 06:51:00 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 095F9C0619D2; Sun, 19 Jul 2020 03:51:00 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id t15so8520851pjq.5; Sun, 19 Jul 2020 03:50:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=i5Q3QT1Ih4QGY3ZrYvsBBkkl/Y6OC9HOiRLycKPMyv8=; b=Q/U2OuR8FUMLPV4JNzeDvDGLhB8qtVYlbq3MFF3Zy+OG0TevEHTh4sbfXupBifHqeJ slbGZtvl/tgTGV9N3g4UghhQ8zX63tfiptwUodDMKn6tb61tBmuWJDgdJAXKrJy9hLEu UPvIcB5ftGb6VVbgyxhcEOthTR4gqL4PGy6YRdDJ0KcI7FObRzpWozz/jbYPO+bq+8k/ kzu5cL+ETR4TJbBZBxYVMgToVnrc8FSmSS1cIBRJL1R0yFVW2jk3XkHevoYTNt6xjCeO ZXgN+wgHNOt02iVR7ULgoTc5EM8CiTO4ZbjIORUW+voM3ux5MemNJdwKH2QBye/y8vj2 VIgA== 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:mime-version :content-disposition:user-agent; bh=i5Q3QT1Ih4QGY3ZrYvsBBkkl/Y6OC9HOiRLycKPMyv8=; b=rht+xu7V5ZmSt2mazZS4nprEICQnyo8i6+Zd15ejO814LWRDa/PZXxMVEy4FY4sgKW C47xei8o1luhtmlEJr8y9qpwbZf9mdD80UDK3dc103+DsAHnjq1OMlQdMtPBv3RuqJbQ 9mlhZl5y1tU0uSRbBaljNrH4kcoaOk2I779fZmuNVbeiSIOGaLvA+c8pR0vomXnoSOJd /+NTWxrX2a9PYyUjSgnFz/sFcJ8g5phKM1biTkhNTwnioAZxXw31eoFgCjQ2cLRgyR9I Tmj3CHXvZS4MqsbmIkZgloY8Mg/hgi6LqjViR4oDyNcUnjhDtUj5UkBboW+MBknGez49 g6bA== X-Gm-Message-State: AOAM533tyx6WeKAdFIYxz4Jwr1FckyNWl/AmJefLn6KhlKK9h6IC6DVH RON5U1UCaW9CJaah0Nr/5sV+8boQEKZY1A== X-Received: by 2002:a17:902:6506:: with SMTP id b6mr13367278plk.13.1595155859086; Sun, 19 Jul 2020 03:50:59 -0700 (PDT) Received: from blackclown ([2405:204:219:61b6:3945:8436:8c57:56d5]) by smtp.gmail.com with ESMTPSA id 83sm13150442pfu.60.2020.07.19.03.50.50 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 19 Jul 2020 03:50:58 -0700 (PDT) Date: Sun, 19 Jul 2020 16:20:37 +0530 From: Suraj Upadhyay To: paulmck@kernel.org, josh@joshtriplett.org, rostedt@goodmis.org, mathieu.desnoyers@efficios.com, jiangshanlai@gmail.com, joel@joelfernandes.org, madhuparnabhowmik10@gmail.com Cc: rcu@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] rculist: Silence unused-value warning. Message-ID: <20200719105037.GA21010@blackclown> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="bg08WKrSYDhXBjb5" Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --bg08WKrSYDhXBjb5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable The macro __list_check_srcu is used as a statement inside a for loop. __list_check_srcu becomes "true" when CONFIG_PROVE_RCU_LIST is not defined. This results in compiler warning about an unused value ("true"). Silence the compiler warning about the unused value "true" by replacing it with an empty expression. Signed-off-by: Suraj Upadhyay --- include/linux/rculist.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/rculist.h b/include/linux/rculist.h index de9385b9158e..8b8e0584c473 100644 --- a/include/linux/rculist.h +++ b/include/linux/rculist.h @@ -73,7 +73,7 @@ static inline void INIT_LIST_HEAD_RCU(struct list_head *l= ist) #define __list_check_rcu(dummy, cond, extra...) \ ({ check_arg_count_one(extra); }) =20 -#define __list_check_srcu(cond) true +#define __list_check_srcu(cond) ({}) #endif =20 /* --=20 2.17.1 --bg08WKrSYDhXBjb5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE7AbCa0kOsMJ4cx0j+gRsbIfe744FAl8UJXwACgkQ+gRsbIfe 74547A//eomBoSRcErXxtOyLJNattd6CO5iwalDPMtutCPgLCNih1Eb48svoyLh5 7aXtvXfyYaIsXilVifGxEznFDSIAAQp0wROmJ9eI61zUV407xLcOh1KWU7EN1tzz dZ/Szq3v4v/8tbYqZb2IDIRbX3QCj0eIQvJ+kR3veBmOETRnEZAFn91XGna/LFOq mcbTh53WY9e2C/NqsioiQ6rfdMgTawYa4JrgsEzNhF8g5lPGipH/f73B6PI7oc/q fnKduWqyq4wON2BUUU47Uvzo6wOI4G+YkUAiB34bqLDv44UXzETuRKijzgJdKhSa A6//xSEq3Am29T/ekgZIojUJyE3M62GEFSUFiS1Wo4Dqcqxmqb1dG8CMol9mtl06 TbWx6FYRsCos+vHUj9FBrd7Pa3fb0iWgiIzJgWhClwA8oskDuvomax0YQ9S41Vu8 SvULgxZyqDFaqBawnzuyCWFsB12XA7GXPUW3HayXEtz/GIesV7VuDTB4EsTZaZt/ unqQHNRcCDkO4w0kemZRJXL/wDmzT1meW9RbrexgtptH2BSE7OyOEtptIrgWs9Gt eeE/IB8b6/fCuVKLXQtOpIjB+JP2JfY97Pb4EqDufXXNgKykOya2HU8IbCbj7nUu Luta2BZlj/PA1g16IWb5ErE+Mobh66qir2KRQPO/lR6UJ0154BI= =Kftb -----END PGP SIGNATURE----- --bg08WKrSYDhXBjb5--