Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp474299rdb; Tue, 5 Dec 2023 10:17:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IHah9kGXzsGBxOgfe98s455zGNrQE+yLK7Pp4aCYKtZtIWjGAzPABwUb74tp7fUwAryjCy0 X-Received: by 2002:a05:6a00:8d96:b0:6be:2e07:5c5c with SMTP id im22-20020a056a008d9600b006be2e075c5cmr1514806pfb.20.1701800233253; Tue, 05 Dec 2023 10:17:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701800233; cv=none; d=google.com; s=arc-20160816; b=lu2fgWwFCa4FsBaDtJuDiQzDUSkjWypSI5gBsClu6NaRfAyss/DbcnJSgrLobkTeFD CREjPaurq4bctF9ENLNKbNWwGA8zv3wOkRVMYLdDmbKut29N99xQ857cAfyRVDUEi4h9 NK8ifWgFbuvsuY7sU8k5P8AbCeL1U3oTdp5DFucN0aGRhjSXu77Y0omS6pQBZfX2Gtgg h7djjikzycSYes6I4UZFKsbPou1/uBUSYWHZLEN1ZJ6i2UUnOezjKVMeNFxKq3ff6dUV LVPAkAqJNt5dwV64b3PsMWpWlpjinPUHI/3Nefq1W81fG1qd3fyFVMb6QXmwsXX9gZQb fLQA== 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 :message-id:date:subject:cc:to:from; bh=Ois4DO7VI7g2XZNx3BXGsyIH4yajZvXLU5rhvd+oopU=; fh=tzrH5YxCsrVYbxIKHlnNQdYE+Hi8Af4F5w/IweCINpQ=; b=yXnM7Y7hmnUk30LzmTelK5U2Umvb4Myr4LYEhQzyz0uRwL5qV/IF5GT1++Wrvderws jUzqaQi0Rqq4L/VmiaSMLjnghwzd/UFlQGmn7wDi2b1LjTTIsNf+ev2zgjBE0Pn8NDf9 zx5fgzNfBzkmd0AqaQ0L9+O8X9Bp9m66zVZPjB0R2lwDG2afKWgH177EedFwRrKUpZz9 zY4y4k4XUfDuYPxFWYJ+Dc124vzAJItZK97K3igkPXQy4CEQ2GANY7rAB0n2e6cPl0Xp tH/FbNaUk1OfdOVr+ll8ekoFxsVKnjdukcZIMWN7wrbkUJQP8ScaZAEN9ocx6nYeWPpC rZyw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=csgroup.eu Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id y6-20020a62f246000000b006ce7ff29435si116135pfl.174.2023.12.05.10.17.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 10:17:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=csgroup.eu Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id AE3BB8185967; Tue, 5 Dec 2023 10:17:10 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345893AbjLESQy (ORCPT + 99 others); Tue, 5 Dec 2023 13:16:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235102AbjLESQw (ORCPT ); Tue, 5 Dec 2023 13:16:52 -0500 Received: from pegase1.c-s.fr (pegase1.c-s.fr [93.17.236.30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BEAD122 for ; Tue, 5 Dec 2023 10:16:57 -0800 (PST) Received: from localhost (mailhub3.si.c-s.fr [192.168.12.233]) by localhost (Postfix) with ESMTP id 4Sl7zC5K8Fz9v73; Tue, 5 Dec 2023 19:16:55 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FUKY1q7eCGHR; Tue, 5 Dec 2023 19:16:55 +0100 (CET) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 4Sl7zC4X6Gz9v5V; Tue, 5 Dec 2023 19:16:55 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 96C7E8B773; Tue, 5 Dec 2023 19:16:55 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id f2il9A4FpS-m; Tue, 5 Dec 2023 19:16:55 +0100 (CET) Received: from PO20335.idsi0.si.c-s.fr (unknown [192.168.232.2]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 4B9038B763; Tue, 5 Dec 2023 19:16:55 +0100 (CET) From: Christophe Leroy To: Jochen Friedrich , Andi Shyti Cc: Christophe Leroy , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-i2c@vger.kernel.org, kernel test robot Subject: [PATCH] i2c: cpm: Fix data type Date: Tue, 5 Dec 2023 19:16:53 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1701800212; l=868; i=christophe.leroy@csgroup.eu; s=20211009; h=from:subject:message-id; bh=WhGGXCesc3p8fX5FLvMo9W+DZljJMoaQOdx79BxmRAk=; b=CO4bglnbxMhv39ca95NrPFU+DicQ93LONILMMJSk1kQxgbYmqOh6QAP0Mm3kXXNLe4Dfpp2mC D9aDnUklKRdAINE9l6YcvMvR+rg0voOvTrYfQ0hpNGXW1TLJYn4MOo7 X-Developer-Key: i=christophe.leroy@csgroup.eu; a=ed25519; pk=HIzTzUj91asvincQGOFx6+ZF5AoUuP9GdOtQChs7Mm0= Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 05 Dec 2023 10:17:10 -0800 (PST) sparse reports an error on some data that gets converted from be32. That's because that data is typed u32 instead of __be32. Fix it. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202312042210.QL4DA8Av-lkp@intel.com/ Signed-off-by: Christophe Leroy --- drivers/i2c/busses/i2c-cpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-cpm.c b/drivers/i2c/busses/i2c-cpm.c index 9a664abf734d..077be367b382 100644 --- a/drivers/i2c/busses/i2c-cpm.c +++ b/drivers/i2c/busses/i2c-cpm.c @@ -634,7 +634,7 @@ static int cpm_i2c_probe(struct platform_device *ofdev) { int result, len; struct cpm_i2c *cpm; - const u32 *data; + const __be32 *data; cpm = kzalloc(sizeof(struct cpm_i2c), GFP_KERNEL); if (!cpm) -- 2.41.0