Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp880426ybl; Thu, 23 Jan 2020 09:24:43 -0800 (PST) X-Google-Smtp-Source: APXvYqw49tEXZO1tq6eZvU43/tksQKANPtlMH66pJPiJeBmzMKtj+AA72LNn69nM5e9afCZM+cMF X-Received: by 2002:aca:5e02:: with SMTP id s2mr10974245oib.80.1579800283147; Thu, 23 Jan 2020 09:24:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579800283; cv=none; d=google.com; s=arc-20160816; b=V8xKSJAmjhf2nxgJJ9hwRzPcFmQ1UgKK5eoC9+53UCvRN9iFS4DGopw7O00kYxApXK oruk4E5i9HwpxQX+W/HdL0rDmejUFygT2cnLkWtcVy6/l7e9yDYU8adAtMW4AF7CwZ92 eAP54Q0STGgeswmIgrBs7lnAV/2MRlfHjhX7UGVzx1ifUmhhyQdgMd8BtxnWCgRtz+Nz 8o7pANKB9F2EFkb1NHMbLjvBS84K6qZjYyq3a3Oo4RVnew5iXk1OBzZv18FzMZrgVUVt 36pszPznVvQWpD27cp+2ahwKh4mgkhDd2AqDz1Txp+ZIpeBcWIf5jTR6wkyETevhvcBA N7Ug== 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=7F5p3bBG/i+YKlDPj8GZ8aJdJD6ZxnB1jlZxZsmxVNg=; b=HGGm+SGdXsjesyEdUS0n5OzAnKSRQVy5RH75GvYA8yjLzJUx8U6kOCUrkb4GBvtIkD ceEIf4nvIRVfZnzd2JEnlwklL/eMT+ZRw4nWB8udg+CoLQO3g/Bg8LD5Li4oWgYy3Q15 kXWOVfvoElTSu2G7e/nr3+4+YeDBIZtU/jQ6QY1gR1ZXNh69K1vnk8W1GecMu4ssof7w zi4xUzRK3/VEFhV5z3Tl5HwvsdBO4uYPA/uYgr6z15k0fgF8KKL24wQrnlctCRTmK623 6VDs7jdT+i5HuUOYTH1QdJfGodwXpiBHTFbvNKZG9yAlxDuINPql23lrj6fOFHS39kUY lxDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cs0hz3m7; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r5si1087249oic.19.2020.01.23.09.24.28; Thu, 23 Jan 2020 09:24:43 -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=@kernel.org header.s=default header.b=cs0hz3m7; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728904AbgAWRXF (ORCPT + 99 others); Thu, 23 Jan 2020 12:23:05 -0500 Received: from mail.kernel.org ([198.145.29.99]:44108 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726605AbgAWRXF (ORCPT ); Thu, 23 Jan 2020 12:23:05 -0500 Received: from linux-8ccs (x2f7fea8.dyn.telefonica.de [2.247.254.168]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 30AB1207FF; Thu, 23 Jan 2020 17:23:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579800184; bh=vdad4h34opYp5igmK3XVwdbMOblM1qfChkC2aQ7dLVA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cs0hz3m7UAqKvsQ5oNLIQzdgRdSQjGmU0cMUw27DzycVvzfHfNH/nQ5z7PAO+W+5U c8OCWz5tPzB3HrmhpkQXB7fqizYL1b/ISqQRHpfOs1cEi7w0DDQRoFwjn5tUZsuRsX uDd89xMAqcCAODFElxaBDSxEYsTQskn/YEXoPMG0= Date: Thu, 23 Jan 2020 18:22:58 +0100 From: Jessica Yu To: madhuparnabhowmik10@gmail.com 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 Subject: Re: [PATCH] module.h: Annotate mod_kallsyms with __rcu Message-ID: <20200123172257.GA14784@linux-8ccs> References: <20200122170447.20539-1-madhuparnabhowmik10@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20200122170447.20539-1-madhuparnabhowmik10@gmail.com> X-OS: Linux linux-8ccs 4.12.14-lp150.12.61-default x86_64 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 +++ madhuparnabhowmik10@gmail.com [22/01/20 22:34 +0530]: >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 Hi Madhuparna, Thanks, I can confirm this patch fixes the sparse warnings. I've applied it to modules-next. Jessica >--- > 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 >