Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp339347ybl; Fri, 9 Aug 2019 06:49:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqyeN6CjAbFP4aY6VeNOtRhPF6+4x21ZQdFU7FwOI127NIgQJ2jGIs9GHYumRU/ZHKxf8Pln X-Received: by 2002:a17:90a:c68c:: with SMTP id n12mr9595540pjt.33.1565358565177; Fri, 09 Aug 2019 06:49:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565358565; cv=none; d=google.com; s=arc-20160816; b=LgEnFIQGE6PJaHiZzdT/zKw1ntmDYAd7CRYswb5bawzqElEj9p5ywSdJQSdGmdMMpK CgGHWEcB7a7bGryALcQW3mwXeD8I5OE7WGdyCnHUlrJC1uVkRc9Jo5nPVoSJZzLJnqOQ FSSSJn3sQxBdstZadFxugW92O1syuCorhKU66+j5stWHGbd81kNBJp4wHUlnf7VG/CsU b5OeDqySKU26hXpcWd5RjZphvbtMbD7KknrsnO3Xl4f/im7B1AWbk40t9Bj95MGeL60k 3C5xkvwpPOxdXO4SIE6xDTNyoUvNAjE2KxWe/MQ8KSGUM7jI0qycyaQCdFnVFgXNf2sR wFBQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=zhhcWAfdvmBKjQv2SWXxB3me9EOPMrBxP3ZIiDcqBfY=; b=IsFUfPw8I5u2VtlJViNzcdh7kK+sj2a6S0YHbZKBpc/XMcHKn8Wkh3pBnrVfwuabp7 NCJ+N+gGf4bIj04vlJfwOWhKX6Nh6lIcFrlq0bGrW0WGNYieiD5PvMEZKgRL0OCVLdre MMtMFoi2VlMTewT95isyez6i6PVOL0FSriiiYWBod8rA5axyMSYe8/MHeo1rPO1M0wFK GqPtfHqyDdHfAGWtYbHzqeZaWdNC4TjC4NLuQ/843QgXUafYN0eVHJsbAh+ErenSCWBT xqyWAynqurxu3ne86ZsJosWdVSybK6KU3vxafTqwcToLZLxTjRtEe08zlI33ElM+DIVt fM8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=C30VaVVF; 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 q4si54658277pfh.12.2019.08.09.06.49.09; Fri, 09 Aug 2019 06:49:25 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=C30VaVVF; 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 S2406898AbfHINrx (ORCPT + 99 others); Fri, 9 Aug 2019 09:47:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:37934 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436640AbfHINrt (ORCPT ); Fri, 9 Aug 2019 09:47:49 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 C6D6021874; Fri, 9 Aug 2019 13:47:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565358469; bh=hCOQ/3o6yVkNnmohc565drS708u0WeyH1cciRFIEELU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=C30VaVVFz9AxHZPmodx53XX+LOeZo+hUK504mW94NFKO4t91FubcW6U/iifTpw3+z RUOttRmV9BymgNamz2mtMgxySQLrAOvj4VWXn7rWZ9Dp4qiOf4q1HlKJY+juKjbpaN rJ3uCu2ljEA57YXm/6RBqEtVQMgoW4ms8+mm394Y= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Matthias Kaehlcke , Josh Poimboeuf , Thomas Gleixner Subject: [PATCH 4.9 12/32] objtool: Add machine_real_restart() to the noreturn list Date: Fri, 9 Aug 2019 15:45:15 +0200 Message-Id: <20190809133923.356917728@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190809133922.945349906@linuxfoundation.org> References: <20190809133922.945349906@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Josh Poimboeuf commit 684fb246578b9e81fc7b4ca5c71eae22edb650b2 upstream. machine_real_restart() is annotated as '__noreturn", so add it to the objtool noreturn list. This fixes the following warning with clang and CONFIG_CC_OPTIMIZE_FOR_SIZE=y: arch/x86/kernel/reboot.o: warning: objtool: native_machine_emergency_restart() falls through to next function machine_power_off() Reported-by: Matthias Kaehlcke Signed-off-by: Josh Poimboeuf Signed-off-by: Thomas Gleixner Tested-by: Matthias Kaehlcke Reviewed-by: Matthias Kaehlcke Link: https://lkml.kernel.org/r/791712792aa4431bdd55bf1beb33a169ddf3b4a2.1529423255.git.jpoimboe@redhat.com Signed-off-by: Greg Kroah-Hartman --- tools/objtool/check.c | 1 + 1 file changed, 1 insertion(+) --- a/tools/objtool/check.c +++ b/tools/objtool/check.c @@ -165,6 +165,7 @@ static int __dead_end_function(struct ob "__reiserfs_panic", "lbug_with_loc", "fortify_panic", + "machine_real_restart", }; if (func->bind == STB_WEAK)