Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752622AbbF1QzF (ORCPT ); Sun, 28 Jun 2015 12:55:05 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:35291 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752513AbbF1Qy7 (ORCPT ); Sun, 28 Jun 2015 12:54:59 -0400 Message-ID: <559026D9.3090704@ecolibriumenergy.com> Date: Sun, 28 Jun 2015 22:24:49 +0530 From: Ravi Teja User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: benjamin.romer@unisys.com, david.kershner@unisys.com CC: gregkh@linuxfoundation.com, jes.sorensen@redhat.com, dzickus@redhat.com, sparmaintainer@unisys.com, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH]drivers:staging:visorbus:Fix checkpatch warnings Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1630 Lines: 44 This patch fixes checkpatch warnings Signed-off-by: Ravi Teja Darbha --- drivers/staging/unisys/visorbus/visorchipset.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/unisys/visorbus/visorchipset.c b/drivers/staging/unisys/visorbus/visorchipset.c index bb8087e..62f7f68 100644 --- a/drivers/staging/unisys/visorbus/visorchipset.c +++ b/drivers/staging/unisys/visorbus/visorchipset.c @@ -1410,8 +1410,8 @@ visorchipset_chipset_ready(void) static int visorchipset_chipset_selftest(void) { - char env_selftest[20]; - char *envp[] = { env_selftest, NULL }; + static char env_selftest[20]; + static const char * const envp[] = { env_selftest, NULL }; sprintf(env_selftest, "SPARSP_SELFTEST=%d", 1); kobject_uevent_env(&visorchipset_platform_device.dev.kobj, KOBJ_CHANGE, @@ -1559,9 +1559,9 @@ static void parahotplug_request_kickoff(struct parahotplug_request *req) { struct controlvm_message_packet *cmd = &req->msg.cmd; - char env_cmd[40], env_id[40], env_state[40], env_bus[40], env_dev[40], - env_func[40]; - char *envp[] = { + static char env_cmd[40], env_id[40], env_state[40], env_bus[40], + env_dev[40], env_func[40]; + static const char * const envp[] = { env_cmd, env_id, env_state, env_bus, env_dev, env_func, NULL }; -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/