From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D5B62366553 for ; Fri, 9 Jan 2026 17:20:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767979229; cv=none; b=rfDxhsBn/AlvmS1hf3C6u8xdiOtSJ/CH47zLgFIDwgkBhpAYGuIs91lhDBTdX1RDOjthSge8dQBPICVffg/kL7ikWpAXQ6qmTyK9RrMStrxXjggd5IWckRG08pF8syNu5j+yBpWk9b8GLNjzSl76WdqTjoNn+O3e2CJn/n7Gl9Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767979229; c=relaxed/simple; bh=njwlYPtno5gZ8EIwtH+rwItwtDE7dwKke0RUnx/c3T0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=VmCWj4QqKdsvqJROpM5dO+uXCEVsGOG7wilAut0n2wPR/BVdYQLI58KPVmcfCQfcMWEg/u7dVDWJp0Yb1E2am2tFH4FygEDRb0dElrcFPFhuRM6pu4v5ZGAtS7BdghQxmhWtCDiwLwSU54gCaRvP3S4YgtAnw6xQPVadeFb3GXk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UfzHeo17; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UfzHeo17" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 56496C4CEF1; Fri, 9 Jan 2026 17:20:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1767979229; bh=njwlYPtno5gZ8EIwtH+rwItwtDE7dwKke0RUnx/c3T0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=UfzHeo17A0hD70wTGe8ZAQpTDPXrHM20FzqRA9L/+AeSPNOvbFtzJU/Mtg89FkP2x aK78bmcJMjaFvIw3+M6DbbhWXR6buj396nMHkKb9vnHj68ZL11z1U+S0SZ7J0W3s8z j9FYB94zXnVznpWBLkEKmFyJYqCEVG+ZhR7QMB+j+vMjsWmUaWN7J5Y+biLM8d8CDg J+etDJaBWRs/l+HmKFzQTCOz76DbDKgq0MNAqlY2z835Euti6OAMig2qzTW7BqeVhx uZdsJmFuBX9LjWi9AIc++TggpmV4ioibr89cUmIPJJ0D+oASRlaMW4SK+SGcyKtIyB AerPmuX88VCdw== Message-ID: <50236a86-c177-4baf-b511-50df675f96eb@kernel.org> Date: Fri, 9 Jan 2026 18:20:24 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/1] powerpc/xmon: Delete unused ansidecl.h To: Petr Tesarik , Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org References: <20260109154636.2945330-1-ptesarik@suse.com> Content-Language: fr-FR From: "Christophe Leroy (CS GROUP)" In-Reply-To: <20260109154636.2945330-1-ptesarik@suse.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Le 09/01/2026 à 16:46, Petr Tesarik a écrit : > Delete arch/powerpc/xmon/ansidecl.h. The definitions from this header file > are not used. > > Signed-off-by: Petr Tesarik Reviewed-by: Christophe Leroy (CS GROUP) > --- > arch/powerpc/xmon/ansidecl.h | 130 ----------------------------------- > arch/powerpc/xmon/ppc-dis.c | 1 - > 2 files changed, 131 deletions(-) > delete mode 100644 arch/powerpc/xmon/ansidecl.h > > diff --git a/arch/powerpc/xmon/ansidecl.h b/arch/powerpc/xmon/ansidecl.h > deleted file mode 100644 > index 17a85a52b63a9..0000000000000 > --- a/arch/powerpc/xmon/ansidecl.h > +++ /dev/null > @@ -1,130 +0,0 @@ > -/* SPDX-License-Identifier: GPL-2.0-or-later */ > -/* ANSI and traditional C compatibility macros > - Copyright 1991, 1992 Free Software Foundation, Inc. > - This file is part of the GNU C Library. > - > - */ > - > -/* ANSI and traditional C compatibility macros > - > - ANSI C is assumed if __STDC__ is #defined. > - > - Macro ANSI C definition Traditional C definition > - ----- ---- - ---------- ----------- - ---------- > - PTR `void *' `char *' > - LONG_DOUBLE `long double' `double' > - VOLATILE `volatile' `' > - SIGNED `signed' `' > - PTRCONST `void *const' `char *' > - ANSI_PROTOTYPES 1 not defined > - > - CONST is also defined, but is obsolete. Just use const. > - > - DEFUN (name, arglist, args) > - > - Defines function NAME. > - > - ARGLIST lists the arguments, separated by commas and enclosed in > - parentheses. ARGLIST becomes the argument list in traditional C. > - > - ARGS list the arguments with their types. It becomes a prototype in > - ANSI C, and the type declarations in traditional C. Arguments should > - be separated with `AND'. For functions with a variable number of > - arguments, the last thing listed should be `DOTS'. > - > - DEFUN_VOID (name) > - > - Defines a function NAME, which takes no arguments. > - > - obsolete -- EXFUN (name, (prototype)) -- obsolete. > - > - Replaced by PARAMS. Do not use; will disappear someday soon. > - Was used in external function declarations. > - In ANSI C it is `NAME PROTOTYPE' (so PROTOTYPE should be enclosed in > - parentheses). In traditional C it is `NAME()'. > - For a function that takes no arguments, PROTOTYPE should be `(void)'. > - > - PARAMS ((args)) > - > - We could use the EXFUN macro to handle prototype declarations, but > - the name is misleading and the result is ugly. So we just define a > - simple macro to handle the parameter lists, as in: > - > - static int foo PARAMS ((int, char)); > - > - This produces: `static int foo();' or `static int foo (int, char);' > - > - EXFUN would have done it like this: > - > - static int EXFUN (foo, (int, char)); > - > - but the function is not external...and it's hard to visually parse > - the function name out of the mess. EXFUN should be considered > - obsolete; new code should be written to use PARAMS. > - > - For example: > - extern int printf PARAMS ((CONST char *format DOTS)); > - int DEFUN(fprintf, (stream, format), > - FILE *stream AND CONST char *format DOTS) { ... } > - void DEFUN_VOID(abort) { ... } > -*/ > - > -#ifndef _ANSIDECL_H > - > -#define _ANSIDECL_H 1 > - > - > -/* Every source file includes this file, > - so they will all get the switch for lint. */ > -/* LINTLIBRARY */ > - > - > -#if defined (__STDC__) || defined (_AIX) || (defined (__mips) && defined (_SYSTYPE_SVR4)) || defined(WIN32) > -/* All known AIX compilers implement these things (but don't always > - define __STDC__). The RISC/OS MIPS compiler defines these things > - in SVR4 mode, but does not define __STDC__. */ > - > -#define PTR void * > -#define PTRCONST void *CONST > -#define LONG_DOUBLE long double > - > -#define AND , > -#define NOARGS void > -#define CONST const > -#define VOLATILE volatile > -#define SIGNED signed > -#define DOTS , ... > - > -#define EXFUN(name, proto) name proto > -#define DEFUN(name, arglist, args) name(args) > -#define DEFUN_VOID(name) name(void) > - > -#define PROTO(type, name, arglist) type name arglist > -#define PARAMS(paramlist) paramlist > -#define ANSI_PROTOTYPES 1 > - > -#else /* Not ANSI C. */ > - > -#define PTR char * > -#define PTRCONST PTR > -#define LONG_DOUBLE double > - > -#define AND ; > -#define NOARGS > -#define CONST > -#ifndef const /* some systems define it in header files for non-ansi mode */ > -#define const > -#endif > -#define VOLATILE > -#define SIGNED > -#define DOTS > - > -#define EXFUN(name, proto) name() > -#define DEFUN(name, arglist, args) name arglist args; > -#define DEFUN_VOID(name) name() > -#define PROTO(type, name, arglist) type name () > -#define PARAMS(paramlist) () > - > -#endif /* ANSI C. */ > - > -#endif /* ansidecl.h */ > diff --git a/arch/powerpc/xmon/ppc-dis.c b/arch/powerpc/xmon/ppc-dis.c > index af105e1bc3fca..3f2c01c13c661 100644 > --- a/arch/powerpc/xmon/ppc-dis.c > +++ b/arch/powerpc/xmon/ppc-dis.c > @@ -10,7 +10,6 @@ This file is part of GDB, GAS, and the GNU binutils. > #include > #include > #include "nonstdio.h" > -#include "ansidecl.h" > #include "ppc.h" > #include "dis-asm.h" >