Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3713610imj; Tue, 12 Feb 2019 03:28:36 -0800 (PST) X-Google-Smtp-Source: AHgI3IZb0yRdEC9RT7/tKxG9WCwFwF8wLvqNkMz3GjzDChUgZB8OXii+uCt35gXk4oZRmwxM/fhz X-Received: by 2002:a17:902:8c81:: with SMTP id t1mr3592001plo.107.1549970916872; Tue, 12 Feb 2019 03:28:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549970916; cv=none; d=google.com; s=arc-20160816; b=ezgqV5ZxaZ6uEoJ0KbZK57A0/zjScwnmx2DzTWSak68lMwfwRumBj4V+bqN5BrqOli V49pA+Cxn1JbqCp/C5gylf69TsuL+q/Wl2LyvTHmqEAWnG2lOVgDcAGsgSTFy9SR+4h3 fTQ9+FczwPyta0jMt1PkckuCF0/GGJO91fu0eXr8UqUBwTHKzJXly4BV0dEIixB++KY8 z2YGiYvM0aarmOxI3vBDNwdNHj4wUdpdh8rlhsIWcN9AOLevzO8D9MFVJBOaXOXt2fXV 2YyxkhCZflhnuB7KkcCo+MPn7lZzyM8Jv9Qei3zCnKelizvJsQBDnjIIdVz4KbhzN0Ph KDVg== 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=r8k4tH+WYpxe+kW0dUp+lU7QDoqWPxBwXSDjkfVXZ8E=; b=hQBPVw5BKIpIFojjgxZmrXfFlpgy+2BNpSc8cDy4gbeXPr5che6qaDlrimK4a3ru+J brxX92aGzOvJGZAT5wkl0505EmQ/8RUhZf56drG2peSxWtnaAfddYgn5PRU0J9KgY29a Z14xCSUn2OHKQuk0hzgY4kH6LecfZDG1ejWmtBOXU5ZvX2bHjQ8724oy8SPbTBI/eKDN 95M/cFm64dl6/jBGx3kzWvwg3SaPsc1WEGWP5/XWizQEGPlLmgz2bxS7ggN4hT56K4VI /DpggDUlo+zgvD9UbZDhZSXhzeR0hR3OwbDK6kv6wchPdOKjdwFWcU3ODW9vvFXquxfs i/Sg== 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 u128si7788971pgu.230.2019.02.12.03.28.20; Tue, 12 Feb 2019 03:28:36 -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 S1729400AbfBLLTu (ORCPT + 99 others); Tue, 12 Feb 2019 06:19:50 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:43033 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728566AbfBLLTu (ORCPT ); Tue, 12 Feb 2019 06:19:50 -0500 Received: from [5.158.153.52] (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 1gtW6F-0000rD-Md; Tue, 12 Feb 2019 12:19:39 +0100 Date: Tue, 12 Feb 2019 12:19:39 +0100 (CET) From: Thomas Gleixner To: "Li, Aubrey" cc: Aubrey Li , 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 Subject: Re: [PATCH v9 2/3] x86,/proc/pid/status: Add AVX-512 usage elapsed time In-Reply-To: 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: multipart/mixed; boundary="8323329-255307220-1549970379=:3710" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-255307220-1549970379=:3710 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT On Tue, 12 Feb 2019, Li, Aubrey wrote: > On 2019/2/12 16:22, Thomas Gleixner wrote: > > 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... > > Can the prototype be in the architecture header if they want to call the > function? Basic C programming course: The prototype must be available before the declaration of the global function. fs/proc/array.c:404:13: warning: no previous prototype for ‘arch_proc_pid_status’ [-Wmissing-prototypes] void __weak arch_proc_pid_status(struct seq_file *m, struct task_struct *task) Oh well.... Thanks, tglx --8323329-255307220-1549970379=:3710--