From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751683AbaCQUQE (ORCPT ); Mon, 17 Mar 2014 16:16:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:7690 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750723AbaCQUQC (ORCPT ); Mon, 17 Mar 2014 16:16:02 -0400 Message-ID: <1395087329.10287.33.camel@localhost> Subject: Re: [PATCH 7/7] pid: get pid_t ppid of task in init_pid_ns From: Eric Paris To: Tony Luck Cc: Richard Guy Briggs , linux-audit@redhat.com, Linux Kernel Mailing List , sgrubb@redhat.com, Andrew Morton , Peter Zijlstra , Oleg Nesterov , stable , "Eric W. Biederman" Date: Mon, 17 Mar 2014 16:15:29 -0400 In-Reply-To: References: <328c85752a7eb053e72d9194827b91fc228d4f67.1390495874.git.rgb@redhat.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2014-03-17 at 13:14 -0700, Tony Luck wrote: > On Thu, Jan 23, 2014 at 11:32 AM, Richard Guy Briggs wrote: > > Added the functions task_ppid_nr_ns() and task_ppid_nr() to abstract the lookup > > of the PPID (real_parent's pid_t) of a process, including rcu locking, in the > > arbitrary and init_pid_ns. > > This provides an alternative to sys_getppid(), which is relative to the child > > process' pid namespace. > ... > > +static int pid_alive(const struct task_struct *p); > > This patch (or some successor version of it) showed up > in next-20140317 and the above declaration caused a > bunch of warnings on ia64: > > include/linux/sched.h:1718: warning: 'pid_alive' declared inline after > being called > > [repeated 1675 times across files that include this] > > The ia64 complier is a lot happier if "inline" is added like this: > > static inline int pid_alive(const struct task_struct *p); Fixed for tomorrow.