From patchwork Mon Jun 18 12:33:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 10471241 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 52540601D7 for ; Mon, 18 Jun 2018 12:34:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 43BAD28964 for ; Mon, 18 Jun 2018 12:34:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 37E6A289BC; Mon, 18 Jun 2018 12:34:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DF8E428969 for ; Mon, 18 Jun 2018 12:34:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754565AbeFRMep (ORCPT ); Mon, 18 Jun 2018 08:34:45 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:35354 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754147AbeFRMeG (ORCPT ); Mon, 18 Jun 2018 08:34:06 -0400 Received: by mail-wr0-f195.google.com with SMTP id l10-v6so16671000wrn.2 for ; Mon, 18 Jun 2018 05:34:05 -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=ouib5iDvZtx/AeucgNZuIHtV+L4Pi3sGZRLvwgPVETs=; b=L4XJSYp1lzOzdR2UEtHKLGprpu+j8aER+Pr1zcMqHKumFDQ/F+1PidaxzUsu76wSoA 203HKhXAq6Mll1s/sZdQAZ8/Vddsn0iLnk4Ese+kd9NtIvt88E7/efCpwHmmRyx4tFsJ 9GeEywrUcw21sT8ks8j8FOYtoQsTQPmeABIYs= 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=ouib5iDvZtx/AeucgNZuIHtV+L4Pi3sGZRLvwgPVETs=; b=LTQBYHZ4SzUy+Kx7yMHcFGemwKavu8cKCkU2Na2llMnsXAxp0FPTYOFILercOkbxzM brCxYRq7Sticr7+qZOaleHEeDuURQAKTmEuZLFlArnCy0HMymsuIVrY2ebwACsFhyOmw 1hswNoSZddOJfC6VA2IfyCjUL578NK0fC8kHBSCxaen69nPkA9PLChbqSbsF6t9e7tku z9+3uDkua340Javfuv9lVj5pcIT7IPUvOCxhbXzIEzmNAX0lOkPbA7hnDI7LhZxBAKky D4mAzBl6XorONb1uFOiXlgASDypyBRUd0twr+lsIv6ArdU/M1iRMMpUGdaS/Tp+5709F SGBg== X-Gm-Message-State: APt69E0peb4r67ArYSz2U6EmefBi9yqLrnWjVm+AqpGhrSxg0NCICnkw XYDGplzOr9FGL1pSlNn/WN6VLA== X-Google-Smtp-Source: ADUXVKIZhakAVetzCFh9So6TPihvfwv5NPpfhueG9Br3PHthM95ycc6eyQM/Za7EXisao0wUj3RKCg== X-Received: by 2002:adf:8837:: with SMTP id d52-v6mr9933110wrd.41.1529325245266; Mon, 18 Jun 2018 05:34:05 -0700 (PDT) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id r10-v6sm24291318wrm.66.2018.06.18.05.34.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Jun 2018 05:34:04 -0700 (PDT) From: Srinivas Kandagatla To: ohad@wizery.com, bjorn.andersson@linaro.org Cc: linux-remoteproc@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH 1/3] rpmsg: glink: correctly annotate intent members Date: Mon, 18 Jun 2018 13:33:37 +0100 Message-Id: <20180618123339.24115-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180618123339.24115-1-srinivas.kandagatla@linaro.org> References: <20180618123339.24115-1-srinivas.kandagatla@linaro.org> Sender: linux-remoteproc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP As intent structure members are not correctly annotated, leading to below warnings qcom_glink_native.c:614:16: warning: incorrect type in assignment (different base types) qcom_glink_native.c:614:16: expected unsigned short [unsigned] [usertype] id qcom_glink_native.c:614:16: got restricted __le16 [usertype] qcom_glink_native.c:615:18: warning: incorrect type in assignment (different base types) qcom_glink_native.c:615:18: expected unsigned short [unsigned] [usertype] lcid qcom_glink_native.c:615:18: got restricted __le16 [usertype] qcom_glink_native.c:616:19: warning: incorrect type in assignment (different base types) qcom_glink_native.c:616:19: expected unsigned int [unsigned] [usertype] count qcom_glink_native.c:616:19: got restricted __le32 [usertype] qcom_glink_native.c:617:18: warning: incorrect type in assignment (different base types) qcom_glink_native.c:617:18: expected unsigned int [unsigned] [usertype] size qcom_glink_native.c:617:18: got restricted __le32 [usertype] qcom_glink_native.c:618:18: warning: incorrect type in assignment (different base types) qcom_glink_native.c:618:18: expected unsigned int [unsigned] [usertype] liid qcom_glink_native.c:618:18: got restricted __le32 [usertype] Fix this by correctly annotating them. Signed-off-by: Srinivas Kandagatla --- drivers/rpmsg/qcom_glink_native.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/rpmsg/qcom_glink_native.c b/drivers/rpmsg/qcom_glink_native.c index f505f58b797d..e4eb5a1f417a 100644 --- a/drivers/rpmsg/qcom_glink_native.c +++ b/drivers/rpmsg/qcom_glink_native.c @@ -603,11 +603,11 @@ static int qcom_glink_advertise_intent(struct qcom_glink *glink, struct glink_core_rx_intent *intent) { struct command { - u16 id; - u16 lcid; - u32 count; - u32 size; - u32 liid; + __le16 id; + __le16 lcid; + __le32 count; + __le32 size; + __le32 liid; } __packed; struct command cmd;