From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk0-f66.google.com ([209.85.213.66]:35927 "EHLO mail-vk0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750903AbcFCCTn (ORCPT ); Thu, 2 Jun 2016 22:19:43 -0400 Subject: Re: get_mempolicy(2) type mismatch To: Daniel Borkmann References: <20160503005821.GC9613@cork> Cc: mtk.manpages@gmail.com, linux-man@vger.kernel.org, linux-fsdevel@vger.kernel.org From: "Michael Kerrisk (man-pages)" Message-ID: Date: Thu, 2 Jun 2016 21:19:32 -0500 MIME-Version: 1.0 In-Reply-To: <20160503005821.GC9613@cork> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On 05/02/2016 07:58 PM, J�rn Engel wrote: > The manpage seems to have the wrong type for "addr". > > Manpage: > int get_mempolicy(int *mode, unsigned long *nodemask, > unsigned long maxnode, unsigned long addr, > unsigned long flags); > > /usr/include/numaif.h: > extern long get_mempolicy(int *policy, const unsigned long *nmask, > unsigned long maxnode, void *addr, int flags); > > J�rn Hmmm -- it seems that the numactl package headers differ from the kernel headers (where the man page is accurate). But, it seems like the man page should reflect what's in the user-space header file, so I fixed it to be void *addr Cheers, Michael -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/