Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5999092ybi; Wed, 31 Jul 2019 06:45:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqzTTX+0Qiqf62NOX5gnT8wzhVbA/DhoTG4YEiFhpB5Enkhq+UR5wvZUXFIpNGHSjM5uGYhx X-Received: by 2002:a17:902:848b:: with SMTP id c11mr120075890plo.217.1564580750380; Wed, 31 Jul 2019 06:45:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564580750; cv=none; d=google.com; s=arc-20160816; b=MREcsqKn6N6jO7g9wNCf3ErXWyRecSeuOKzBeNDA+gK6jZijmMTc/Ru764vcx6fToA dqcvDyUtMAbzvJSBCvD6k7A2+n2zMcK2AhPzVX9MM3Ti5TUOmJcjjKep5hAexiCWS0kU oUwcQ+Ptu8Mv5+MCE4UuGuvNdEzcSXk3BfvpSz0lDrcfqNBVD31y0q4CfN9Xjd+18KGk sC50JGG3Fc8mhNsSu8u8TXWBs0BOmSA5PNJl2AQT4/qHV9MKePTYGznE3wgCZEIZeege to5m/25CjROQxI/M5hTSfjymOtDk0UQdVOgyP/MUAYeyGTKkwYswEIaR03YW5KDMbvno T8WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=mxMz9DTYTl5hcQl/IOSK5bxeHDD9Zpp9rkD02EBfWBw=; b=oLYp4MRNdmKvUmS8eQo3zp6Ht+pI7LMO8ZfHZx3RTAixeOlZCoGl9JUbQdFA6OCtGX JeaZP+pyVt93D0fSAiZPucLlbErvS1/5NdrUFgJSqmHYtR4p+zCwbBPzsD0oX2p0efb9 Ys45eTGCxiVRS8FWdC1QXQSUIcFdgNbZJwuSgoRyP4EuX0/XVzHD9ZX2mV7WerM4ZCUp d51Ws273fktmuNbMxbRB+96pUHAHfIPuYDhiEu7j/D3c9nL60pE7HlP83S0ZUXVwsa5f 9523v4QaQtVw1PkKiCNhCY8kbaN/oGBj0MTmMQiefMQP6jx7pTRec5nU5jE2KqGFD9ng F6CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GrX1QYVp; 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 f8si34609133pgi.191.2019.07.31.06.45.32; Wed, 31 Jul 2019 06:45:50 -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=GrX1QYVp; 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 S1728681AbfGaMBq (ORCPT + 99 others); Wed, 31 Jul 2019 08:01:46 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:43730 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725935AbfGaMBp (ORCPT ); Wed, 31 Jul 2019 08:01:45 -0400 Received: by mail-pg1-f195.google.com with SMTP id r22so4283818pgk.10; Wed, 31 Jul 2019 05:01:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=mxMz9DTYTl5hcQl/IOSK5bxeHDD9Zpp9rkD02EBfWBw=; b=GrX1QYVpWlLNEHLqvIochVMBQ25mLyaDxVFB38BIMIhEosrKIW5g62qKrFveRgl8BH jIs7yhi3evsr98nbAh8KC/ZG8UJL2G2a07+jsWOdu5/9IZ4uuUJzMjESX4AhuoUnftCD /EYxWQqZl/FYmqhSf4ZpOJX7eyqK9i7/tV+cub8fZ+3giqD+8ff216/MPh/qhxJGY5t1 QWTfvMgsOi0viMgbtiGivYUyhZnwaNV/SOXV9EZ1f3EZc94i44RNTPkSSLCJRwwjjgcp PnwuI3kdNEm9TpqxG10rrJndTSF01wfA1IWwCLTeUxU2bo6Gd5hzZSys/Ww716Sn2hlk deDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=mxMz9DTYTl5hcQl/IOSK5bxeHDD9Zpp9rkD02EBfWBw=; b=bi/lo2NnIjgkAVmTjMK7ddGAKgmcWCIsItq3Pd5IreBkjkboLjH5VjgQk59+OFDtBY L//AyTEcN3jHAf8h24fhIQDZbtgBx7dEoUkmYfYZcsxU1rQtRnjwTlyB5OjwLwp32mTk Yrqu1ch1b5OEdNlY4Q/c6KMFleW4pp4FYR4Hcp1qrNUtfFjS+Y+qAGERx3Pm/QpmJFt0 c5ZpCdnHSAp8vIeKbZdWytFCauVlAOIQR0QZEdVPaqJMb6r/Pr6l7g+CITliwh1scMWx EZz//MBvdITwEMr+b+eEbN6ZNYsdwulpdB8o/iTDWtTqIFoEyczcSwDxo2lLXY1Wq/8r /qCw== X-Gm-Message-State: APjAAAU0sjrCcFutl6t9C9C2nJC4pZTN2C6HoatCEx6DmtfbkqOSWs7j HpwcFchDtBfT6YgW/JU2wO54FM+0 X-Received: by 2002:a65:5082:: with SMTP id r2mr87193169pgp.170.1564574505034; Wed, 31 Jul 2019 05:01:45 -0700 (PDT) Received: from ?IPv6:2402:f000:4:72:808::177e? ([2402:f000:4:72:808::177e]) by smtp.gmail.com with ESMTPSA id c26sm72452537pfr.172.2019.07.31.05.01.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 Jul 2019 05:01:44 -0700 (PDT) Subject: Re: linux-next: build warning after merge of the akpm-current tree To: Stephen Rothwell , Andrew Morton Cc: Linux Next Mailing List , Linux Kernel Mailing List , Joseph Qi References: <20190731161629.4a20a23d@canb.auug.org.au> From: Jia-Ju Bai Message-ID: Date: Wed, 31 Jul 2019 20:01:45 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190731161629.4a20a23d@canb.auug.org.au> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/7/31 14:16, Stephen Rothwell wrote: > Hi all, > > After merging the akpm-current tree, today's linux-next build (x86_64 > allmodconfig) produced this warning: > > fs/ocfs2/xattr.c:1493:13: warning: 'ocfs2_xa_add_entry' defined but not used [-Wunused-function] > static void ocfs2_xa_add_entry(struct ocfs2_xa_loc *loc, u32 name_hash) > ^~~~~~~~~~~~~~~~~~ > > Introduced by commit > > 45d9aa3d263d ("fs: ocfs2: fix possible null-pointer dereferences in ocfs2_xa_prepare_entry()") > I look at the code again. The function ocfs2_xa_add_entry() is never called when using this patch. Thus, I think the definition of ocfs2_xa_add_entry() could be removed. If it is okay, I can send a new patch (v3). Best wishes, Jia-Ju Bai