Received: by 10.223.185.116 with SMTP id b49csp325141wrg; Thu, 15 Feb 2018 22:52:35 -0800 (PST) X-Google-Smtp-Source: AH8x225DzMszJ2tJWCEO+5vfeUzFt58lAJzDM2XdddX7opl09j0jzi/65KXnHLvmjis4DHMwYgwc X-Received: by 2002:a17:902:3383:: with SMTP id b3-v6mr4881422plc.240.1518763955591; Thu, 15 Feb 2018 22:52:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518763955; cv=none; d=google.com; s=arc-20160816; b=YcNlD2A3DJoKLSEFFz9LieFMjDIxiWJoRXw1yPTSHZfo2M4ia+Tw5B8/lc40fHP57c Nds4IxN2tqxE9lj7uGf/CdUqi+PSbl8kS8qL8DYGmik1Trxjs0TybVcB/gm4SGZUHLxz siscPPDGw2bVSGDu+LgKPfVRCe7OC3+C677NW0gARYPRJqlaM9g+XMWGbG8XW/jX6534 vBIVXegQMAmFOZoWmFwZ02CW9Wsj8y5aEeuQPsWh4kN9/JtHEPo+qgJxlR8yXo6clEVb qrKi4soflPyjd7KYrH2X7LtW4U3rLpc2Y44rEQlkenJGIUNy2bA0yRcaFtA3ZzNxGeZ2 UWZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=CwPT63f8jsoso2aegcvZVBJVQC0JmlXBpC0KMDVG59c=; b=IbDK1h1kkiSGOINS8vPH+/cOMIeTYUkUveJciG16kYbc1cnk904y4N9jF50ysWhHpV DEPQ18B2vyw62R3AkbB6ciLRe+iNSYCpU7dtTgltuYxFfXMg+UN8ARp4CrbmC1JjRdiJ u/KONaKp1KavO4ZzuRGp3hPSA8xzOx+xlbONVMvC+FM2PIxYYlFyrqGadi4/4WZw2/OX n4q9Fv42sLebEaidFnOhp4D8e5TAtVhbSDjoe4Oxc47zeSiv2oEa7PWlElI4lQJvzOsK EGzjcHpJPF3mUDimX+sqkiog0P3qLBYK4ygp7IxUYpu3d5u/dtGp21j67r9tyzpD5I74 oS0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CEteU5rD; 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 k14si1017277pff.287.2018.02.15.22.51.41; Thu, 15 Feb 2018 22:52:35 -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=@gmail.com header.s=20161025 header.b=CEteU5rD; 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 S1425533AbeBOQJF (ORCPT + 99 others); Thu, 15 Feb 2018 11:09:05 -0500 Received: from mail-it0-f67.google.com ([209.85.214.67]:39711 "EHLO mail-it0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1424566AbeBOQJD (ORCPT ); Thu, 15 Feb 2018 11:09:03 -0500 Received: by mail-it0-f67.google.com with SMTP id l187so1160809ith.4 for ; Thu, 15 Feb 2018 08:09:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=CwPT63f8jsoso2aegcvZVBJVQC0JmlXBpC0KMDVG59c=; b=CEteU5rDp7IgQd5g6waQmimUnY1fMAgW2R05/CRpzcdOWGSt7sYLUWYTDiDH6BiZbo YZ6VABnyiX/5VhjrKc1rlVAcmOV7bVWc6OAidPFkkTkFalBSmCuoM0hzkBa7IDxh85ur vTd076KbJaNNybq4LMJTqdXaHP5fTWuZgCVaDj3LtNRvEssf0pCzQaQKox2qskeCc0Xo kab2JU+RPUTGGgxptY/IEJohaRSGM7pykUWNWxMxwmiaLs5RprG2OnVRY/froBFvETdt bHapJn0Whc7qKNC+Lw04ub9mCpeSuMLmWlt5UnJfBTabn/rLLBSdHl4XcGQjfcLFBxoR p0Dw== 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:in-reply-to :references:in-reply-to:references; bh=CwPT63f8jsoso2aegcvZVBJVQC0JmlXBpC0KMDVG59c=; b=NwmInLOhm2I6vDAlT7xAihQjVDQSdZUIzJvEzPnSev6pVnbEIYBy98zr0WkdoScRXV tFZ6YhMyocSn+r3yQgJ9RGC2b7Fe6fMjQOyj1cD5JLCTVku0zPpX5LDVmWFpwMvsDPXV E6QR3eJrOO0CT+TpjmIo0OWrGzlX+3SlywNYVs9sBAr761Ib1hAUV+cZP/CyhG+ixT2C csFth7QaTprj+FO+XeNYSWkFPKaYb8/uyAx0laUd/ehpffC4QNzp72AT6+jZTwzzUZR9 AOsA4js3hJLgY0urQ9DL45NTplw3ZDQSHXOU/TVXRrQW5VUXZs0NDX8nyqPPSM/3jeTG z/dg== X-Gm-Message-State: APf1xPDdEO5GunWbKiKy5WD9ap9kdkiEodNmAsX3bd3T9IKX6hE2gi3C tzgTU8ZCjmLyAQRLeIjyH4M= X-Received: by 10.36.218.5 with SMTP id z5mr4061296itg.30.1518710942849; Thu, 15 Feb 2018 08:09:02 -0800 (PST) Received: from localhost.attlocal.net (104-187-157-211.lightspeed.mdsnwi.sbcglobal.net. [104.187.157.211]) by smtp.gmail.com with ESMTPSA id l5sm1689313itl.7.2018.02.15.08.09.02 (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 15 Feb 2018 08:09:02 -0800 (PST) From: Dennis Zhou To: Tejun Heo , Christoph Lameter Cc: Daniel Borkmann , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Dennis Zhou Subject: [PATCH 1/3] percpu: match chunk allocator declarations with definitions Date: Thu, 15 Feb 2018 10:08:14 -0600 Message-Id: <3865d86559d8499f9bbb12f578bf9e6aa8f8882e.1518668149.git.dennisszhou@gmail.com> X-Mailer: git-send-email 1.8.5.2 (Apple Git-48) In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org At some point the function declaration parameters got out of sync with the function definitions in percpu-vm.c and percpu-km.c. This patch makes them match again. Signed-off-by: Dennis Zhou --- mm/percpu.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mm/percpu.c b/mm/percpu.c index 50e7fdf..e1ea410 100644 --- a/mm/percpu.c +++ b/mm/percpu.c @@ -1277,8 +1277,10 @@ static void pcpu_chunk_depopulated(struct pcpu_chunk *chunk, * pcpu_addr_to_page - translate address to physical address * pcpu_verify_alloc_info - check alloc_info is acceptable during init */ -static int pcpu_populate_chunk(struct pcpu_chunk *chunk, int off, int size); -static void pcpu_depopulate_chunk(struct pcpu_chunk *chunk, int off, int size); +static int pcpu_populate_chunk(struct pcpu_chunk *chunk, + int page_start, int page_end); +static void pcpu_depopulate_chunk(struct pcpu_chunk *chunk, + int page_start, int page_end); static struct pcpu_chunk *pcpu_create_chunk(void); static void pcpu_destroy_chunk(struct pcpu_chunk *chunk); static struct page *pcpu_addr_to_page(void *addr); -- 1.8.3.1