Skip to contentSkip to conversation

How to do Header Dependency Check Properly for Kernel Patch

DISCUSSION David Sterba 1 participant 1 message Mar 27, 2015 1 message not in the archive Btrfs file system

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 4 lines · nick

I have a patch for moving over the rcu-string header file for btrfs to the standard include headers in include/linux
as you stated this on a to do on the brtfs to do page for the project's wiki page.

The wiki page states that the task is already assigned
https://btrfs.wiki.kernel.org/index.php/Project_ideas#Move_rcu_string_out_of_btrfs_to_lib.2F

besides that there were 8 iterations of the patchset, acked by the respective people.

http://thread.gmane.org/gmane.linux.kernel/1862689

fs/btrfs/btrfs_inode.h line 21

Quoted 11 lines

index de5e4f2..df8e981 100644

fs/btrfs/btrfs_inode.h +1 -0
@@ -15,11 +15,13 @@
  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  * Boston, MA 021110-1307, USA.
  */
+#pragma once
 
 #ifndef __BTRFS_I__
 #define __BTRFS_I__

the pragmas are not used in kernel AFAIK, the ifndef right below the line serves the exact purpose.