From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4B716C433DF for ; Sun, 17 May 2020 21:25:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 373E320758 for ; Sun, 17 May 2020 21:25:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726659AbgEQVZ1 (ORCPT ); Sun, 17 May 2020 17:25:27 -0400 Received: from mail.hallyn.com ([178.63.66.53]:56782 "EHLO mail.hallyn.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726537AbgEQVZ1 (ORCPT ); Sun, 17 May 2020 17:25:27 -0400 Received: by mail.hallyn.com (Postfix, from userid 1001) id 45C1A6C9; Sun, 17 May 2020 16:25:25 -0500 (CDT) Date: Sun, 17 May 2020 16:25:25 -0500 From: "Serge E. Hallyn" To: James.Bottomley@HansenPartnership.com Cc: Christian Brauner , lkml , serge@hallyn.com Subject: [PATCH 1/1] shiftfs: specify struct members Message-ID: <20200517212525.GA29858@mail.hallyn.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org struct path is declared as randomize_layout, so specify the struct members when initializing to avoid build failure. Signed-off-by: Serge Hallyn --- [ this is for https://git.kernel.org/pub/scm/linux/kernel/git/jejb/binfmt_misc.git/commit/?h=shiftfs-v3 , which i was just building for an experiment ] fs/shiftfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/shiftfs.c b/fs/shiftfs.c index 7984a93745d2..6028244c2f42 100644 --- a/fs/shiftfs.c +++ b/fs/shiftfs.c @@ -535,7 +535,7 @@ static int shiftfs_getattr(const struct path *path, struct kstat *stat, struct dentry *real = path->dentry->d_fsdata; struct inode *reali = real->d_inode; const struct inode_operations *iop = reali->i_op; - struct path newpath = { path->dentry->d_sb->s_fs_info, real }; + struct path newpath = { .mnt = path->dentry->d_sb->s_fs_info, .dentry = real }; int err = 0; if (iop->getattr) -- 2.17.1