Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3843142ybl; Mon, 3 Feb 2020 07:34:18 -0800 (PST) X-Google-Smtp-Source: APXvYqwq45suUMrD4PfZOSaTescFG1HHArTXOanphH8NZjUMf+H3yHx9hm1mxsAXRXQDddfAOoQD X-Received: by 2002:a9d:5e9:: with SMTP id 96mr12892721otd.307.1580744057891; Mon, 03 Feb 2020 07:34:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580744057; cv=none; d=google.com; s=arc-20160816; b=0zkaPRo6y0z4nUD3HQZknzt7WiRVP1KY0O0n/eGvBHDFvHydh4+ecrqO2PWiADnadP u7UOggPtC2hoJ/ZoF4SxoJGKR35wkPtRnxTYg0OXXUNahaHYaiQL4qNkrF+2EqnZqToM freMLSi1hqtPj7iVCz4TjLz6VAMm9Q3moOlqJESO666qZt+L/Xd/YArNUosXN8gT+0Wi ILjQ/0PYw1Io4ZXvHXrB+7DuUGKOUGrHgqtwCzPbK0UrCLWG8z5IJVvII9HU2nCQ8ba4 yntjT2JYVZCV8l1c659AgBBZORlMcDB13r5oMh+e+GVEErO7ZR3CB+AGYNoFl9T5TCoc C/3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dmarc-filter:dkim-signature; bh=5J/2d/yKfmhZMsyOqM5Y4Fz6w9WN5sJ8CWELf2rRwCk=; b=n5UBkn3yrCX9RecTAab6ovUld8dRpZzfyrd0OOWtW+4NzfmtWc20SIH8zZqFoz4CAV XDM4x5lW4/tH57bJz3OAr+uqN6SH+4orCaGXQZV5R8NyTN7T/X6IQXOWequOBocRyDqM D/oN3jgJxvksJcea7rm64rxqaaK6WW9pK7InBfa33Bpj3z8qVmMrbqbETNjmIwV2qHz1 SbBKA2odO03SswWUVwCGSLJ3g1eHeuyox1ahGE3/hh5NYVv65p2ezgJz0Q/mHa1WNLnl Rxj7Ixs8wES40jceQBYqO6/RSB7uYkjY0DPcMbzwmAxr+Ii27yqua62dMcTpNR9HbSbe HjOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=sYUeBry3; 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 p207si7555471oic.111.2020.02.03.07.33.29; Mon, 03 Feb 2020 07:34:17 -0800 (PST) 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=fail header.i=@mg.codeaurora.org header.s=smtp header.b=sYUeBry3; 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 S1727905AbgBCNhF (ORCPT + 99 others); Mon, 3 Feb 2020 08:37:05 -0500 Received: from mail25.static.mailgun.info ([104.130.122.25]:10661 "EHLO mail25.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727646AbgBCNhF (ORCPT ); Mon, 3 Feb 2020 08:37:05 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1580737024; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=5J/2d/yKfmhZMsyOqM5Y4Fz6w9WN5sJ8CWELf2rRwCk=; b=sYUeBry3YaIXKU/O7QEspXmQriXV+BSdg3HNpHCcKEwiMu4U0qIEHEyhsZGkjJMtDYJn3NTj /P09zOw0YfwUUl5KHr0YpZjzMLCv/KjWu18N4JWW2kprkZ1r8yZE07Z/v4OaTWScczVt4O9p s5mWHxi+HA0+mhl3HaWDekK3tPs= X-Mailgun-Sending-Ip: 104.130.122.25 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e3821fe.7fb9521a0ce0-smtp-out-n01; Mon, 03 Feb 2020 13:37:02 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 8DC0FC4479C; Mon, 3 Feb 2020 13:37:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE, URIBL_BLOCKED autolearn=unavailable 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) by smtp.codeaurora.org (Postfix) with ESMTPSA id 531FAC433A2; Mon, 3 Feb 2020 13:36:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 531FAC433A2 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=mkshah@codeaurora.org From: Maulik Shah To: swboyd@chromium.org, agross@kernel.org, david.brown@linaro.org, sudeep.holla@arm.com, Lorenzo.Pieralisi@arm.com Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, bjorn.andersson@linaro.org, evgreen@chromium.org, dianders@chromium.org, rnayak@codeaurora.org, ilina@codeaurora.org, lsrao@codeaurora.org, ulf.hansson@linaro.org, rjw@rjwysocki.net, Maulik Shah Subject: [PATCH v3 1/7] drivers: qcom: rpmh: fix macro to accept NULL argument Date: Mon, 3 Feb 2020 19:05:34 +0530 Message-Id: <1580736940-6985-2-git-send-email-mkshah@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1580736940-6985-1-git-send-email-mkshah@codeaurora.org> References: <1580736940-6985-1-git-send-email-mkshah@codeaurora.org> 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 035091f..3a4579d 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 Code Aurora Forum, hosted by The Linux Foundation