Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2159075rwl; Sun, 26 Mar 2023 17:16:46 -0700 (PDT) X-Google-Smtp-Source: AKy350YRnn3cl6hhh1M0d/5bGfRsBVx6jUhjuvZsCKYJKlo+ajb7mddCIrpg8U1AdyZ2MPDB4/Zu X-Received: by 2002:a17:907:3f88:b0:909:4a93:d9d2 with SMTP id hr8-20020a1709073f8800b009094a93d9d2mr13488560ejc.2.1679876205674; Sun, 26 Mar 2023 17:16:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679876205; cv=none; d=google.com; s=arc-20160816; b=PJX4QuAHSHr2+2iXdE6V7zzUFrm3fyRgxAdffdhgC4EVa/wVgFWEMKYhC6t76SeafB jjSoGJBc6uQOGuYzOg6HAlgaYQ/6HOS+9KyMa9vyy2HGhZ3x0YcUjbCBskAnWmcWIOBm j+cWxlealYjjJIv+/9t4zxcYqQgGjQ1VjRTN4x041i4oQJvSKCV33Yovqp1p07IYheLF YD77rG+G6Hmky0aW6K5k3OoyTAgubTn60JbJD5j0j6XKntVqTox59TRkOrZ2k2o9eL69 jvoXMgsb8A3z99ftGIZZ8/3f091AfAnQGOJhYdd65Z3lXHTqyiPAC7OhCZ1lNwyAFQeQ j+zQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0mqNgHwIwhxr1KwcRcX5YFnIl6XBIDIyAfjEZK+PHDM=; b=FuQ4BNRP0e+Re741CrAZyF1iuUaV/7kY+wUWnoBNIKGhCLmfrxk/DV8zffoqFJo47l y5gwSRIRWefG0DVedAgSXPUK9H76Kg/ZZTLC2WSoE+59wGK/jZDr3IpEb1380shPXhuR 3QnC+dUAHAuVfVELp6LwgkR0ReuVi186uasECRwvNVcY/ncIf6ROacNQ0mKOPZgHiJLb YlVu4ppeVOYhb49g+2GTyX6Slj5pj7+Dzm3TV/6E+Sy2V0ATNvzWH47SfKhE3jN4uN+X 8jpz0VxWdb5/rQvIEeWr+hu/SokTp6NcPxBpu83NZoVmPuJU6y/uFW/UXH9eB+oV0ZU5 r8iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dVz1b0id; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gt42-20020a1709072daa00b0093525a7ec36si13132079ejc.106.2023.03.26.17.16.11; Sun, 26 Mar 2023 17:16:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dVz1b0id; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229552AbjC0ABa (ORCPT + 99 others); Sun, 26 Mar 2023 20:01:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjC0AB2 (ORCPT ); Sun, 26 Mar 2023 20:01:28 -0400 Received: from mail-oo1-xc2f.google.com (mail-oo1-xc2f.google.com [IPv6:2607:f8b0:4864:20::c2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2CB449EA for ; Sun, 26 Mar 2023 17:01:26 -0700 (PDT) Received: by mail-oo1-xc2f.google.com with SMTP id f24-20020a4aeb18000000b0053b78077c9dso1081697ooj.12 for ; Sun, 26 Mar 2023 17:01:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679875286; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=0mqNgHwIwhxr1KwcRcX5YFnIl6XBIDIyAfjEZK+PHDM=; b=dVz1b0idsHmc85OTInQKiN0Q8jFxK+sv1qdp24KLMg8WIN6kln+oPitk+/H4G8H10d dILm0QCrIwGctYcvg3eH0bZqBJd6ZOqYEfnC/rj+Y55t2dE2x2pvzUtzeZaO91K/0j4m zXnuI94lOwU7029aCkbIAlInzZpdj9mF+MZ2JYBWY/Hpk1Xf4zRurLJDUzjVy15lTX// VOC1twFCnBJBZzt6vGtr8HogzqHxwJIJTh8ymaJQ9Fk5d+8jEyqvdVuGYiGjppl2rDas xeUKRd2CefMYuGQAYKzd4vcIe6KgZBzed42oousGD+pPACtDY4gRooBTGGhmhbF43Zha LuIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679875286; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=0mqNgHwIwhxr1KwcRcX5YFnIl6XBIDIyAfjEZK+PHDM=; b=vdlVJZFKVpMyvY567MpzPjfwpt5hIEMo294Zg6SHRIgFcj5bARC3toNS/xGrztTn1w 6K7hlRhQOaN89tr47qlgShboSAr/lXeCOb5jlj/GPJxEGIE915u3mCC3m8P3k3P0oLhQ UmQgVQL1ZMFtNQHR6kCo72g6d2et+DBSb2BQz9vIXTL6teiHySsf4BdQ0RxrcAMip38B h9dzWvY8ZEGQqtpTqPvA50MWntbbqfvkZ1SFAoa+/IYCNs8oIJZe4LMfq/5IF8E2SMaT 6R1Lu5ug7jAGTywtDNIm95b2dM+ejWfY9jQY9Hk/pcpYCAuYJpBtBdggkAqpQTLz0kqS gQ4A== X-Gm-Message-State: AO0yUKVcw+LVITWocjBbO2fGmCnKPqH5QZ/mCPQCvXFLOwB23wkzJASq 9cZO75wqVM5sPsZn7m/8p5u40+18RhV3BhewIEYL5g== X-Received: by 2002:a4a:4542:0:b0:525:a9a9:b44a with SMTP id y63-20020a4a4542000000b00525a9a9b44amr5055633ooa.7.1679875286250; Sun, 26 Mar 2023 17:01:26 -0700 (PDT) Received: from fedora (69-109-179-158.lightspeed.dybhfl.sbcglobal.net. [69.109.179.158]) by smtp.gmail.com with ESMTPSA id e20-20020a4a8f14000000b0053dfd96fa61sm2896021ool.39.2023.03.26.17.01.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Mar 2023 17:01:25 -0700 (PDT) Date: Sun, 26 Mar 2023 20:01:23 -0400 From: William Breathitt Gray To: Johannes Berg , Andy Shevchenko , Al Viro Cc: linux-iio@vger.kernel.org, Jonathan Cameron , Andrew Morton , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/3] counter: 104-quad-8: Refactor to buffer states for CMR, IOR, and IDR Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="VOBZKfGdbh/Z/7o0" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --VOBZKfGdbh/Z/7o0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 24, 2023 at 11:35:02AM -0400, William Breathitt Gray wrote: > There are eight calls to quad8_control_register_update() in 104-quad-8: >=20 > quad8_control_register_update(priv, priv->idr, id, DISABLE_INDEX_= MODE, INDEX_MODE); > quad8_control_register_update(priv, priv->cmr, id, mode_cfg, QUAD= RATURE_MODE); > quad8_control_register_update(priv, priv->ior, event_node->channe= l, flg_pins, FLG_PINS); > quad8_control_register_update(priv, priv->idr, channel_id, index_= polarity, INDEX_POLARITY); > quad8_control_register_update(priv, priv->idr, channel_id, synchr= onous_mode, INDEX_MODE); > quad8_control_register_update(priv, priv->cmr, count->id, count_m= ode, COUNT_MODE); > quad8_control_register_update(priv, priv->ior, count->id, enable,= AB_GATE); > quad8_control_register_update(priv, priv->ior, count->id, !preset= _enable, LOAD_PIN); I attempted the cross-compiling using an x86-64 system and I was able to recreate the build error. I tried to isolate the problem line by commenting out quad8_control_register_update() calls and discover that this appears to be an inline issue after all: if there are more than six calls to quad8_control_register_update() are in the code, then the '__bad_mask' build error occurs. The build error doesn't occur if I force the inline via __always_inline, so I'll add that to quad8_control_register_update() to resolve this issue and submit a v3 patchset later this week. William Breathitt Gray --VOBZKfGdbh/Z/7o0 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQSNN83d4NIlKPjon7a1SFbKvhIjKwUCZCDc0wAKCRC1SFbKvhIj K6DUAQCHK6g+zrtL2opXqvDT2GFt26czSyY6ss78QElPdbKgbgEA7jhk8Q8oAeE2 fnq8aYq272RzeXV1qKomPviXXtZMbgc= =2imo -----END PGP SIGNATURE----- --VOBZKfGdbh/Z/7o0--