Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5035847ybl; Wed, 22 Jan 2020 09:06:36 -0800 (PST) X-Google-Smtp-Source: APXvYqwSuJJdYGpA+UpjgIyKn385BMMwAJesPaTb6CNoPH7xJ7xpzBBq0Ik24jj+Swn3VWPJ7tGW X-Received: by 2002:aca:5f87:: with SMTP id t129mr7665463oib.36.1579712796488; Wed, 22 Jan 2020 09:06:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579712796; cv=none; d=google.com; s=arc-20160816; b=qBo5wa+Frjyhe3V/fL711mRDY/sCDV4p4aT+xrcgbcz14MrmI3CiCZUeV+ORF1Gc48 vlPqWGIo76ipAoQU37Y+c88Hu8Q0/dTWSMCatIUZi+qEwS/zlU8L9fJUO0hxelSLKnXr 2xrCQQR9pDboZMNdDhq1sSnI9yK1a9DBjifxGTb5JnBZFGy+8upEs/77lvcvWTCwhP2d fY1JVYuOOkKTEdYXhfqePhfQ7vWRhKqnJvyranZmkpZeTdaR3aTAE30TDj5KdNj0lHLV eVrbt2U9WAHDu30FVLh+BtkbEhQyAw9MMPkHhnXTE0HarZ7YrLZIoWS1EsqGHLvg5IE6 CJYA== 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 :dkim-signature; bh=8QgKyiW0upu1Q+szE5cYtvDG9vOJuAl1OpeZnvTZVEo=; b=nCYU0DuUEVA0qkYS85gPhdksej8QNzy2DXgXQrZElvlLOk3hXM0IJlqovJ6Hry2lk2 hxZ1dCZCXAhBcmtfgCO2U+Jfrahuzuvtv7aJfuvjxLXhZCyy194nTAew15MWpl2vpife s3LZCSKwFEiNvJIgIxpsZEAtvUFGRrVPyaTbBsJRXd6+Y2KTAU3LddcVi+/q5AOVkhRe DuGPWHwGigLbUqvAZktrsi8+n6MuW6Nh9ScZbF7IIaAzcMbtfGv5hLrPsaKGv3DQx3NN H0QpQpsWiq1hGBYjVxwSIBN5dlgV8+o12hjxMrGEjmdBmrNtiVa9huPTAbtrOGyPjl1Y 9BbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MiEOeaY9; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d5si21334725otp.174.2020.01.22.09.06.22; Wed, 22 Jan 2020 09:06:36 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=MiEOeaY9; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728931AbgAVRFA (ORCPT + 99 others); Wed, 22 Jan 2020 12:05:00 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:39387 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725883AbgAVRFA (ORCPT ); Wed, 22 Jan 2020 12:05:00 -0500 Received: by mail-pf1-f195.google.com with SMTP id q10so132304pfs.6; Wed, 22 Jan 2020 09:05:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=8QgKyiW0upu1Q+szE5cYtvDG9vOJuAl1OpeZnvTZVEo=; b=MiEOeaY9kdqB8tM2DEWTmU6WQEOBSN25csdV/dunSwN65KQayZ2vpbrRRSl12K9Jgu HXf86q8yhkgvpyxzQ5wvyyn6bbcqkAulGpMpU/x0X9OEwvxQRnihQCZOWHI3CoQhC/ab Qf5TsiHtNaSsqETuS5UXb+TdCqQgkf503b7rxEQhdKHvgCOcLym5G6AHto0rAdM74tw5 QY1Uhxu9oMMLGRK9JBBN0WZIb2ls96L3wyHnj8n2t3JXNHSA8inI7gO6utTzlMBtm4l7 H6YkYUWIHGzE2v9EyeUqismEmgPBQgYIWLMGp/VPvN8ivEl7lsopgw6o90oAxdUYzHzN 3/dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=8QgKyiW0upu1Q+szE5cYtvDG9vOJuAl1OpeZnvTZVEo=; b=KAOsoFGSNaTYkd8fEzR9P6eb8qXeH2xRpqVwB4pPxg0/Ezagda1jfDfFBc/Xjw9bez 1jRfRtjH0XayymcKjTmSwRcuhkXirCHcWAJNjuJoZB/mG6iuVfUyB20RTzewyPGUB5Js mA6oMnS929BLZd8qh5aqc5YkWw09VokUUQLL/FWrOGKDUbdE10tNoMnIENeGrxp6gB4m +jaaO+WeW7/e6t4kgdbhNu9q8cWAeV8K+7m+WUwgpOXbtGQ86HT9xEyu7AWJlDnNqmIA 2+ur0bAn+SKcyiMbdsfRgpWLL22U7EQDk/udVZcW3vObq7n/slnTVJFAm3dYn64WB/+t V2UA== X-Gm-Message-State: APjAAAVoA8GgdoV6sgOm1rDSuxBmZXrW7V8GTFKLRrbhlv9elp7PT8Fr dvKsq6uOZQTl1Nf/GGWQ1Q== X-Received: by 2002:aa7:96f9:: with SMTP id i25mr3471919pfq.161.1579712699709; Wed, 22 Jan 2020 09:04:59 -0800 (PST) Received: from madhuparna-HP-Notebook.nitk.ac.in ([2402:3a80:1eee:fc60:1df1:6c1a:3227:9ec0]) by smtp.gmail.com with ESMTPSA id b42sm4001350pjc.27.2020.01.22.09.04.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jan 2020 09:04:59 -0800 (PST) From: madhuparnabhowmik10@gmail.com To: jeyu@kernel.org Cc: linux-kernel@vger.kernel.org, joel@joelfernandes.org, frextrite@gmail.com, rcu@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, paulmck@kernel.org, Madhuparna Bhowmik Subject: [PATCH] module.h: Annotate mod_kallsyms with __rcu Date: Wed, 22 Jan 2020 22:34:47 +0530 Message-Id: <20200122170447.20539-1-madhuparnabhowmik10@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Madhuparna Bhowmik This patch fixes the following sparse errors: kernel/module.c:3623:9: error: incompatible types in comparison expression kernel/module.c:4060:41: error: incompatible types in comparison expression kernel/module.c:4203:28: error: incompatible types in comparison expression kernel/module.c:4225:41: error: incompatible types in comparison expression Signed-off-by: Madhuparna Bhowmik --- include/linux/module.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/module.h b/include/linux/module.h index bd165ba68617..dfdc8863e26a 100644 --- a/include/linux/module.h +++ b/include/linux/module.h @@ -429,7 +429,7 @@ struct module { #ifdef CONFIG_KALLSYMS /* Protected by RCU and/or module_mutex: use rcu_dereference() */ - struct mod_kallsyms *kallsyms; + struct mod_kallsyms __rcu *kallsyms; struct mod_kallsyms core_kallsyms; /* Section attributes */ -- 2.17.1