Message ID | 20210201232609.3524451-3-elder@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a17:906:24d5:0:0:0:0 with SMTP id f21csp4333823ejb; Mon, 1 Feb 2021 15:28:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJzQKZmv7wb+si08/buBqExm1GmzJXp8GaGaYGYrGSWtybeexQcj0guCdNtTJ6qnyojznoKX X-Received: by 2002:a17:906:a669:: with SMTP id en9mr20275928ejb.353.1612222108069; Mon, 01 Feb 2021 15:28:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612222108; cv=none; d=google.com; s=arc-20160816; b=RRkevyklZMe8Bbz1Qc62TvuMfGMTjQwEFGMtHkzEWDPUDZjyQpCk+4c8Otfy/IdN/p idIK11ZyAuIkqg84DFp/Xhx1WDtyNBKNK/uS5BA80NS4IH6l+eGwHbgN/XnPxzvUbewq yw/NvKYD3+6qtA34bv8AtUp/n1OxdJx5HvwFrmROfAulYBFVMQ77hz43PBfW4avLC+WW pgoQUqFHqpn2oaTYOXw77zjCVxp/GtPcdscMq+mmzR/Z29XfGkNnYuCB1UKUbMhx6OYS trn/QosKnD15WJ6GAE/4vfnu1a+/HbnrE3DWuO8Q+dWQBJk+ykv1+ezjlLR7CrkPK7wl 4Rdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=TZynBD22K6qpzM6Yh76qjCwf3pTBe5alSzNft0NWoIQ=; b=OkjJAFM/MJfXz3mqcGfTGhU3drqVeFsM+VnzcwOXLXheXlg83WEmM9YoPNsqWtq98w D+qMY9DYXQIcxAAOMjTYXzSZPCGEz5JpO0IW2v+AtbWf0P0XrD0PCKEcumuQtovnwg0K qkSb7mlZcVoLycRmWQZ7s8EEHysIxZ5W8EOHYq42j10cYuOI6CII4WQ5FZKrRtvFptVM eaNgqzxtO7TGEnezSojwKFQgFCPXJt/lYgjwdW49sI65OFnSL6C59qj4XE3RiPQ8A4s6 YUu8b9NLh+BJxUq6RFrqNuLm6orY9wnAjADwZwSTNS+WGAmovrG2DdiafKwCI+9pww57 8i6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NIHr2Aq+; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <netdev-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q8si230299edg.20.2021.02.01.15.28.27; Mon, 01 Feb 2021 15:28:28 -0800 (PST) Received-SPF: pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NIHr2Aq+; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231321AbhBAX1N (ORCPT <rfc822;patch@linaro.org> + 7 others); Mon, 1 Feb 2021 18:27:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231273AbhBAX04 (ORCPT <rfc822;netdev@vger.kernel.org>); Mon, 1 Feb 2021 18:26:56 -0500 Received: from mail-il1-x12d.google.com (mail-il1-x12d.google.com [IPv6:2607:f8b0:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1257C0613ED for <netdev@vger.kernel.org>; Mon, 1 Feb 2021 15:26:15 -0800 (PST) Received: by mail-il1-x12d.google.com with SMTP id m20so9835949ilj.13 for <netdev@vger.kernel.org>; Mon, 01 Feb 2021 15:26:15 -0800 (PST) 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 :mime-version:content-transfer-encoding; bh=TZynBD22K6qpzM6Yh76qjCwf3pTBe5alSzNft0NWoIQ=; b=NIHr2Aq+gAUuQ+bMAHQM1WU4q2DPkL+sVGYZEN1OnIFVyZkBbEKCpftjUDCAqITBsf RP8hEazoRxKh7FvP1o8SlpNPTxBy6gLs6679bosgwNgpv3i8TTC3pooIAHKE9oKojkum cFBXvH1eCxC0DiPkT1VIanRe7sM5MHjxq4uDCF7NyZ2TSCxj2GM8yQ0txihq6/KXkJVx vxo3QpeG4kZdtFQwVEov7QMseUB2hOvrKJx+VPTTkee3n4r617mJMRxXTjRuXciwGb/P MGjISQq3R+SLUKimd2S7k71O0pQ7YLvrNC8DfxltWasAXrpVq0Xc/T2/OzlJLmBywZyM YdXQ== 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:mime-version:content-transfer-encoding; bh=TZynBD22K6qpzM6Yh76qjCwf3pTBe5alSzNft0NWoIQ=; b=hiUlagVpiyMcvLMNv6dlADYHmz7yIjKDneNf0ymAcS9isY4CRbW6gdtyo2GjFOVefY dLJZIa0fI1LRNUUdCbI07iQ/rafARquKjdUDRZ1UmUOChyGg3VVQg2HzXAx1gcNUHqog 00iaK5wh4NC8XTysbyPrbNBYYHqK8Z+0650MayfRigfrRbohIQ30020N+4b6+esXCmlG Ju9tZbmqScVkMDVj0NEP0tYEFdcY+6hOttFVL/PD7El6a5E0BNyU1QfMpmRhv6Z9ezJ7 ci/UAZimGdGk+vJ39+Iy5llqYjOyoFQcyMMiysKttdjaOhVI0S3mhTCk+mIALhEXtvdR Giyg== X-Gm-Message-State: AOAM533aO9Qc3az56MSJm7UliJxi1yNTaQu3IGu/EurhSo9FLvsVypiL Iopz3+/YFHFcA7+5VdtpB5znkg== X-Received: by 2002:a05:6e02:1a89:: with SMTP id k9mr13620271ilv.68.1612221975432; Mon, 01 Feb 2021 15:26:15 -0800 (PST) Received: from presto.localdomain (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.gmail.com with ESMTPSA id v18sm10359588ila.29.2021.02.01.15.26.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Feb 2021 15:26:14 -0800 (PST) From: Alex Elder <elder@linaro.org> To: davem@davemloft.net, kuba@kernel.org Cc: elder@kernel.org, evgreen@chromium.org, bjorn.andersson@linaro.org, cpratapa@codeaurora.org, subashab@codeaurora.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH net 2/4] net: ipa: be explicit about endianness Date: Mon, 1 Feb 2021 17:26:07 -0600 Message-Id: <20210201232609.3524451-3-elder@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210201232609.3524451-1-elder@linaro.org> References: <20210201232609.3524451-1-elder@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <netdev.vger.kernel.org> X-Mailing-List: netdev@vger.kernel.org |
Series | net: ipa: a few bug fixes | expand |
diff --git a/drivers/net/ipa/ipa_endpoint.c b/drivers/net/ipa/ipa_endpoint.c index 9f4be9812a1f3..448d89da1e456 100644 --- a/drivers/net/ipa/ipa_endpoint.c +++ b/drivers/net/ipa/ipa_endpoint.c @@ -588,7 +588,7 @@ static void ipa_endpoint_init_hdr_metadata_mask(struct ipa_endpoint *endpoint) /* Note that HDR_ENDIANNESS indicates big endian header fields */ if (endpoint->data->qmap) - val = cpu_to_be32(IPA_ENDPOINT_QMAP_METADATA_MASK); + val = (__force u32)cpu_to_be32(IPA_ENDPOINT_QMAP_METADATA_MASK); iowrite32(val, endpoint->ipa->reg_virt + offset); }
Sparse warns that the assignment of the metadata mask for a QMAP endpoint in ipa_endpoint_init_hdr_metadata_mask() is a bad assignment. We know we want the mask value to be big endian, even though the value we write is in host byte order. Use a __force tag to indicate we really mean it. Signed-off-by: Alex Elder <elder@linaro.org> --- drivers/net/ipa/ipa_endpoint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.27.0