Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3560988imj; Tue, 12 Feb 2019 00:23:34 -0800 (PST) X-Google-Smtp-Source: AHgI3IZdAXp6hypkY7RUt2ZtZ63vFyeI/92nZ5nPgT1RlCQ5EPYy2hCt13TUr4didC8Be/DxyGa+ X-Received: by 2002:a17:902:1e8:: with SMTP id b95mr2753097plb.325.1549959814199; Tue, 12 Feb 2019 00:23:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549959814; cv=none; d=google.com; s=arc-20160816; b=i8PTwldqbMcRlWT7HjPtijlSOXsU7IVB5bVTQZyzQJOj1guGUwOrATAbye98tvQNzx rGI3JY9dYyQM+ebFkOZiT5oV3ZPtWEK/QSBUVbH2mbw31hMXtS9fyefU93jyz38Yy3A7 bcuNaOrEF4M1MhCQmhWr8qH+SBs0Ru4YvDovi6wNGcj+uvyoWIjattUYJXl5lqLnaFAm ENWAYtR/cti//8RB/MOispaf5EF8orOuEUImR9uIftARIO9GwrwV8M8Qq++yQFjqk7Go vPOjcXZuycXRtDVcyuMOnlC7MRHFMBcy7WgQViEq4B4PZ6MhkqU7SccP4aOBc3GCV9AH Ctow== 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; bh=I3qp1gjoLBqWqEugwy/TLhF7vqIRN/X/oq0m709AxA4=; b=v3TtdvaI0i5XkGj0Moj4OcprdolCXQQYmLeK5NmuT/vUNAbPiF7C20T44ki8fRE1FA LpaI2eeJBcuR3+DmzBdpX3tfIxPQ1Ffw3IbN4F8i8aISrtw6Ro0vTd2sXf/mpKjX1tXX L3qrJSVwVxP5oV9qeRHgsoMBkVGutR+yvCnnKrKqHOsSeVCZ2BMcSSXEWLS+kjIoo8tY NRa5NSrTL21lfBCMgdyhyc3GgD3I9mYMggJFhpdmzFpv91MO0ZAwkyncb4JtXo4vWKjk mZdAIYfdzrKdpe+HLYl6nv/TJkC4pIqzHYNcB9rAwmXsLP/aJUhtFcWekwB7UbO5o2Jh 53mQ== 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 s5si11976058plp.139.2019.02.12.00.23.18; Tue, 12 Feb 2019 00:23:34 -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 S1728416AbfBLIWx (ORCPT + 99 others); Tue, 12 Feb 2019 03:22:53 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:42612 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727509AbfBLIWx (ORCPT ); Tue, 12 Feb 2019 03:22:53 -0500 Received: from p5492e0d8.dip0.t-ipconnect.de ([84.146.224.216] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1gtTL2-0004Kc-Be; Tue, 12 Feb 2019 09:22:44 +0100 Date: Tue, 12 Feb 2019 09:22:43 +0100 (CET) From: Thomas Gleixner To: Aubrey Li cc: mingo@redhat.com, peterz@infradead.org, hpa@zytor.com, ak@linux.intel.com, tim.c.chen@linux.intel.com, dave.hansen@intel.com, arjan@linux.intel.com, linux-kernel@vger.kernel.org, Aubrey Li Subject: Re: [PATCH v9 2/3] x86,/proc/pid/status: Add AVX-512 usage elapsed time In-Reply-To: <20190211185931.4386-2-aubrey.li@intel.com> Message-ID: References: <20190211185931.4386-1-aubrey.li@intel.com> <20190211185931.4386-2-aubrey.li@intel.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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 On Tue, 12 Feb 2019, Aubrey Li wrote: > diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h > index d53c54b842da..60ee932070fe 100644 > --- a/arch/x86/include/asm/processor.h > +++ b/arch/x86/include/asm/processor.h > @@ -996,5 +996,7 @@ enum l1tf_mitigations { > }; > > extern enum l1tf_mitigations l1tf_mitigation; > +/* Add support for architecture specific output in /proc/pid/status */ > +extern void arch_proc_pid_status(struct seq_file *m, struct task_struct *task); Sigh. This is absolutely the wrong place. The weak function is declared and used in fs/proc/... So the prototype wants to be in a header which is included from there independent of x86... Thanks, tglx