overlayfs: disabling V1 support leads to compile failure

Bug #1493839 reported by Andy Whitcroft
42
This bug affects 6 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Triaged
Medium
Andy Whitcroft

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

Tags: patch
Andy Whitcroft (apw)
Changed in linux (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Andy Whitcroft (apw)
milestone: none → ubuntu-15.09
Andy Whitcroft (apw)
Changed in linux (Ubuntu):
milestone: ubuntu-15.09 → ubuntu-15.10
Andy Whitcroft (apw)
Changed in linux (Ubuntu):
milestone: ubuntu-15.10 → ubuntu-15.11
Andy Whitcroft (apw)
Changed in linux (Ubuntu):
milestone: ubuntu-15.11 → ubuntu-15.12
Andy Whitcroft (apw)
Changed in linux (Ubuntu):
milestone: ubuntu-15.12 → ubuntu-16.01
Andy Whitcroft (apw)
Changed in linux (Ubuntu):
milestone: ubuntu-16.01 → ubuntu-16.02
Andy Whitcroft (apw)
Changed in linux (Ubuntu):
milestone: ubuntu-16.02 → ubuntu-16.03
Revision history for this message
Achim Schreiber (trombonista) wrote :

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 <email address hidden>

tags: added: patch
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.