From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933353AbbBDJtJ (ORCPT ); Wed, 4 Feb 2015 04:49:09 -0500 Received: from mail-la0-f53.google.com ([209.85.215.53]:63881 "EHLO mail-la0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932318AbbBDJtF (ORCPT ); Wed, 4 Feb 2015 04:49:05 -0500 From: Rasmus Villemoes To: Andrew Morton , Michal Nazarewicz Cc: Rasmus Villemoes , linux-kernel@vger.kernel.org Subject: [PATCH] kernel.h: Remove ancient __FUNCTION__ hack Date: Wed, 4 Feb 2015 10:48:38 +0100 Message-Id: <1423043318-29910-1-git-send-email-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.1.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org __FUNCTION__ hasn't been treated as a string literal since gcc 3.4, so this only helps people who only test-compile using 3.3 (compiler-gcc3.h barks at anything older than that). Besides, there are almost no occurrences of __FUNCTION__ left in the tree. Signed-off-by: Rasmus Villemoes --- include/linux/kernel.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 5449d2f4a1ef..76773be3e725 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h @@ -799,9 +799,6 @@ static inline void ftrace_dump(enum ftrace_dump_mode oops_dump_mode) { } const typeof( ((type *)0)->member ) *__mptr = (ptr); \ (type *)( (char *)__mptr - offsetof(type,member) );}) -/* Trap pasters of __FUNCTION__ at compile-time */ -#define __FUNCTION__ (__func__) - /* Rebuild everything on CONFIG_FTRACE_MCOUNT_RECORD */ #ifdef CONFIG_FTRACE_MCOUNT_RECORD # define REBUILD_DUE_TO_FTRACE_MCOUNT_RECORD -- 2.1.3