Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2532018imj; Mon, 11 Feb 2019 04:33:08 -0800 (PST) X-Google-Smtp-Source: AHgI3Iaeg+FYw+oOretON37l0/bMOrM9lHUkrZXqpw54NIKjsabmKBkUZgl+7HOVaJHQYEvzvQLR X-Received: by 2002:a63:2bc6:: with SMTP id r189mr8032201pgr.201.1549888388177; Mon, 11 Feb 2019 04:33:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549888388; cv=none; d=google.com; s=arc-20160816; b=PAIopzPTh+w5797rhzep0GU6CYLRvLKEAzzQLOSA6YVl29XWsDsjfpI4RBDerbkpFH b8LIVaGPvklZr+zHHAE9OGAHrZVkd2klaVrcuqMOBW+fxo76iWLASm5nfeLGuAggi+z2 3yDSQj19CEn7g2xOFY76pwXd/E32bpGjSd8AqoIi8yLOLziopYCf6pU4ifPlHW9tmYME 44qAeGA3hmVMV6c+h+F9Bod9pNpi4+WL2ikwo0w968UxCosrKqeJ0s4solIfEnJdNtEs hNa1xQUco78MuWNWFUhvKQU2WJnkxufoJPxeiR+JDLRYZoRLx24RGohsPUheAbBpykJs lk0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=B2ouR+Ang/LItZ96PM06UJ1jkDO7ifCmte1uKNl4m9I=; b=O3FApVDkihAbNB1ng2Xgzq9bFs5WLIeME2+km+JR5hCxpAxwVP3JvP6Ur3/gvqQl5f QfCnO19SzT9y2xnf4DGv+h+E/9Z81/JIwv7iGW0WGVuKIKp50620hPfgI+b55ix7OPST b+NdGgZ3NHjF0rBhuXHtDPquEt4p4ISzgnKojWTphj6YRBSEAjuTAuV/iO2irVUcKaTI SdB/wE4lS1QNeIYuf1YNQnToDrDGQQoIC6+6PK0v/ZAFtg9tGnFenmm1NiTLohQHRHQ3 599BlHfhPbFIFfs6iKJpp7xfj35Rdj+Qwc9blIh7/OhH9pU3CDR4Fy5Drm9n+VVTDI7c BZ3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=DOaXH4tV; 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 bc12si9903143plb.111.2019.02.11.04.32.52; Mon, 11 Feb 2019 04:33:08 -0800 (PST) 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=@lca.pw header.s=google header.b=DOaXH4tV; 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 S1727321AbfBKMco (ORCPT + 99 others); Mon, 11 Feb 2019 07:32:44 -0500 Received: from mail-qt1-f195.google.com ([209.85.160.195]:40725 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727090AbfBKMco (ORCPT ); Mon, 11 Feb 2019 07:32:44 -0500 Received: by mail-qt1-f195.google.com with SMTP id j36so11852446qta.7 for ; Mon, 11 Feb 2019 04:32:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=from:to:cc:subject:date:message-id; bh=B2ouR+Ang/LItZ96PM06UJ1jkDO7ifCmte1uKNl4m9I=; b=DOaXH4tV21cFMhS2mNjs93TTzRjlPcp6GZc1CMQpstAl5juxcg/1cjuESUfksfEHgn G4S9Bt5bOsfRdiABthYNSGVPYfsN/boEz1HhcDHYnY5PvIyvfvouH7XxSO4z+xUzVQmd J7RGbKOKuwCfRAHs72OaP/kGWwixvPuOPl+10olToEi8hLtH3Trjj83pEdhDJ2X7XJfd loq8Js20flsGzcr+x0tlRpyIK+4HzBmLNtOrb/heJ3tAl2FUJvXSXNAmiqqiIana0YHw wr8QAn+4etl5LYRdb57khbJhfYReZ9//WzlWCh9vR68Joz3Wsrhf+d262NcEd/EQOUaL NLbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=B2ouR+Ang/LItZ96PM06UJ1jkDO7ifCmte1uKNl4m9I=; b=FdXwFJbIJxRLZSAPc+KnzuduKPncCqYIBnYF+CjfvgYBlo88el6+Vwu20I42Res1uC pzInzbqZTlTiMKoAm3z1713hptpNbDNXBDANNpEg+Q6CjoTuH3CsOkZ4n4sLc4pO1Nlh nGzDu55y7nS1VpXCXtrlOv19JS1g464QKHFF0dl7Zh5L8v89EuGQCs9pJn4VIwXdWgyq GZWTW3RqLnJQ+UOgB8XY48iM/QF8mXLJAHWFyXpwnM/JE9HCkYtc556vw3CCiiHVXLAg rxQkC8SBKuXAMyXUTcyy0iYhlxd/0vLVG7Bbmg+25y3rPwgrJY6TAiw70XRWTVTB7uD2 exQQ== X-Gm-Message-State: AHQUAuZ7buvjmDQEJSdvCqgDRgCbRqgcECleasn21x9yajpU2UUulvGd YDUYIOY3x/0UXNx5KhuWaIEoXQ== X-Received: by 2002:a0c:8425:: with SMTP id l34mr26545005qva.101.1549888362886; Mon, 11 Feb 2019 04:32:42 -0800 (PST) Received: from ovpn-120-150.rdu2.redhat.com (pool-71-184-117-43.bstnma.fios.verizon.net. [71.184.117.43]) by smtp.gmail.com with ESMTPSA id i33sm6236445qti.74.2019.02.11.04.32.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Feb 2019 04:32:42 -0800 (PST) From: Qian Cai To: akpm@linux-foundation.org, cl@linux.com, penberg@kernel.org, rientjes@google.com, iamjoonsoo.kim@lge.com Cc: labbott@fedoraproject.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Qian Cai Subject: [PATCH] slub: remove an unused addr argument Date: Mon, 11 Feb 2019 07:32:14 -0500 Message-Id: <20190211123214.35592-1-cai@lca.pw> X-Mailer: git-send-email 2.17.2 (Apple Git-113) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org "addr" function argument is not used in alloc_consistency_checks() at all, so remove it. Fixes: becfda68abca ("slub: convert SLAB_DEBUG_FREE to SLAB_CONSISTENCY_CHECKS") Signed-off-by: Qian Cai --- mm/slub.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mm/slub.c b/mm/slub.c index 075ebc529788..4a61959e1887 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -1077,8 +1077,7 @@ static void setup_object_debug(struct kmem_cache *s, struct page *page, } static inline int alloc_consistency_checks(struct kmem_cache *s, - struct page *page, - void *object, unsigned long addr) + struct page *page, void *object) { if (!check_slab(s, page)) return 0; @@ -1099,7 +1098,7 @@ static noinline int alloc_debug_processing(struct kmem_cache *s, void *object, unsigned long addr) { if (s->flags & SLAB_CONSISTENCY_CHECKS) { - if (!alloc_consistency_checks(s, page, object, addr)) + if (!alloc_consistency_checks(s, page, object)) goto bad; } -- 2.17.2 (Apple Git-113)