Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1134421ybl; Fri, 23 Aug 2019 13:57:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyvEC7hBtbiCavFx9cHuBA4HPl28ha40btnj/xCwj3N6mzeXmLCIsYHQ2hK1MofZGreX3x1 X-Received: by 2002:a63:194f:: with SMTP id 15mr5768759pgz.382.1566593838592; Fri, 23 Aug 2019 13:57:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566593838; cv=none; d=google.com; s=arc-20160816; b=mKvsGrhiLg/bZ0QrDQOovbHKTgpiW6sdMDVdi1PVOUaL4WtOY7wS8eMVPCrsD5ikV8 5duT7g7Z91XQ0qvadF64vkbemV0lnbgTVeKolBAldBmHUeBD3vpSGgHqFJ8kaHavRimp QAQBqwxhexGZIpe3KfQG7eO/9SaLZg/JaBvFdiy75EUY8tOZAfZlXlZj52hWKeCplT/4 W39LerZ55K72WNcoK4NpGDDj1CFKEv/QFr/jidue5yMPG/gM1eX+xOChpSXLbmzJ1eiF 2mGrvonysVs9U6ZhpGZxBRk2uo6HPzENEz1tp/uH07ExrLlPrtUKZDq3LwYqFmt0Sha2 ru3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature:dkim-signature; bh=F3pHBFFGY7MuPScZb4ft9nIrvSJThzeNUA7Vq6ik2LM=; b=J+jneGOE/rIQ1F3qkB67Hrchj3hqpOPC1D48btQFmM2aqaz2mzCFxmtyA6YA31KF7v rd48Gy8YgE1GpJ420+BTcKmewvYAltp4sRLy5Me6kkwdLvpMPM1Srub16+KIbIPw4xcy /U8uRLreRg7VS+QKpcylhi0nZfAmNRRMU6hxKcHoA3/AXi+LRB42wN7FlpNMueSQL9Ip C4L1XWlD+U7fntpH/XOtSJpP4Gu2W6LWtzycwXweEiCqc+xkvpuuROl0v6o251OEJn3D A4MeP4gsQmkzpbwy07dDnVTZ4NXpPkvWZTVcQ2xXNhZ0xPzL0TpWcjZ3ZzMCJ5E/0ntb Vvmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=QLaLfSSa; dkim=pass header.i=@codeaurora.org header.s=default header.b="JA/Oj71i"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 26si2669995pgs.520.2019.08.23.13.56.20; Fri, 23 Aug 2019 13:57:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=QLaLfSSa; dkim=pass header.i=@codeaurora.org header.s=default header.b="JA/Oj71i"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389906AbfHWISm (ORCPT + 99 others); Fri, 23 Aug 2019 04:18:42 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:42490 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387683AbfHWISl (ORCPT ); Fri, 23 Aug 2019 04:18:41 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id E75DA611FA; Fri, 23 Aug 2019 08:18:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1566548320; bh=UYou8hJmSvuFPlRRhJiTe1k+FP2oIIIP5pw1X06HsLw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QLaLfSSaaxN2Akojojh4bo7ATvHNzwEgFJNLMg2SGh3GMGW+YtrXPKZWk/G8/NzDe vsitB8yaPpirIXA6epzGPmXosTIEUol3TBrhRcd6/f7pYWlPGjwHeSXxYCDR7Zusj/ yos4WUZys7o7aMNq/05dRuL6YPMOIyQAJs87FUOo= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED,SPF_NONE autolearn=no autolearn_force=no version=3.4.0 Received: from mkshah-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mkshah@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 51B3B61156; Fri, 23 Aug 2019 08:18:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1566548318; bh=UYou8hJmSvuFPlRRhJiTe1k+FP2oIIIP5pw1X06HsLw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JA/Oj71ixprx2MB/xT4vKcxoKKEdG1naMIg4efIPPb6Pv6xLdfzcGVW/Rwi5SUU7B UinGLV1BZ8em5T78YRjWMwsHh4oCXvqtsAK0rqlCvQBg47AtOnMV4X95NbKXEy48FC 99gSa3GcXOanlH8zcCxpgeru4//f3IzQx2sJIHfM= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 51B3B61156 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=mkshah@codeaurora.org From: Maulik Shah To: swboyd@chromium.org, agross@kernel.org, david.brown@linaro.org, linux-arm-msm@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, bjorn.andersson@linaro.org, evgreen@chromium.org, dianders@chromium.org, rnayak@codeaurora.org, ilina@codeaurora.org, lsrao@codeaurora.org, ulf.hansson@linaro.org, Maulik Shah Subject: [PATCH v2 1/6] drivers: qcom: rpmh: fix macro to accept NULL argument Date: Fri, 23 Aug 2019 13:46:58 +0530 Message-Id: <20190823081703.17325-2-mkshah@codeaurora.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190823081703.17325-1-mkshah@codeaurora.org> References: <20190823081703.17325-1-mkshah@codeaurora.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Device argument matches with dev variable declared in RPMH message. Compiler reports error when the argument is NULL since the argument matches the name of the property. Rename dev argument to device to fix this. Signed-off-by: Maulik Shah Reviewed-by: Stephen Boyd --- drivers/soc/qcom/rpmh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/qcom/rpmh.c b/drivers/soc/qcom/rpmh.c index 035091fd44b8..3a4579d056a4 100644 --- a/drivers/soc/qcom/rpmh.c +++ b/drivers/soc/qcom/rpmh.c @@ -23,7 +23,7 @@ #define RPMH_TIMEOUT_MS msecs_to_jiffies(10000) -#define DEFINE_RPMH_MSG_ONSTACK(dev, s, q, name) \ +#define DEFINE_RPMH_MSG_ONSTACK(device, s, q, name) \ struct rpmh_request name = { \ .msg = { \ .state = s, \ @@ -33,7 +33,7 @@ }, \ .cmd = { { 0 } }, \ .completion = q, \ - .dev = dev, \ + .dev = device, \ .needs_free = false, \ } -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, hosted by The Linux Foundation.