From patchwork Tue Aug 21 16:49:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Pateenok X-Patchwork-Id: 10572037 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7AB2414E1 for ; Tue, 21 Aug 2018 16:49:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 660F22AB52 for ; Tue, 21 Aug 2018 16:49:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 59F082AB69; Tue, 21 Aug 2018 16:49:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DE7AA2AB52 for ; Tue, 21 Aug 2018 16:49:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6CFAA6B1FB2; Tue, 21 Aug 2018 12:49:07 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 67CE46B1FB3; Tue, 21 Aug 2018 12:49:07 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 547B26B1FB4; Tue, 21 Aug 2018 12:49:07 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by kanga.kvack.org (Postfix) with ESMTP id EA1246B1FB2 for ; Tue, 21 Aug 2018 12:49:06 -0400 (EDT) Received: by mail-wr1-f69.google.com with SMTP id v21-v6so4114976wrc.2 for ; Tue, 21 Aug 2018 09:49:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:date:from:to:cc:subject :message-id:reply-to:mime-version:content-disposition:user-agent; bh=lCW50+dEDGjnNAiGPMbuZiiR9IfFLVJp2r6nPdTp1Hk=; b=LrOrg2Uv2w1YV/sMVZT15lRhQPaaNruggj3T5P3tqgCFCtE/gTGJmsX0J/CBz+gIxs pm/7CBHnIHhJP2qq6cTNCwwmnDL7K4YZ2ipEDw4QUFIFgsrGm3cT2q//NcYHPopwdWB8 AszhOpfeRqBHY09p1w7Kbvbaq6uHLYN6w/U2I/qFagbZbTovdYQT6onvaCmDZ+ZqPObi 96YQbOAyF22U0NISH8rTsJU8/IGDlnTyVlQmPR8Z20WNsR0nflLY5IW6Wn3cyC2SHnq+ dz0LP8LNzmNNV+vVoIV8gZlo2i9j5aNLyGUaxDnka3Mn+3YLvKU7RRKTgTf+lRw4ef/l myGA== X-Gm-Message-State: APzg51CmdglEyunwUU/Y3gNSHxdN1Jp+HWW4C5IVtW3NA7bjBt8/RzOv pvR5b22emE6exNd9B8rzMgHHHwd8ZhqB+kJRHAh37w5x7atn8JbgQ3VkMRXClypngv97glQlIE+ DtQjyMWUh6ZjlL0MAokzigg/ABuTz8t6YJEdZ8C4QrOvBop8lqRYJmRzn8qlmgXzqhJiBUZa4hB OiAaogKKfw31//pMQgsnYKh7b5M/qWs+n+lOq6Q0Rk2h/1SOsxtblG39sLe0dRYsRdgrKr3gCLs f/13e+iBMzHLKyK0OO9kQuIfDN7mxXxF2Hp5VMZRSBcKXAobSCOwNEgYdwzWrdveoXVAFYCOqAq IMBwSYbXaaGv5lLWZZeZ4yrrt4KNBkcce+SveZ6epEuevBEtcvN66fjJih4miLoNkOHp/omD0yq 1 X-Received: by 2002:a1c:f60c:: with SMTP id w12-v6mr117580wmc.80.1534870146375; Tue, 21 Aug 2018 09:49:06 -0700 (PDT) X-Received: by 2002:a1c:f60c:: with SMTP id w12-v6mr117525wmc.80.1534870145174; Tue, 21 Aug 2018 09:49:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534870145; cv=none; d=google.com; s=arc-20160816; b=WXYMV64ZqRtwU9jb5FYDNlaRUrmMqGgFCZIoL6+JDKKOg7T4Y4DbAz7FOfw4g8PzgW i5x3Y+u01VRcjEPq4hfec3NRdlpKkUbiP7tpiax/kNJ/dGKw/6NHdDZIZz9cJSkmISRv E+2v3SNe8HkI/WU3asOmXO/gugf9JTc+yDgArvHy1DjyuGMz/c9UfwaTF9l6rEYoaOD6 laLpSLD/gIdKqcApkkOWJwVj1iQ8dr6tUXuTrCpDEBdxHc4NNMRcGEgk1LX7njIeI6N9 +NDtrlWqWsvh/obJMzsdtlAgehwP24zN3iWCyMQpxau5ca5s0PwnNYqtzbNSF6U0O6cd jcoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:content-disposition:mime-version:reply-to:message-id :subject:cc:to:from:date:dkim-signature:arc-authentication-results; bh=lCW50+dEDGjnNAiGPMbuZiiR9IfFLVJp2r6nPdTp1Hk=; b=THpoY4oVafIBki7VIB/L5wPfbOKLQND0m480FzyvQHWo4VApR7swTM8cDnkOuE9Aod 64knO69H/ShlaG9j0Un+GBEdoEqva8+tcq7eIn8w+qGTCnBqAyzHw/DiD8vXn5WpLAnE S+QfQJkMzf9PM9AkrZFvQGHiNwAXYpqZ+jncapIbAdd/Go9mTPRzXzqK2Q3xEqfYzTCO 79V89up5IiNAJQVrPK7gcbd7wTnO89jKsBI91FlIaID88bXNTQAjjiZLrlPCCUANn462 uFGSjId4cTt+k0jVo4eZMDJw87Tx9svDNraZOv45gIRNPu+T+R5VNj5eU0YggLWeEhg0 b+aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uuG09ONN; spf=pass (google.com: domain of pateenoc@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=pateenoc@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id l4-v6sor795240wmc.61.2018.08.21.09.49.05 for (Google Transport Security); Tue, 21 Aug 2018 09:49:05 -0700 (PDT) Received-SPF: pass (google.com: domain of pateenoc@gmail.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uuG09ONN; spf=pass (google.com: domain of pateenoc@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=pateenoc@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:reply-to:mime-version :content-disposition:user-agent; bh=lCW50+dEDGjnNAiGPMbuZiiR9IfFLVJp2r6nPdTp1Hk=; b=uuG09ONN3CKL5aS4kPhMxCbb1jgE37Yiwq7mLnaLFWgdk/amK5QFqsEKGDVQWy0o+f 2WG7L95+YxkDIec2R6wjRzOxan7PADQXAZK/n4LqAs9VxPRKiA6RK5SjyyOoN8rSILmo eGNQuRmlppuuX3D61fcpeytMEGfAx+V43svS4oIwmXjwXuuB4RCm4eJAvmmagHZ4mamG GhA/nDlXc0IEpe04FsJ/2KKbEGvhf3xgmd2FpZv5GGTj8L5alZIJoSw7VB70OcRixBwJ AmnaCpRBCPsTwJSA8B3ydB2QPaxeM2hj6j97Axf7ATSsPks9MkQ9tOqx1x047Ea5Agn5 FKCQ== X-Google-Smtp-Source: ANB0Vdb6IGOvf4O/cgJuunyRwVPP37mMRIRdR1iONO6bMYo2B9cN4NHG1OWeA8YMKsprtRFJ6uOcGg== X-Received: by 2002:a1c:3bc3:: with SMTP id i186-v6mr103493wma.57.1534870144786; Tue, 21 Aug 2018 09:49:04 -0700 (PDT) Received: from K55DR.localdomain ([93.84.50.95]) by smtp.gmail.com with ESMTPSA id a66-v6sm16239478wmh.0.2018.08.21.09.49.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 21 Aug 2018 09:49:04 -0700 (PDT) Date: Tue, 21 Aug 2018 19:49:04 +0300 From: Alexander Pateenok To: Andrew Morton , linux-mm@kvack.org Cc: Tejun Heo Subject: [PATCH] percpu: cleanup PER_CPU_DEF_ATTRIBUTES macro Message-ID: <20180821164904.qqhcduimjznods66@K55DR.localdomain> Reply-To: 20180821155611.GN3978217@devbig004.ftw2.facebook.com MIME-Version: 1.0 Content-Disposition: inline User-Agent: NeoMutt/20180716 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP The macro is not used: $ grep -r PER_CPU_DEF_ATTRIBUTES include/linux/percpu-defs.h: __PCPU_ATTRS(sec) PER_CPU_DEF_ATTRIBUTES __weak \ include/linux/percpu-defs.h: __PCPU_ATTRS(sec) PER_CPU_DEF_ATTRIBUTES \ include/asm-generic/percpu.h:#ifndef PER_CPU_DEF_ATTRIBUTES include/asm-generic/percpu.h:#define PER_CPU_DEF_ATTRIBUTES It was added with b01e8dc34379 ("alpha: fix percpu build breakage") and removed in 2009 with b01e8dc34379..6088464cf1ae. Acked-by: Tejun Heo Signed-off-by: Alexander Pateenok --- include/asm-generic/percpu.h | 4 ---- include/linux/percpu-defs.h | 6 ++---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/include/asm-generic/percpu.h b/include/asm-generic/percpu.h index 1817a8415a5e..c2de013b2cf4 100644 --- a/include/asm-generic/percpu.h +++ b/include/asm-generic/percpu.h @@ -62,10 +62,6 @@ extern void setup_per_cpu_areas(void); #define PER_CPU_ATTRIBUTES #endif -#ifndef PER_CPU_DEF_ATTRIBUTES -#define PER_CPU_DEF_ATTRIBUTES -#endif - #define raw_cpu_generic_read(pcp) \ ({ \ *raw_cpu_ptr(&(pcp)); \ diff --git a/include/linux/percpu-defs.h b/include/linux/percpu-defs.h index 2d2096ba1cfe..1ce8e264a269 100644 --- a/include/linux/percpu-defs.h +++ b/include/linux/percpu-defs.h @@ -91,8 +91,7 @@ extern __PCPU_DUMMY_ATTRS char __pcpu_unique_##name; \ __PCPU_DUMMY_ATTRS char __pcpu_unique_##name; \ extern __PCPU_ATTRS(sec) __typeof__(type) name; \ - __PCPU_ATTRS(sec) PER_CPU_DEF_ATTRIBUTES __weak \ - __typeof__(type) name + __PCPU_ATTRS(sec) __weak __typeof__(type) name #else /* * Normal declaration and definition macros. @@ -101,8 +100,7 @@ extern __PCPU_ATTRS(sec) __typeof__(type) name #define DEFINE_PER_CPU_SECTION(type, name, sec) \ - __PCPU_ATTRS(sec) PER_CPU_DEF_ATTRIBUTES \ - __typeof__(type) name + __PCPU_ATTRS(sec) __typeof__(type) name #endif /*