From mboxrd@z Thu Jan 1 00:00:00 1970 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=-9.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=unavailable 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 E4011C43603 for ; Thu, 19 Dec 2019 04:10:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BB69220684 for ; Thu, 19 Dec 2019 04:10:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726866AbfLSEKD (ORCPT ); Wed, 18 Dec 2019 23:10:03 -0500 Received: from foss.arm.com ([217.140.110.172]:34700 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726192AbfLSEKD (ORCPT ); Wed, 18 Dec 2019 23:10:03 -0500 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 */ }; -- 2.20.1