Message ID | 202307101523409041269@zte.com.cn |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp4849460vqx; Mon, 10 Jul 2023 00:40:07 -0700 (PDT) X-Google-Smtp-Source: APBJJlH+v9OxcuKkecwL+fSoBZsS8BU3nkfGlTGI+G2j8vBSZRq+Sgh7yPPD92LysZLayKcRfUgJ X-Received: by 2002:a05:6402:50cb:b0:51b:c7fe:970 with SMTP id h11-20020a05640250cb00b0051bc7fe0970mr17086930edb.7.1688974806799; Mon, 10 Jul 2023 00:40:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688974806; cv=none; d=google.com; s=arc-20160816; b=uUl9pdD+9zPV5tolLuC/dAXtIxh2vuaP3PkPvtAdo61Vh7lXWU2kfM1tFHqDV385b9 MHpahNj8DbMQ98Ecb1OZ8byI5tT7w7vSRNWjDA7x4P5XXuSAjwx3552BUaUXYHtCtS6u DDjDdiBeroH2Ya6pWkhooTmHoQy3UT9QCgv8mQzjy2yDdTkVhIvsip4DEAFjIpgItdta RpacQteNTbukb5wei1HU+Y7PdFFBMABjKP2W/mkW1XUrvx6hhgWJSuIJFagTfXKh+s69 strlIOk/EhcF1kib2miXCSxPsmd3hZBnxWyvO7/isFoxCvuERA9nyLuu1wa3ZpR++6Yb 1XuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:mime-version:message-id:date; bh=f+Ujv1DXKy2D9yYIopWg2POT0B0XBaDiHNKYwNBaKKs=; fh=lqkLOj8YUfEJj1uWDppnl8ZKX+Qmc3+BE7g5Sa4G4C0=; b=VzyF3B/R93onLdAxpwJd0zbn9Q4dAe868i3K0sZT4Guj60jodKWzq5JQQLmp/9jatf HTdvtjvPUW802Psau34nU9QqmyDy7aADNv53G/5ujPCETa350xu/uY0NYOaX1MimIh1g 4O6mX1r8cjTOqsVYQnsSHidrJIKRBEK7IALziZiPvLpGLWsPEihrGdLEXwh7Nqxg4N3e nB1cbN6dZKD3oTTaksXnM6EThcRSXC1Twqu6B2irBwA2kylZ78WjOjmhpCpfLlQNG4k6 OrQj6v91QTcPZW+ofVYJdgFHpoD60fwzCVuF/Ai4LOsFfb37Xi3b6XgFdIPvDKmsnG4Z l+Zg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c20-20020aa7df14000000b0051d92aee623si8079995edy.54.2023.07.10.00.39.43; Mon, 10 Jul 2023 00:40:06 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=zte.com.cn Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230467AbjGJHYx (ORCPT <rfc822;ybw1215001957@gmail.com> + 99 others); Mon, 10 Jul 2023 03:24:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231438AbjGJHYb (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 10 Jul 2023 03:24:31 -0400 Received: from mxct.zte.com.cn (mxct.zte.com.cn [58.251.27.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5C481B1 for <linux-kernel@vger.kernel.org>; Mon, 10 Jul 2023 00:24:20 -0700 (PDT) Received: from mxde.zte.com.cn (unknown [10.35.20.121]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mxct.zte.com.cn (FangMail) with ESMTPS id 4QzwVS1zQZzbNJW for <linux-kernel@vger.kernel.org>; Mon, 10 Jul 2023 15:24:16 +0800 (CST) Received: from mxhk.zte.com.cn (unknown [192.168.250.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mxde.zte.com.cn (FangMail) with ESMTPS id 4QzwVB42FNzBRP06 for <linux-kernel@vger.kernel.org>; Mon, 10 Jul 2023 15:24:02 +0800 (CST) Received: from mxct.zte.com.cn (unknown [192.168.251.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mxhk.zte.com.cn (FangMail) with ESMTPS id 4QzwV46M5Vz7QYRf for <linux-kernel@vger.kernel.org>; Mon, 10 Jul 2023 15:23:56 +0800 (CST) Received: from mse-fl2.zte.com.cn (unknown [10.5.228.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mxct.zte.com.cn (FangMail) with ESMTPS id 4QzwTt1tbVz501NP; Mon, 10 Jul 2023 15:23:46 +0800 (CST) Received: from xaxapp01.zte.com.cn ([10.88.99.176]) by mse-fl2.zte.com.cn with SMTP id 36A7NcXG031627; Mon, 10 Jul 2023 15:23:38 +0800 (+08) (envelope-from ye.xingchen@zte.com.cn) Received: from mapi (xaxapp02[null]) by mapi (Zmail) with MAPI id mid31; Mon, 10 Jul 2023 15:23:40 +0800 (CST) Date: Mon, 10 Jul 2023 15:23:40 +0800 (CST) X-Zmail-TransId: 2afa64abb1fc43d-f7b4d X-Mailer: Zmail v1.0 Message-ID: <202307101523409041269@zte.com.cn> Mime-Version: 1.0 From: <ye.xingchen@zte.com.cn> To: <rafael.j.wysocki@intel.com> Cc: <peterz@infradead.org>, <ebiederm@xmission.com>, <elver@google.com>, <tglx@linutronix.de>, <michael.christie@oracle.com>, <haifeng.xu@shopee.com>, <viro@zeniv.linux.org.uk>, <mcgrof@kernel.org>, <dvyukov@google.com>, <vincent.whitchurch@axis.com>, <linux-kernel@vger.kernel.org> Subject: =?utf-8?q?=5BPATCH=5D_signal=3A_remove_duplicate_include_header_in_?= =?utf-8?q?signal=2Ec?= Content-Type: text/plain; charset="UTF-8" X-MAIL: mse-fl2.zte.com.cn 36A7NcXG031627 X-Fangmail-Gw-Spam-Type: 0 X-Fangmail-Anti-Spam-Filtered: true X-Fangmail-MID-QID: 64ABB21F.000/4QzwVS1zQZzbNJW X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771018447170768685 X-GMAIL-MSGID: 1771018447170768685 |
Series |
signal: remove duplicate include header in signal.c
|
|
Commit Message
ye.xingchen@zte.com.cn
July 10, 2023, 7:23 a.m. UTC
From: Ye Xingchen <ye.xingchen@zte.com.cn> linux/file.h is included more than once. Signed-off-by: Ye Xingchen <ye.xingchen@zte.com.cn> --- kernel/signal.c | 1 - 1 file changed, 1 deletion(-)
Comments
On 2023/7/10 15:23, ye.xingchen@zte.com.cn wrote: > From: Ye Xingchen <ye.xingchen@zte.com.cn> > > linux/file.h is included more than once. Can you point out which files have contained file.h? Though file.h is included more than once, but it has used the macro "#ifndef / #define" to avoid redefinition. So what’s your concern about this? Thanks, Haifeng. > > Signed-off-by: Ye Xingchen <ye.xingchen@zte.com.cn> > --- > kernel/signal.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/kernel/signal.c b/kernel/signal.c > index 9a3ff8157ceb..b1da4e81bde6 100644 > --- a/kernel/signal.c > +++ b/kernel/signal.c > @@ -25,7 +25,6 @@ > #include <linux/mm.h> > #include <linux/proc_fs.h> > #include <linux/tty.h> > -#include <linux/file.h> > #include <linux/binfmts.h> > #include <linux/coredump.h> > #include <linux/security.h>
diff --git a/kernel/signal.c b/kernel/signal.c index 9a3ff8157ceb..b1da4e81bde6 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -25,7 +25,6 @@ #include <linux/mm.h> #include <linux/proc_fs.h> #include <linux/tty.h> -#include <linux/file.h> #include <linux/binfmts.h> #include <linux/coredump.h> #include <linux/security.h>