From patchwork Tue Mar 27 21:06:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 132493 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp5560977ljb; Tue, 27 Mar 2018 14:07:31 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+DcUqK6FCEFpEoP2cyNUnZnJ+TiLLl6NWsInkLF2ViNJmr9nJmtsfxXTX9QAtCLFzafQsc X-Received: by 10.101.100.210 with SMTP id t18mr591788pgv.123.1522184851709; Tue, 27 Mar 2018 14:07:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522184851; cv=none; d=google.com; s=arc-20160816; b=QclD0F492QrAWiqavEmLHbNealxrqjFUfMCeSZGOegLP85Hs//Jal7g5lvJcgg6M89 bLyws5KKCQSB8OzclyezP2r7jaTlwy4kFubkYekotNqfd3DrFw82qet5Busednr1OHqm HakZa/PjAD+8y5gTk3lP68IIoLKEm7KAdg8jH04ntS8x26adSbWjtEqmGbeFZdh9mCf1 3qZROWNcCopR7W5SwIHI/o/1lHKdktsz47Rc1OKHt2vK5hjafmt75ujv8bDLqUPl06QY muI2uOsBkdGOOZYoriK5gfYOxTbC69qivJT1eoCi3hBeP11QZyvjwTofohXlTh2v+W/8 LCCw== 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:dkim-signature:arc-authentication-results; bh=AVuoOBrWd5I+cmPMwNgVzscg7biqe3UL9dnk3eFVeBs=; b=tj7ZqAwGbxAcLn54K+duhXEL37HM6PZYbuwzpOM+jepnxOr2LfD71nI8v9EqJYPpwV TUlWzQC4u3oNCAgw7mB0hHUkXQxtn3RZkAb5WOOJxCQGui0SkoC9apqzmU+Hm6h6isgz stwdTxFyXEcJ4yHWmQd/uD1lZO5J5rEcKCRv18Ic4ird14bR7GGx8VbdIHc4Hlsi2ywh bK5uRR9cVYesb4pO38q+CxCXh442bbp/Bb+yY3nChiuIUmm8slqs+kVZGMUmhUGyZCxJ wSroB5VfiKkqw2V0npqwsCqZg9coDlI2N/y0GHR91nNEqmEkn0sRB2XXMP/KvgyfFvIg MmLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=YRhR0dMS; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z100-v6si2125760plh.77.2018.03.27.14.07.31; Tue, 27 Mar 2018 14:07:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=YRhR0dMS; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752173AbeC0VHa (ORCPT + 10 others); Tue, 27 Mar 2018 17:07:30 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:36861 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752370AbeC0VGs (ORCPT ); Tue, 27 Mar 2018 17:06:48 -0400 Received: by mail-pl0-f65.google.com with SMTP id 91-v6so192229pld.3 for ; Tue, 27 Mar 2018 14:06:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=eOmHcp9SJwCRgwr8PDwnIN0+lVjt/PS2/EiGn70wT5I=; b=YRhR0dMSpd/bJnACbbXymp6vY3v7XaiVkil0JgX1l6oKRYJ6t5gTY2oCVaoImvC+z/ nVEYr0IV0NlaIChjKp1DyUYUv5YL+ZB72tWELvPhYiM49OV5SmAsdyjkZa9IwP4ToNh2 bErHdqnU7PsYmJIrRC9FeA+/C1sYEVxQHWnnU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=eOmHcp9SJwCRgwr8PDwnIN0+lVjt/PS2/EiGn70wT5I=; b=HQkusZB35e2U929CV2KkzL6+seLGkirA4TbZYIURc8PHYBCvt6iUkjjSiPYVhJz0FQ naogka69+djbXmvX3k3CH473JpeVVeFJdKut8qlwHsinvlqjv15NWOAXQ5is3skwgi4l o2+umllpiKnsiMznJX+CkToEBaNwz4WhoXZMZkS7BMzfuJNr9bdW6c6KjNhybigy5Nyi Bsr9upWGhxMvAYO+sv3ZSpgba7LYGwXP4rwqiogdaY2yAs1Z3toqk3QsQ1sePGrflJ8M bBMw3WhYkTRS3eV6H0alSskp0b6JJpo63E8I4iPOQEEWxnJMx044i3YWpundn1KnxCl7 qeaw== X-Gm-Message-State: AElRT7GUGyQlij4E7Z9OhEoDwY1Xta2dIyTuigLYiA1v0o4O8NT6L6OI ARseSmpvkZHGE6QMlfxCdUvTpw== X-Received: by 2002:a17:902:b901:: with SMTP id bf1-v6mr900841plb.74.1522184808158; Tue, 27 Mar 2018 14:06:48 -0700 (PDT) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id b64sm4661907pfl.148.2018.03.27.14.06.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Mar 2018 14:06:47 -0700 (PDT) From: Bjorn Andersson To: Ohad Ben-Cohen , Bjorn Andersson Cc: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH 1/3] rpmsg: smd: Fix container_of macros Date: Tue, 27 Mar 2018 14:06:41 -0700 Message-Id: <20180327210643.3436-2-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180327210643.3436-1-bjorn.andersson@linaro.org> References: <20180327210643.3436-1-bjorn.andersson@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The container_of macros should not use the same name for the parameter as the member to use for lookup, as this will result in a compilation error unless the passed parameter has the same name as the member. Signed-off-by: Bjorn Andersson --- drivers/rpmsg/qcom_smd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.16.2 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/rpmsg/qcom_smd.c b/drivers/rpmsg/qcom_smd.c index dabd73bd5577..6bb9d21be6bc 100644 --- a/drivers/rpmsg/qcom_smd.c +++ b/drivers/rpmsg/qcom_smd.c @@ -167,9 +167,9 @@ struct qcom_smd_endpoint { struct qcom_smd_channel *qsch; }; -#define to_smd_device(_rpdev) container_of(_rpdev, struct qcom_smd_device, rpdev) +#define to_smd_device(r) container_of(r, struct qcom_smd_device, rpdev) #define to_smd_edge(d) container_of(d, struct qcom_smd_edge, dev) -#define to_smd_endpoint(ept) container_of(ept, struct qcom_smd_endpoint, ept) +#define to_smd_endpoint(e) container_of(e, struct qcom_smd_endpoint, ept) /** * struct qcom_smd_channel - smd channel struct