Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6248869ybe; Tue, 17 Sep 2019 23:50:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqxBMHVSpE4BKeccq8VCCoG7cJYo/9+blpdVhGQS62b8DsZYj9Hw+j+mCMZMEOJtxC/NVXig X-Received: by 2002:a17:906:b34c:: with SMTP id cd12mr8199114ejb.48.1568789410896; Tue, 17 Sep 2019 23:50:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568789410; cv=none; d=google.com; s=arc-20160816; b=wXylne4guwrIRGrYPTJ3q8hyiNzAhkOr5ur6bqxnU8Yx+ZYEqAIadXq3uEERF8bwPG /XCCitzF2osZ+fo+PjjzzUuPRuDD0dlIbOnc0/EkiG6x8mVEIidRVQqlT6h1zuZMsNtm 7ndQn+o+Rb236qt6CpSOH8uCXTZGMtpcpv57ViFvKUReg/ZHqF2RwEIpZDmhZfx/E746 vQ4qYEIwrZMezkj7o4RFEo5YsydNHT3nWvEbWv63fuTqla6xR3xqnKlbu7UmZ0hl6uAA 8SgujlBv7Kz5lWgjSAohwKhMJRnDAG/D5ZqJgfB42MppJT8rPHOqoiG9aA83qB7mhIkf nKNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=KaeETyMwan9QHyUKBeLmGD923WOrj2TNhlykLsZCflw=; b=Ja0911AdYZNeG9SgwhGdV7kUfXAGRe04QwWTl4pF+VdRXQaS066LQDTOKlNo90iBkW sGQ7TPUMyBt5GeWUJgBUkwouY2RUq+i3S2KBgom/WS8DHIzB5TtGjgI2Pg7TjgZ8iPdT RBoBDTzppTjQutj/hnNETnuR1KAsp8n6YbSam2xgLp9yClM8DantY/fro9JMvi9amA57 O3+2TtyQtkDQgwWrvnpy7kjtdNmGIK6YVu1dND5jilFfQWTgxB6d3GBVvuOZAJ+stYwp rWGKXS/iTeyNfnGMP8IBdYlWxirHWzK+XOXQN79HbinnQLSlk10pBPdHjmPSmQG1CqDh y/fA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t7si2426105ejo.302.2019.09.17.23.49.47; Tue, 17 Sep 2019 23:50:10 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727897AbfIQWl7 (ORCPT + 99 others); Tue, 17 Sep 2019 18:41:59 -0400 Received: from pc-246-229-214-201.cm.vtr.net ([201.214.229.246]:46348 "EHLO mail.test.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725801AbfIQWl6 (ORCPT ); Tue, 17 Sep 2019 18:41:58 -0400 X-Greylist: delayed 390 seconds by postgrey-1.27 at vger.kernel.org; Tue, 17 Sep 2019 18:41:57 EDT Received: by mail.test.com (Postfix, from userid 1001) id 044E81387; Tue, 17 Sep 2019 17:35:24 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by mail.test.com (Postfix) with ESMTP id 006B1F38; Tue, 17 Sep 2019 17:35:24 -0500 (CDT) Date: Tue, 17 Sep 2019 17:35:24 -0500 (CDT) From: Christoph Lameter X-X-Sender: cl@lameter.cl To: David Rientjes cc: Qian Cai , akpm@linux-foundation.org, penberg@kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm/slub: fix -Wunused-function compiler warnings In-Reply-To: Message-ID: References: <1568752232-5094-1-git-send-email-cai@lca.pw> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 17 Sep 2019, David Rientjes wrote: > On Tue, 17 Sep 2019, Qian Cai wrote: > > > tid_to_cpu() and tid_to_event() are only used in note_cmpxchg_failure() > > when SLUB_DEBUG_CMPXCHG=y, so when SLUB_DEBUG_CMPXCHG=n by default, > > Clang will complain that those unused functions. > > > > Signed-off-by: Qian Cai > > Acked-by: David Rientjes Ditto