Received: by 10.192.165.148 with SMTP id m20csp1469921imm; Sat, 5 May 2018 12:54:45 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrAAWCEUHy4rWyqxBBYuBf2iiWNeCDcafo2lL+Dr1TlL6JICLqaJaA2oL0ZhWL+nY1eHHJQ X-Received: by 2002:a17:902:2804:: with SMTP id e4-v6mr32513124plb.153.1525550085912; Sat, 05 May 2018 12:54:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525550085; cv=none; d=google.com; s=arc-20160816; b=WPzVbMO+OsMiKXK3Z+uf0K3sgyTDrrZejHIDCpf7TGWW1anIU6kEG9E5eeF9oTaFtO wBQrM0KKa7naUXaMdAfygl0GKHhoumwvqBGWMS3pLQFtSIObFELTIJTU+7dn1MAQjJed oXXhcMrH7rpXlG6359r3sUU7oXUC6Bd0NXIqqDjZEJYdD6hICDoZXwj26ACJGR8SVz2m pN1bamPDlroa5t4KBwOCqQH1sVYYlg6brudCiy5pB+5bquJ1rbU92blCeZ5lbpUlHwww hfVHmaZbYFOrzEZVmyQstxuvYQ7PZk4sDP4erMjFGGj2eQC43BpvLHSBPjmSf6zKlWso pF/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=zBI64bkqcddHQR9XtBDxfMVAJYCF+LKUmKInADdSQbU=; b=eXtT93/BQ2xgGajBqjdHNsvjJb3etZR606kifbSKYgtcY7kiyyAKTm+hqiK5gu2ji6 OOu+HBbS8ICMnJbai9UrlC3S7uZjgiJTzCiVyITMeQxSTWZRzKBHFCDSZI3yO0qV8Wdh kOAbOSywhK1IeIGXp5JuFHfjfZCiui8aNHwB+17r80PvXZzKYasL1ljGdK7cVE8szFR+ yI2HSOjH5Eox26iy+kmBWI+L7VW5BQ4k7NlxTh+FStjxQE2uMikh5Wzm+SKALnBiCFCS dRYurD4iJsynxUWJAE4FMDfse8THHeOQb6w+WJ6eQScUqxBDtLGq0BBLeJYvo/EG4Q0D Q6dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=XmR+Vbeb; 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 o1-v6si17447722plk.577.2018.05.05.12.54.29; Sat, 05 May 2018 12:54:45 -0700 (PDT) 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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=XmR+Vbeb; 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 S1751800AbeEETyW (ORCPT + 99 others); Sat, 5 May 2018 15:54:22 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:34224 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751709AbeEETyU (ORCPT ); Sat, 5 May 2018 15:54:20 -0400 Received: by mail-wm0-f68.google.com with SMTP id a137-v6so10884855wme.1 for ; Sat, 05 May 2018 12:54:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=zBI64bkqcddHQR9XtBDxfMVAJYCF+LKUmKInADdSQbU=; b=XmR+VbebByHoFDvp82JznBvKg+/5bJDgOd6dpdIb4SvPfsNowo7U7PAYLzEy3GtgdB mIEqV35TqQ0wE0wGv8x01vTR8UraBs9dMIkLoxvE5V+E2aGiHiBUlj3YUeiWcWe839s4 vY88Bi4CFeJQzW7ecpH4SGeziH3CmWomtwhpAzQc59gM78Ae3W8kSw3X7ZC5amypOHLj paLEM9KO1tOM/L/71d85kSkB6XbkHF1/jBansMDaItys62rqLsP6LrjTFDWPh7xavcbp bbZVRgbEi3q3pCBJFPSxTXW5faHGDBFOOhaY2UZ2sAzp60g94Ddt85btIdQJvLHE0fj3 ykFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=zBI64bkqcddHQR9XtBDxfMVAJYCF+LKUmKInADdSQbU=; b=IbofWsHbWvSyXNkF1Xtaaxu1dLoZQZTm1ATNfmYpbEuSvGcLM8XxYuZfRItJEPj4a6 huCpQkvhhO1JEkczukrxxCJY6uTyj6qTdqt3Njxri3wWG62vOxB3o3lvVpKug2LNex1z MD0UbpdFYjCd7+L+IpOPbAauE1sl52+itpp3bww2Ky+h6VQmboRnYe0rtsIrnvWUvPTv 4B9p7vIPNaGu1vq8E+uGwMcdd2Bkt0A8zg2SKuNJ02MWA5Emt1hlnrTf5zlxwPGutYYF oGmguc2lipX/FtegZlCI5G1po9v/5he6l04VuJKWXs+Ssuj9hlfA4KZbk4Kq0Sl964nA 31JA== X-Gm-Message-State: ALQs6tDPSL9SwR3Ybqj73fg0dgOyFQi1NaE9TGDOB+Dw6i+x5+to5QSW nA0oKl05slvdaxP9clXVzrU= X-Received: by 10.28.101.6 with SMTP id z6mr18395406wmb.86.1525550059428; Sat, 05 May 2018 12:54:19 -0700 (PDT) Received: from macbookpro.malat.net (bru31-1-78-225-226-121.fbx.proxad.net. [78.225.226.121]) by smtp.gmail.com with ESMTPSA id h133sm4884842wmf.47.2018.05.05.12.54.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 05 May 2018 12:54:18 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id AF43D10C0604; Sat, 5 May 2018 21:54:17 +0200 (CEST) From: Mathieu Malaterre To: David Airlie Cc: Mathieu Malaterre , Arnd Bergmann , Greg Kroah-Hartman , linux-kernel@vger.kernel.org Subject: [PATCH] agp: uninorth: make two functions static Date: Sat, 5 May 2018 21:54:05 +0200 Message-Id: <20180505195405.6327-1-malat@debian.org> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Both ‘uninorth_remove_memory’ and ‘null_cache_flush’ can be made static. So make them. Silence the following gcc warning (W=1): drivers/char/agp/uninorth-agp.c:198:5: warning: no previous prototype for ‘uninorth_remove_memory’ [-Wmissing-prototypes] and drivers/char/agp/uninorth-agp.c:473:6: warning: no previous prototype for ‘null_cache_flush’ [-Wmissing-prototypes] Signed-off-by: Mathieu Malaterre --- drivers/char/agp/uninorth-agp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/char/agp/uninorth-agp.c b/drivers/char/agp/uninorth-agp.c index c381c8e396fc..79d8c84693a1 100644 --- a/drivers/char/agp/uninorth-agp.c +++ b/drivers/char/agp/uninorth-agp.c @@ -195,7 +195,7 @@ static int uninorth_insert_memory(struct agp_memory *mem, off_t pg_start, int ty return 0; } -int uninorth_remove_memory(struct agp_memory *mem, off_t pg_start, int type) +static int uninorth_remove_memory(struct agp_memory *mem, off_t pg_start, int type) { size_t i; u32 *gp; @@ -470,7 +470,7 @@ static int uninorth_free_gatt_table(struct agp_bridge_data *bridge) return 0; } -void null_cache_flush(void) +static void null_cache_flush(void) { mb(); } -- 2.11.0