Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3348099pxf; Mon, 22 Mar 2021 04:30:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXx+3BDIqO02N/V0c4VkVUsMpObxwg/CffEitJ4AM5UUd6iABly7JNjBJjjKbkzvo+bf2+ X-Received: by 2002:a17:906:ada:: with SMTP id z26mr18730489ejf.438.1616412604902; Mon, 22 Mar 2021 04:30:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616412604; cv=none; d=google.com; s=arc-20160816; b=JMC1xj0PzIagRgn6ScYmVFZv8kpRerh+X61dwjdoHmdyeVRHfEw3MFnZp6LMpdpyAE tzVi/ydCfVeiw4cf4FUJKNsfHXcDraNFClXKa72lwTL/eiH6vXd0vDiKqbEBHNs0JyZP prxU2hQ0RtX4VAl3nzJcJ1mJj6bTWsIYHHeeHQjX0QG4dkqWCsrdDtyZnqg5HS3lh3z9 Fx3dOUQPV0m0mSaPJmiryZYSjNsbfYDa9L8GEweggqgqS2k3nXnj40eaGHJvgAr6nJY/ C73tL6zcwMZgd99AdOd0Gl+rBJtjwyg8cmTgTtLHwE03kKDhUd81Fhl6fRhf7B3kALr0 bxWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date; bh=J1Gd02DSpaz/xrLYun8RIlyXllToL6pY+qHfpwmw3oU=; b=jx3oagRz+IVDN4iHBuyeQldy7BnSrwaVuPlYSEIKzeidE5tueYcfAthtLFsc21J58c QtyWTF1J//YsC05bCd5n8Use9wLBkKvWoIW8qV2qnA//A3PADwY1od29BJwLlshMH2Nj aCyDrgXdLl2Hl/kMXUtS0ofS5Bt6/XrwMD0sMbYzrU+PyrUgd9R8hwMkgLPLluNz+gpQ D5a91TbW4wPoP6OoRLrLCkLLQyRwbpGdGDMsGHmsZ7QNk4oGgyZQOOO+Dpttkpgx1ZUX 4KNujc6UMLwf1Si4ZpZ5oYUzVSP2qSpVNUDOGFnhn0VkHh5JwoqWPJkq1hLPGnbZahxK 1ezw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dj16si10194685edb.143.2021.03.22.04.29.42; Mon, 22 Mar 2021 04:30:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229526AbhCVL0x (ORCPT + 99 others); Mon, 22 Mar 2021 07:26:53 -0400 Received: from mx2.suse.de ([195.135.220.15]:37326 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230015AbhCVL0q (ORCPT ); Mon, 22 Mar 2021 07:26:46 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 20AF5ADD7; Mon, 22 Mar 2021 11:26:45 +0000 (UTC) Date: Mon, 22 Mar 2021 12:26:45 +0100 Message-ID: From: Takashi Iwai To: Arnd Bergmann Cc: Jaroslav Kysela , Takashi Iwai , Arnd Bergmann , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ALSA: core: avoid -Wempty-body warnings In-Reply-To: <20210322103128.547199-1-arnd@kernel.org> References: <20210322103128.547199-1-arnd@kernel.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 22 Mar 2021 11:31:10 +0100, Arnd Bergmann wrote: > > From: Arnd Bergmann > > Building with 'make W=1' shows some warnings about empty function-style > macros: > > sound/core/pcm_memory.c: In function 'preallocate_pages': > sound/core/pcm_memory.c:236:49: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body] > 236 | preallocate_info_init(substream); > > sound/core/seq_device.c: In function 'snd_seq_device_dev_register': > sound/core/seq_device.c:163:41: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body] > 163 | queue_autoload_drivers(); > > Change them to empty inline functions, which are more robust here. > > Signed-off-by: Arnd Bergmann Thanks, applied. Takashi