Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2229998ybk; Sun, 17 May 2020 14:30:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyiJ9urLVGV60DoSAH07qjjzI/JhbDbCUC5q68G9/KaJJH7B4sYD7MBXLrNNl8QdN930O2B X-Received: by 2002:a17:906:1e51:: with SMTP id i17mr12687964ejj.336.1589751049853; Sun, 17 May 2020 14:30:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589751049; cv=none; d=google.com; s=arc-20160816; b=ywU+wT/iDJCXpGdyHUN1WrAg8Wg4RxNOdGF4UwvjjOvCvARNw1D3W3qBO6KoDrZNkU 4NpAF1zZ8e5nTsldRgjDnwZaCMIAGpR0wlYOYutaUueIIaZR//RcAvt5nT5RycKYlfdK H3e2m+w9zduN5Vc+iZq5XcOlPFlkX+/YvJ1X8H8v8/xzjGcAtbHZYWmUzjEMbq1ZH6Pn cRC0AYh6n5vi+auZpurTQmB/6AH6ij+O+42Nx1uj0e8m5WmuARV+p6Zhkky/ozBjjY1c 7KrsWf4PWw+LzFck7vwQ2mb3T/yzHeVqrgQMP43Q7wk7yxc7DmGKLogPyNZ7xGPbxesN Q9mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date; bh=yAdaIMCxj3ad1e+maN4jX5SlGYX62foI2CqyzZRmLQ8=; b=L/1jcCEW/LxFynndZPidminINsRr7QjOE8LhdEZCe4JKV8IeSU2ef/k0MEq53Aavfv 0+ZpOcU7MFlZrGIb6uGZGbLcQBTRcql2JLqEEMjFRlZr3RDWIlWd0Zc7GP+2HYV2KozL 9acu94DRHnUe+L7mvicY1bIbYSkTzhuawLVPUbfi2pJFa+KGNR00qVcNx9nbNV3MA7Rh F4eVcnZzX8/cBSplfIEa06OkZ75kS3MDvCQquCXfLFAVRR/2T+7Uyf3O0jn9M79Amo3S GBDU0TSZtmOBFKAUEOywSY9qvEw3IZhxynShPNIlRsXtK5d6bAaL5yH6MVp5A2cs6tNy 5fNQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i90si4433428edd.55.2020.05.17.14.30.14; Sun, 17 May 2020 14:30:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726602AbgEQVZ1 (ORCPT + 99 others); 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