Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2404077rwr; Fri, 28 Apr 2023 09:52:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4D0IKgtwauq9vWas7Uu/LLb59b7KMQtbh9a8rAskh2pv0guKhcnJepnkOoZ17EKdLYhRUx X-Received: by 2002:a05:6a20:54a3:b0:ef:b575:e559 with SMTP id i35-20020a056a2054a300b000efb575e559mr7636076pzk.8.1682700722510; Fri, 28 Apr 2023 09:52:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682700722; cv=none; d=google.com; s=arc-20160816; b=S4mh/+SEBHiPrJwhCC526j7/W2zqEOQC8BKmSg5Yvnzg9/2X86qJhrgxg6q5gzbeJL +1wBa1Ie+V+5/R2mpqLjqXshekBgBLfALB/1IO28UP7uDvXvj1UJ1I390+RlawNYiXj7 934JQ2RmbOpGoBDU/RvX57AhVj1DCJcTn2e7BZVo2pTuGPTGPiuEgRIbniCY92mchSUr uNXHRx1O6o9hQfkMHbEl12joxz/yNhqA/Ec0/eVILKnsaXsELY8RaFLyMb4W6Aw6D2Lq Jt+QqO2vEWKpG/ZVoIuUHox0lwb8zOPRZ0GZaBy+rUfkQNeurjyFQZjDJDhNRagYIztf lLgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=g/NzNWLgpXOgTxlU38N6x4cycWvpvrCkOrcwFZ0lnHU=; b=EmtXNAw0DiB0iPZ4a/ihw9JcrUmahiQGM69poo5kr+cBLvgmCzAPb2wNvDbW94lUym JzOH0/2Q9pFGqObwQeMr69UHx8QQFbRhrkWl6XTC8KF2GP/ukPo5qHzVdtdD98yS2gWA Wwruyk8/oPfnjUevmfJgN1j2lOcYdHkd+Mp9GsMi7rNenFiX681uurf7mk67k+UM4Hnj UDJ2Vb1gaQuB2Q3kXIGQN1BpFKAivKq3Zeljrsl0SIGRCmqSbdcvADUUbtkV/Hs4E2RR eVcGJ5068CycTy3Na/wUidOD2hRf4Pn+Mj3jn+ZEPmak+eC5BcNe8ZGK1SKnFoAx1e26 uuTw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b5-20020a63d805000000b0050f692470fasi21576334pgh.301.2023.04.28.09.51.49; Fri, 28 Apr 2023 09:52:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229726AbjD1Qli (ORCPT + 99 others); Fri, 28 Apr 2023 12:41:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229614AbjD1Qlh (ORCPT ); Fri, 28 Apr 2023 12:41:37 -0400 Received: from www262.sakura.ne.jp (www262.sakura.ne.jp [202.181.97.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F6DA4ECD for ; Fri, 28 Apr 2023 09:41:36 -0700 (PDT) Received: from fsav114.sakura.ne.jp (fsav114.sakura.ne.jp [27.133.134.241]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 33SGf4Bb016557; Sat, 29 Apr 2023 01:41:04 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav114.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav114.sakura.ne.jp); Sat, 29 Apr 2023 01:41:04 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav114.sakura.ne.jp) Received: from [192.168.1.6] (M106072142033.v4.enabler.ne.jp [106.72.142.33]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id 33SGf4xJ016554 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NO); Sat, 29 Apr 2023 01:41:04 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Message-ID: <6dca757e-74ac-773d-2a50-4e48b2f56880@I-love.SAKURA.ne.jp> Date: Sat, 29 Apr 2023 01:41:02 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH] tty: tty_io: remove hung_up_tty_fops Content-Language: en-US To: Nathan Chancellor Cc: Al Viro , Jiri Slaby , Greg Kroah-Hartman , Dmitry Vyukov , syzbot , linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com References: <6ff6fdea-c955-f9dd-289e-b0d613a28280@I-love.SAKURA.ne.jp> <20230423233433.GF3390869@ZenIV> <20230424004431.GG3390869@ZenIV> <8e21256a-736e-4c2d-1ff4-723775bcac46@I-love.SAKURA.ne.jp> <2fca7932-5030-32c3-dd61-48dd78e58e11@I-love.SAKURA.ne.jp> <20230425160344.GS3390869@ZenIV> <1b405689-ea0a-6696-6709-d372ce72d68c@I-love.SAKURA.ne.jp> <5cebade5-0aa9-506c-c817-7bcf098eba89@I-love.SAKURA.ne.jp> <20230428162718.GA1099174@dev-arch.thelio-3990X> From: Tetsuo Handa In-Reply-To: <20230428162718.GA1099174@dev-arch.thelio-3990X> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023/04/29 1:27, Nathan Chancellor wrote: > I see this change has shown up in -next as commit 4c87e9e5479b ("tty: > tty_io: remove hung_up_tty_fops"), where it causes the following warning > for configurations without CONFIG_COMPAT (I used ARCH=arm defconfig): > > drivers/tty/tty_io.c:446:13: warning: 'hung_up_tty_compat_ioctl' defined but not used [-Wunused-function] > 446 | static long hung_up_tty_compat_ioctl(struct file *file, > | ^~~~~~~~~~~~~~~~~~~~~~~~ > > I am not sure if you just added that patch for additional test coverage > or for final acceptance but the following diff resolves this warning for > me, perhaps it can be folded in for a v2? Thank you for reporting. Yes, moving the definition will solve the warning. I'm testing this patch using my volatile tree before getting merged to a permanent tree.