Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp438938ybv; Wed, 19 Feb 2020 02:41:01 -0800 (PST) X-Google-Smtp-Source: APXvYqxQrT2Q24c8EFmzmeWok/F2yXZD9c1dje1wo8zj7VPXZrQ7CvBtPhjHj25v2IA3uf1zQIFQ X-Received: by 2002:a05:6808:8e1:: with SMTP id d1mr4096010oic.68.1582108861282; Wed, 19 Feb 2020 02:41:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582108861; cv=none; d=google.com; s=arc-20160816; b=sudQA4FXKH3bcacACdMSC5j/nIMDDpi7I9i3Jk2HwJss5pJWFO70IRv/CVrKE2lH8h jT/Kb8CvlqHIGLjLqjlIw1qVLQsnCvDl8DA4eNhdORsjMtZgiw5us+jRn6oBJ4vNdWNe ERARsqkWbRj5hBoumiDeHsGBBifAGTGaJwhqCCHizolDtaVIchnhC+3uh+guNIfggxYX 2CZCFFEl4qg7dxnsrZLI/txJzw244F/rqdKgmHuyVGDRm+MlEumMisSaQvRFE6PG0nRR 682aVnaiHcZi1CKlhVZ6AzlrEN5GFtQA2DfdXUdUYjt5zcOmYMu+4sfXTg1Io+yHLzAo jTmg== 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=0hIEbChqXtGQen9a25lUeOYQRmQOaFo0xwwGCPAfa9nAcZA6ESvNhGdNN7BsQ34RIa z8aPJOaGguny020dZInzyvGFi/ODT0jmd/K0652eBktmnfaduF8+6/NmAOgGNt8sgdu6 pcgfLlMQMJ98DmaAfiDzPSKQ1jxtksV03V4Ltg2Xjhzoyo9qf80tSe+Acy6XeZm3rOaV glDfYqT9PKV7/pHoWpPND9ovI7tkmah2G/3aKTtVi3d702kyHuqAtvbjs969tvFT0eb+ fQ3VjLgqlf8W14NMD2uOJRyxsQiQnt/JT/TmBwTwmXUBUkUfNW74UUTpvugcH0GUXqCN DaNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=u8foDwpS; 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 v21si920174oth.276.2020.02.19.02.40.49; Wed, 19 Feb 2020 02:41:01 -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=u8foDwpS; 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 S1726734AbgBSKkd (ORCPT + 99 others); Wed, 19 Feb 2020 05:40:33 -0500 Received: from mail26.static.mailgun.info ([104.130.122.26]:51271 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726671AbgBSKkd (ORCPT ); Wed, 19 Feb 2020 05:40:33 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1582108832; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=5J/2d/yKfmhZMsyOqM5Y4Fz6w9WN5sJ8CWELf2rRwCk=; b=u8foDwpSnBSDpkPesHHRyvQ73aBMu4OR+KTNR8LTIVP62UvihwG4W+Hsm5bkW5mGKN0GsiHq 24pR5sIKK90gJbTXb3D8BwSUxa3/lGK57r2sPLljKkeA9FR1ZtPaZDPADJq95X1DsqN9X5vV 6YCUbbUaSmyeqvrCOUqrma2+P7E= X-Mailgun-Sending-Ip: 104.130.122.26 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 5e4d10a0.7fa752cd10a0-smtp-out-n02; Wed, 19 Feb 2020 10:40:32 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 5FD12C4479D; Wed, 19 Feb 2020 10:40:32 +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 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 0059EC447A3; Wed, 19 Feb 2020 10:40:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 0059EC447A3 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, mka@chromium.org, evgreen@chromium.org, bjorn.andersson@linaro.org Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, agross@kernel.org, dianders@chromium.org, rnayak@codeaurora.org, ilina@codeaurora.org, lsrao@codeaurora.org, Maulik Shah Subject: [PATCH v5 1/7] drivers: qcom: rpmh: fix macro to accept NULL argument Date: Wed, 19 Feb 2020 16:10:04 +0530 Message-Id: <1582108810-21263-2-git-send-email-mkshah@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1582108810-21263-1-git-send-email-mkshah@codeaurora.org> References: <1582108810-21263-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