Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1852075rdb; Thu, 7 Dec 2023 10:20:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IGD7l3hR87iLMdyzy4HwN2qnDZwr+dhKBywXqHH9BgQPPPtveUWyloYOwt8IKCQRv+RVyJj X-Received: by 2002:a05:6e02:6c1:b0:35d:6536:f6d7 with SMTP id p1-20020a056e0206c100b0035d6536f6d7mr3410445ils.14.1701973251267; Thu, 07 Dec 2023 10:20:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701973251; cv=none; d=google.com; s=arc-20160816; b=HF8nWh+NmTdxlu335xr/klIbAUmbBwkI7M3xIXy1V3o6f0UDK4JBtI1SU8okyFs08o Wz5l9zspY64xzfuUBxYzxIC6t0bbDvQvGgtT4qtm7g0K+gpjI2bWOSvuKoBTFA0+yw9P d0GVkC5tEXML3kVMmLuYbUxBwVw9eqIj/Y5v/8Z1/4MFg6EesM+/GMEkZNe95HV0JpFX Mc6QavkKRVBwpmKIZ7a18epSOtNujUrL6GfLdXHMkuLqxG4T9MZRJQ7b2acU/xIqrenw GbU/I3DMd9C5lyUBsSWHbb8dzom0SjVlFfZj7kCqqr2MdfE88emYNBY26FPU5oS2IErZ jC8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=zq3pO7sJ3LXaiUo4DRvUxzfZJqEsNhzdTvahJ96E0Ow=; fh=6K8ACqzC3m8nPMNVqLUd90FlKBJuBom24Cp8u5lsvEE=; b=j8E1eeXYlVjJRHooQLWcuVFworu9PlfdGGrF2RLRA18ZnsLwBysPzTok4eX7Gb3zFG Os7ptq+B45Crt0xzr5vqrgSosSK0/VHXkKYY6Zp0eUx5sWccj3GSxOI64j/SXEDO3bVW QqdugjBUOFT6oep6Oecy3XTY0Qh0p9fIc+fKVo4I3kfC/fEGplGQKpE23tOuyxSjXgQD tWI0lOCDVSOZ0SYQ5cSPYY8PtwUVN2oHHhtp+UdD4/vcbrwX4VhhVV7APfgfXM0R/aSE nsSdxjq5CdD/UddRVcQJgvQDrz4C4WeEGY2cwvetdJgGI+7DU0L6jsexrXlstbKc57Gd ACxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WolHTfrn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id n10-20020a634d4a000000b005c1b2d279f3si85878pgl.342.2023.12.07.10.20.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 10:20:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WolHTfrn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id E591780209CC; Thu, 7 Dec 2023 10:20:37 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443688AbjLGSUX (ORCPT + 99 others); Thu, 7 Dec 2023 13:20:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1443634AbjLGSUW (ORCPT ); Thu, 7 Dec 2023 13:20:22 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53BCD1704 for ; Thu, 7 Dec 2023 10:20:29 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPS id E35F0C433C9; Thu, 7 Dec 2023 18:20:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701973229; bh=0KcANSyv1sr9UhGc/vinHfJbi1QB9ETNOHuMpKsQkMk=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=WolHTfrnuD59oo7UIECAYiJGuyiZL+9nfNxgrnrVMoUaQt1DvlLzpFIeeXZmOXihU 7Ins/SIsy8rBda6rEfMi5kztLjQEtxOlxLUA/6qDs42rW2CPVNSs480pWBmyWbMBCC TwGraVPrfqxWyWaoKTyVKw9el7oY/GnONTQ/Y9PAkNF0kA0a2zQKiVPNq4Jr/drr9W GeBAPNWNmf2TdBKPpH0tp7sE+9D+LEXamJuNPb5bDe7+9hMVVPW0fIzDO408bR1ctJ 2Qu43EG3IZdqdfu5YlrDakPNMfAQb4vvKQEcPHXXr1IsP4USVTFd/vbxeGNeQCsK2/ r6VxGwAoK6WUg== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id CC0C0C4314C; Thu, 7 Dec 2023 18:20:28 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net] vsock/virtio: fix "comparison of distinct pointer types lacks a cast" warning From: patchwork-bot+netdevbpf@kernel.org Message-Id: <170197322883.20147.5857598481880040072.git-patchwork-notify@kernel.org> Date: Thu, 07 Dec 2023 18:20:28 +0000 References: <20231206164143.281107-1-sgarzare@redhat.com> In-Reply-To: <20231206164143.281107-1-sgarzare@redhat.com> To: Stefano Garzarella Cc: netdev@vger.kernel.org, kuba@kernel.org, davem@davemloft.net, virtualization@lists.linux.dev, mst@redhat.com, avkrasnov@salutedevices.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, stefanha@redhat.com, edumazet@google.com, pabeni@redhat.com X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Thu, 07 Dec 2023 10:20:38 -0800 (PST) Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski : On Wed, 6 Dec 2023 17:41:43 +0100 you wrote: > After backporting commit 581512a6dc93 ("vsock/virtio: MSG_ZEROCOPY > flag support") in CentOS Stream 9, CI reported the following error: > > In file included from ./include/linux/kernel.h:17, > from ./include/linux/list.h:9, > from ./include/linux/preempt.h:11, > from ./include/linux/spinlock.h:56, > from net/vmw_vsock/virtio_transport_common.c:9: > net/vmw_vsock/virtio_transport_common.c: In function ‘virtio_transport_can_zcopy‘: > ./include/linux/minmax.h:20:35: error: comparison of distinct pointer types lacks a cast [-Werror] > 20 | (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) > | ^~ > ./include/linux/minmax.h:26:18: note: in expansion of macro ‘__typecheck‘ > 26 | (__typecheck(x, y) && __no_side_effects(x, y)) > | ^~~~~~~~~~~ > ./include/linux/minmax.h:36:31: note: in expansion of macro ‘__safe_cmp‘ > 36 | __builtin_choose_expr(__safe_cmp(x, y), \ > | ^~~~~~~~~~ > ./include/linux/minmax.h:45:25: note: in expansion of macro ‘__careful_cmp‘ > 45 | #define min(x, y) __careful_cmp(x, y, <) > | ^~~~~~~~~~~~~ > net/vmw_vsock/virtio_transport_common.c:63:37: note: in expansion of macro ‘min‘ > 63 | int pages_to_send = min(pages_in_iov, MAX_SKB_FRAGS); > > [...] Here is the summary with links: - [net] vsock/virtio: fix "comparison of distinct pointer types lacks a cast" warning https://git.kernel.org/netdev/net/c/b0a930e8d90c You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html