Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2067245lqo; Sun, 19 May 2024 11:38:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX399XA1YlLTgKnviknqcr/XyB0b3+/K7IAvxdvXO+ia0zfLw+Fg9+wlOJKDmUs32j/O+0cX/35GA9XO3wzqcbUqGx6EzhC7FcANphCPg== X-Google-Smtp-Source: AGHT+IGF3MOyouvKphaUv0GM5B5D4nrHES1ckWtCrut0C4acVii8uDoJGKdLMzgM8VWa09PLINOS X-Received: by 2002:a05:6870:a918:b0:220:c604:8df with SMTP id 586e51a60fabf-24172e02947mr33522350fac.37.1716143903193; Sun, 19 May 2024 11:38:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716143903; cv=pass; d=google.com; s=arc-20160816; b=p8lPXssHybsr1fnTFhhn3eB6SoxE+02d3H9m5lgyzwnHN4zM6GiSPc/QH8LQU0En6z K0QkIO8lzBxkCjaRcMCV52siZVzm4yt02SsvpZ9fZrWT3jaupQd5ahKYojKZxTO5yRMP /os3zXn2HWmLTKqU5oLzBeeKTIPbhmLPq4GxSw3fldmBf4xrYdsI37EMkjwZ7L4LnVok 3uso1sxxR5MRW0t1cyeUdwV1WtSs+G+655vPuhOyjXrfhOvsjY5NDSBQqfwWNzwailcl 2wgY6b+RVOLOAGsb4fNdNZI9G3laW9CegylaRJmXv7GtIzGqVRuN+hfz9zsmdCFKw76W scTQ== ARC-Message-Signature: i=2; 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=Q/cag53/2Ywm6zjfo2e6ha2VCUM1R7E70A/VpOgKacc=; fh=kwM+HFcQgGTc4cc0p8qWgOrYic9V6opaqYUiFaRzdOY=; b=of4JMoAV6ljOq0k70Hx2SU4h2pgE/IFHG0o5PhJo4nwAe0CFSDY/gOQLOgC+8/miFk nrBW5tHR/yZCA/CP8yT8PYeIuV6BX4hlRdHRfbP7QR8LBVu6GsQOJgHgTTUIcqRJR9wX kPyMxa0QdsTXpUh7hzYlUrucCRXAw+l8o+BfU/A5LPUUuPFRmxXmhkLxCkCMvrlHG9Dd xnwsuZShN25Z4BtlWgy4uyGC+kAunEBb/mqJc/Kcboirp2Uf/qoCt3rM/OLZLtC50w6x 0BJ2eK29t0XS7MSeTTZxnz57eG1se7bDdn3fuCpT2GmxLPZ0sBSwuNWm95HfYkBDwHSK cOog==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dGaYEROF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-183200-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183200-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 d75a77b69052e-43e3afcdb18si97525161cf.93.2024.05.19.11.38.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 May 2024 11:38:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183200-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=dGaYEROF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-183200-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183200-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 E1A991C20752 for ; Sun, 19 May 2024 18:38:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C309E6E60E; Sun, 19 May 2024 18:38:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dGaYEROF" 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 D93396CDBA; Sun, 19 May 2024 18:38:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716143896; cv=none; b=rFfi0KhKgYnlXPZ5HHCrsxzyHHI5z31QaY1t9iwNA6JStVMN5tD3nfkMpxLI+Iaknz39UP90aClraEFjZBDfFOFKZFeYehmxR9agRK16nDgsvrWJPFrIJHfJrOyMby4DDIZpgbmWZVwdDiLh1x0oJp+t1QA2+Ob+26J21flWCms= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716143896; c=relaxed/simple; bh=lVCcZNgsc8zO7s/yax8GQlYEW+YH4cqOMEwcZkdmLCo=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=OyndJ/LlulFIYSBORCO+YHFHo1v7X1uKseoZED8EDdXFJCEA0K35C928vLEXstUXmwLUBpf7XgrwiiggOcmE/RzsMLe5oOL0fSYAI5nKGEx+vumPKWX/Z6Mw9gU77pAOgICgWet+8msCrrQ4DlGWmNMxOhQpArS5b29PJrqeQ28= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dGaYEROF; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51F81C32781; Sun, 19 May 2024 18:38:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716143895; bh=lVCcZNgsc8zO7s/yax8GQlYEW+YH4cqOMEwcZkdmLCo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=dGaYEROFbcsOWz4dpnikAEeKk0KglCeQYp/W+CSvt4z32IW7Z+LXduDKBzcnX72gg At0ZFGT4Rtde6o2ijU6n17ZvoE9boV/fSOoAHuJVthPqzo+cjyjozyE3l9fpxT56uv b5sp41dVVQTpruGRFQntcOQFfVW/S9PYKNIJFSCf4m8c8cbOmyzTxPi+JFzKRHMvH5 TFWzNGrIL7sLes9h9LjyEDlkMt2fhJuZHBKm7sEVbHt7X7ERWW77/ZGU1hIaHaPrlZ B00X6LWkGoZI3dIDCqTvuavjqUPZGhPseoK2o7uVN19Ys658+7QVCebwMDXoaSEpKF ZIRJ/eZZd7Hfg== Date: Sun, 19 May 2024 19:38:05 +0100 From: Jonathan Cameron To: kernel test robot Cc: Ramona Gradinariu , linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, conor+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, robh@kernel.org, nuno.sa@analog.com, oe-kbuild-all@lists.linux.dev Subject: Re: [PATCH v3 9/9] drivers: iio: imu: Add support for adis1657x family Message-ID: <20240519193805.3bc1d842@jic23-huawei> In-Reply-To: <202405181400.174vWAhr-lkp@intel.com> References: <20240517074750.87376-10-ramona.bolboaca13@gmail.com> <202405181400.174vWAhr-lkp@intel.com> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.42; 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 Sat, 18 May 2024 14:47:01 +0800 kernel test robot wrote: > Hi Ramona, > > kernel test robot noticed the following build errors: > > [auto build test ERROR on jic23-iio/togreg] > [cannot apply to linus/master v6.9 next-20240517] > [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/Ramona-Gradinariu/dt-bindings-iio-imu-Add-ADIS16501-compatibles/20240517-155051 > base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg > patch link: https://lore.kernel.org/r/20240517074750.87376-10-ramona.bolboaca13%40gmail.com > patch subject: [PATCH v3 9/9] drivers: iio: imu: Add support for adis1657x family > config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20240518/202405181400.174vWAhr-lkp@intel.com/config) > compiler: gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0 > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240518/202405181400.174vWAhr-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/202405181400.174vWAhr-lkp@intel.com/ > > All errors (new ones prefixed by >>): > > >> drivers/iio/imu/adis16475.c:523:9: error: initialization of 'const struct iio_dev_attr *' from incompatible pointer type 'struct attribute *' [-Werror=incompatible-pointer-types] > 523 | &iio_dev_attr_hwfifo_watermark_min.dev_attr.attr, > | ^ > drivers/iio/imu/adis16475.c:523:9: note: (near initialization for 'adis16475_fifo_attributes[0]') > drivers/iio/imu/adis16475.c:524:9: error: initialization of 'const struct iio_dev_attr *' from incompatible pointer type 'struct attribute *' [-Werror=incompatible-pointer-types] > 524 | &iio_dev_attr_hwfifo_watermark_max.dev_attr.attr, > | ^ > drivers/iio/imu/adis16475.c:524:9: note: (near initialization for 'adis16475_fifo_attributes[1]') > drivers/iio/imu/adis16475.c:525:9: error: initialization of 'const struct iio_dev_attr *' from incompatible pointer type 'struct attribute *' [-Werror=incompatible-pointer-types] > 525 | &iio_dev_attr_hwfifo_watermark.dev_attr.attr, > | ^ > drivers/iio/imu/adis16475.c:525:9: note: (near initialization for 'adis16475_fifo_attributes[2]') > drivers/iio/imu/adis16475.c:526:9: error: initialization of 'const struct iio_dev_attr *' from incompatible pointer type 'struct attribute *' [-Werror=incompatible-pointer-types] > 526 | &iio_dev_attr_hwfifo_enabled.dev_attr.attr, > | ^ > drivers/iio/imu/adis16475.c:526:9: note: (near initialization for 'adis16475_fifo_attributes[3]') > cc1: some warnings being treated as errors > > > vim +523 drivers/iio/imu/adis16475.c > > 514 > 515 static IIO_DEVICE_ATTR_RO(hwfifo_watermark_min, 0); > 516 static IIO_DEVICE_ATTR_RO(hwfifo_watermark_max, 0); > 517 static IIO_DEVICE_ATTR(hwfifo_watermark, 0444, > 518 adis16475_get_fifo_watermark, NULL, 0); > 519 static IIO_DEVICE_ATTR(hwfifo_enabled, 0444, > 520 adis16475_get_fifo_enabled, NULL, 0); > 521 > 522 static const struct iio_dev_attr *adis16475_fifo_attributes[] = { > > 523 &iio_dev_attr_hwfifo_watermark_min.dev_attr.attr, > 524 &iio_dev_attr_hwfifo_watermark_max.dev_attr.attr, > 525 &iio_dev_attr_hwfifo_watermark.dev_attr.attr, > 526 &iio_dev_attr_hwfifo_enabled.dev_attr.attr, > 527 NULL > 528 }; drop the dev_attr.attr parts. This will 'work' because they are all at the start of the containing structure, but it should be the iio_dev_attrs as in a similar case here: https://elixir.bootlin.com/linux/latest/source/drivers/iio/accel/adxl372.c#L1009 > 529 >