From patchwork Fri Aug 23 08:16:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maulik Shah X-Patchwork-Id: 11110969 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 509171398 for ; Fri, 23 Aug 2019 08:18:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2EFE8233A2 for ; Fri, 23 Aug 2019 08:18:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=codeaurora.org header.i=@codeaurora.org header.b="QLaLfSSa"; dkim=fail reason="key not found in DNS" (0-bit key) header.d=codeaurora.org header.i=@codeaurora.org header.b="JA/Oj71i" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388017AbfHWISl (ORCPT ); Fri, 23 Aug 2019 04:18:41 -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 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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, \ }