From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from mail-io1-f46.google.com (mail-io1-f46.google.com [209.85.166.46]) by gnuweeb.org (Postfix) with ESMTPS id AF83E7E254 for ; Tue, 26 Jul 2022 16:48:19 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=kernel-dk.20210112.gappssmtp.com header.i=@kernel-dk.20210112.gappssmtp.com header.a=rsa-sha256 header.s=20210112 header.b=s5t1FMow; dkim-atps=neutral Received: by mail-io1-f46.google.com with SMTP id e69so11670970iof.5 for ; Tue, 26 Jul 2022 09:48:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=from:to:cc:in-reply-to:references:subject:message-id:date :mime-version:content-transfer-encoding; bh=l3tkWv+HCtOtPBX1NCK5OjcSwghIgcQ6DASSm3bVFnk=; b=s5t1FMowm/yLkHem1mdrAIUm/1/JlugGQPP3yEQWyU0NVPWsKjLg4CLYOF6YbePg1b KKyzaJ8geFcadgvQfRv6Z+LXDdw0bLbNU+RA3PZoY91gTVUQ1FW8YFX5tKsDX5P/J3Xo 2TKftYoOAGS8njd2Hwj0B6OSoWTQ4zV+3ttfJKpaOA2xYdl4w2ZXaxZfdPBX3O0lqhGk 1+xxuPlHd0E1Xu5f2P0Gej/514NB/QO6V262co5kTYBlLLDWEZ30xXHUVPx4HJOTYFPF zogyWrA6mollNIRcJstOtRyg0hYdY9JLsScuksYyKok1qnqlkarCLw09mxnGNKaovSFh 3FMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:in-reply-to:references:subject :message-id:date:mime-version:content-transfer-encoding; bh=l3tkWv+HCtOtPBX1NCK5OjcSwghIgcQ6DASSm3bVFnk=; b=P86DUK3EuZY3pER75p3cklZ2zTN85iPAoMPK3DPkO3FhUJoYZjd8+f+j7fdw1XWxIe cF6zWWJa51cperzS/43qN/dqsmJ586WoMpR4AJtUvFULuLNnSz+J2pCIOWuEH+qxnith UivxN4+IJmwZLs4gxDh8GtlfGwwQDJ+GIIoUe3ae/gq6bQYHotSZty60RSoahNE26iOn vNRXz/DSvvQ05a01WR25L2Kz5hip+GUO4nHWgbQ1e3CJ2q1wnp4c1zBx8UYrou/TB+f3 hH/0GtZXy4XnbyTGNfbtqUJ12+ci7fxGvlgFlHzE2d+xF2nsAbHleHJp/Hoe4EJbMKBB D/3w== X-Gm-Message-State: AJIora/EYGDxu8lfHpe9JlXYrOVZACiNafQy26/NQzQk8U2mLKC87hny ip6VgLlFg2EcPHbZfT/wOHlCzg== X-Google-Smtp-Source: AGRyM1vNqTk65rBuuUwru5bRlxOLMARVKu7yDA++ULNlOFL69EPst/QzGRdWTtjElnBgcIksY3Pkkg== X-Received: by 2002:a05:6602:2e8d:b0:67c:c24c:fec4 with SMTP id m13-20020a0566022e8d00b0067cc24cfec4mr1025103iow.134.1658854038577; Tue, 26 Jul 2022 09:47:18 -0700 (PDT) Received: from [127.0.1.1] ([207.135.234.126]) by smtp.gmail.com with ESMTPSA id v9-20020a92ab09000000b002dab4765893sm5715319ilh.66.2022.07.26.09.47.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Jul 2022 09:47:17 -0700 (PDT) From: Jens Axboe To: ammarfaizi2@gnuweeb.org Cc: asml.silence@gmail.com, gwml@gnuweeb.org, dylany@fb.com, fernandafmr12@gnuweeb.org, kernel-team@fb.com, io-uring@vger.kernel.org In-Reply-To: <20220726164310.266060-1-ammar.faizi@intel.com> References: <20220726164310.266060-1-ammar.faizi@intel.com> Subject: Re: [PATCH liburing] examples/io_uring-udp: Use a proper cast for `(struct sockaddr *)` argument Message-Id: <165885403738.1519500.7001976896562665856.b4-ty@kernel.dk> Date: Tue, 26 Jul 2022 10:47:17 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit List-Id: On Tue, 26 Jul 2022 23:44:59 +0700, Ammar Faizi wrote: > From: Ammar Faizi > > Sometimes the compiler accepts `(struct sockaddr_in *)` and > `(struct sockaddr_in6 *)` to be passed in to `(struct sockaddr *)` > without a cast. But not all compilers agree with that. Building with > clang 13.0.1 yields the following errors: > > [...] Applied, thanks! [1/1] examples/io_uring-udp: Use a proper cast for `(struct sockaddr *)` argument commit: 1842b2a74f4e914cb094019d0f339baeffa3023b Best regards, -- Jens Axboe