From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2C13FC04A68 for ; Wed, 27 Jul 2022 10:11:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230230AbiG0KLX (ORCPT ); Wed, 27 Jul 2022 06:11:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232004AbiG0KLP (ORCPT ); Wed, 27 Jul 2022 06:11:15 -0400 Received: from gnuweeb.org (gnuweeb.org [51.81.211.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4655643323 for ; Wed, 27 Jul 2022 03:11:14 -0700 (PDT) Received: from [192.168.88.254] (unknown [125.160.106.238]) by gnuweeb.org (Postfix) with ESMTPSA id A78FA80108; Wed, 27 Jul 2022 10:11:11 +0000 (UTC) X-GW-Data: lPqxHiMPbJw1wb7CM9QUryAGzr0yq5atzVDdxTR0iA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1658916674; bh=D88NiykOLr8ePsFqbq3xq7Eknx0IQi7ilMjyCoOFu1g=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=aGrmMsulo4R3OBQvKu1gNBvYWK9rBUmpiEFjDgXNB5Y9IViVVfj0AjQm2P5nbrmxk MFdVDYvJukXOzk0UwXENH6uZ8PcdKUNZEWYOtD8/90QWmARb0hSEUmeTMM09qOQG9e RsQC4OUvJuQfYGRii2Tax0sslAVrqlHe5ZgvtpqtmLqgzcHLnDavfe+KXtZZlSJgvX u9rYj3JgBzf9iwpMBO+Smr9lCPH8iO1OFKKPFj2ssMe2L3cB4LF4s5Te5hKHGxAcRF 4iWKSOAyEy9uDg0EfrArSTL70v+1OdHa9vta6INLgP+567hYIEo12B7LBGOReMZ5me VVyBe7kVCYclg== Message-ID: <9f3afabb-9c6b-4da4-c235-d02cd2142162@gnuweeb.org> Date: Wed, 27 Jul 2022 17:11:08 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH liburing 0/5] multishot recvmsg docs and example Content-Language: en-US To: Dylan Yudaken Cc: Jens Axboe , Pavel Begunkov , Facebook Kernel Team , io-uring Mailing List , Ammar Faizi References: <20220726121502.1958288-1-dylany@fb.com> <165885259629.1516215.11114286078111026121.b4-ty@kernel.dk> <30e8595a4570ff37eb04cb627f64b71a5f948fd5.camel@fb.com> From: Ammar Faizi In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org On 7/27/22 4:59 PM, Ammar Faizi wrote: > Interestingly GCC also complains here, but it doesn't complain when > compiling your code. Your code only breaks my clang-13. > > What is the magic behind this? OK, I figured it out. This work: gcc -D_GNU_SOURCE test.c -o test; These 3 break: clang -D_GNU_SOURCE test.c -o test; clang test.c -o test; gcc test.c -o test; So -D_GNU_SOURCE is the culprit. It seems to be unavoidable as the warn seems to be compiler specific or something. Maybe that _GNU_SOURCE patches the definition of bind(). -- Ammar Faizi