Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759475AbcLPGPC (ORCPT ); Fri, 16 Dec 2016 01:15:02 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:35383 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756895AbcLPGOx (ORCPT ); Fri, 16 Dec 2016 01:14:53 -0500 From: Kamalesh Babulal To: Michael Ellerman , Jessica Yu Cc: Kamalesh Babulal , Josh Poimboeuf , Jiri Kosina , Miroslav Benes , Petr Mladek , linuxppc-dev@lists.ozlabs.org, live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, Balbir Singh Subject: [PATCH] powerpc/livepatch: Remove klp_write_module_reloc() stub Date: Fri, 16 Dec 2016 11:44:24 +0530 X-Mailer: git-send-email 2.7.4 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16121606-0052-0000-0000-000001FEC1AB X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16121606-0053-0000-0000-000007700F75 Message-Id: <1481868864-27283-1-git-send-email-kamalesh@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-12-16_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1612050000 definitions=main-1612160102 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 985 Lines: 31 commit 425595a7fc20 ("livepatch: reuse module loader code to write relocations") offloads livepatch module relocation write to arch specific module loader code. Remove unused klp_write_module_reloc() function stub. Signed-off-by: Kamalesh Babulal --- arch/powerpc/include/asm/livepatch.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/arch/powerpc/include/asm/livepatch.h b/arch/powerpc/include/asm/livepatch.h index a402f7f..47a03b9 100644 --- a/arch/powerpc/include/asm/livepatch.h +++ b/arch/powerpc/include/asm/livepatch.h @@ -28,13 +28,6 @@ static inline int klp_check_compiler_support(void) return 0; } -static inline int klp_write_module_reloc(struct module *mod, unsigned long - type, unsigned long loc, unsigned long value) -{ - /* This requires infrastructure changes; we need the loadinfos. */ - return -ENOSYS; -} - static inline void klp_arch_set_pc(struct pt_regs *regs, unsigned long ip) { regs->nip = ip; -- 2.7.4