Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5989790ybe; Tue, 17 Sep 2019 17:33:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqxxgXh9Sm/NZER9k8V/aWnNaY8mFEbbDGQefOLfQE7QmqR8ekn4EHEqRSE+Dl40AyLyiBVR X-Received: by 2002:a17:906:ecb6:: with SMTP id qh22mr7190365ejb.114.1568766825742; Tue, 17 Sep 2019 17:33:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568766825; cv=none; d=google.com; s=arc-20160816; b=CMpyQmh/VxRFn0ojBst1oFiwKty+yKdiiVmR30hhoqrd6RpsgY2fbrJ9wAc9c115OM r4GKyx/pjz3Fz+4QaUG7gTKRd9brEp3K2BDmKuUJj6MskxHccTIc8jUX3borlfVE0skx WDs06PMySyQQYpaXJ4rmJWnxYakE94nTMGEdQ4gMbHOw5IF+cSxPyo2fxyldTy7FZ+Gb +NMoW89jZnwAk3YkP4VjSzsDQzFol7xlMaYVlo+lGFgXF+Pz5BuPGoDj2mPeRVLDkVjj 3d/DFLZMsNA1SUD+AJUatjgx/8ETmxjvCxvD2+RwO6KN97RkszH2+sByjc8gBeaIaVHn 6szw== 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:dkim-signature; bh=dkVBs4zSzdoiTgFubYHQRj4hsdd1sH32Fqwe9PFIl1E=; b=YJVkdml1WubrktJMAM2eHTsPfL5/r4EgUWgoijlgXpNQ+/F33GcGOYy+h0RhJSMXxd QXzH+hD+226MFnVnyEXsjDscHRhlfZld3aF9GeyL5Wzr5wCZP8t5hW/s1oWxP6xpW88E lkatt3sXYjBdOCfpxAR3GtPVs0n6X+5EGRqmyh1ml8X1c/g+3lCi/t5MqgNo56u9CHGS CoeLKRei7Zdcx1wUV/ionntTUNGDvOwQ82ide/8hKgBIc0Ykrtp9AqHu2HKGaNW93nYI 8ft+bdGxYxeOBRT1eXOnXGEY2yDJG5DrlV/JoV5sEm8aAk7n9WdF/uhjxo04xNrfjLdA 2Fiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="wVOe/Ydd"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id dd8si2056396ejb.36.2019.09.17.17.33.22; Tue, 17 Sep 2019 17:33:45 -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=@google.com header.s=20161025 header.b="wVOe/Ydd"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727056AbfIQVXO (ORCPT + 99 others); Tue, 17 Sep 2019 17:23:14 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:37248 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726151AbfIQVXO (ORCPT ); Tue, 17 Sep 2019 17:23:14 -0400 Received: by mail-pg1-f195.google.com with SMTP id c17so2675290pgg.4 for ; Tue, 17 Sep 2019 14:23:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=dkVBs4zSzdoiTgFubYHQRj4hsdd1sH32Fqwe9PFIl1E=; b=wVOe/YddR4PEOW3182urUd3iwixirM6pkgMLHtyn7FokoYN8LS8B6SMKt5l9whP5Xd a41neH7o7zLWQxvGN5M5g0frQiA2ej+vQjgGay7TLUFHp+TANnV9USPjLDhR6zvRgL7W k8H+9BQ5dmOU7ShP367cEpHTrfWC+bsBvSQ0KXrS7qKbQQFNSHXzd5b+g3oqHZQONOd/ zUSuxUdQK59oR8cxKz87iKCuw6w4V76d1rG8SwlQ7fMK96l8ElmiECWhn7959fLCsXKO LiIohUJ/XepjXUw/fl3S3CZmdbvsoDifuqOV7B8/s8Lc9uy8/GvDdOdZifDF6MWOoJBx eCrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=dkVBs4zSzdoiTgFubYHQRj4hsdd1sH32Fqwe9PFIl1E=; b=pGwxwqljPWb/kf/l0BdKMZeZkjjpnjfqm38JqJWPfVIGCmvmVSFPEUQJvExAUuwQGT BIF2MWWFYgcSGrqZEmZbxyCyRAIf2c8pgq3x7t0Cpko8wcxnW54AsuEVKOhIufeP69bT C0J5mKdZ0W/qHlMSXfpzxepgedlAzM/bYF7lck3SvHrbRtc2171Ny3G9oCs5qTsgCRuj V8h/aVcPPgeWWms/7tpi581bKXAXktVFnQa0HijexnOkpHiP1jPWD5Q9WlWM8fS6eiax 837FAbKKVd5dySRg5Dx+7YGOUU6xSe0CT6iHv9Af+YXlETYrL36q6A4PB+YtDHyt7Tfe vvPw== X-Gm-Message-State: APjAAAXRA/Il0KiMMn1pgBTjnmkSVaEPSZilWbDpT2YFxyEdMIDZv2HD adoXnCyLDq6cdbyfDn2b2P6URg== X-Received: by 2002:a65:6903:: with SMTP id s3mr818977pgq.269.1568755391787; Tue, 17 Sep 2019 14:23:11 -0700 (PDT) Received: from [2620:15c:17:3:3a5:23a7:5e32:4598] ([2620:15c:17:3:3a5:23a7:5e32:4598]) by smtp.gmail.com with ESMTPSA id m24sm2801001pgj.71.2019.09.17.14.23.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Sep 2019 14:23:11 -0700 (PDT) Date: Tue, 17 Sep 2019 14:23:10 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Qian Cai cc: akpm@linux-foundation.org, cl@linux.com, 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: <1568752232-5094-1-git-send-email-cai@lca.pw> 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, 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