Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4475481ybf; Wed, 4 Mar 2020 04:48:10 -0800 (PST) X-Google-Smtp-Source: ADFU+vvyi16V2IrrHzIXsmz3Vw/sKQO1o/WYxXZU7XLRGzIi+QWcE2oD2b63YocS4GFB82Bm2Xfk X-Received: by 2002:aca:fd94:: with SMTP id b142mr1532018oii.11.1583326090549; Wed, 04 Mar 2020 04:48:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583326090; cv=none; d=google.com; s=arc-20160816; b=g5yOnRfdDZjDsTf9IwS1x7QMKtCmM7k43PuOPwt+7QbtPMeISBz+HGb+VZZ3PuGki4 3Z8eVDNv3KHpWOvwtTgH62Topa8zU2dTidanLIQJgvPdP4uIdzvsNpe4rLjm+1hhaEGF JfHfAX8CfpTAzACVXzNwXTgWhNIMDk9KxAvm6B4JyyIuiQZuRbxXgsukjhpA+1hMmfvb HptgmG3YsFrAv1Lff9+w2IbT4zWS+xjlE9oDG1U3dU0qhecH2SDQ2uofdNfdLFFSP2M/ lIf5OG2YI80afdINc3vfCF7sqGaG73YiB3EbvLu6zW/4/eWu8UxpZSoFMWctirf+f2cM ijuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=RtPxw2uqcT5ii76Ll7dxnSjbonU3QJZHIKiXoMfSuPM=; b=OJjiJDBdZhdENK9TPBg54Yz9wXCEwXwnLXjQNZR4/GpIo8zRJcv5BdIAem6EEKCy6L qbdg7iyi4di98NPHBFLyKsrQcSkilQMKaJad+C1NqKoFCUqJHNifkrFwrxhwyNGGQAFn ivKcBZpqXtSn8nl+yVsuXnzjvYQwWo9Q9fV0xznyQSCGnaFt40w6SRjriZOcP6fLx0Z/ wQH1umrqKnEdCExpreZ58hVNd5WimP2spA5oOYNl/uqtWKdZ+7QNu/5a/Q6H6wX+PBcM z68f288Qwja2LfhrT8aP9Le+NFzl5Gr8yj+rXbaP/EnBm1P0YU0676ETPoYF7Bs5ErgL rvjw== 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 f9si1085354oti.44.2020.03.04.04.47.50; Wed, 04 Mar 2020 04:48:10 -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; 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 S2388024AbgCDMqh (ORCPT + 99 others); Wed, 4 Mar 2020 07:46:37 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:47291 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387776AbgCDMqg (ORCPT ); Wed, 4 Mar 2020 07:46:36 -0500 Received: from p5de0bf0b.dip0.t-ipconnect.de ([93.224.191.11] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1j9TPp-0003QV-Ke; Wed, 04 Mar 2020 13:46:21 +0100 Received: by nanos.tec.linutronix.de (Postfix, from userid 1000) id E2994101161; Wed, 4 Mar 2020 13:46:20 +0100 (CET) From: Thomas Gleixner To: Alexandre Chartre , LKML Cc: x86@kernel.org, Steven Rostedt , Brian Gerst , Juergen Gross , Paolo Bonzini , Arnd Bergmann Subject: Re: [patch 06/24] x86/idtentry: Provide macros to define/declare IDT entry points In-Reply-To: <9382db5c-90e2-f5bc-279e-9c92e282b0b3@oracle.com> References: <20200225221606.511535280@linutronix.de> <20200225222648.772492410@linutronix.de> <9382db5c-90e2-f5bc-279e-9c92e282b0b3@oracle.com> Date: Wed, 04 Mar 2020 13:46:20 +0100 Message-ID: <87o8tcl23n.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Alexandre Chartre writes: > On 2/25/20 11:16 PM, Thomas Gleixner wrote: >> +#else /* !__ASSEMBLY__ */ >> + >> +/* Defines for ASM code to construct the IDT entries */ >> +#define DECLARE_IDTENTRY(vector, func) \ >> + idtentry vector asm_##func func has_error_code=0 > > Should be DEFINE_IDENTRY(), no? Like the comment says: "Defines for > ..." No. That's my confused brain. DECLARE_IDTENTRY is used for declarations in C code and for emitting the ASM stubs when included from entry*.S I'll reword the comment and add some more documentation. Thanks, tglx