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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DDF8AC7619A for ; Mon, 27 Mar 2023 00:01:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229564AbjC0AB3 (ORCPT ); Sun, 26 Mar 2023 20:01:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229552AbjC0AB2 (ORCPT ); Sun, 26 Mar 2023 20:01:28 -0400 Received: from mail-oo1-xc35.google.com (mail-oo1-xc35.google.com [IPv6:2607:f8b0:4864:20::c35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC56C49E8 for ; Sun, 26 Mar 2023 17:01:26 -0700 (PDT) Received: by mail-oo1-xc35.google.com with SMTP id n6-20020a4abd06000000b0053b59893660so1095700oop.0 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=P/1ttL5KYhudCkMrMZARBZcJmZPILeM6bsBKzUf201oKH7lUT4FOp6hLpO1232FUG7 1A1zS1bwB5BBy9AGAAm5yyoR5fac2oZR0WlaKdQX8ADcJB75OnuFqgotLFSDyCA+tJAF seJkbFpcMY/OjN9XpWUvZbSmK61JpKbB17dnfOKk5p61sTNqeZsJUOKvEmlT5AYytqiw t3BTqrAqHfpZtPy/WeaGbCUacVdByOjEUb4vetLPb5kgJMGSWNa/s0ArglhsRd4BSPBD 1cB9kvN0hzmn2XHdePMn+YKSaeaEkRvZ3oaVh9KgVMXszdVZqyBmikWig5RPz/pmiRuS GYew== X-Gm-Message-State: AO0yUKVGy2uSUtW7v65rzc7t/zAelCfBo/wfsm+AeFUv71dzinli1VsT MNNPk7Nsgr6sbOXCVJOyb3+Upw== X-Google-Smtp-Source: AK7set/rjDvuG3fJXQoZvhqm2wXcsciTm3HPhrb06n51ekP2LwhUp1dIcsn5TJa2ZrNBYjgZkbk3CQ== 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: Precedence: bulk List-ID: X-Mailing-List: linux-iio@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--