From patchwork Sun Sep 25 15:36:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 9349793 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EC227601C2 for ; Sun, 25 Sep 2016 15:36:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CECD028CD2 for ; Sun, 25 Sep 2016 15:36:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BE7FD28CD8; Sun, 25 Sep 2016 15:36:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2F99128CD2 for ; Sun, 25 Sep 2016 15:36:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966444AbcIYPg1 (ORCPT ); Sun, 25 Sep 2016 11:36:27 -0400 Received: from mail-pa0-f66.google.com ([209.85.220.66]:32794 "EHLO mail-pa0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S938905AbcIYPg0 (ORCPT ); Sun, 25 Sep 2016 11:36:26 -0400 Received: by mail-pa0-f66.google.com with SMTP id oz2so7541756pac.0 for ; Sun, 25 Sep 2016 08:36:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9fWem2iCZ5B4vz2bKZu8Rv7p5JXVDp2/yxrRg0x6xH4=; b=kWGQkJgNS1BVGRfGEUJMPb29FdGFZL750yVBRtKF3yrMhXXACHLu1/aXAaBOzeMpgJ xEAhyxTJH3cy7St7FiJt/2d9nCso34psUfNNum3YnLnDhPAoj7AIjX8cHMzQFGUACFE/ Q+XLCvXi+MChFJWMuvYFtejS4Iv9tECdXyDIDE0+IA3Vf0FzsoKSresDcOOG769a56we EsssF9E0MeAsJw12PTGtIlOtdOoTOGLIRj1X3w4/5v6XYxX+8RhBhBWaWiRYfReRNGgj VOUxTlXbcvlzeNneeyuUNB7nlv8Js9BYvigytZSSYCILOyspNXeUWZJgKSmgJMvkwAe1 qVwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9fWem2iCZ5B4vz2bKZu8Rv7p5JXVDp2/yxrRg0x6xH4=; b=fVABSjcJ8F7S2fBeFrwhFg8JFMpRa22z3cEtXLEoFnlyQCOafxz4Hk7+XK5imtt9Xo 6oa6JMjMBOzuQwRSgB5BiangVG3rncybroIxbN7fHqWH+OuiCPkfPb8j8l/wgFtdqb4H QaYt2W7dNz91t4oIHTtOEgbRGGDpeoFKP8DlfDaN8TurDwiL3t8yyuqCT9/vq1NP4DpJ vM77boLRA54o0y+cvGdMSZCY3MLeEnbhC2yiNowXtqvvMRrmA2OiLYd2Rvw1yhvSNC+x lu1iVLCmTK+m8oJFwe8F+iCncDkz/ZXlMXESMV3szJpy+qhzrzJvud5HPC21pejzVsKt EpYQ== X-Gm-Message-State: AE9vXwO51zYRB4Dq33xW+RzIru0U8ThTcVG1TOlcoAT0v86rVFL3/WP6h5lPkm5IVAmfUA== X-Received: by 10.66.175.38 with SMTP id bx6mr30635049pac.159.1474817785804; Sun, 25 Sep 2016 08:36:25 -0700 (PDT) Received: from 192.168.0.37 (ec2-52-192-197-227.ap-northeast-1.compute.amazonaws.com. [52.192.197.227]) by smtp.gmail.com with ESMTPSA id 85sm24533166pfw.92.2016.09.25.08.36.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Sep 2016 08:36:24 -0700 (PDT) From: Wei Yongjun To: Mimi Zohar , Dmitry Kasatkin , James Morris , "Serge E. Hallyn" Cc: Wei Yongjun , linux-ima-devel@lists.sourceforge.net, linux-ima-user@lists.sourceforge.net, linux-security-module@vger.kernel.org Subject: [PATCH -next] ima: fix non static symbol warnings Date: Sun, 25 Sep 2016 15:36:19 +0000 Message-Id: <1474817779-18587-1-git-send-email-weiyj.lk@gmail.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: X-Virus-Scanned: ClamAV using ClamSMTP From: Wei Yongjun Fixes the following sparse warnings: security/integrity/ima/ima_kexec.c:122:23: warning: symbol 'update_buffer_nb' was not declared. Should it be static? security/integrity/ima/ima_kexec.c:130:6: warning: symbol 'ima_add_kexec_buffer' was not declared. Should it be static? Signed-off-by: Wei Yongjun --- security/integrity/ima/ima_kexec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-security-module" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/security/integrity/ima/ima_kexec.c b/security/integrity/ima/ima_kexec.c index 878c062..0a7ab39 100644 --- a/security/integrity/ima/ima_kexec.c +++ b/security/integrity/ima/ima_kexec.c @@ -119,7 +119,7 @@ static int ima_update_kexec_buffer(struct notifier_block *self, return NOTIFY_OK; } -struct notifier_block update_buffer_nb = { +static struct notifier_block update_buffer_nb = { .notifier_call = ima_update_kexec_buffer, }; @@ -127,7 +127,7 @@ struct notifier_block update_buffer_nb = { * Called during kexec_file_load so that IMA can add a segment to the kexec * image for the measurement list for the next kernel. */ -void ima_add_kexec_buffer(struct kimage *image) +static void ima_add_kexec_buffer(struct kimage *image) { static int registered; struct kexec_buf kbuf = { .image = image, .buf_align = PAGE_SIZE,