Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2677988imm; Tue, 4 Sep 2018 08:18:01 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbWehONOS+YfgKggRvlXHfJJ6OdSjkYCSSlwgvuSy1pC64Xu3ZWxtlHB576Q93h4Vw1fG62 X-Received: by 2002:a17:902:8d8d:: with SMTP id v13-v6mr6932448plo.9.1536074281393; Tue, 04 Sep 2018 08:18:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536074281; cv=none; d=google.com; s=arc-20160816; b=vdyqyo4m9P/4k9jEb6+Av9TGLDI3bMBR5jsORhX6xjXUcSlX/JwMou5K67a2zGvRXX rJergQ4L9/Dhpg/G58Zset1dKNI6f3QN2OWNCRu5ofuSHX+R44O9spHgZajoPDzr0jQ5 QtYsjq11gQbjnvXmnzDFkrg3L6+a6HKKPt4f/+UpnKq9JEKhiao351zWcQw1s5IYeeJx e1qb7DlJFPHTZh9k0gekt7Z5W4zddb5vCmBqCCo46RyGFX/mycZW1zN3PsFBc9Jtrg7K m3VQGkpMJ5izgeYi0VYef1v+cP9KKiq60AGtSwqKHEEeooxBB03VQCSgFZtaaK3r7RdW Viqg== 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:message-id:subject:cc:to:from:date :arc-authentication-results; bh=sTFpgbfcxckNkIRboI2fP8vURt0jD+GiDCE6kpQi7cw=; b=jgnRoROAXkV2aJP49XYYVV5hyaTqKfPnk4AAPYz94xHSM7D3ddZIY8zt1ShwWP1GGc N7UDua06K/W4rsfDoMGvdz9jPdoXiPNMw/cd+pamD9591e0HPF54G6NEQLbyeh3GRAVN yDay1yPm309KmclBc2CFrLMQxXtAdW8XwW9jraHl0froN2Y8dR1CoMNLfLUg2+vYgNLB d/9RZF0wbGleYzPwhI+wj7gnsjUZ6SmPRXM6/pMYxkZiCEqL8qFQq1wCvfDW+sUYKGd/ 0laxnJPYyFiqBCoeCehD/AWtWGNhb79S9ZBUMbqkb85wHnKT+LL6AOOC+NjZselPxfzx BkwA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f35-v6si20977278plh.291.2018.09.04.08.17.46; Tue, 04 Sep 2018 08:18:01 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727664AbeIDTlT (ORCPT + 99 others); Tue, 4 Sep 2018 15:41:19 -0400 Received: from mga05.intel.com ([192.55.52.43]:39423 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726206AbeIDTlT (ORCPT ); Tue, 4 Sep 2018 15:41:19 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Sep 2018 08:15:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,329,1531810800"; d="scan'208";a="85917137" Received: from pl-dbox.sh.intel.com (HELO intel.com) ([10.239.13.138]) by fmsmga004.fm.intel.com with ESMTP; 04 Sep 2018 08:15:42 -0700 Date: Tue, 4 Sep 2018 23:28:18 +0800 From: kbuild test robot To: Janusz Krzysztofik Cc: kbuild-all@01.org, Linus Walleij , Jonathan Corbet , Miguel Ojeda Sandonis , Peter Korsgaard , Peter Rosin , Ulf Hansson , Andrew Lunn , Florian Fainelli , "David S. Miller" , Dominik Brodowski , Greg Kroah-Hartman , Kishon Vijay Abraham I , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Hartmut Knaack , Peter Meerwald-Stadler , Jiri Slaby , Willy Tarreau , Geert Uytterhoeven , linux-doc@vger.kernel.org, linux-i2c@vger.kernel.org, linux-mmc@vger.kernel.org, netdev@vger.kernel.org, linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-serial@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Janusz Krzysztofik Subject: Re: [PATCH v6 1/4] gpiolib: Pass bitmaps, not integer arrays, to get/set array Message-ID: <20180904152817.GC17047@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180831225616.29221-2-jmkrzyszt@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Janusz, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on gpio/for-next] [also build test WARNING on v4.19-rc2 next-20180831] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Janusz-Krzysztofik/gpiolib-speed-up-GPIO-array-processing/20180903-174241 base: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git for-next reproduce: # apt-get install sparse make ARCH=x86_64 allmodconfig make C=1 CF=-D__CHECK_ENDIAN__ :::::: branch date: 9 hours ago :::::: commit date: 9 hours ago >> drivers/mux/gpio.c:25:9: sparse: Variable length array is used. -- >> drivers/i2c/muxes/i2c-mux-gpio.c:29:9: sparse: Variable length array is used. include/linux/device.h:685:13: sparse: undefined identifier '__builtin_mul_overflow' include/linux/device.h:685:13: sparse: not a function include/linux/device.h:685:13: sparse: call with no type! # https://github.com/0day-ci/linux/commit/00db98568b73a7b04c5120e5b87934c7355cc015 git remote add linux-review https://github.com/0day-ci/linux git remote update linux-review git checkout 00db98568b73a7b04c5120e5b87934c7355cc015 vim +25 drivers/mux/gpio.c 2c089f08e drivers/mux/mux-gpio.c Peter Rosin 2017-05-14 21 2c089f08e drivers/mux/mux-gpio.c Peter Rosin 2017-05-14 22 static int mux_gpio_set(struct mux_control *mux, int state) 2c089f08e drivers/mux/mux-gpio.c Peter Rosin 2017-05-14 23 { 2c089f08e drivers/mux/mux-gpio.c Peter Rosin 2017-05-14 24 struct mux_gpio *mux_gpio = mux_chip_priv(mux->chip); 00db98568 drivers/mux/gpio.c Janusz Krzysztofik 2018-09-01 @25 DECLARE_BITMAP(value_bitmap, mux_gpio->gpios->ndescs); 2c089f08e drivers/mux/mux-gpio.c Peter Rosin 2017-05-14 26 00db98568 drivers/mux/gpio.c Janusz Krzysztofik 2018-09-01 27 *value_bitmap = state; 2c089f08e drivers/mux/mux-gpio.c Peter Rosin 2017-05-14 28 2c089f08e drivers/mux/mux-gpio.c Peter Rosin 2017-05-14 29 gpiod_set_array_value_cansleep(mux_gpio->gpios->ndescs, 00db98568 drivers/mux/gpio.c Janusz Krzysztofik 2018-09-01 30 mux_gpio->gpios->desc, value_bitmap); 2c089f08e drivers/mux/mux-gpio.c Peter Rosin 2017-05-14 31 2c089f08e drivers/mux/mux-gpio.c Peter Rosin 2017-05-14 32 return 0; 2c089f08e drivers/mux/mux-gpio.c Peter Rosin 2017-05-14 33 } 2c089f08e drivers/mux/mux-gpio.c Peter Rosin 2017-05-14 34 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation