Return-Path: Received: from aserp2120.oracle.com ([141.146.126.78]:41910 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728866AbfJHIYz (ORCPT ); Tue, 8 Oct 2019 04:24:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : content-transfer-encoding : in-reply-to; s=corp-2019-08-05; bh=hsookp6VCJBJ8j9FrOxcrFM1cfxvCj4nyB6Gc4zf5E4=; b=PYSqVY0f3MCXcS6T1xfjQf8MgZ28Qi8xnboPCF8aGpO0VIc1y9uFI70AsMZt8zJnsq+x LiD0weJ7IeVTNSjcrUoksH7WLNxEPbnHOowr7QS7wASsoeydqHqmrR/o+GLsrKf06MLU T8q4IfbcfEQldUcHFP3H3JA5I/IZ0blrkEv2CgswEWGbp5HZ34e6XlMJ44rQtSm0Dhzz xbkrWdqFXhaB3i78MBKr/GzQ2tarqL/Pz8RMrXhQ13czANzGAncKfICKzoFip5Rrwt8a MeMjozRrp7t+kCD6FgSXeF8qmzAoPeOvajSqMyeZQ6v90SMFBIfMJMMb7VzGN/IeHfhE sA== Date: Tue, 8 Oct 2019 11:24:42 +0300 From: Dan Carpenter Subject: Re: [RFC PATCH 5/7] kernel_user_data: track parameter __untagged annotations Message-ID: <20191008082442.GB25098@kadam> References: <20191007153545.23231-1-andrew.murray@arm.com> <20191007153545.23231-6-andrew.murray@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20191007153545.23231-6-andrew.murray@arm.com> Sender: smatch-owner@vger.kernel.org List-ID: To: Andrew Murray Cc: Catalin.Marinas@arm.com, smatch@vger.kernel.org On Mon, Oct 07, 2019 at 04:35:43PM +0100, Andrew Murray wrote: > @@ -1168,6 +1211,8 @@ static void set_param_user_data(const char *name, struct symbol *sym, char *key, > state = alloc_estate_rl(rl); > if (param_data_capped(value) || is_capped(expr)) > estate_set_capped(state); > + if (param_data_treat_untagged(value) || sym->ctype.as == 5) > + estate_set_treat_untagged(state); Could you update to the latest version of Smatch? These days cytype.as address space is a pointer instead of an int. smatch_kernel_user_data.c: In function ‘set_param_user_data’: smatch_kernel_user_data.c:1225:56: warning: comparison between pointer and integer if (param_data_treat_untagged(value) || sym->ctype.as == 5) ^~ regards, dan carpenter