From patchwork Tue May 22 19:41:29 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 160726 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id D4813B6FA5 for ; Wed, 23 May 2012 05:40:28 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754552Ab2EVTkZ (ORCPT ); Tue, 22 May 2012 15:40:25 -0400 Received: from smtp.gentoo.org ([140.211.166.183]:57656 "EHLO smtp.gentoo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753253Ab2EVTkZ (ORCPT ); Tue, 22 May 2012 15:40:25 -0400 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 051F61B4017; Tue, 22 May 2012 19:40:23 +0000 (UTC) From: Mike Frysinger To: linux-ext4@vger.kernel.org Cc: adilger@whamcloud.com Subject: [PATCH] libquota: add a quotactl prototype Date: Tue, 22 May 2012 15:41:29 -0400 Message-Id: <1337715689-7116-1-git-send-email-vapier@gentoo.org> X-Mailer: git-send-email 1.7.8.6 Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org The commit 0df8a27bbaf51b55c0e8c3a533ef4c2ff9d79c9f removed the system quota.h include, but in doing so, added the problem: mkquota.c:55:2: warning: implicit declaration of function 'quotactl' Since we're maintaining a copy of quota.h, add a proper func prototype. Signed-off-by: Mike Frysinger --- lib/quota/quota.h | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/lib/quota/quota.h b/lib/quota/quota.h index a943ec6..3eaec1d 100644 --- a/lib/quota/quota.h +++ b/lib/quota/quota.h @@ -152,4 +152,9 @@ enum { }; #define QUOTA_NL_A_MAX (__QUOTA_NL_A_MAX - 1) +#ifdef HAVE_QUOTACTL +extern int quotactl(int __cmd, const char *__special, int __id, + caddr_t __addr); +#endif + #endif /* _QUOTA_ */