Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2057749pxb; Fri, 22 Oct 2021 12:59:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhzghecamBPWqVGesSeGtdQpce8hOPMkB1SPr5GBEw+vlmayHF6YWi8o8dyjVYL7GM0dye X-Received: by 2002:a17:906:6819:: with SMTP id k25mr1937247ejr.423.1634932791629; Fri, 22 Oct 2021 12:59:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634932791; cv=none; d=google.com; s=arc-20160816; b=OJX7h3nYqMh3+yyttf3//14a5oUtNi1Dhn3qG/rzUktCJ0pcss6bJFxNBY6SABYoHB 8u7DVGYXibYbE9BW7bhV2EFm4eMtNea1VQNEWx/baHzkacPeFmvyroHBTNIMnH8c6OVt u7Y9DQJz4G1XgffVtRLukNNopmt1G5CYP6JuKNbP7o487QzM1C104k9df8OR1RlI1/Pk aLQeUkYAQPYP05Bb7FEEsIVV0ljCLiaZYbYAtALK63ySmL6H6muhePA4yN7O4TzmXEvZ OoTTN6mvYct3/nCAYX8eRMivmpU8AGm8pS9dIq8e2AzE9/uiAUcXHiDjNFARoeTp1dP3 IX0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=UTwWG87WMGCInLvbVeH2Y5IFCrI1AAcz+l30J0XHzM4=; b=uX4jnCU7p3eq4yTJBZlCXuv91Hvbe7gUDkG/l1Ap7OlBiozHoSIczgM4m5llJ3+Xxj Yqh5/XNmcQWxRoG1eEnk+EvAJrKGRVw/UwJIE6h9+U4UWj4xezZWQWcEBH7KQx8aw5ik I/efVamvm1UhApxeo/Ld3xjdipA9pxgeFvFurfAwvxjp/KABXNk+UxC9mBMH4eHk0iDi NKsD5Ojfg8EMuDAszI6BcpKZzq9gDtWFaKXjqrgWYtZEs4ULo6eElHMd/9BV7EiR2dFR 6IN+rYU7tFX08XirHopT+YHPp3tOdZ2VB++/CY1sxW2EqHzU9MtzCxIRni+lx0gutN0x Ei5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZnfGmuzD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l11si16724674edb.72.2021.10.22.12.59.28; Fri, 22 Oct 2021 12:59:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZnfGmuzD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234345AbhJVT7h (ORCPT + 99 others); Fri, 22 Oct 2021 15:59:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:53488 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234314AbhJVT73 (ORCPT ); Fri, 22 Oct 2021 15:59:29 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9A67060F12; Fri, 22 Oct 2021 19:57:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634932631; bh=tztV518ojLRtlutbEnCzM1wsjUZFOmK8O5ObqyQpukM=; h=From:To:Cc:Subject:Date:From; b=ZnfGmuzDa/YU3Ti7bxy5KWj1upSvP1jlrFOH1IOO+uoe4B/6GzZvt7qgi8Vv07WgG wASIq98UScX4R/xHHi3eHgnT9TS5RLDImylnKMgf0eiF80vp4EVwH8dSeI5tILfCh9 csr4oHpOYN8u2KXZrOceKxpPYPY6rdUpcKlxE3A10C51qrvejuJh4+Xt+uycZfm5vj L0lRytNfIsMJw7EnCjyd5a7/VaW1fucOdYVSUf9JmWeiQI2DL30A7/cYAnHDR47KcC t+8ncAxqg7O5oSD+UtJW0a1/q7NHbqSlvBHoHB75EIcOUbYMr12x/I9Y+U3xhwuWZ2 sicSE8VPt14mA== From: Nathan Chancellor To: Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron Cc: Nick Desaulniers , Antoniu Miclaus , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Nathan Chancellor Subject: [PATCH] iio: frequency: adrf6780: Fix adrf6780_spi_{read,write}() Date: Fri, 22 Oct 2021 12:56:56 -0700 Message-Id: <20211022195656.1513147-1-nathan@kernel.org> X-Mailer: git-send-email 2.33.1.637.gf443b226ca MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Clang warns: drivers/iio/frequency/adrf6780.c:117:1: error: all paths through this function will call itself [-Werror,-Winfinite-recursion] { ^ drivers/iio/frequency/adrf6780.c:138:1: error: all paths through this function will call itself [-Werror,-Winfinite-recursion] { ^ 2 errors generated. The underscore variants should be used here. Fixes: 63aaf6d06d87 ("iio: frequency: adrf6780: add support for ADRF6780") Link: https://github.com/ClangBuiltLinux/linux/issues/1490 Signed-off-by: Nathan Chancellor --- drivers/iio/frequency/adrf6780.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iio/frequency/adrf6780.c b/drivers/iio/frequency/adrf6780.c index abe8b30fceca..8255ffd174f6 100644 --- a/drivers/iio/frequency/adrf6780.c +++ b/drivers/iio/frequency/adrf6780.c @@ -118,7 +118,7 @@ static int adrf6780_spi_read(struct adrf6780_state *st, unsigned int reg, int ret; mutex_lock(&st->lock); - ret = adrf6780_spi_read(st, reg, val); + ret = __adrf6780_spi_read(st, reg, val); mutex_unlock(&st->lock); return ret; @@ -139,7 +139,7 @@ static int adrf6780_spi_write(struct adrf6780_state *st, unsigned int reg, int ret; mutex_lock(&st->lock); - ret = adrf6780_spi_write(st, reg, val); + ret = __adrf6780_spi_write(st, reg, val); mutex_unlock(&st->lock); return ret; base-commit: 77af145dc7eadcb78d38912b67d6a68050d21a9b -- 2.33.1.637.gf443b226ca