Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b8b0f559 authored by Konrad Rzeszutek Wilk's avatar Konrad Rzeszutek Wilk
Browse files

xen/apic/xenbus/swiotlb/pcifront/grant/tmem: Make functions or variables static.



There is no need for those functions/variables to be visible. Make them
static and also fix the compile warnings of this sort:

drivers/xen/<some file>.c: warning: symbol '<blah>' was not declared. Should it be static?

Some of them just require including the header file that
declares the functions.

Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
parent 4d9310e3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -6,8 +6,9 @@

#include <xen/xen.h>
#include <xen/interface/physdev.h>
#include "xen-ops.h"

unsigned int xen_io_apic_read(unsigned apic, unsigned reg)
static unsigned int xen_io_apic_read(unsigned apic, unsigned reg)
{
	struct physdev_apic apic_op;
	int ret;
+2 −0
Original line number Diff line number Diff line
@@ -79,6 +79,8 @@
#include "smp.h"
#include "multicalls.h"

#include <xen/events.h>

EXPORT_SYMBOL_GPL(hypercall_page);

DEFINE_PER_CPU(struct vcpu_info *, xen_vcpu);
+1 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@
#include <xen/xen.h>
#include <asm/iommu_table.h>

#include <asm/xen/swiotlb-xen.h>
int xen_swiotlb __read_mostly;

static struct dma_map_ops xen_swiotlb_dma_ops = {
+1 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@
#include <linux/module.h>

#include <xen/platform_pci.h>
#include "xen-ops.h"

#define XEN_PLATFORM_ERR_MAGIC -1
#define XEN_PLATFORM_ERR_PROTOCOL -2
+1 −1
Original line number Diff line number Diff line
@@ -236,7 +236,7 @@ static int pcifront_bus_write(struct pci_bus *bus, unsigned int devfn,
	return errno_to_pcibios_err(do_pci_op(pdev, &op));
}

struct pci_ops pcifront_bus_ops = {
static struct pci_ops pcifront_bus_ops = {
	.read = pcifront_bus_read,
	.write = pcifront_bus_write,
};
Loading