Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4279753imm; Fri, 18 May 2018 02:22:49 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrxJAuiTlYKEiUEZq8JTPyh22/B5rLp6VShYIWCK6b3VAa2/OTb6yn60T4k0hvILB/RL8M+ X-Received: by 2002:a62:5754:: with SMTP id l81-v6mr8648256pfb.56.1526635368836; Fri, 18 May 2018 02:22:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526635368; cv=none; d=google.com; s=arc-20160816; b=shV3Z18RqDFWsF/kf2chB5EEAD9Wu5GcID/XNaH0J/vO2Hw2O/nCSCxeXQZxFbwpPQ 2Htq1i2lAbgB7HN10g18WM1+K2Y4DBbchtPtuqs6Fh+eIGzHfSSj0cP77DBDxZkyDxY3 Us9JRyEtgGOSjFGBtzVEEm+/noDPJDwrBSe7C7mLH6mqpedTqwE1LmpYXneaT1S1t33f rsRX9drdeIwkJxt6ye2GC+XQ/+9bAqOIChT0Vazr/0pnL7tTeQvwtUdvzrDznm6+oLaV pXYrzJaextik91p44GEd2sWiekoYNmyS8n9v2DMXeVEY4wui5VioiQ3l/GcVWUxlpglw /MtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=NGEuWm8py7mINXMQQym2PQJ2/VWqz8VyrhTyR6LlfQw=; b=jfN2KQ3IBB7vF0yC5oJYs819rz4s9pQwkXQLV4U5Qv7fj6DFoQ+PO8+E/iL8j8ti4G 2zt54JupBBdidGGfI2nCAvDqiMACOoJniCZadrVfAGMhdN868Kmr31C1sinHecKxTAbI 7IziEKIE2f18sP16KEtso5tDQJHF7DJnb1ZVjadmeilWEOLFt8v2RfaVqxd5XDayv/nT q1g9dELWrdmqQqYfmFarhM9vkDBW87YGYroWdMm56ZjuH9z4lu/0ZuLXxca8tgVSGUuN C9f0OlEr+6It1JlyHb/8MXKh91c4UWNH2qwE3RdW0OtW6FlwVyY54CLQ51BtmwCSjeqC V5tg== 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 p1-v6si5730687pgr.402.2018.05.18.02.22.34; Fri, 18 May 2018 02:22:48 -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; 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 S1753333AbeERJVV (ORCPT + 99 others); Fri, 18 May 2018 05:21:21 -0400 Received: from mx2.suse.de ([195.135.220.15]:45410 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753184AbeERJRq (ORCPT ); Fri, 18 May 2018 05:17:46 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 56931AF7C; Fri, 18 May 2018 09:17:45 +0000 (UTC) From: Jiri Slaby To: mingo@redhat.com Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Slaby , Thomas Gleixner , "H. Peter Anvin" , x86@kernel.org Subject: [PATCH v6 21/28] x86/asm/ftrace: mark function_hook as function Date: Fri, 18 May 2018 11:17:14 +0200 Message-Id: <20180518091721.7604-22-jslaby@suse.cz> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180518091721.7604-1-jslaby@suse.cz> References: <20180518091721.7604-1-jslaby@suse.cz> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Relabel function_hook to be marked really as a function. It is called from C and has the same expectations towards the stack etc. Signed-off-by: Jiri Slaby Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x86@kernel.org --- arch/x86/kernel/ftrace_32.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/ftrace_32.S b/arch/x86/kernel/ftrace_32.S index 0206fc7e86b0..b855dc10daeb 100644 --- a/arch/x86/kernel/ftrace_32.S +++ b/arch/x86/kernel/ftrace_32.S @@ -31,9 +31,9 @@ EXPORT_SYMBOL(mcount) # define MCOUNT_FRAME 0 /* using frame = false */ #endif -ENTRY(function_hook) +SYM_FUNC_START(function_hook) ret -END(function_hook) +SYM_FUNC_END(function_hook) ENTRY(ftrace_caller) -- 2.16.3