Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4595481imu; Tue, 18 Dec 2018 18:48:30 -0800 (PST) X-Google-Smtp-Source: AFSGD/UgTIjVZxtQhwuf8KjYAhdg6bQSL3oF2X96zaj0jkqEyGrEwSxKsx6gVz6N//LdbtZH8Qgd X-Received: by 2002:a63:be4d:: with SMTP id g13mr1481184pgo.378.1545187710001; Tue, 18 Dec 2018 18:48:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545187709; cv=none; d=google.com; s=arc-20160816; b=kTqAJ+NRecTfYLz98q/Fo7O3O5hN1cK7+TnTCd9T5/L67Y4r/NZ+95Mr/ACjJuBknr q3pIHPFSGHh7EMn5MtKKygzs1VTu56FaeiVPsAVO3mSK5EYIiAJkI+B3tsOtcah7jYwp VwywUX1QOja6W6pUi0pUFu+d79Jek+ONzIpOe3f8VSL3YrA81dkXPpFPlOleliBV6bLE BIE0XnWV8y2kGY2qvc4LHEkbRA2LamNWwNwuSEv0otIilcp24zGjysLdSoizvfGRCRn/ iZtX8R36xtHm+N69IIG5eWSqfTJsBzz/uI9hbljwe2s5QM0HUlME9s41eoi7D8hlMVVC GkpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from; bh=bURen/DWwt4vW0N+7CGRmaEyy29j9x4w8pjycppWARY=; b=k1iOmh+krx/zWFHHKl4AFLNuYhC2eB73eB7TQLDLQtGLTDlrZMP/lkUT1VnCeB5Jsv DEpxm3z12HYNh+di++JA8nPSLAUcemKwM34Ol1zUCbNeL5wtxTg5YYH5IGxcYDyYi/lg rGFB6foMC2S2b9o/bOkKfIeb3soFrmMfmHciquBj1ErKIx6NrYCr2MPTxhLo0+5CKYOh cbdJskZnQ2MTyDt/hWT35U/EqNuVl16PWoHV9C0ts65WD1qo5xksfn9NnQAlthqtzRB0 P4PswomWTV1yTG6uMOg6tOckbNWkKVlb9CCBANGPfZ3fdz8uCqDLV9iaxKhYHsX+Dekg zzyg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d1si15008987pla.412.2018.12.18.18.48.11; Tue, 18 Dec 2018 18:48:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727445AbeLSAWV convert rfc822-to-8bit (ORCPT + 99 others); Tue, 18 Dec 2018 19:22:21 -0500 Received: from ozlabs.org ([203.11.71.1]:58981 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726512AbeLSAWV (ORCPT ); Tue, 18 Dec 2018 19:22:21 -0500 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 43KFvb15Qkz9s1c; Wed, 19 Dec 2018 11:22:19 +1100 (AEDT) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au From: Michael Ellerman To: Mathieu Malaterre Cc: Mathieu Malaterre , Oleg Nesterov , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] powerpc/ptrace: fix empty-body warning In-Reply-To: <20181218205305.26647-1-malat@debian.org> References: <20181218205305.26647-1-malat@debian.org> Date: Wed, 19 Dec 2018 11:22:19 +1100 Message-ID: <87d0pys6v8.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mathieu, Mathieu Malaterre writes: > In commit a225f1567405 ("powerpc/ptrace: replace ptrace_report_syscall() > with a tracehook call") an empty body if(); was added. > > Replace ; with {} to remove a warning (treated as error) reported by gcc > using W=1: > > arch/powerpc/kernel/ptrace.c: In function ‘do_syscall_trace_enter’: > arch/powerpc/kernel/ptrace.c:3281:4: error: suggest braces around empty body in an ‘if’ statement [-Werror=empty-body] > > Fixes: a225f1567405 ("powerpc/ptrace: replace ptrace_report_syscall() with a tracehook call") > Signed-off-by: Mathieu Malaterre Thanks for the fix, but this code is being refactored already in next, see: https://patchwork.ozlabs.org/patch/1014179/ cheers