Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3313399imm; Sun, 1 Jul 2018 18:18:52 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeZaNdwvalxUse/OaJ1L13UPU8kxMV42mWbGf9C+Qg6JZwBqsymq+q80VMZuxiQvP0EOubY X-Received: by 2002:a63:c60:: with SMTP id 32-v6mr5318261pgm.155.1530494332775; Sun, 01 Jul 2018 18:18:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530494332; cv=none; d=google.com; s=arc-20160816; b=hKYsEX/zfJbS0Wrap4V3kprmWobRcGKN0ArsbGB5JnQkIKs2WpOEjVAncnV5QqIaId 6Hl3RnpSioc43hNUcLjWvAps//+DpdNN1ITi6CAD3fv3X35wozD9VoPjhTULIAYG/EXn ZUBZbAiyPTlBtTnQ+NxTFhMAhqtr//X8lVFeHc/LW4Mzwhdq7A4rRFpoXcCCqKV/Rz9L 8d1VqcuiX6ZDf1jQKpuz5PpZav54PTK1Fv1qYy4d3vSxYVMqRHhQhgjDLY9cqgncuBr3 T+gjlQ5eY5i7XTJTRlreHQXzkz19fTMs5bv/cBZTB4Xm8RDC7W7tGLddhYVRB2LxXiAj rTpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=dXcqI+WJj9Nx4DqlFPhj5tuG9+kVQZPrND9V8/rZHYA=; b=s8wwNa6w+gVoEYITeNGXTTsyzAPLNUJTWeob87U/oOUdjH/Y9me9aEmKV5wZnPs+m5 TSkr3WpS28fu9YVuQR6OioVx2MbgqXYzZAXpvOyOWUFldiQo5oALCwhLhvdEcj6HIlb4 ELL+ISgIiffLdCa5Z6DiOCY/djMm2rRgCkkv3WSQViN9VykVV6uAdEhNyJInXEUXNsPT T/oYw4NvP11eS0hksKsmNveAyA8L2c/MZw3avuNRePAfkNZRipua6FjjFQ7wMnOnyzEq FzliXl8TrriXX74kMgqEB2WcFhGmY4a9cf5B2ZPLxnmXOIfU7XFfcKp3tD3wn4tPFuYv +xkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=O6dnKFML; dkim=pass header.i=@codeaurora.org header.s=default header.b=O6dnKFML; 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 e4-v6si14461348pfi.184.2018.07.01.18.18.38; Sun, 01 Jul 2018 18:18:52 -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=@codeaurora.org header.s=default header.b=O6dnKFML; dkim=pass header.i=@codeaurora.org header.s=default header.b=O6dnKFML; 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 S932327AbeGBBMD (ORCPT + 99 others); Sun, 1 Jul 2018 21:12:03 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:35334 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753046AbeGBBMC (ORCPT ); Sun, 1 Jul 2018 21:12:02 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id B3D4260452; Mon, 2 Jul 2018 01:12:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1530493921; bh=a5Ujte802Ceibov3ZIHbR41qUs3kOEw9yi450DcLXBc=; h=From:To:Cc:Subject:Date:From; b=O6dnKFMLlq1OWxwFMp2OyUTRE548o67hw7gm8z/Juhx0sDWrZ1FSOf3Dr4Moq6lPv xjUE+VqjVcKjpiznLzBnBK82iJneHU+skInLYxOq4lVZw7APxT2ohoz5PddN4zg5r3 3Tjxrlb+Q9EkUenvaodXSGU3SUhQeaKrAC93m5ZY= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from rishabhb-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: rishabhb@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 1CF6A6034E; Mon, 2 Jul 2018 01:12:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1530493921; bh=a5Ujte802Ceibov3ZIHbR41qUs3kOEw9yi450DcLXBc=; h=From:To:Cc:Subject:Date:From; b=O6dnKFMLlq1OWxwFMp2OyUTRE548o67hw7gm8z/Juhx0sDWrZ1FSOf3Dr4Moq6lPv xjUE+VqjVcKjpiznLzBnBK82iJneHU+skInLYxOq4lVZw7APxT2ohoz5PddN4zg5r3 3Tjxrlb+Q9EkUenvaodXSGU3SUhQeaKrAC93m5ZY= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 1CF6A6034E Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=rishabhb@codeaurora.org From: Rishabh Bhatnagar To: neilb@suse.com, tgraf@suug.ch, linux-arm-msm@vger.kernel.org Cc: herbert@gondor.apana.org.au, linux-kernel@vger.kernel.org, Rishabh Bhatnagar Subject: [PATCH] lib: rhashtable: Correct self-assignment in rhashtable.c Date: Sun, 1 Jul 2018 18:11:46 -0700 Message-Id: <1530493906-19711-1-git-send-email-rishabhb@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In file lib/rhashtable.c line 777, skip variable is assigned to itself. The following error was observed: lib/rhashtable.c:777:41: warning: explicitly assigning value of variable of type 'int' to itself [-Wself-assign] error, forbidden warning: rhashtable.c:777 This error was found when compiling with Clang 6.0. Change it to iter->skip. Change-Id: I5abd1ce5ba76737a73bd6eca94b07b1bd5267523 Signed-off-by: Rishabh Bhatnagar --- lib/rhashtable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rhashtable.c b/lib/rhashtable.c index 9427b57..3109b2e 100644 --- a/lib/rhashtable.c +++ b/lib/rhashtable.c @@ -774,7 +774,7 @@ int rhashtable_walk_start_check(struct rhashtable_iter *iter) skip++; if (list == iter->list) { iter->p = p; - skip = skip; + iter->skip = skip; goto found; } } -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project