From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johannes Berg Subject: Re: [PATCH v2] implement constant-folding in __builtin_bswap*() Date: Wed, 23 Nov 2016 07:28:27 +0100 Message-ID: <1479882507.4432.1.camel@sipsolutions.net> References: <20161117095503.8754-1-johannes@sipsolutions.net> <1479721551.8662.10.camel@sipsolutions.net> <20161122131543.GA8370@macbook.local> (sfid-20161122_174738_216238_D863CDDD) Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Return-path: Received: from s3.sipsolutions.net ([5.9.151.49]:36110 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932417AbcKWG2a (ORCPT ); Wed, 23 Nov 2016 01:28:30 -0500 In-Reply-To: (sfid-20161122_174738_216238_D863CDDD) Sender: linux-sparse-owner@vger.kernel.org List-Id: linux-sparse@vger.kernel.org To: Christopher Li , Luc Van Oostenryck Cc: Linux-Sparse , Nicolai Stange > I get it working in the end. Not too far from what I thought. > Patch attach here for review. Just a small comment: > +       if (expression_list_size(args) != 1) { > +               sparse_error(expr->pos, "not enough arguments for function %s", > +                               show_ident(sym->ident)); Should that say "invalid number of arguments (expected 1)" or so? johannes