Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5645060yba; Mon, 13 May 2019 14:42:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqwzyc309otsyquMnpHvLWpkbVPxAivEXIvRTP36xhOetLXtc/7RwThCvqTFhH7lb9YfaCrZ X-Received: by 2002:a17:902:b703:: with SMTP id d3mr32912210pls.93.1557783746138; Mon, 13 May 2019 14:42:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557783746; cv=none; d=google.com; s=arc-20160816; b=M+TKIhBzfhet1JKBhsmAca4BKI/RBn/xd8GCuAa7ekvQ5tPrxj3xBMsDnqrQHDjaaF /rBcmxWffkKCdTd7pipiWYeRtB0zaloRyusOpUJnplJBJLI8tI/w/lE5lNYWiZr6qAoA 0KHuh+Ra8EtVvuoS6sqi8ZD9TztNRjdIZ0M406WZD9i3uBNrZKT/5msAWArfDaaAPdDP b7MCk6IaxP6jOIv//7jaQcPAQ7yuUH3JA6pDN6iwKW1fKRz5hxyGPOAxbmcpddUI/lEs xFyYaavobCKfhjtZ5dvGrGfeGT81ceg4hL8HbZXJfzQ93f9HXDnvTwmEOhLu4XIjMSdO 5JAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ml5e5SvV7EOXRrwnyGezErXhiPZR2O3UcJlBIK9a7mo=; b=ZplHcA/TZb+7qOwWvO8uOKKMlYS+W8kBVAC0XP6TElaA+tfy2Nhy2+hRvyepXGYrqs 5i5l6MAhR6Mkyd3FADeBldDkWJs4EOnkAWjibljhWTrkbbIh2qug3fx9t6XJupSfSrS9 q1pJKTGPvU//LRbLs1T5F9b21SDNvOmTQ04xufUyVA7ncY0jqTq/onlHztroBgTW2hqA uaETNdpXIib3LejgUpmUDiiPRUYkebHLOz8on9LkGq8ZfCYas60D4We9931NV1KxlKPB 3kvNYWDGUdDM3iuD/Xj25OsJb4b8ZJl46vfTxjdmCFgt4MRn0RQlr2wcgsQGAGrXc9ug 2gwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UosvtbuZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k15si19132251pfi.61.2019.05.13.14.42.07; Mon, 13 May 2019 14:42:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UosvtbuZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726422AbfEMVlM (ORCPT + 99 others); Mon, 13 May 2019 17:41:12 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:37924 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726174AbfEMVlM (ORCPT ); Mon, 13 May 2019 17:41:12 -0400 Received: by mail-wm1-f66.google.com with SMTP id f2so755106wmj.3 for ; Mon, 13 May 2019 14:41:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ml5e5SvV7EOXRrwnyGezErXhiPZR2O3UcJlBIK9a7mo=; b=UosvtbuZOLfQWGbKAQSLNFzjqFu3HvMBi5n+MqvZEiZslVZprGN96XE7HylDEqUC3r zoypEsCeENepF6lXHlmeXeZjlgQW4x0nXWC9YSFOuVB0jU1Zyw6D63GOiOogO0TOjqtz 2MQ8cls6nIG+Qs/TsdmbKKaOTp0IaYsGZYQPx1M60qG4eyUJN1Bg4nAChBB0qrhv7wsw EQhm9P4A6fGQ0Xrb4+FFDjWuCM6u7RB6RYEjPyHBHk6sRDf3uFEugFKqGIFenMV9GKRS D/I1WM9P3h7Pq62/A+StGZuE06uqmrNlh0fY6CQLdV5DQlf/P11WFdTHFCqybRqPOaOw 386g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ml5e5SvV7EOXRrwnyGezErXhiPZR2O3UcJlBIK9a7mo=; b=Ulla8MRvGR04KDVhKElNUBAXhHrDUsXzn9FSI76CFc9q2IBbPCTv8t+toJRaFPOM3Q j9b7Xmyq0Xh51kb2EzX+8qozQUms4gIxsjnFf9RQW8vg43QiJJfHpiwMKmvqAKerNFhf qI2Mg56kconJah0vpOWVpLSQV1DFvMirTwZlBKEEaJhW/Ltzzox1Ut9V1vvObZnfJ33T N6nOEsHGDYl+NX5RBAfqhwjtVdkW+uoV7m+aZLYvE1wdPJBtI85pBSbcK3OdHYoBJwAh g20ciUPRkd+FgUg0+EliowdGbUyQL0BuZf5YCAFk5Q6BEzGG+nV5eiTlD5+LDp/TEcCP dQ9A== X-Gm-Message-State: APjAAAWTC07UtousUFkkljDBdTvp96xzbJplKOAJ6jV5rSDGoqpEdaDz eW6kz3VoCMc5KWdTZ+9JtQdggaVuZX2ZcjL6NQ8= X-Received: by 2002:a7b:c4d1:: with SMTP id g17mr8053477wmk.103.1557783670098; Mon, 13 May 2019 14:41:10 -0700 (PDT) MIME-Version: 1.0 References: <20190510032144.15060-1-yuehaibing@huawei.com> In-Reply-To: <20190510032144.15060-1-yuehaibing@huawei.com> From: Richard Weinberger Date: Mon, 13 May 2019 23:40:58 +0200 Message-ID: Subject: Re: [PATCH] ubifs: Fix build error without CONFIG_UBIFS_FS_XATTR To: YueHaibing Cc: Richard Weinberger , Artem Bityutskiy , Adrian Hunter , linux-mtd@lists.infradead.org, LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 10, 2019 at 5:22 AM YueHaibing wrote: > > Fix gcc build error while CONFIG_UBIFS_FS_XATTR > is not set > > fs/ubifs/dir.o: In function `ubifs_unlink': > dir.c:(.text+0x260): undefined reference to `ubifs_purge_xattrs' > fs/ubifs/dir.o: In function `do_rename': > dir.c:(.text+0x1edc): undefined reference to `ubifs_purge_xattrs' > fs/ubifs/dir.o: In function `ubifs_rmdir': > dir.c:(.text+0x2638): undefined reference to `ubifs_purge_xattrs' > > Reported-by: Hulk Robot > Fixes: 9ca2d7326444 ("ubifs: Limit number of xattrs per inode") > Signed-off-by: YueHaibing > --- > fs/ubifs/ubifs.h | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/fs/ubifs/ubifs.h b/fs/ubifs/ubifs.h > index 379b9f7..fd7f399 100644 > --- a/fs/ubifs/ubifs.h > +++ b/fs/ubifs/ubifs.h > @@ -2015,13 +2015,17 @@ int ubifs_xattr_set(struct inode *host, const char *name, const void *value, > size_t size, int flags, bool check_lock); > ssize_t ubifs_xattr_get(struct inode *host, const char *name, void *buf, > size_t size); > -int ubifs_purge_xattrs(struct inode *host); > > #ifdef CONFIG_UBIFS_FS_XATTR > void ubifs_evict_xattr_inode(struct ubifs_info *c, ino_t xattr_inum); > +int ubifs_purge_xattrs(struct inode *host); > #else > static inline void ubifs_evict_xattr_inode(struct ubifs_info *c, > ino_t xattr_inum) { } > +static inline int ubifs_purge_xattrs(struct inode *host) > +{ > + return 0; > +} > #endif > > #ifdef CONFIG_UBIFS_FS_SECURITY > -- Applied. -- Thanks, //richard