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.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham 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 F01E6C43603 for ; Tue, 17 Dec 2019 19:08:50 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C0A1E2072D for ; Tue, 17 Dec 2019 19:08:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ZZTVTJg+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C0A1E2072D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 51DB76E0D1; Tue, 17 Dec 2019 19:08:50 +0000 (UTC) Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2E47B6E0D1 for ; Tue, 17 Dec 2019 19:08:49 +0000 (UTC) Received: by mail-pf1-x443.google.com with SMTP id x184so8084296pfb.3 for ; Tue, 17 Dec 2019 11:08:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=M6ODtAK/kSPelKWo8qlr9AI1paG4/5fDCdQdMGc8cow=; b=ZZTVTJg+L/PA6VmNqIt/3FCmTOg4djZsQiSvscUk3zZc5nQjBWomowCzIXvBlzUXNd mxj6r/CCoBn8hRs9dEO4PnnnM2thQdnOs2ev8XTLU9OTaRdpbbxn56TudNEblGV0SMyf 5oaI2e6PKqeBpqrvW8nbu6yM3lY36oKKVE+VAGu4W6eAaoqAa+NnNVEHDE+jMgrysBL1 L384H7mgWGRUH4ry94uE7pU1QHSEFMwP/vPmNGoFWLr7VuKTIBXjoTMMDoWdksJ7QKzZ etwMVRDuZDwlHtviWS2hmKY5uTqNt0BwulsdGwsWvZh8toG3F/rqoOGhedu4VQrZjq2f OnAg== 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=M6ODtAK/kSPelKWo8qlr9AI1paG4/5fDCdQdMGc8cow=; b=l1u0yXccFhgqUdzposNgD3kYL9b0HfYFPfgSg40sbZVUyxsdPpjUZuovDFotV2C3Nu L2TM8Qk15gVxbvQAMPpmyq0UM2ULbBIA4KoVKA96rfsi1TPQsEtT5YC/Wh9FmY9wZHDX E6uc11cWDm7Pda03bUPUTD6lucYTauW7R2SKGgV39CcvrNcckfUW16HYJ+JtR7fovnlz lVBM0iSL7Jh7lSyaIG+9jESx4ViQH4kHgPXnX2vIjWjLVu/uagjbkLAE+NHthUgZFxG5 GDz9OizVWrXGY3uGnPTsb+DPMoMQnDdy7jxLm2YdUUb/RziabSfmOTRrKPg2yqQyXXlO oNTA== X-Gm-Message-State: APjAAAVJMyb/BMn5LRu+TnSwxpt2wK8Dmt3VunB4AJa3tz8ZNi4ydMHH Rr8x6RsFDGBobm5cgOvwC4pXJA== X-Google-Smtp-Source: APXvYqwwYwEW8UujHenDnM3HGny/IvVE2Z/yHHlmaPBn+WxMZ+NHOf6z5+i7m2NFWdAv96HkaHfebA== X-Received: by 2002:a63:f743:: with SMTP id f3mr26884769pgk.28.1576609728600; Tue, 17 Dec 2019 11:08:48 -0800 (PST) Received: from nagraj.local ([49.206.21.239]) by smtp.gmail.com with ESMTPSA id 12sm1697085pfn.177.2019.12.17.11.08.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Dec 2019 11:08:47 -0800 (PST) From: Sumit Semwal To: sumit.semwal@linaro.org Subject: [PATCH] dma-heap: Make the symbol 'dma_heap_ioctl_cmds' static Date: Wed, 18 Dec 2019 00:38:22 +0530 Message-Id: <20191217190822.1969-1-sumit.semwal@linaro.org> X-Mailer: git-send-email 2.18.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, lmark@codeaurora.org, afd@ti.com, linaro-mm-sig@lists.linaro.org, dri-devel@lists.freedesktop.org, zhong jiang , linux-media@vger.kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: zhong jiang Fix the following sparse warning. drivers/dma-buf/dma-heap.c:109:14: warning: symbol 'dma_heap_ioctl_cmds' was not declared. Should it be static? Acked-by: Andrew F. Davis Acked-by: John Stultz Signed-off-by: zhong jiang Signed-off-by: Sumit Semwal [sumits: rebased over IOCTL rename patches] --- drivers/dma-buf/dma-heap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma-buf/dma-heap.c b/drivers/dma-buf/dma-heap.c index 1886aee46131..afd22c9dbdcf 100644 --- a/drivers/dma-buf/dma-heap.c +++ b/drivers/dma-buf/dma-heap.c @@ -106,7 +106,7 @@ static long dma_heap_ioctl_allocate(struct file *file, void *data) return 0; } -unsigned int dma_heap_ioctl_cmds[] = { +static unsigned int dma_heap_ioctl_cmds[] = { DMA_HEAP_IOCTL_ALLOC, }; -- 2.18.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel 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.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 A82A2C43603 for ; Tue, 17 Dec 2019 19:08:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7DAC52072D for ; Tue, 17 Dec 2019 19:08:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ZZTVTJg+" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727378AbfLQTIw (ORCPT ); Tue, 17 Dec 2019 14:08:52 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:39391 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726836AbfLQTIt (ORCPT ); Tue, 17 Dec 2019 14:08:49 -0500 Received: by mail-pg1-f194.google.com with SMTP id b137so6182276pga.6 for ; Tue, 17 Dec 2019 11:08:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=M6ODtAK/kSPelKWo8qlr9AI1paG4/5fDCdQdMGc8cow=; b=ZZTVTJg+L/PA6VmNqIt/3FCmTOg4djZsQiSvscUk3zZc5nQjBWomowCzIXvBlzUXNd mxj6r/CCoBn8hRs9dEO4PnnnM2thQdnOs2ev8XTLU9OTaRdpbbxn56TudNEblGV0SMyf 5oaI2e6PKqeBpqrvW8nbu6yM3lY36oKKVE+VAGu4W6eAaoqAa+NnNVEHDE+jMgrysBL1 L384H7mgWGRUH4ry94uE7pU1QHSEFMwP/vPmNGoFWLr7VuKTIBXjoTMMDoWdksJ7QKzZ etwMVRDuZDwlHtviWS2hmKY5uTqNt0BwulsdGwsWvZh8toG3F/rqoOGhedu4VQrZjq2f OnAg== 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=M6ODtAK/kSPelKWo8qlr9AI1paG4/5fDCdQdMGc8cow=; b=I3j7Gbtie8MIs8/h6AJ2f/XDbi2F0XlWLJgJQ/8EzsjtitebVNIdCkhGVbGkhgSXhD HFuiw6jtKxYNSpvqR32vV3lhXEQqrgZuHSCsHurc3KY2SSOV4hB2lPFQkj8an5E88qGG 6AaUH0qoe3DY6dMZVH/4khDfW7OBEPpKmq1ep0rV46jNAXttimxweDvJFJDR0aOi3Enq AugTFQ2vIORmCE3MTfalJBzSiFEjakTud/5JxzG8LnKnaOehQv7w+czjh4zOEegWVCgd /HzmD14E1mxsl8SPGScRvJk8he/5J6sbtuZHuYrv2+n8oGL2jOAmEqzbt8z3G7bd3LYQ KUwA== X-Gm-Message-State: APjAAAXud+GuYHu+HC9we+zBbAl1WjO1dJYpzkloNztuixRu6fzr3+z9 EF4lsMnbXw/LYmyxWcr73/GEew== X-Google-Smtp-Source: APXvYqwwYwEW8UujHenDnM3HGny/IvVE2Z/yHHlmaPBn+WxMZ+NHOf6z5+i7m2NFWdAv96HkaHfebA== X-Received: by 2002:a63:f743:: with SMTP id f3mr26884769pgk.28.1576609728600; Tue, 17 Dec 2019 11:08:48 -0800 (PST) Received: from nagraj.local ([49.206.21.239]) by smtp.gmail.com with ESMTPSA id 12sm1697085pfn.177.2019.12.17.11.08.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Dec 2019 11:08:47 -0800 (PST) From: Sumit Semwal To: sumit.semwal@linaro.org Cc: afd@ti.com, benjamin.gaignard@linaro.org, lmark@codeaurora.org, labbott@redhat.com, Brian.Starkey@arm.com, john.stultz@linaro.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, linux-kernel@vger.kernel.org, zhong jiang Subject: [PATCH] dma-heap: Make the symbol 'dma_heap_ioctl_cmds' static Date: Wed, 18 Dec 2019 00:38:22 +0530 Message-Id: <20191217190822.1969-1-sumit.semwal@linaro.org> X-Mailer: git-send-email 2.18.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org From: zhong jiang Fix the following sparse warning. drivers/dma-buf/dma-heap.c:109:14: warning: symbol 'dma_heap_ioctl_cmds' was not declared. Should it be static? Acked-by: Andrew F. Davis Acked-by: John Stultz Signed-off-by: zhong jiang Signed-off-by: Sumit Semwal [sumits: rebased over IOCTL rename patches] --- drivers/dma-buf/dma-heap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma-buf/dma-heap.c b/drivers/dma-buf/dma-heap.c index 1886aee46131..afd22c9dbdcf 100644 --- a/drivers/dma-buf/dma-heap.c +++ b/drivers/dma-buf/dma-heap.c @@ -106,7 +106,7 @@ static long dma_heap_ioctl_allocate(struct file *file, void *data) return 0; } -unsigned int dma_heap_ioctl_cmds[] = { +static unsigned int dma_heap_ioctl_cmds[] = { DMA_HEAP_IOCTL_ALLOC, }; -- 2.18.0