fs: overlay: fix compile error when CONFIG_OVERLAY_FS_V1 is not set

Fixes Ubuntu Launchpad Bug #1493839

Added necessary #ifdef around undeclared ovl_v1_fs_type
according to CodingStyle lines 910-915

Signed-off-by: Achim Schreiber <git...@ibekas.de>


** Attachment added: "patch_launchpad_bug_1493839"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1493839/+attachment/4910248/+files/patch_launchpad_bug_1493839

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1493839

Title:
  overlayfs: disabling  V1 support leads to compile failure

Status in linux package in Ubuntu:
  Triaged

Bug description:
  "CONFIG_OVERLAY_FS_V1 is not set":                                            
                                                            
      fs/overlayfs/super.c: In function 'ovl_init':                             
                                                            
      fs/overlayfs/super.c:1213:30: error: 'ovl_v1_fs_type' undeclared (first 
use in this function)                                         
      fs/overlayfs/super.c:1213:30: note: each undeclared identifier is 
reported only once for each function it appears in                  
      fs/overlayfs/super.c: In function 'ovl_exit':                             
                                                            
      fs/overlayfs/super.c:1226:26: error: 'ovl_v1_fs_type' undeclared (first 
use in this function)                                         
      scripts/Makefile.build:258: recipe for target 'fs/overlayfs/super.o' 
failed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1493839/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to