Received: by 10.223.185.116 with SMTP id b49csp1351610wrg; Sat, 3 Mar 2018 23:18:26 -0800 (PST) X-Google-Smtp-Source: AG47ELtL6dIH3vqCllDZuwsL21oZPWZ4mBbiTo8kDUz4zbJpFgp7HmwYs1a32yLKKrfE6imzBhHx X-Received: by 10.99.113.75 with SMTP id b11mr9191151pgn.271.1520147906108; Sat, 03 Mar 2018 23:18:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520147906; cv=none; d=google.com; s=arc-20160816; b=AAN97EV80XRdObm2F3sjDmeecAO28FtCv/eJLkSdHwe9v5wt2arcGM9g7B2LYGrbQH JZhY2h4R7qAoHYK+pGdubQ+HWgx5XhLUThl8xdWxVqXVNv8MqDxeYNDpQkjtmbEVKEGG KyB8hozDZ90/oCCaNPX3jdNzXWxoJPK0qF4jP15OXsRzRaIMr+FUehsunIEKDBdPOWfX wTT1cFgy+3skKiErLcNrrelctORwizwSXDfjpU6ur/N7khvzkUdu6FW+IJ70qXjEqU8A O5cJSOxpJzGFxX0hqQXVMPXri4YT27Cn6/l+crLBCTrx9cLX7FRnIarxoWz/KYiPFtjH 8MUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:message-id:date:subject:cc:from :dkim-signature:arc-authentication-results; bh=/HclB0JpT5aER3TnCLvLunf2Kz7Gx6leaTpsMV1DESE=; b=F38b9/omAGhmMXEXkN+GSn+KwXpjQdrQxSBxP1kjnRH/CQHlhdyZ78+pnA2JElZSxC nAlTt/C/FX4wi1WIhN36fksOF1XXQ0kPiDSE84AEXfIOeD3jNTOqDKwUW0D/Mkoyywbw mb4LmnGRb3QkZnxTZoYl2iaqNb66T1d+lKss2mRMEUejQRj7zRUsdjXRtCHvC1W/041X oBaeoPnG2q+IkLPK6rSkShFyQzmA6Qg29fMwprBRFWfgddi/rzJRBmM9dt73LCDbxjX8 7JPGKdl6Gnv9JDAJb2HMkT9gFVyOPkb6PmJ2VntnpDX66Jw+PA1SFILaoJ5pttThpuP1 Dy7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=StpL86K1; 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=fail (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 g17-v6si7329302plo.357.2018.03.03.23.17.52; Sat, 03 Mar 2018 23:18:26 -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=fail header.i=@gmail.com header.s=20161025 header.b=StpL86K1; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752471AbeCDHQh (ORCPT + 99 others); Sun, 4 Mar 2018 02:16:37 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:46524 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751793AbeCDHQg (ORCPT ); Sun, 4 Mar 2018 02:16:36 -0500 Received: by mail-pg0-f66.google.com with SMTP id r26so5557100pgv.13 for ; Sat, 03 Mar 2018 23:16:36 -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; bh=/HclB0JpT5aER3TnCLvLunf2Kz7Gx6leaTpsMV1DESE=; b=StpL86K1vphx7ZtFXr1qfpjIV8KRxIRfYgq13R4IpxGEqpgqqlWZSfasJLrP4EbuNr cOwjEhxaAIEqLcJdkB8b0P2GfhfmDtJgNeuLaYiiqjlzynn/t3CFHvTb+p6Mc+jroEJI OqpqFHLxOpwFY0vAQToRY9XDvkmeGWv19ZnwQsn4OLTgQOlL4ZqWNgpZLPR66y85nL5o EDvRyXPh1l9NieiQGo70kH/82VrcJw3RD9ikf95Or0zCGjmmE+N8LnMVutVDDOwTFr94 omHOJVcPp2j1zffkjrO3YoNFEEpwIgD5NLEN4zyCz9eV0lVetmK+VPZhIYX/60O4bL10 TUCQ== 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=/HclB0JpT5aER3TnCLvLunf2Kz7Gx6leaTpsMV1DESE=; b=ZzIJiJCjwzoZMHNxggRkle/hDWaMMjvlxZvZlWD+ESvhNis3+QI+uL4xXhOcibFhY/ 1Nl9M8Ht/kO3kop40O+5tUCN6L5TjJizkAfozer9TCwmJeK/TZtQBES50lRErzc8h1z0 q+i4BITJEVZenxDoWo81M79UJ0vmmd8PRQmg+Zh6XAWDwXCzqpMNU28taYbpHMfNG5tF TAtVzVTFeYMJ+AJP42NfGMrOP65N/N4zqER067uD2IWKgnnKG6aXKEkbH4aZijIsHjuq 5+oQZDAFed6mgMsKNq9K+QTTG7c+hUP3XsxRg4T59o8ra9v8JfFKzVajCmgXxgjp0uHq ki3Q== X-Gm-Message-State: APf1xPCYGakkWYhywXuVIQCM+edOuR/jXW6R/uRr+I/UVoSzflktOp6D SQeknfonO7zf4gvhhwLpGqg= X-Received: by 10.101.66.193 with SMTP id l1mr8945582pgp.57.1520147795372; Sat, 03 Mar 2018 23:16:35 -0800 (PST) Received: from localhost.localdomain ([2601:647:4700:dc3c:320e:d5ff:febd:81c]) by smtp.googlemail.com with ESMTPSA id u10sm17767168pfh.57.2018.03.03.23.16.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 03 Mar 2018 23:16:34 -0800 (PST) From: Nick Desaulniers Cc: Nick Desaulniers , Andrew Morton , Dan Williams , Michal Hocko , "Kirill A. Shutemov" , Jan Kara , =?UTF-8?q?J=C3=A9r=C3=B4me=20Glisse?= , Hugh Dickins , Matthew Wilcox , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH] memory-failure: fix section mismatch Date: Sat, 3 Mar 2018 23:16:11 -0800 Message-Id: <20180304071613.16899-1-nick.desaulniers@gmail.com> X-Mailer: git-send-email 2.14.1 To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Clang complains when a variable is declared extern twice, but with two different sections. num_poisoned_pages is marked extern and __read_mostly in include/linux/swapops.h, but only extern in include/linux/mm.h. Some c source files must include both, and thus see the conflicting declarations. Signed-off-by: Nick Desaulniers --- include/linux/mm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/mm.h b/include/linux/mm.h index ad06d42adb1a..bd4bd59f02c1 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -2582,7 +2582,7 @@ extern int get_hwpoison_page(struct page *page); extern int sysctl_memory_failure_early_kill; extern int sysctl_memory_failure_recovery; extern void shake_page(struct page *p, int access); -extern atomic_long_t num_poisoned_pages; +extern atomic_long_t num_poisoned_pages __read_mostly; extern int soft_offline_page(struct page *page, int flags); -- 2.14.1