Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3594133ybf; Tue, 3 Mar 2020 08:43:53 -0800 (PST) X-Google-Smtp-Source: ADFU+vt8IQxXfacAljXPULuJ2ZqI6brb12eVLZahW85Yal1OBI1XOlJoT1+zlKgf8kb0241kkoHA X-Received: by 2002:aca:5491:: with SMTP id i139mr3146032oib.24.1583253833706; Tue, 03 Mar 2020 08:43:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583253833; cv=none; d=google.com; s=arc-20160816; b=kCr95Jo5uYlrQV8T8SugaNhfPjLCZOA0iDUZbufio2l++H27lV+efNESL3Zrm/3EN6 BadeXhWIn9c6LU9u3duPdF+7xTYEOe9lF34pciItexA7E6Bo4mOs5nqghEVo+zO6ycJ5 fI1jrW9wHTJJBYeUCJaEpp6R/tDPxN6jAtNnyS9dd2JtupzL7BwUQL0GXhP3gwPomzeu ++ePLB27FD9i8QfcODRf3YZXw31Nf1hgEqNIx1leScUR+jnPKB9FoMXgxxUVIqwK3pJk oN9BOb9TmHU5J4vXwAai3je75+JF8aM7pv3GsjU8DIFYxz6BKMwN4V/i19a0fx6qwd6n 7GCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=XhGFUrx1v6eQV+qctC2ZOoxV4HtnB/sPU/5rxwGHIJ8=; b=gRZExFqUYKRQxZj9OBY5Z0TUYLrbFRhX0KKug7a/CmDM+6r/UR+cmdPy9iBw/pAoQc OwdfHN57tpFyYX7EQM20lfWzAuaVj+BH7oxwrg1OSPzfGlmYzwQFvijjdSQ6w9HzU+qH rHRXgzqNQckvYrTwXoEqpM+15rAHz5Yy7d/pEHhMJ+Tm0fFYNJxyZH2weKuZgeobwTzm AmtAx9XpTcMSX7PMGheLvzUjtEpVvvEFjv4SQBtSOSYfXDgbnIx7TEqbVCnCXg2PfVd3 siw0MDZwljV0ro+wU+sD6BnsnbBk4hmWU1jGHE5qoTbG0Mx6epsPCBcQyfzmcCWAfYKt pdFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sxQlJoDb; 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=pass (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 l19si8653822otp.4.2020.03.03.08.43.40; Tue, 03 Mar 2020 08:43:53 -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=pass header.i=@gmail.com header.s=20161025 header.b=sxQlJoDb; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729605AbgCCQmS (ORCPT + 99 others); Tue, 3 Mar 2020 11:42:18 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:39243 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727064AbgCCQmS (ORCPT ); Tue, 3 Mar 2020 11:42:18 -0500 Received: by mail-pl1-f196.google.com with SMTP id g6so1553790plp.6 for ; Tue, 03 Mar 2020 08:42:17 -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=XhGFUrx1v6eQV+qctC2ZOoxV4HtnB/sPU/5rxwGHIJ8=; b=sxQlJoDbSlbju8kAXlj03S3FItr9OTowlKd8NRmEFACViq4nO3qgLOv9p4Ulyev23X vRZERcYQvD4ZWlbBFvMBIpbS5tnebQMhNibSsLceR5tNKSsJiQfmXgVjDp+3uFGc3XbG IFojHEsbtzJ58RG2ZHyF99Gxae72FPN3fOEFmgQZLvRdGOOoGwNcaui7Ajjv57maNx2v z2bWB8//MFTgOY/zW01WYlPbUtkAGFIOFj+TuRdlhULBoEc6Fj/pA30nBI+NTvcx9oVe tGwOJ+pOmdLjsRe3HZ326pZXijx7f8gPIvFU3d1Kq2UgP7bFJbVBAd3iN0ou6u22Koot SrdA== 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=XhGFUrx1v6eQV+qctC2ZOoxV4HtnB/sPU/5rxwGHIJ8=; b=HCM7yv/ZjIBcyFCLswNVoRjtxZDq63SjZZ74n7jEMxqwCIHagQbcIw/qRLKDkzLXXb SZf794KlRpKYFoeZ0BDZfjXPSIJfPfwDDqzHFwKYjOE+mkq4h9zHZ96fUaGCBJzTIWsu f/0C4bX7WLnd3lX4k02pqgfZhnhQMIVk3VdtDWeolzCqBra1VgN3RD6s/c/V5aIDO19F EjPs2yMmM8fTbv9FQHs11S1Hz3d6EW9FobGpyqWiBHNTvIjQx6jk8XVOtlT4VHu01CoD zg+Boq0GF28xCiftGdKzNUWOZsTE3XSjy9IHJs2I2KKBZ4VbAhk0F1J++wIfI7L6dMaJ d+QQ== X-Gm-Message-State: ANhLgQ3wCO+iD/+F3omUGGjDW687Lu4uFA4McXB7A2/tofXnasGY1GEo 8tRe4fS/kfULV4x/Eh/lioY= X-Received: by 2002:a17:90b:3581:: with SMTP id mm1mr4728583pjb.169.1583253737264; Tue, 03 Mar 2020 08:42:17 -0800 (PST) Received: from VM_0_35_centos.localdomain ([150.109.62.251]) by smtp.gmail.com with ESMTPSA id 193sm2916138pfu.181.2020.03.03.08.42.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Mar 2020 08:42:16 -0800 (PST) From: Qiujun Huang To: tglx@linutronix.de, peterz@infradead.org Cc: mingo@redhat.com, bp@alien8.de, hpa@zytor.com, ast@kernel.org, mhiramat@kernel.org, rick.p.edgecombe@intel.com, namit@vmware.com, bristot@redhat.com, linux-kernel@vger.kernel.org, Qiujun Huang Subject: [PATCH] x86/alternatives: Mark text_poke_loc_init static Date: Wed, 4 Mar 2020 00:42:12 +0800 Message-Id: <1583253732-18988-1-git-send-email-hqjagain@gmail.com> X-Mailer: git-send-email 1.8.3.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now, the function is only used in this file, so mark it with 'static'. Signed-off-by: Qiujun Huang --- arch/x86/kernel/alternative.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c index 15ac0d5..600da3cb 100644 --- a/arch/x86/kernel/alternative.c +++ b/arch/x86/kernel/alternative.c @@ -1167,7 +1167,7 @@ static void text_poke_bp_batch(struct text_poke_loc *tp, unsigned int nr_entries atomic_cond_read_acquire(&desc.refs, !VAL); } -void text_poke_loc_init(struct text_poke_loc *tp, void *addr, +static void text_poke_loc_init(struct text_poke_loc *tp, void *addr, const void *opcode, size_t len, const void *emulate) { struct insn insn; -- 1.8.3.1