Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp706225img; Tue, 26 Feb 2019 07:17:56 -0800 (PST) X-Google-Smtp-Source: AHgI3IaGTZaKrp30dPRBuEleFTSwIM9eW7WvHDud3hNhtUSkQM3XNR+Gp0itrvRF3syYIAWz51zi X-Received: by 2002:a63:4005:: with SMTP id n5mr24260518pga.86.1551194276412; Tue, 26 Feb 2019 07:17:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551194276; cv=none; d=google.com; s=arc-20160816; b=xyCSyH03MRdnCl6DX06VIULJyWDUuhHS+MRXpaeAB3249lYqqfPrYZwL+mSL4nfjjL 4H8PHuuhh81vRGxPvwStD9BnkG4oRVBsGVtNNYYU/Afj2lO39I8ANQFhfRzhHift3OVb TH6CvSlo75BARE7MBeHkGEcofJ6ObB4ZS6jWLou4YD+vWX8f4dXMnZe14dXZAYa1kMlf oMIcpTOBWitY2sbr7ZYHhWSHNdOrENIT+IKYWDENjid8RSRHOZU4G3wmlAYtwV6I4xyo stBCMlPrcSl1wDKi5y9hO4kyDCQ874ms8SuxNTNtR3jTe464vSjaXJVMP58a2ZiEEOF2 eHpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:feedback-id:mime-version:user-agent :references:message-id:in-reply-to:subject:cc:to:from:date :dkim-signature; bh=X2seorhdvcHK99S5+CZ0PfSjlsaYtBE8rlm40X4z7cc=; b=IZh0HgEMswATU27FdDzeKFG1WEEABNFFqFGgDlSK9kWb8pBDQRdjiug3nmB7KtkMPI 1KGJjNw6eJilunbbU1N72SY0hUkqxc4HP+2HrCh98ZSDAtXswMvSHuX3HlsrJvKtOpvj zOF3SKQrmTgAT/28wtnHaoMLZ5SDfD5v+qDCESSsJOgfPvsh4oAedSafddzSck1CAmP7 zBRhw2j1VcwKhUgX39vvV7QCxP16iJumkBt6tmi81Lmxp+Q23syjHYf6XTaXi8x/L+lG Y+1vlfznpL9fjcd1Ltlo7KUZLVd53FlIRTaYbqO5/pjfNIio47HQLP/QsK9S9IWRNCIq ulAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazonses.com header.s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug header.b=XFaZe+eB; 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 n3si12305539pgv.458.2019.02.26.07.17.40; Tue, 26 Feb 2019 07:17:56 -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=@amazonses.com header.s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug header.b=XFaZe+eB; 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 S1727416AbfBZPQp (ORCPT + 99 others); Tue, 26 Feb 2019 10:16:45 -0500 Received: from a9-36.smtp-out.amazonses.com ([54.240.9.36]:56308 "EHLO a9-36.smtp-out.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726478AbfBZPQp (ORCPT ); Tue, 26 Feb 2019 10:16:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug; d=amazonses.com; t=1551194204; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:MIME-Version:Content-Type:Feedback-ID; bh=zk6autZDYWCridaZ1j6pE4L9X3qVCRB7mf1shVksySU=; b=XFaZe+eBN7TnCrRANRHetCBj0w20GfUpVaApTi/OaerR928UaWZN3r9O3ctFhYPq NV+cNIy/ZieVZEQLCWoBHg6XvuwWSK586i8D/J7UM8R34qAPbH6xsbSg8FfpzwqNL7U E1HPo6AoBciq9dlUFK92xUBa8H8E/E9qwTAio4Jo= Date: Tue, 26 Feb 2019 15:16:44 +0000 From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Dennis Zhou cc: Peng Fan , "tj@kernel.org" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , "van.freenix@gmail.com" Subject: Re: [PATCH 1/2] percpu: km: remove SMP check In-Reply-To: <20190225151330.GA49611@dennisz-mbp.dhcp.thefacebook.com> Message-ID: <010001692a612815-46229701-ea3f-4a89-8f88-0c74194ba257-000000@email.amazonses.com> References: <20190224132518.20586-1-peng.fan@nxp.com> <20190225151330.GA49611@dennisz-mbp.dhcp.thefacebook.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-SES-Outgoing: 2019.02.26-54.240.9.36 Feedback-ID: 1.us-east-1.fQZZZ0Xtj2+TD7V5apTT/NrT6QKuPgzCT/IC7XYgDKI=:AmazonSES Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 25 Feb 2019, Dennis Zhou wrote: > > @@ -27,7 +27,7 @@ > > * chunk size is not aligned. percpu-km code will whine about it. > > */ > > > > -#if defined(CONFIG_SMP) && defined(CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK) > > +#if defined(CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK) > > #error "contiguous percpu allocation is incompatible with paged first chunk" > > #endif > > > > -- > > 2.16.4 > > > > Hi, > > I think keeping CONFIG_SMP makes this easier to remember dependencies > rather than having to dig into the config. So this is a NACK from me. But it simplifies the code and makes it easier to read.