Received: by 2002:a25:ab0e:0:0:0:0:0 with SMTP id u14csp1021738ybi; Tue, 28 Jan 2020 17:06:48 -0800 (PST) X-Google-Smtp-Source: APXvYqz14I5OjnL6CdEqdbrkzSONq2VAtuVkg5VEN5/NpJCs69g1gkbuuld3moVkCMNFg1gs9BkG X-Received: by 2002:a9d:4d90:: with SMTP id u16mr17815773otk.159.1580260008255; Tue, 28 Jan 2020 17:06:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580260008; cv=none; d=google.com; s=arc-20160816; b=nF5E49mz2NBDPV9Y66+6ANsFhECt3cphXp0FfGci3rRcFg3i0QlpGc1BbR86JsEX+Z OW9Ubb9ngKEOcOPIvkkTuwBSkZa8wYZZtAH0C662FLZIwulirV9+NUUooq6PPUDb5n4y xdTF59GkFvl2kI/dSToCyX9NlgTQpC0Q4/yXcdRRNQyGVMlgmMnlM15ZmS9WFenI9AcB KTruuRITqWMhE1LR5HV7szhfx3pXGQJqAfF0yqf1XR4ibV4yAxzHFqxAaSnyWYbYYE2J yCPK5MgnldusrgqR2om346qQzpT6ulMnnMUNDYZbcDqnMyzJhMOzFOnbElZ9jDJlYH82 ktJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=wPNRak32GTrZ9OFm9Nq9rz8VK5Yy1P2prX5D5YITw7U=; b=ZSjDuuFTUITtuyI+Z4qZEH0FyRhvWIofRFQJ0Fv1cv963sBPdTQIiHOgrgskTcPG6C boBfAwSMONsha46EQAXdoEO8PPI6KUe7mH4hd621Jyk/uSPl+zZNBtSWQx8L0AEbT8cB Wp/n4t+ULYV3QH/hXIExZIGmznNhA/+boTALdIbp0MsnDrR4zay2RGb4Gejyc68ehaiV 5Zu1WKDFJuYCjqUEYcNBD0VuSMl4TeJ7ns3RC9Ce5giinFZtIYg5zB1A6IFiQwCj7Bpp zfCV7ArwyY83iFmCGyZdZpHStJ1WsQRNh81XUp7GdW3x+jHaiEatXayHHFcHRkfsaJHr EgrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ejFuWz0R; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l15si259287oic.220.2020.01.28.17.06.06; Tue, 28 Jan 2020 17:06:48 -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; dkim=pass header.i=@kernel.org header.s=default header.b=ejFuWz0R; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730437AbgA2ArC (ORCPT + 99 others); Tue, 28 Jan 2020 19:47:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:34932 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726487AbgA2ArB (ORCPT ); Tue, 28 Jan 2020 19:47:01 -0500 Received: from pobox.suse.cz (prg-ext-pat.suse.com [213.151.95.130]) (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 EE5D92073A; Wed, 29 Jan 2020 00:46:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580258821; bh=HlE3Pgkk7dDEKRsCD3nPkyOTqjP2QeWR8StyZLq5bEU=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=ejFuWz0R0R5TUCGRjF1ncZbRCpNQnOzeg4EbChz9OwyAw/MXIMQ0RSbDFvmatWHiN p2yt1ooPKKzdqA08a1zpdEFEkZnsraGQGqnIpixjfh2zWKgVH0MT5+3zncz83HVsYd BHKAm0jnw6VbpsPEdkGqJTfVrhTdl+8+n222325Q= Date: Wed, 29 Jan 2020 01:46:55 +0100 (CET) From: Jiri Kosina To: Josh Poimboeuf cc: Petr Mladek , Miroslav Benes , Peter Zijlstra , Steven Rostedt , Joe Lawrence , Jessica Yu , x86@kernel.org, linux-kernel@vger.kernel.org, mhiramat@kernel.org, bristot@redhat.com, jbaron@akamai.com, torvalds@linux-foundation.org, tglx@linutronix.de, mingo@kernel.org, namit@vmware.com, hpa@zytor.com, luto@kernel.org, ard.biesheuvel@linaro.org, live-patching@vger.kernel.org, Randy Dunlap Subject: Re: [PATCH v3 5/6] x86/ftrace: Use text_poke() In-Reply-To: <20200128170254.igb72ib5n7lvn3ds@treble> Message-ID: References: <20191016074217.GL2328@hirez.programming.kicks-ass.net> <20191021150549.bitgqifqk2tbd3aj@treble> <20200120165039.6hohicj5o52gdghu@treble> <20200121161045.dhihqibnpyrk2lsu@treble> <20200122214239.ivnebi7hiabi5tbs@treble> <20200128150014.juaxfgivneiv6lje@treble> <20200128154046.trkpkdaz7qeovhii@pathway.suse.cz> <20200128170254.igb72ib5n7lvn3ds@treble> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 28 Jan 2020, Josh Poimboeuf wrote: > > Anyway, I think that we might make your life easier with using the > > proposed -Wsuggest-attribute=noreturn. > > Maybe. Though if I understand correctly, this doesn't help for any of > the new warnings because they're for static functions, and this only > warns about global functions. Could you please provide a pointer where those have been reported/analyzed? For the cases I've seen so far, it has always been gcc deciding under certain circumstances not to propagate __attribute__((__noreturn__)) from callee to caller even in the cases when caller unconditionally called callee. AFAIU, the behavior is (and always will) be dependent on the state of gcc optimizations, and therefore I don't see any other way than adding __noreturn anotation transitively everywhere in order to silence objtool. So those cases have to be fixed anyway. What are the other cases please? Either I have completely missed those, or they haven't been mentioned in this thread. Thanks, -- Jiri Kosina SUSE Labs