From patchwork Thu Dec 19 04:10:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anshuman Khandual X-Patchwork-Id: 11302629 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 178AA14E3 for ; Thu, 19 Dec 2019 04:10:06 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id D0EEC218AC for ; Thu, 19 Dec 2019 04:10:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D0EEC218AC Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id E51938E0153; Wed, 18 Dec 2019 23:10:04 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id E02288E00F5; Wed, 18 Dec 2019 23:10:04 -0500 (EST) 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 D1A228E0153; Wed, 18 Dec 2019 23:10:04 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id BF7038E00F5 for ; Wed, 18 Dec 2019 23:10:04 -0500 (EST) Received: from smtpin02.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with SMTP id 644A4181AEF10 for ; Thu, 19 Dec 2019 04:10:04 +0000 (UTC) X-FDA: 76280563128.02.magic11_57dd614aca225 X-Spam-Summary: 2,0,0,1ef6f154c439ea72,d41d8cd98f00b204,anshuman.khandual@arm.com,::anshuman.khandual@arm.com:akpm@linux-foundation.org:david@redhat.com:mhocko@suse.com:pasha.tatashin@soleen.com:dan.j.williams@intel.com:linux-kernel@vger.kernel.org,RULES_HIT:41:355:379:541:800:960:968:973:988:989:1260:1261:1345:1431:1437:1534:1541:1711:1730:1747:1777:1792:1963:2194:2199:2393:2559:2562:2741:3138:3139:3140:3141:3142:3352:3867:3868:4321:5007:6261:7903:8634:10004:11026:11658:11914:12296:12297:12555:12679:12895:12986:13069:13311:13357:14096:14181:14384:14394:14721:21080:21212:21451:21627:30054:30064,0,RBL:217.140.110.172:@arm.com:.lbl8.mailshell.net-62.14.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:25,LUA_SUMMARY:none X-HE-Tag: magic11_57dd614aca225 X-Filterd-Recvd-Size: 2346 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by imf19.hostedemail.com (Postfix) with ESMTP for ; Thu, 19 Dec 2019 04:10:03 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B154231B; Wed, 18 Dec 2019 20:10:02 -0800 (PST) Received: from p8cg001049571a15.arm.com (unknown [10.163.1.79]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 5563A3F719; Wed, 18 Dec 2019 20:09:59 -0800 (PST) From: Anshuman Khandual To: linux-mm@kvack.org Cc: Anshuman Khandual , Andrew Morton , David Hildenbrand , Michal Hocko , Pavel Tatashin , Dan Williams , linux-kernel@vger.kernel.org Subject: [PATCH] mm: Drop elements 'hw' and 'phys_callback' from struct memory_block Date: Thu, 19 Dec 2019 09:40:50 +0530 Message-Id: <1576728650-13867-1-git-send-email-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.7.4 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: memory_block structure elements 'hw' and 'phys_callback' are not getting used. This was originally added with commit 3947be1969a9 ("[PATCH] memory hotplug: sysfs and add/remove functions") but never seem to have been used. Just drop them now. Cc: Andrew Morton Cc: David Hildenbrand Cc: Michal Hocko Cc: Pavel Tatashin Cc: Dan Williams Cc: linux-kernel@vger.kernel.org Signed-off-by: Anshuman Khandual Reviewed-by: Dan Williams Reviewed-by: David Hildenbrand --- include/linux/memory.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/memory.h b/include/linux/memory.h index 0ebb105eb261..4e95a9eb8061 100644 --- a/include/linux/memory.h +++ b/include/linux/memory.h @@ -29,8 +29,6 @@ struct memory_block { int section_count; /* serialized by mem_sysfs_mutex */ int online_type; /* for passing data to online routine */ int phys_device; /* to which fru does this belong? */ - void *hw; /* optional pointer to fw/hw data */ - int (*phys_callback)(struct memory_block *); struct device dev; int nid; /* NID for this memory block */ };