Received: by 2002:a05:7412:8d08:b0:f9:2d0a:d759 with SMTP id bj8csp166518rdb; Sun, 17 Dec 2023 06:48:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IGsknGPEa83Pqe9Z4IwQsEtJgIRqwqS1qOkCp2SbycRgyiO27EtJwVvexg/ebFb36XSBvw+ X-Received: by 2002:a05:622a:341:b0:425:99b5:6119 with SMTP id r1-20020a05622a034100b0042599b56119mr19183811qtw.89.1702824532413; Sun, 17 Dec 2023 06:48:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702824532; cv=none; d=google.com; s=arc-20160816; b=vb7tQmi9GBaa5txdSQrVRzQY/aKu39IRDM9apYdkeV9C1kmEySVXxNsO8W2ms96FHw gsFR9U0LeyqKJde4KLK0K3TQ4dMn54UKRKOwehGGQ+FQ7euJAAObCn+f0cY3fZVFMszI S1O/GUHwze3KOv4d9p8HU0S/eBJfFbxj5Y68eWjFAEAzwyRsZbGAdDIDSYG9pYzzQ5Sh 1XaPWPVJLGe8tnm/WKOWE/Ceu0PCajYJ6bZlQVFS2k6bL1/e9IsbUERGv1LxI5gwCxSo GeA9bhyoQYFFz1i5UkQ6wLalbXje6LB6MzOKrk+xeFpAOGfvyKc+8itvzExncYWKmyTV 3VGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=9dObIBzsgHuKLLKoiIwcjiJp8/IApEEqyNZGucDUFsA=; fh=0T12X7RO7w2Y2OiN58wHPx2gCl2r4d0P6LZ+fou8xiU=; b=Y0/OvXWeuEUwRJ0Z8nMr5NShKRxEwgp2ett22Vi1SffThZatvuA3Vgz573jS2uiN9g mEvXCn95cWA9Gt9gcyu8zIk9f//oQufS3Vb6zYY4vjpGZP19VNt2YMegXxj0avDEpM4j 9wZiYvoe8kI87bLnKgIpBiuADY2XeZwHcX5J456Pf68Ns3sQlXn/esTJCZ/qq3Qht0fv ZVpzKldFTs1fceM+q2WWAW9WnjBluDJowlpflmYQvVSsx2Yc4iTK7DUAJTPG/yxb9TI6 uRve7OfMA8LZIoEkIhj835OrhipDmad5SQdsU8IjLzPlvNFOP7hmAGRIR28VsY/9ztHr dU+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="hMK/1RL2"; spf=pass (google.com: domain of linux-kernel+bounces-2653-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2653-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id x7-20020ac84d47000000b00403c3fb27d8si19900498qtv.678.2023.12.17.06.48.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Dec 2023 06:48:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2653-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="hMK/1RL2"; spf=pass (google.com: domain of linux-kernel+bounces-2653-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2653-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 3149F1C21FD6 for ; Sun, 17 Dec 2023 14:48:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4F6EC44C7D; Sun, 17 Dec 2023 14:48:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hMK/1RL2" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 79FF844369; Sun, 17 Dec 2023 14:48:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1B4B9C433C8; Sun, 17 Dec 2023 14:48:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702824521; bh=2v6c7w5YjYuTrHr0xyiSsUNzB7hn7P+PURHZkaEiMq0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=hMK/1RL21kGQvTj8TT/U9fKNJsBKKg/5XgCvbOl4a961bh6SuZG5kmKzqiEBYD1QG 5Wstc8CkMtQGhvG+yaOJ4gYPJ0eonehdvqBI9sdgcXoeVZxzM0aKk+YHCHz7msZVny fyh+C+MTIQdx4nRX/hJcegpNosNJsriK3EqzQXUGAfJWlMQuzThuAoueVpDKT836Vz TKCfcDn6EbbuZT6QKKusBvm33fTHXAadZIcMXlFMHobWMrvoN7vc2pHmLqgcFvyAJP 2P3//EOOZ8DEdnY5PSVwkgNUT+sB/zocYYKUaThW78pWbB3v8COOQsPkD5UtgWeD9R 6a7Zqbg9DVbMg== Date: Sun, 17 Dec 2023 14:48:23 +0000 From: Jonathan Cameron To: kernel test robot Cc: Marcelo Schmitt , apw@canonical.com, joe@perches.com, dwaipayanray1@gmail.com, lukas.bulwahn@gmail.com, paul.cercueil@analog.com, Michael.Hennerich@analog.com, lars@metafoo.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, dan.carpenter@linaro.org, dlechner@baylibre.com, marcelo.schmitt1@gmail.com, oe-kbuild-all@lists.linux.dev, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 6/15] iio: adc: ad7091r: Move chip init data to container struct Message-ID: <20231217144823.7d6f8473@jic23-huawei> In-Reply-To: <202312172006.b2fep1oG-lkp@intel.com> References: <9d1248860193b55e79640b2e64c21c66bd6645f9.1702746240.git.marcelo.schmitt1@gmail.com> <202312172006.b2fep1oG-lkp@intel.com> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.38; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sun, 17 Dec 2023 21:04:50 +0800 kernel test robot wrote: > Hi Marcelo, > > kernel test robot noticed the following build errors: > > [auto build test ERROR on jic23-iio/togreg] > [also build test ERROR on linus/master v6.7-rc5 next-20231215] > [If your patch is applied to the wrong git tree, kindly drop us a note. > And when submitting patch, we suggest to use '--base' as documented in > https://git-scm.com/docs/git-format-patch#_base_tree_information] > > url: https://github.com/intel-lab-lkp/linux/commits/Marcelo-Schmitt/scripts-checkpatch-Add-__aligned-to-the-list-of-attribute-notes/20231217-055420 > base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg > patch link: https://lore.kernel.org/r/9d1248860193b55e79640b2e64c21c66bd6645f9.1702746240.git.marcelo.schmitt1%40gmail.com > patch subject: [PATCH v4 6/15] iio: adc: ad7091r: Move chip init data to container struct > config: um-randconfig-r111-20231217 (https://download.01.org/0day-ci/archive/20231217/202312172006.b2fep1oG-lkp@intel.com/config) > compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231217/202312172006.b2fep1oG-lkp@intel.com/reproduce) > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > the same patch/commit), kindly add following tags > | Reported-by: kernel test robot > | Closes: https://lore.kernel.org/oe-kbuild-all/202312172006.b2fep1oG-lkp@intel.com/ > > All errors (new ones prefixed by >>): > > >> drivers/iio/adc/ad7091r5.c:59:14: error: initializer element is not constant > .irq_info = ad7091r5_chip_info_irq, > ^~~~~~~~~~~~~~~~~~~~~~ > drivers/iio/adc/ad7091r5.c:59:14: note: (near initialization for 'ad7091r5_init_info.irq_info') > drivers/iio/adc/ad7091r5.c:60:17: error: initializer element is not constant > .info_no_irq = ad7091r5_chip_info_noirq, > ^~~~~~~~~~~~~~~~~~~~~~~~ You should use a pointer rather than assigning the whole structure. > drivers/iio/adc/ad7091r5.c:60:17: note: (near initialization for 'ad7091r5_init_info.info_no_irq') > > > vim +59 drivers/iio/adc/ad7091r5.c > > 57 > 58 static struct ad7091r_init_info ad7091r5_init_info = { > > 59 .irq_info = ad7091r5_chip_info_irq, > 60 .info_no_irq = ad7091r5_chip_info_noirq, > 61 .regmap_config = &ad7091r_regmap_config, > 62 .init_adc_regmap = &ad7091r5_regmap_init > 63 }; > 64 >