Message ID | 20190416202013.4034148-4-arnd@arndb.de |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp4654994jan; Tue, 16 Apr 2019 13:21:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHGvC9bIZgib+8lnZ83MSepwM3L4VneFbIPn9hvQLpo9BD+0X7GiRl8xnEEh8NPCrVwIYY X-Received: by 2002:a65:47c6:: with SMTP id f6mr78213910pgs.173.1555446077289; Tue, 16 Apr 2019 13:21:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555446077; cv=none; d=google.com; s=arc-20160816; b=not+9OcgWuAusdE2KAgVkIqUnKQiybtY9oNe/uT4e2Dr/4entm/k+pWjz0SO2+xlcZ uj74jU+wnyD2B/XjuuMxYXXPp2tdL+J/Gtmgj8FTDwAifDmljl+u26i/VT5FZbknmCAe 4c8saYaxX9JbKPQDtG28tAE19KKsWSd2eT79JP/30Qthf8Hv5k8Jzg7qRnqsaqr2aQ8Z N6EAefunb+BJnJx//3KqTmcXSu6zo62QyTn16dRm1TxrjUhJ9ttUiZZ8UkR2aZ2Tc1Xi bchJaibmPJrCsfndQVncp8Wyy8qK04ZO5Sv8iFrYlftBtSYb2wT+mYSfJ24k0MkEwOR+ XFfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=ah3NIbf18Ou8RCtDLTRjOsqQvSzfEoTMcEdmF5UWIJc=; b=Pa5rWz5MDRM9vQ5WuWFQA3Ur8MSqT7HBVwvsXuRlzAWIH01ALYdzk6xSQF4RI0WQAs hYgs/jJy5PsnymCa7hYKjY3KvJI2PAPEWmfYm/JHCydVZzekbGB3KwAdjmF9gjOKjSI5 nFh2R0XO3qzacTinpf+KDf4zZKz4M8eI89zGDddF882WxT5VUiV3u8g31JmwXy1a2QBD qfg/M+ShE8UzktuVUkXZ0i/k4AW8toeY+3TIZqj9uVlC14GcKTKsZLWUfUT3xnbzFQgx a2WR6ZsC/yapMkz7prJPR8zcA1F2/HPu82OX9NhtFZ5+OhYAoZxnZCW9F5EcqfZfglZI 0Nxg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x5si51272277pfn.30.2019.04.16.13.21.16; Tue, 16 Apr 2019 13:21:17 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730426AbfDPUVP (ORCPT <rfc822;mike.holmes@linaro.org> + 30 others); Tue, 16 Apr 2019 16:21:15 -0400 Received: from mout.kundenserver.de ([212.227.126.135]:50809 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728373AbfDPUVP (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 16 Apr 2019 16:21:15 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.129]) with ESMTPA (Nemesis) id 1MdNwm-1ghQsK48lU-00ZNI6; Tue, 16 Apr 2019 22:21:13 +0200 From: Arnd Bergmann <arnd@arndb.de> To: Alexander Viro <viro@zeniv.linux.org.uk> Cc: linux-fsdevel@vger.kernel.org, y2038@lists.linaro.org, linux-kernel@vger.kernel.org, Arnd Bergmann <arnd@arndb.de> Subject: [PATCH v3 03/26] compat_ioctl: avoid unused function warning for do_ioctl Date: Tue, 16 Apr 2019 22:19:41 +0200 Message-Id: <20190416202013.4034148-4-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190416202013.4034148-1-arnd@arndb.de> References: <20190416202013.4034148-1-arnd@arndb.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:L+82VjtPNvJ/9cddonfdgesyM2cGZaLGxjHkIqcfsx+rOv8O6Ly /DyHOZgU2AA7jki8pndUtENOpJ2bpEu0hmyEGK8DR+IN1Qoh0MeppXgfugDyXCFVdFVc0Jh A/OCMaFzrorxhDQtf+HHhRmRQ721VcX4hj+3txfKGC95ge5u7KSuXQg+vzq/B1Bw0CK3HIC deP8RTtFmaZv8/f4+p21Q== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:ivXdclr+H2A=:bDNmQTqWjYLHmBCcjNyLe/ gbRn8XJELMvytWkqJiOwVGX9KpRPTB1avv9/pvci0OzdpdUhyGboNqSlNKIlq/9eG5yARrFOP FQ7dTJrTW7nKWlDZCqN5FoWV0/TWx5gFz3SRn0Ah6a8YqW+k+qWIafukqEeaTxhPexTk8ttC/ ec1jHkveXLW6wEepuEhhhfi2DXmwv3cbBzVoLV0VoFg7MlJJYypDtW1YHUBwIe9XIJoc+XPNF eFieSzGXILUjkkX6fgVoQM15lXCsdpnpKfPiSAWQ+hsl4F3LgH7RP+hebr70WMamfOiAXBl7w jcUYwF+dqkHFWYbW1hJg8NreJ+Rp/yUNl+fqeJBKM6ieH+HpTyGwSUbN8+DzCPwD3EXanGGhK tkkkz5tA7+ltQNAUPnX3r338LWGJYwQyswK35lv9xPPqPBykXbMN++nX9xd/CT3wTFnTEo/7O 0GcKVQwiYlRaR09StA8SjBtBY/tWTaGgoKXbbarfWaTMC3BqxhcErr4DYgh6UrvfxD8pyBxBz R3ym+6DC8QKvVv6H1XpTbh5VqOBEzyzXPuvDhZ0u0McqkHlNKANpdVJx6u27CyiVjpBp0nMhI R1d6H/8MN5WVXfr75np4SQTDhbqF+7R1KPFG0qKYB2a3epLf3KvM/ypY/NEsY5om3d+yjUjvs X3U0K/Ozo4vgTUhe/vcpy986AJRBCV6C1wgmcnjdzgDevYMUzYP1kvEZ7jBcqrJZf1OimopmE PXLSZdLkyOm/u2zzc2nFj6VNyGvTsoVlM4ijlw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
compat_ioctl: cleanups
|
expand
|
diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index 54f26a9fa9f2..2772b539674d 100644 --- a/fs/compat_ioctl.c +++ b/fs/compat_ioctl.c @@ -79,7 +79,7 @@ get_user(val, srcptr) || put_user(val, dstptr); \ }) -static int do_ioctl(struct file *file, unsigned int cmd, unsigned long arg) +static inline int do_ioctl(struct file *file, unsigned int cmd, unsigned long arg) { int err;
The users are becoming rarer, and when the remaining ones are all turned off, gcc warns about an unused function. Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- fs/compat_ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.0