linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
To: linux-sparse@vger.kernel.org
Cc: Christopher Li <sparse@chrisli.org>,
	Dibyendu Majumdar <mobile@majumdar.org.uk>,
	Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Subject: [RFC PATCH 2/4] fold is_simple_var() into simple_access()
Date: Fri, 18 Aug 2017 00:35:56 +0200	[thread overview]
Message-ID: <20170817223558.21258-3-luc.vanoostenryck@gmail.com> (raw)
In-Reply-To: <20170817223558.21258-1-luc.vanoostenryck@gmail.com>

---
 linearize.c | 13 +++----------
 1 file changed, 3 insertions(+), 10 deletions(-)

diff --git a/linearize.c b/linearize.c
index 9a7a71d3a..63c896fc7 100644
--- a/linearize.c
+++ b/linearize.c
@@ -978,16 +978,7 @@ static inline int is_simple_type(struct symbol *type)
 	return 0;
 }
 
-static inline int is_simple_var(struct symbol *var)
-{
-	if (!is_simple_type(var))
-		return 0;
 #define	MOD_NONREG	(MOD_STATIC|MOD_NONLOCAL|MOD_ADDRESSABLE|MOD_VOLATILE)
-	if (var->ctype.modifiers & MOD_NONREG)
-		return 0;
-	return 1;
-}

  reply	other threads:[~2017-08-17 22:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-17 22:35 [RFC PATCH 0/4] simple, registrable, promotable & friends Luc Van Oostenryck
2017-08-17 22:35 ` Luc Van Oostenryck [this message]
2017-08-17 22:35 ` [RFC PATCH 3/4] rename 'simple_{var,access}' by promatable_...' Luc Van Oostenryck
2017-08-17 22:35 ` [RFC PATCH 4/4] fix promotion of struct & union Luc Van Oostenryck
2017-08-19 11:28 ` [RFC PATCH 0/4] simple, registrable, promotable & friends Christopher Li

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170817223558.21258-3-luc.vanoostenryck@gmail.com \
    --to=luc.vanoostenryck@gmail.com \
    --cc=linux-sparse@vger.kernel.org \
    --cc=mobile@majumdar.org.uk \
    --cc=sparse@chrisli.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).