Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2075887rwn; Fri, 16 Sep 2022 05:27:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6teR407WufLlhBLxfi2h1jxMA0zrR6R8K0HSLoGvm2UMySkAXpeEVg4sLp2hkvMGxgAFsw X-Received: by 2002:a17:907:2cd2:b0:770:8363:1f38 with SMTP id hg18-20020a1709072cd200b0077083631f38mr3441856ejc.381.1663331278385; Fri, 16 Sep 2022 05:27:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663331278; cv=none; d=google.com; s=arc-20160816; b=I24ybaZVF0Ru3Vh59zee/tjd7dJ3Tpo8AQo9jLQU1ocBcsN47nBioD5wbVriH8xVfX YWITHKyUqptnqgSemmUKHP/e0JbgsA4w+sHzB9BBnSFF4jvLNFr57cuA/TfNxEt96wwt 6ebS5RV39BYmRsZejVBIAU+VlZ9xRphkUMuyb64RE75QhYB0/vwIJwPhdCkmY3dtVHlT mKJVnUaehZp8GGkbYAeLWRUuGn07u3FzZcK2Hxt4UgXPx3trLVdNB1vOj20YQofO3yrm D44S9zn62YRk+LafiEFttPvf/gmnvKHmlvuCOKVsktNznnPE1ldXdrYMJdA7WgayVjQ9 y3nw== 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=faurfbZAdufbwG0Pq7O5pFThfS/Hbeg3b/K0Ts9wUP4=; b=kNZgz+KIniqhp/3NOKgFTnnW71b4ojC9z6ebfVadZevZCDp4yQBMRwgNQ63vT624jy 0Es/4Im8FiMwebriIerzXBScWDzwZr80H7Sehx/QQrhL7DxFr3W/ndVaYy42ekrsaIE1 93eoMxjxHtgjXb2EzizMl/F1l0E/Rv/BVZd1Y3OP+GIiW5yllHrFR1hVmxB395mRtI/B cDovvpQQaTWWW5kIen46vr5NFqK8ili7NleMn/QUsRvwjNmzoDSvdxP5uMOgKvMQ0qQV 7rTXmjt49ohEN7LKrG/quDJ3/++IyoTe2khOxwvLCmk7kJHapCw/16l97YpcFX/u92Pj LlKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Yu6U7+5F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xa8-20020a170906fd8800b007708400bee5si19260552ejb.1003.2022.09.16.05.27.32; Fri, 16 Sep 2022 05:27:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Yu6U7+5F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S229581AbiIPMW3 (ORCPT + 99 others); Fri, 16 Sep 2022 08:22:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231388AbiIPMVs (ORCPT ); Fri, 16 Sep 2022 08:21:48 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E97DB0B04 for ; Fri, 16 Sep 2022 05:21:22 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id l8so10614403wmi.2 for ; Fri, 16 Sep 2022 05:21:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=faurfbZAdufbwG0Pq7O5pFThfS/Hbeg3b/K0Ts9wUP4=; b=Yu6U7+5FEvjJr//foJmjT1es1X7vn8Uqz0Yx1FabUFRM4If9vTWuDpeGpFxEBk7ThK MEFLNRMuadX0T636jpZ57y5A7jSenX5nosWO5s/mbRRxAo3XffCzWnbVL/KmxMS+hnvq F8k47OnRaBfDP9CZvijlWWASPVSI3oEFVTgFq4EVFEADaG5RhQMGcm8XmZZEBbFf559H SwD3fpfagHkgBFPtQWEHBnncJkxznSSnwyLm4X+v9+aTTnrACuVab1dJ057ZkGoWfWFu fngf5cTXcd/FncreqMYJSjFC4HrfDcvoAA1J+nasW+LGk4bOZEkvTSVhjeLyjIwvfT/R oU8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=faurfbZAdufbwG0Pq7O5pFThfS/Hbeg3b/K0Ts9wUP4=; b=dP7GS/f8vwfk27UFUJT9MdXzxYDBfOrCMq6mPejiBr2oQMOaHs2oXkgTVYtIeQ1dBB P30GqX3MvbrYaDU5olICtupqb1K78dXMS5IrY6YvLTjEM34K2i29sm7Jodr6xmsVaGpq oB9EceA8pjhme6foKoPcQYFNMrZodrqns3DQw5mIFZFQocFuytXo2RVnsUQC4hBg1+mw V+7J1l4y7C6yQ1vbmM1wDx4CO3+vo1eUT+ZqCcUXpaw0pud/amf/L8JdRwoI94YcWjJd QJ7RUzoYWa0Bt2dl4rZGf9vqrBEh5jX5oMb05GeIBD4NlYISldt02uhWEP8PZ5bGKMaF FCZg== X-Gm-Message-State: ACgBeo0psM16+q6jhMpdkn/s16g05YD9BZ40Xr/1Uk8uWTPrh2kLxOJy fu/5n45K8kaAtFGMAXIa1FV6Rw== X-Received: by 2002:a05:600c:a47:b0:3a6:5848:4bde with SMTP id c7-20020a05600c0a4700b003a658484bdemr9872798wmq.189.1663330881325; Fri, 16 Sep 2022 05:21:21 -0700 (PDT) Received: from srini-hackbase.lan (cpc90716-aztw32-2-0-cust825.18-1.cable.virginm.net. [86.26.103.58]) by smtp.gmail.com with ESMTPSA id u11-20020adfdb8b000000b0022add371ed2sm1540015wri.55.2022.09.16.05.21.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Sep 2022 05:21:20 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , kernel test robot , Srinivas Kandagatla Subject: [PATCH 13/13] nvmem: u-boot-env: fix crc32 casting type Date: Fri, 16 Sep 2022 13:21:00 +0100 Message-Id: <20220916122100.170016-14-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220916122100.170016-1-srinivas.kandagatla@linaro.org> References: <20220916122100.170016-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Rafał Miłecki This fixes: drivers/nvmem/u-boot-env.c:141:17: sparse: sparse: cast to restricted __le32 Reported-by: kernel test robot Fixes: f955dc1445069 ("nvmem: add driver handling U-Boot environment variables") Signed-off-by: Rafał Miłecki Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/u-boot-env.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvmem/u-boot-env.c b/drivers/nvmem/u-boot-env.c index d17a164ae705..8e72d1bbd649 100644 --- a/drivers/nvmem/u-boot-env.c +++ b/drivers/nvmem/u-boot-env.c @@ -139,7 +139,7 @@ static int u_boot_env_parse(struct u_boot_env *priv) data_offset = offsetof(struct u_boot_env_image_redundant, data); break; } - crc32 = le32_to_cpu(*(uint32_t *)(buf + crc32_offset)); + crc32 = le32_to_cpu(*(__le32 *)(buf + crc32_offset)); crc32_data_len = priv->mtd->size - crc32_data_offset; data_len = priv->mtd->size - data_offset; -- 2.25.1