Skip to contentSkip to conversation

Move rar_register.h file to include/linux/rar

PATCH In review Mark Allyn 3 participants 3 messages Jan 18, 2010 – Jan 19, 2010 Staging

lore
Share & tools
lore

Mark Allyn

author
#0 lore raw

PATCH 1/1 Move rar_register.h file to include/linux/rar

The purpose of this patch is to move the rar_register.h file from the driver source code directory to a subdirectory in the kernel's include tree; at incluce/linux/rar.

This is the second of seven patches for the rar_register driver for Sunday, January 17, 2009

This is to provide visibility to other device driver developers.

This patch only does the move. It does not make any changes in any code.

Any checkpatch errors on this code were from the original code. They will be addressed in future patches.

The rar stands for restricted access region. The restricted access region is an area of memory that can be locked from access by the x86 processor.

The purpose of the restricted access region is to safeguard confidential information from any unauthorized software running on the x86 processor.

The purpose of this driver is to enable other drivers to obtain the address ranges of the restricted regions as well as lock them.

This patch is referenced off the linux-next repository as pulled on Sunday, January 17, 2010

Date: January 17, 2010

---
 drivers/staging/rar/rar_register.c |    2 +-
 drivers/staging/rar/rar_register.h |   99 ------------------------------------
 include/linux/rar/rar_register.h   |   99 ++++++++++++++++++++++++++++++++++++
 3 files changed, 100 insertions(+), 100 deletions(-)
 delete mode 100644 drivers/staging/rar/rar_register.h
 create mode 100644 include/linux/rar/rar_register.h
drivers/staging/rar/rar_register.c +1 -1
index a23a1f6..836d383 100644
@@ -15,7 +15,7 @@
 #include <linux/pci.h>
 #include <linux/firmware.h>
 #include <linux/sched.h>
-#include "rar_register.h"
+#include <linux/rar/rar_register.h>
 
 /* The following defines are for the IPC process to retrieve RAR in */
 
drivers/staging/rar/rar_register.h deleted +0 -99

99 lines not on this page · raw message

include/linux/rar/rar_register.h new file +99 -0

99 lines not on this page · raw message

Signature · 1 line
1.6.0.6
#1 lore raw
Quoted 3 lines · Mark Allyn

The purpose of this patch is to move the rar_register.h file from the driver source code directory to a subdirectory in the kernel's include tree; at incluce/linux/rar.

No, staging drivers are self-contained within their drivers/staging/ directory. No placing code outside of them otherwise bad things will happen.

thanks,

greg k-h

#2 lore raw
In reply to Mark Allyn
Quoted 3 lines · Mark Allyn

The purpose of this patch is to move the rar_register.h file from the driver source code directory to a subdirectory in the kernel's include tree; at incluce/linux/rar.

Why do you create a subdirectory for a single header file?