From owner-svn-src-head@freebsd.org Wed Jun 6 11:40:19 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7BE2AFF2223; Wed, 6 Jun 2018 11:40:19 +0000 (UTC) (envelope-from bjkfbsd@gmail.com) Received: from mail-ot0-x244.google.com (mail-ot0-x244.google.com [IPv6:2607:f8b0:4003:c0f::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F064370364; Wed, 6 Jun 2018 11:40:18 +0000 (UTC) (envelope-from bjkfbsd@gmail.com) Received: by mail-ot0-x244.google.com with SMTP id i5-v6so6823693otf.1; Wed, 06 Jun 2018 04:40:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Z2hsO/RnyovLmGx/lSqSrOmIoqWKCExmM/7uvxucJZI=; b=l0+fYm02Gn0dfkN4UOUkZejzDoxaGZ76DmTyRcD7XZoO80NZvTAwsuZXqORcFg/A4H qi56qpoJmU9ifZoRFEUmaIc83L9wiygBKAYRfrE9Jzdk2AH+Eu5fqUNUKNUQ86ilAMUj VQX2ghh4SpcHVNkHRHB0v8ZtmdOqZzoQ2PPwWqHv7aQNAv69KLPwjtktK2q3rRFZK2yn YuoriI6fEIB0Yy6Z7piJpW6DlqZjgJ8mKOKCMVdSjsCsoeMmjPjQr0bOutF+C7pb0ues jNVCGYdqO7vvhNacvBKpCFJf4GJZVIIxuCkyiRhC/pOuffz9EEkRmYtqVrKB7euaUqs/ j1Gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Z2hsO/RnyovLmGx/lSqSrOmIoqWKCExmM/7uvxucJZI=; b=cKyIpeIrN/eQPEbTHmmfjtRKAx9L3nc/PbAa4xSHgnVKSMEG0lH9O4r0uujfH7sjv9 RbCWKyrBXmL7hJhEeWhSl9Jqv2ri6+JvC7riTOE8Xgb7uLhhzUE4a8dZGKzpsPFs3DDr 3hXmmXPt+ToIfumL03irrtQKkIuA5nPceErWWlUcc4Ptf3p49gjVLpEeup5PgHH4g5N8 E+aeF9vHmgH6Qt72UtVby4/ajPc/bPepBRsjsbDMRbpkZHF6mQhLEBWYA/vujmVbpupv AkBURzxWnnw1mk5Tfsmei+Sh1wgfZVweqYjk2NabLKyzM95YymjopaRwCfqP3gAfpM5K 2Xig== X-Gm-Message-State: APt69E0CMC+2RsTvlVttPqK13lpfIpUAf0t3OL6ryEuNN6GCePIFV0M+ zujB3girfEqSH9Sujob9Lniqi+UlT1hurPyeO3Nuww== X-Google-Smtp-Source: ADUXVKJExpyF96rXoGA/bkiYGUOtb3WkJjMPUaDlglCJN285mzEh6Tqfow9GuHyxTLgtqphXh5XS6pOthc5s/sTa0Ig= X-Received: by 2002:a9d:2371:: with SMTP id k46-v6mr1825047otd.210.1528285218243; Wed, 06 Jun 2018 04:40:18 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:348e:0:0:0:0:0 with HTTP; Wed, 6 Jun 2018 04:40:17 -0700 (PDT) In-Reply-To: <6E6E92B2-7536-4281-8EAF-72823E84902E@panasas.com> References: <201806060508.w56586c9053686@repo.freebsd.org> <6E6E92B2-7536-4281-8EAF-72823E84902E@panasas.com> From: Benjamin Kaduk Date: Wed, 6 Jun 2018 06:40:17 -0500 Message-ID: Subject: Re: svn commit: r334702 - head/sys/sys To: Ravi Pokala Cc: Mateusz Guzik , src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.26 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2018 11:40:19 -0000 On Wed, Jun 6, 2018 at 6:35 AM, Ravi Pokala wrote: > Hi Mateusz, > > =EF=BB=BF-----Original Message----- > From: on behalf of Mateusz Guzik > > Date: 2018-06-06, Wednesday at 01:08 > To: , , < > svn-src-head@freebsd.org> > Subject: svn commit: r334702 - head/sys/sys > > > ... > > #ifdef _KERNEL > > #define malloc(size, type, flags) ({ > \ > > Now that I'm taking another look at this, I'm confused as to why the > entire macro expansion is inside parentheses? (The braces make sense, sin= ce > this is a block with local variables which need to be contained.) > This is a gcc (and clang) extension to allow the macro body to be a code block -- standard C gets unhappy with just the curly braces. https://gcc.gnu.org/onlinedocs/gcc/Statement-Exprs.html is a maybe-relevant page that google found me. -Ben