From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E15ADC433DF for ; Tue, 11 Aug 2020 04:27:59 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 9DB9920756 for ; Tue, 11 Aug 2020 04:27:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="gIfikik5" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9DB9920756 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 131B76B0006; Tue, 11 Aug 2020 00:27:59 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0E3906B0007; Tue, 11 Aug 2020 00:27:59 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F3B266B0008; Tue, 11 Aug 2020 00:27:58 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0027.hostedemail.com [216.40.44.27]) by kanga.kvack.org (Postfix) with ESMTP id DBB3E6B0006 for ; Tue, 11 Aug 2020 00:27:58 -0400 (EDT) Received: from smtpin18.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 79F20181AEF07 for ; Tue, 11 Aug 2020 04:27:58 +0000 (UTC) X-FDA: 77137005036.18.badge00_63116bb26fe0 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin18.hostedemail.com (Postfix) with ESMTP id 51C7D100EC67A for ; Tue, 11 Aug 2020 04:27:58 +0000 (UTC) X-HE-Tag: badge00_63116bb26fe0 X-Filterd-Recvd-Size: 3424 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf17.hostedemail.com (Postfix) with ESMTP for ; Tue, 11 Aug 2020 04:27:57 +0000 (UTC) Received: from localhost.localdomain (c-73-231-172-41.hsd1.ca.comcast.net [73.231.172.41]) (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 B09CE206DA; Tue, 11 Aug 2020 04:27:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597120077; bh=HVa5a8fSarE3FjEzPI/tiTxOe2uPd2Fd/PzzU5E8/3M=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=gIfikik50rH/Y4HMFk3aIcoToJ/0tTiPNEUlv8NUE+AEiM79Y9PA2333Y6aefP6UU /dgCsVT51be2bS+OzVuRzzkGYXTeKuj5Ddu52sT6TWjCAsB05IW8+lUGz/GNybsJpE 7iX8Ft0Ic/34l9pmo4/4Yv8nFJbx7CCImclFWS0k= Date: Mon, 10 Aug 2020 21:27:56 -0700 From: Andrew Morton To: kernel test robot Cc: Rikard Falkeborn , kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Linux Memory Management List , Masahiro Yamada , Kees Cook , Peter Rosin Subject: Re: include/linux/bits.h:25:21: error: first argument to '__builtin_choose_expr' not a constant Message-Id: <20200810212756.04c006476aa9c663edb01f32@linux-foundation.org> In-Reply-To: <202008080833.zZnw48Gr%lkp@intel.com> References: <202008080833.zZnw48Gr%lkp@intel.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 51C7D100EC67A X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam03 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Sat, 8 Aug 2020 08:03:38 +0800 kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > head: 30185b69a2d533c4ba6ca926b8390ce7de495e29 > commit: 295bcca84916cb5079140a89fccb472bb8d1f6e2 linux/bits.h: add compile time sanity check of GENMASK inputs > date: 4 months ago > config: s390-randconfig-r001-20200808 (attached as .config) > compiler: s390-linux-gcc (GCC) 9.3.0 > reproduce (this is a W=1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > git checkout 295bcca84916cb5079140a89fccb472bb8d1f6e2 > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=s390 > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All errors (new ones prefixed by >>): > > drivers/mux/mmio.c: In function 'mux_mmio_probe': > drivers/mux/mmio.c:76:20: error: storage size of 'field' isn't known > 76 | struct reg_field field; > | ^~~~~ > In file included from include/linux/bits.h:23, > from include/linux/bitops.h:5, > from drivers/mux/mmio.c:8: > >> include/linux/bits.h:25:21: error: first argument to '__builtin_choose_expr' not a constant I assume the first error is the cause of the second? struct reg_field is only defined if CONFIG_REGMAP, and that is unset in this .config. Perhaps drivers/mux/mmio.c should depend on CONFIG_REGMAP? (cc Peter).