Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2217122ybh; Fri, 17 Jul 2020 12:06:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeLkRHV+OEFASjG+ldhpkxBySXUdt3WUQITjIbu4lUK+IOKdxzQ81HqAbn/tyE3o72W9s/ X-Received: by 2002:a50:f9c9:: with SMTP id a9mr11060264edq.89.1595012810540; Fri, 17 Jul 2020 12:06:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595012810; cv=none; d=google.com; s=arc-20160816; b=P/6iztFnIlSpf07/v6iJJCR2wm/rvaPuJ5ZohQ8BvITkts/GO4TZbT46sYJsXHDBmo LxXwJH6/u8nkX3E7LkAa86JFrY7SQrSjecPjyXTddzB/tNN+o200DZJwdkvchzyb35o7 9Yre50OQrKLt24bebwBT0fcY9ymxlcwLrTQ09QhUvswp2ck6UtpYwXlUU6nC1mbVLs8Q pA/scv5XhizSCZDD4ykJMenYO0s9Hn65iDoF+x4XDQJ66LXoqutnUihaMDUxFBXC++IH TzkYv2lyAmZ/BaxxBjH9upfRWKk/Wq3tj5BqAs1NmvKu3NuPujRyZa52guJs4sVw4KSt 2xIw== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=EHhwNWLvCGKwFX6ZeCk25F8g9x2pupMKT7Bn+2O6siI=; b=N0AfaH+HCZy0wV0zfCWUCl1rkarhIL6/6nz4fWJzxv0GgSsJB0+0e8DilQm4HO+Ffh Ut+lVYaHVZsi3Wl896znxAz99H1dKK40xiZYFTOxx7YtKaHzxZ1YphTsxgs//ObTR0jJ I7Y4szUWCqvkE3FnSI8S8GTd8EKlLxSd1FQY/mjVqr+ZTbA29qxLIL9DQTR3ye4jetny hVhknkuTimjG1pUzLxOWEhRQVyElkYVRIebgZCKE1IEYRQtBQLu80S1rJF025ZHOw6wH Zls05ttybxGa/FKmUlky9fboBlrq1ohU0UkKVyCLbRUqydw6XEg+bnytIUN0WtHIjakV 1RIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UMpy7eBg; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f16si6445781edy.386.2020.07.17.12.06.27; Fri, 17 Jul 2020 12:06:50 -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=@linaro.org header.s=google header.b=UMpy7eBg; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728484AbgGQTFd (ORCPT + 99 others); Fri, 17 Jul 2020 15:05:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728451AbgGQTF1 (ORCPT ); Fri, 17 Jul 2020 15:05:27 -0400 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1349DC0619D2 for ; Fri, 17 Jul 2020 12:05:27 -0700 (PDT) Received: by mail-lj1-x241.google.com with SMTP id f5so13848633ljj.10 for ; Fri, 17 Jul 2020 12:05:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=EHhwNWLvCGKwFX6ZeCk25F8g9x2pupMKT7Bn+2O6siI=; b=UMpy7eBg0VQk13Zh0CsA8daqqCqMYLR/yLgZvVSL0lJ8/e5Ix44NjgigL3+q8XJArC +CoZF6icBgyJrPruDpKiDqs3SPz2T9oivrXhdcRHtNzZ1eOY09EfmGogrMEiKoqjN8Tf QfSD4InjPcIuMhztE9TSwtLzGwGlEqO2hK1TlNN3tpgoD/IpL93Q8TOpldntF8RTIa9i C8ukkczG2UxL4WrwjzmXVCfquGoET/KgUjsKal4Q1IavPiGqE2sp7z7Ky8vMrNAWrbHJ dh1pCRPAhK/qgJYywFwZzK5mejpW5pcI+fhWKbs7znm9DT4r7gpOB4C5y4W8oNfI1t7j EZsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=EHhwNWLvCGKwFX6ZeCk25F8g9x2pupMKT7Bn+2O6siI=; b=V9A8nk7ziHhKGnTdQNEu4sLZwU4mP64O+fseWMeARCNtK923BorJqOXdZXde0zAMSN 8tT7p0vDWSK4udnWK3V8is1yKizjo7IskJSZyYK8K47lXk7077qQ2s89/ZCT0LWDq/wn n+PIdfQeNehxYM0D+8/6JKSj2HxZbmSnfo41dbR8eXRu82Emtb1UFj/S2X/hPp0jE6NS +DunTiwqhhs1Z0BrIkTwZVLpZmjTeUjx2MuZ/pYEw35kBriMK/Si/F3Kg6EJOv5uJzSe pJFlA+2GiHKrerbCC9sq7O4MJiW9NYh5ieRfYMRDC1l6RUTUuFchUCi3VGc9frLVpF8/ wnDg== X-Gm-Message-State: AOAM532yVStOoNE8Y1+BUuD2FzlWG9clm1qmnpH94szgIK/vOyxaor/R M5EcFnq52O1rg020+4CognfEyiaLE8CPYMymctx65w== X-Received: by 2002:a2e:9b42:: with SMTP id o2mr4877549ljj.102.1595012725372; Fri, 17 Jul 2020 12:05:25 -0700 (PDT) MIME-Version: 1.0 References: <20200712131003.23271-1-madhuparnabhowmik10@gmail.com> <20200712131003.23271-2-madhuparnabhowmik10@gmail.com> <20200712160856.GW9247@paulmck-ThinkPad-P72> <20200717170747.GW9247@paulmck-ThinkPad-P72> In-Reply-To: <20200717170747.GW9247@paulmck-ThinkPad-P72> From: Naresh Kamboju Date: Sat, 18 Jul 2020 00:35:12 +0530 Message-ID: Subject: Re: [PATCH 2/2] kvm: mmu: page_track: Fix RCU list API usage To: "Paul E. McKenney" , madhuparnabhowmik10@gmail.com Cc: Dexuan-Linux Cui , Josh Triplett , Joel Fernandes , Paolo Bonzini , rcu@vger.kernel.org, open list , X86 ML , kvm list , frextrite@gmail.com, lkft-triage@lists.linaro.org, Dexuan Cui , juhlee@microsoft.com, =?UTF-8?B?RGFuaWVsIETDrWF6?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Paul, > I am not seeing this here. Do you notice any warnings while building linux next master for x86_64 architecture ? > Could you please let us know what compiler > and command-line options you are using to generate this? We have two build systems one showing it as error and build breaks and another one showing it as warning and build pass. tool chain: gcc 9.3.0 build command: make -sk KBUILD_BUILD_USER=3DTuxBuild -C/linux -j16 ARCH=3Dx86 HOSTCC=3Dgcc CC=3D"sccache gcc" O=3Dbuild metadata: git_repo: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-ne= xt.git, target_arch: x86, toolchain: gcc-9, git_short_log: aab7ee9f8ff0 (\Add linux-next specific files for 2020071= 7\), git_sha: aab7ee9f8ff0110bfcd594b33dc33748dc1baf46, git_describe: next-20200717, kernel_version: 5.8.0-rc5, warning log, -- make -sk KBUILD_BUILD_USER=3DTuxBuild -C/linux -j16 ARCH=3Dx86 HOSTCC=3Dgcc CC=3D"sccache gcc" O=3Dbuild # In file included from ../include/linux/pid.h:5, from ../include/linux/sched.h:14, from ../include/linux/kvm_host.h:12, from ../arch/x86/kvm/mmu/page_track.c:14: ../arch/x86/kvm/mmu/page_track.c: In function =E2=80=98kvm_page_track_write= =E2=80=99: ../include/linux/rculist.h:727:30: warning: left-hand operand of comma expression has no effect [-Wunused-value] 727 | for (__list_check_srcu(cond), \ | ^ ../arch/x86/kvm/mmu/page_track.c:232:2: note: in expansion of macro =E2=80=98hlist_for_each_entry_srcu=E2=80=99 232 | hlist_for_each_entry_srcu(n, &head->track_notifier_list, node, | ^~~~~~~~~~~~~~~~~~~~~~~~~ ../arch/x86/kvm/mmu/page_track.c: In function =E2=80=98kvm_page_track_flush= _slot=E2=80=99: ../include/linux/rculist.h:727:30: warning: left-hand operand of comma expression has no effect [-Wunused-value] 727 | for (__list_check_srcu(cond), \ | ^ ../arch/x86/kvm/mmu/page_track.c:258:2: note: in expansion of macro =E2=80=98hlist_for_each_entry_srcu=E2=80=99 258 | hlist_for_each_entry_srcu(n, &head->track_notifier_list, node, | ^~~~~~~~~~~~~~~~~~~~~~~~~ arch/x86/kvm/svm/svm.o: warning: objtool: svm_flush_tlb_gva()+0x12: call without frame pointer save/setup kernel/bpf/core.o: warning: objtool: ___bpf_prog_run.cold()+0x7: call without frame pointer save/setup ref: https://gitlab.com/Linaro/lkft/kernel-runs/-/jobs/643978120 > Thanx, Paul - Naresh