From patchwork Tue Feb 23 03:27:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dennis Zhou X-Patchwork-Id: 12099837 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.0 required=3.0 tests=BAYES_00,INCLUDES_PATCH, INCLUDES_PULL_REQUEST,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5E74EC433E0 for ; Tue, 23 Feb 2021 03:27:49 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id C92A164E57 for ; Tue, 23 Feb 2021 03:27:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C92A164E57 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 12E756B0005; Mon, 22 Feb 2021 22:27:48 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 0DE716B0006; Mon, 22 Feb 2021 22:27:48 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F370B6B006E; Mon, 22 Feb 2021 22:27:47 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0211.hostedemail.com [216.40.44.211]) by kanga.kvack.org (Postfix) with ESMTP id DD3406B0005 for ; Mon, 22 Feb 2021 22:27:47 -0500 (EST) Received: from smtpin21.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 98E9D8248047 for ; Tue, 23 Feb 2021 03:27:47 +0000 (UTC) X-FDA: 77848098174.21.741F2D5 Received: from mail-io1-f43.google.com (mail-io1-f43.google.com [209.85.166.43]) by imf10.hostedemail.com (Postfix) with ESMTP id 611B5407F8EB for ; Tue, 23 Feb 2021 03:27:42 +0000 (UTC) Received: by mail-io1-f43.google.com with SMTP id k17so7826181ioc.5 for ; Mon, 22 Feb 2021 19:27:46 -0800 (PST) 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:message-id:mime-version :content-disposition; bh=HI1IeUcajrSGQGzEM7tIoTC6RGw0rv93ilEN7asvsjo=; b=DnF4fiRCkQBjOi4TOB9u2KkMZmwD8gX1ISlfPacBR70qUTI68JaVkKOc2vc9x4Sxc6 ii9nZ0Y53xCLNCDvwoWHI57Le9tea14KB719MF85J+c4u/SJFQrfk27aKcuPFGPe7xUb AYo/spBzL30KQxKz0sb2UueIr1DEvrbN0UGU6QpBBniY15eEEsd7XQfGxL+J5HwIfNHl ZAJucsVb3vvp/M+bghMtqu7AbWwlIsj4lAG290tiu8y2A2mPVFj9H5nBw1eXLVRfrdlX SfwLC8NbWUXYsWqURGrP4y0pk1c6xv/wF30FH5BOGJAF+LFiej5PiEop6yqAWVUKG/Rp VlQw== X-Gm-Message-State: AOAM531lqBpjBMNjaFd1OA9ExM+dCM/2qrJpTxPA01n+b/NXxxru6Aii K8Npb8q47qSzuWKWyF5YoCw= X-Google-Smtp-Source: ABdhPJzhb9u66SIfGCCsHf+vx/HoQGMVHLdzObOa2U+QErsRxFWXu7KWTWtU6YYWJZmiOqqQSN/BuQ== X-Received: by 2002:a6b:3b14:: with SMTP id i20mr18764997ioa.28.1614050866467; Mon, 22 Feb 2021 19:27:46 -0800 (PST) Received: from google.com (243.199.238.35.bc.googleusercontent.com. [35.238.199.243]) by smtp.gmail.com with ESMTPSA id c16sm5536698ils.2.2021.02.22.19.27.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Feb 2021 19:27:44 -0800 (PST) Date: Tue, 23 Feb 2021 03:27:41 +0000 From: Dennis Zhou To: Linus Torvalds Cc: Tejun Heo , Christoph Lameter , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [GIT PULL] percpu changes for v5.12-rc1 Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 611B5407F8EB X-Stat-Signature: tj8af8tf6dzf9i5x6fjs6usp3a5b7smp Received-SPF: none (gmail.com>: No applicable sender policy available) receiver=imf10; identity=mailfrom; envelope-from=""; helo=mail-io1-f43.google.com; client-ip=209.85.166.43 X-HE-DKIM-Result: none/none X-HE-Tag: 1614050862-647231 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: Hi Linus, Percpu had a cleanup come in that makes use of the cpu bitmask helpers instead of the current iterative approach. This clean up has an adverse interaction when clang's inlining sensitivity is changed such that not all sites are inlined resulting in modpost being upset with section mismatch due to percpu setup being marked __init. It is fixed by introducing __flatten to compiler_attributes.h. This has been supported since clang 3.5 and gcc 4.4 [1]. [1] https://lore.kernel.org/lkml/CAKwvOdnxnooqtyeSem63V_P5980jc0Z2PDG=0iM8ixeYTSaTCg@mail.gmail.com/ Thanks, Dennis The following changes since commit 92bf22614b21a2706f4993b278017e437f7785b3: Linux 5.11-rc7 (2021-02-07 13:57:38 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/dennis/percpu.git for-5.12 for you to fetch changes up to 258e0815e2b1706e87c0d874211097aa8a7aa52f: percpu: fix clang modpost section mismatch (2021-02-14 18:15:15 +0000) ---------------------------------------------------------------- Dennis Zhou (1): percpu: fix clang modpost section mismatch Wonhyuk Yang (1): percpu: reduce the number of cpu distance comparisons include/linux/compiler_attributes.h | 6 ++++++ mm/percpu.c | 36 +++++++++++++++++++++--------------- 2 files changed, 27 insertions(+), 15 deletions(-)