Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp4585867ybg; Mon, 8 Jun 2020 11:32:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEj0tyQmgKK1A1/KWcV/tyA0uHVpwfX0ycbSQ3TSlYExpQssv5DdvDvWFIr8/76x64X6E8 X-Received: by 2002:a17:906:5590:: with SMTP id y16mr23148974ejp.228.1591641153525; Mon, 08 Jun 2020 11:32:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591641153; cv=none; d=google.com; s=arc-20160816; b=pYgOqQmwMJUDD8VT1uk+rIeZf/kYImV3jlTPqpplkTXCGqovh77q3L5nud2jC0w0aj PCwWgAHUGlisTrons+XVeK9MIcLYlpOhkRBLOaCC+A2jkaNNQd0E9t8RU1lcm+dU5cRu 4Sn4Avq8r3HWteBr6i7bhHDAcGEC/aylObrX0FhqhTr3e6BLqL3QAmRn1VVSpjFwwamE /NYCIH2i7UUcXLctrjU06O1tAlyY0NaCjK7dN1pZFMerG8qGPTlvNBYDZlE3uuJI15GS PtoG8h38kU8b+7W5EhfF1lcMl6/PfT/i6lMMDZjfb+OjL839N5gFX8yEAUiU3XMvITWi LY9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=vj9foM7ctUVjiObq4XilChZvyZTP3945gtcNTyze80Y=; b=AgjhWFhX/r1yQe6UwAelaQCsYfUy2vFWgcUgT926+vkasYNZHDOt+vNPgl+PwgnPlE uRrtCbM/iP4JqIaUtuzn6L5f2lCoz6AdRLBdwJQEywuB29pZlDEP73cdrdzlsgjsWes9 Pvk2F8w4hJu6NgL+AP1rRzBbsTl1GEJUC81DGwbI2h8o9VIbCLbPTgiii9jvzJJDPcOe afqXzocwpcLN8YDsNFzYIJpBubPYyJp+rvDeusXOinxRIgFTC2fM4LV1U8kXW4cBJ6os YYe6JQT7k/13YoKZhd6+1FBaCh8nkoAYtbfmEdLe2YoFkqnaUOwDOiRM1EdPU1MxYwO5 rSzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AxT4QFYj; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f26si11024629ejj.168.2020.06.08.11.32.10; Mon, 08 Jun 2020 11:32:33 -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; dkim=pass header.i=@kernel.org header.s=default header.b=AxT4QFYj; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387597AbgFHRbY (ORCPT + 99 others); Mon, 8 Jun 2020 13:31:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:34768 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729451AbgFHRbX (ORCPT ); Mon, 8 Jun 2020 13:31:23 -0400 Received: from embeddedor (unknown [189.207.59.248]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6D21320870; Mon, 8 Jun 2020 17:31:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591637482; bh=HdKXL1KWhuaDB1oIJPo3MB7HfqNQoT0UtyHAQ5jTI9w=; h=Date:From:To:Cc:Subject:From; b=AxT4QFYjCKHP4os4dIvfLdE/TXL1K+aFwGA6Du3BMPEi8PgGxIaIhlVuPfs4MW094 x3gto+oAhabIu3+XDFLa8Drp655rIc7pzTF1rAHuZ8MfsDid5JfwshvyX9dZGnSpS9 MPZSwYyrWh7JI1iWXn9AExBxOtabogFJ7HlBxzrs= Date: Mon, 8 Jun 2020 12:36:32 -0500 From: "Gustavo A. R. Silva" To: Ley Foon Tan , Christian Brauner Cc: linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH] nios2: signal: Mark expected switch fall-through Message-ID: <20200608173632.GA31741@embeddedor> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mark switch cases where we are expecting to fall through. Fix the following warning through the use of the new the new pseudo-keyword fallthrough; arch/nios2/kernel/signal.c:254:12: warning: this statement may fall through [-Wimplicit-fallthrough=] 254 | restart = -2; | ~~~~~~~~^~~~ arch/nios2/kernel/signal.c:255:3: note: here 255 | case ERESTARTNOHAND: | ^~~~ Reported-by: Christian Brauner Signed-off-by: Gustavo A. R. Silva --- arch/nios2/kernel/signal.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/nios2/kernel/signal.c b/arch/nios2/kernel/signal.c index a42dd09c65783..d8a087cf2b424 100644 --- a/arch/nios2/kernel/signal.c +++ b/arch/nios2/kernel/signal.c @@ -252,6 +252,7 @@ static int do_signal(struct pt_regs *regs) switch (retval) { case ERESTART_RESTARTBLOCK: restart = -2; + fallthrough; case ERESTARTNOHAND: case ERESTARTSYS: case ERESTARTNOINTR: -- 2.27.0