Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5062387imu; Tue, 25 Dec 2018 16:53:12 -0800 (PST) X-Google-Smtp-Source: ALg8bN7PqNMyZ/vBplYGANHxy2c/NF/EYa2j4QnXjN+uV4VrnnxNwBCdiUr01qULflyw7jA8Hwki X-Received: by 2002:a17:902:c5:: with SMTP id a63mr18169991pla.267.1545785592498; Tue, 25 Dec 2018 16:53:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545785592; cv=none; d=google.com; s=arc-20160816; b=BSx9e2cGLAp/jNwH/cWZBSURzhydb+I2Tr9kgJVqW0mIBHw97jfdBH3DZm2NLJfiqP W7PaBuuJLibHaVBBiMJYqL6Ln6e0vIELJqLA4SwwchWy8k1wH9roI6gUCeYCIVC1smSW /vsP3LYiuW/VeuKpl6qUncMRBiUAEusEtHxDSEQJm5tHH0frxR8y01Uq+yz3eO/+1+9o B6DdMdVKrJD1qeXSp+0quCiqJ8N4RQX8crRbC8ySg2kfh7LeFbEK/SvhtgXemkBKMrvD n//YP0jpG+haD/gVnC5Ok0I4yOaDLY8ELRR6vRKH7s6gvqLDdZ+loPqQ/j3/kJbrzg/V NRmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:from:references:in-reply-to :message-id:cc:to; bh=kuGFqLNiQRC22hUNJMbFEQj7oTNBgDifZd+dK0/ge94=; b=BhfLyiHC5X71zYmkM6Iwu6SFrPTdlUBoOX6yvHQ0hY2gUOrlY3SaRuZmEP3Rsc3jMS nvH12EM9S9Que5Qn+jkuqzQfbUO994Re5GgNgl/stiBHtRkvg9ZFqHNXj41xnKR1zjip E3vJmor75n3EtwOLfcWOccSMWE41XcPWdy3Ia5yo1MZY7aO4vHCHGAlTuJJamPZ93M5Y xwkhQpCiTGoRmObXutMIFShPBRCRjtituOxwVfqOLjXxGp2gpPJ5K9NQH14BLX/hXp5U OT11sTUg464dwbiayK3ARwTRUyrCtWEVy5FmhI8LZVzC/pP3c7GfsQocPojt6MkEIIlQ WhNA== 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 q16si30427649pgh.185.2018.12.25.16.52.57; Tue, 25 Dec 2018 16:53:12 -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 S1729774AbeLZApV (ORCPT + 99 others); Tue, 25 Dec 2018 19:45:21 -0500 Received: from kvm5.telegraphics.com.au ([98.124.60.144]:57366 "EHLO kvm5.telegraphics.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726026AbeLZAoB (ORCPT ); Tue, 25 Dec 2018 19:44:01 -0500 Received: by kvm5.telegraphics.com.au (Postfix, from userid 502) id 80F7429524; Tue, 25 Dec 2018 19:43:56 -0500 (EST) To: Arnd Bergmann , Greg Kroah-Hartman , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Bartlomiej Zolnierkiewicz Cc: linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linuxppc-dev@lists.ozlabs.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org Message-Id: <8d58e5de5c72c9137ebb1de3d2979d587d0c38b6.1545784679.git.fthain@telegraphics.com.au> In-Reply-To: References: From: Finn Thain Subject: [PATCH v8 15/25] powerpc: Clean up nvram includes Date: Wed, 26 Dec 2018 11:37:59 +1100 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The nvram_read_byte() and nvram_write_byte() definitions in asm/nvram.h duplicate those in linux/nvram.h. Get rid of the former to prepare for adoption of struct arch_nvram_ops (which is defined in linux/nvram.h for general use). Signed-off-by: Finn Thain Tested-by: Stan Johnson --- arch/powerpc/include/asm/nvram.h | 3 --- arch/powerpc/kernel/setup_32.c | 1 + drivers/char/generic_nvram.c | 1 + drivers/video/fbdev/matrox/matroxfb_base.c | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/include/asm/nvram.h b/arch/powerpc/include/asm/nvram.h index 09a518bb7c03..1443b40f44b9 100644 --- a/arch/powerpc/include/asm/nvram.h +++ b/arch/powerpc/include/asm/nvram.h @@ -101,7 +101,4 @@ extern int nvram_write_os_partition(struct nvram_os_partition *part, /* Determine NVRAM size */ extern ssize_t nvram_get_size(void); -/* Normal access to NVRAM */ -extern unsigned char nvram_read_byte(int i); -extern void nvram_write_byte(unsigned char c, int i); #endif /* _ASM_POWERPC_NVRAM_H */ diff --git a/arch/powerpc/kernel/setup_32.c b/arch/powerpc/kernel/setup_32.c index 81909600013a..04c0315cfe46 100644 --- a/arch/powerpc/kernel/setup_32.c +++ b/arch/powerpc/kernel/setup_32.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include diff --git a/drivers/char/generic_nvram.c b/drivers/char/generic_nvram.c index 14e728fbb8a0..0381af638fe3 100644 --- a/drivers/char/generic_nvram.c +++ b/drivers/char/generic_nvram.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/video/fbdev/matrox/matroxfb_base.c b/drivers/video/fbdev/matrox/matroxfb_base.c index 838869c6490c..0a4e5bad33f4 100644 --- a/drivers/video/fbdev/matrox/matroxfb_base.c +++ b/drivers/video/fbdev/matrox/matroxfb_base.c @@ -111,12 +111,12 @@ #include "matroxfb_g450.h" #include #include +#include #include #include #ifdef CONFIG_PPC_PMAC #include -unsigned char nvram_read_byte(int); static int default_vmode = VMODE_NVRAM; static int default_cmode = CMODE_NVRAM; #endif -- 2.19.2