From patchwork Wed May 28 22:57:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 4257751 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 075EB9F358 for ; Wed, 28 May 2014 22:57:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3227F202E5 for ; Wed, 28 May 2014 22:57:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5B29D2018E for ; Wed, 28 May 2014 22:57:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754068AbaE1W5y (ORCPT ); Wed, 28 May 2014 18:57:54 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:62151 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752126AbaE1W5x (ORCPT ); Wed, 28 May 2014 18:57:53 -0400 Received: by mail-pa0-f48.google.com with SMTP id rd3so11755363pab.21 for ; Wed, 28 May 2014 15:57:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=B7GIpSLJF6QErX3qNyeIy4v8/z7ichlM9MQ8T1mk11Y=; b=OZxE04h2ZRyCC1TlTl+degETGF0VZs5ERm7KaXJlC15a8XFjTjMw9fZoGamwxtNcQR h5grVD3TaCip71jS2cSHk2Neqc0RaEcXWLJruU9rWSn57LU11STxost7d0/Sf2OXwHS2 DBQDreqghtxO7mdm9TFTG1AmistoecJGbLt5vKLQMrKU7O4WrjfEwRlqiJxQlpAXtuqT UKt4WFsG4CrX3c7VbccGzrKdjr84fPz9/YHdPyxv1wUb9kFCQ9h4AECcdU7hf3RHyulc TW08SfpBuQ1RMGPNQMM3rkSOE83cZ/ZAbCoy87WDkiKZSKXOqbh/ca2upsxVFQvHyfw9 faow== X-Received: by 10.68.125.164 with SMTP id mr4mr3402644pbb.27.1401317873416; Wed, 28 May 2014 15:57:53 -0700 (PDT) Received: from ld-irv-0074.broadcom.com (5520-maca-inet1-outside.broadcom.com. [216.31.211.11]) by mx.google.com with ESMTPSA id yw3sm30119048pbc.69.2014.05.28.15.57.52 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 May 2014 15:57:52 -0700 (PDT) From: Brian Norris To: Linux Kernel Cc: Brian Norris , linux-sh@vger.kernel.org Subject: [PATCH] SH: annotate code after BUG() as unreachable Date: Wed, 28 May 2014 15:57:32 -0700 Message-Id: <1401317852-32386-1-git-send-email-computersforpeace@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This squashes some warnings: CC mm/bootmem.o mm/bootmem.c: In function 'mark_bootmem': mm/bootmem.c:379:1: warning: control reaches end of non-void function [-Wreturn-type] CC kernel/sched/core.o kernel/sched/core.c: In function 'pick_next_task': kernel/sched/core.c:2610:1: warning: control reaches end of non-void function [-Wreturn-type] Signed-off-by: Brian Norris Cc: linux-sh@vger.kernel.org --- arch/sh/include/asm/bug.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/sh/include/asm/bug.h b/arch/sh/include/asm/bug.h index dcf278075429..1ae948f309f2 100644 --- a/arch/sh/include/asm/bug.h +++ b/arch/sh/include/asm/bug.h @@ -48,6 +48,7 @@ do { \ "i" (__FILE__), \ "i" (__LINE__), "i" (0), \ "i" (sizeof(struct bug_entry))); \ + unreachable(); \ } while (0) #define __WARN_TAINT(taint) \