Message ID | 20230726234910.14775-1-rdunlap@infradead.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp746252vqo; Wed, 26 Jul 2023 17:16:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlFWZ7mVebEZs8J0wo+BO8H04aE0F399RkzgCac3NBzI6ONSUW0eULHfv/Xcs+H2jHc+vjoV X-Received: by 2002:a05:6870:469e:b0:1ad:4a74:9d63 with SMTP id a30-20020a056870469e00b001ad4a749d63mr1069597oap.53.1690417019479; Wed, 26 Jul 2023 17:16:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690417019; cv=none; d=google.com; s=arc-20160816; b=i7riSCesb54he+2xlzAnIS97XEkfQKqRXdgA4pi25AOBFcmseOCTNRP4Adl82DOwbd lWBqPZxfMlwW7SnbxWK/AwuawQP2fhMuQCCOnwVznTiQs/2MLOjzleV9Xk//M6VaX4fa 6M+zRuYUfz5Es6AZ3aB3x08uGM2+g3hEhIEWJUfxXl08DL49b55X+ddLoZ2SJBX1K5oV wGSmEjXxntrJ0FEHYtkCvO/ch6a+vI+Ai/Y4Za+50px4pK0Qj47XCdnJmHjFxnGRJcjr wZkXsyLtrF7wR/BY3ZnYirXvJy+x0knbmBg/Py8W3fSIyNCymszO3qZDMjnufjaALbsz Xbog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=o4y3h13DqwkObDVE8uFly/JudDZ7Hu6hufCHbRpUZRY=; fh=gdUaHFqMvvM8cNtmbrrjyp3Bb0l3FuOTm/oRVhSyoqo=; b=vf8r8gPYt5if2BWlKeHn5X5g1doy9KIEFAWbjdAaY/0A5HtjxvGYXZ63UNRuSuUNAE pyUNri/SWIwFn6HrANgc+ff1atyD0P5MdVwj+im31aytpoWgO0u8NuAvPccr+Z8MMJS2 I/gfpQOG0dTr/HkKXRjOfLkE7FHnVa9RK8N4QvMAcZWLcL8K1DYeZ04B72f+3+kJBUCY E5+JJfcjk8pW7m5RrgwD4tqtAC+WRWlBh64nguaiGZ4LOzv1UH3LDTVUYAmrxE333bQd BfKq75qQl37WgZfVR9iRrwvJHdUuwjrRBMm1Bmc8NJAX2K4gkvZWuc1AtalslJuXcmtT lpUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=svZOQRP3; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oa16-20020a17090b1bd000b002681ffd2f97si281665pjb.90.2023.07.26.17.16.46; Wed, 26 Jul 2023 17:16:59 -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; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=svZOQRP3; 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 S231217AbjGZXtN (ORCPT <rfc822;kloczko.tomasz@gmail.com> + 99 others); Wed, 26 Jul 2023 19:49:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230182AbjGZXtM (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 26 Jul 2023 19:49:12 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 782C2E0 for <linux-kernel@vger.kernel.org>; Wed, 26 Jul 2023 16:49:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=o4y3h13DqwkObDVE8uFly/JudDZ7Hu6hufCHbRpUZRY=; b=svZOQRP3b5N7hdQtIEFYu5nyfd 5ilogn+EVo7SXOTvC6TFP5CCjIvGNKioJCtN7ztJ6PU3QdpWqjTHglYtTKZAPt1NpWba6E/ixTXsk ZjcU/kaTojdFWLclSq/eeVa2eX7mhCPDN9cH2hP/A9c6IydcgqlyeoWLvYTI7uE5tdtf7fy5grybh /s1prHKRLd6ALBj5nzMg4B/uI2TGSNyZg9S1289knmiGolkel18BhnWlEjdTC0AwhojYxCqe27ULD OsnG1rLmkK3an4Dri1VkEcdIZQlGn1xn+jKk34hYLFO6ms0VSm34s1C3H86TM7uAmhjxoAULJ3WML a6G5Hf5w==; Received: from [2601:1c2:980:9ec0::2764] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qOoFj-00Bk2s-0a; Wed, 26 Jul 2023 23:49:11 +0000 From: Randy Dunlap <rdunlap@infradead.org> To: linux-kernel@vger.kernel.org Cc: Randy Dunlap <rdunlap@infradead.org>, Jiri Kosina <jikos@kernel.org>, x86@kernel.org Subject: [PATCH] x86/APM: drop the duplicate APM_MINOR_DEV macro Date: Wed, 26 Jul 2023 16:49:10 -0700 Message-ID: <20230726234910.14775-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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: 1772530717049204484 X-GMAIL-MSGID: 1772530717049204484 |
Series |
x86/APM: drop the duplicate APM_MINOR_DEV macro
|
|
Commit Message
Randy Dunlap
July 26, 2023, 11:49 p.m. UTC
This source file already includes <linux/miscdevice.h>, which contains
the same macro. It doesn't need to be defined here again.
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Jiri Kosina <jikos@kernel.org>
Cc: x86@kernel.org
---
arch/x86/kernel/apm_32.c | 6 ------
1 file changed, 6 deletions(-)
Comments
s/drop/Drop On 7/26/2023 4:49 PM, Randy Dunlap wrote: > This source file already includes <linux/miscdevice.h>, which contains > the same macro. It doesn't need to be defined here again. > > Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") > Signed-off-by: Randy Dunlap <rdunlap@infradead.org> > Cc: Jiri Kosina <jikos@kernel.org> > Cc: x86@kernel.org > --- I am not sure if a Fixes tag is really needed for a redundant macro definition. If at all, shouldn't it be 874bcd00f520c ("apm-emulation: move APM_MINOR_DEV to include/linux/miscdevice.h") ? Either way, Reviewed-by: Sohil Mehta <sohil.mehta@intel.com>
Hi Sohil, On 7/27/23 13:06, Sohil Mehta wrote: > s/drop/Drop > > On 7/26/2023 4:49 PM, Randy Dunlap wrote: >> This source file already includes <linux/miscdevice.h>, which contains >> the same macro. It doesn't need to be defined here again. >> >> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") >> Signed-off-by: Randy Dunlap <rdunlap@infradead.org> >> Cc: Jiri Kosina <jikos@kernel.org> >> Cc: x86@kernel.org >> --- > > I am not sure if a Fixes tag is really needed for a redundant macro > definition. If at all, shouldn't it be 874bcd00f520c ("apm-emulation: > move APM_MINOR_DEV to include/linux/miscdevice.h") ? I don't see any need for this patch to be backported. Should it be commit 874bcd00f520c? Maybe. That one certainly missed moving this macro. > Either way, > Reviewed-by: Sohil Mehta <sohil.mehta@intel.com> Thanks.
On 7/27/2023 2:21 PM, Randy Dunlap wrote: > On 7/27/23 13:06, Sohil Mehta wrote: >> I am not sure if a Fixes tag is really needed for a redundant macro >> definition. If at all, shouldn't it be 874bcd00f520c ("apm-emulation: >> move APM_MINOR_DEV to include/linux/miscdevice.h") ? > > I don't see any need for this patch to be backported. > > Should it be commit 874bcd00f520c? Maybe. That one certainly > missed moving this macro. > Also, applying this patch anytime before 874bcd00f520c will cause a compilation issue unless 874bcd00f520c is applied as well. -Sohil
On 7/27/23 15:05, Sohil Mehta wrote: > On 7/27/2023 2:21 PM, Randy Dunlap wrote: >> On 7/27/23 13:06, Sohil Mehta wrote: >>> I am not sure if a Fixes tag is really needed for a redundant macro >>> definition. If at all, shouldn't it be 874bcd00f520c ("apm-emulation: >>> move APM_MINOR_DEV to include/linux/miscdevice.h") ? >> >> I don't see any need for this patch to be backported. >> >> Should it be commit 874bcd00f520c? Maybe. That one certainly >> missed moving this macro. >> > > Also, applying this patch anytime before 874bcd00f520c will cause a > compilation issue unless 874bcd00f520c is applied as well. Yeah, that's a good point. Thanks.
On 7/27/23 15:41, Randy Dunlap wrote: > > > On 7/27/23 15:05, Sohil Mehta wrote: >> On 7/27/2023 2:21 PM, Randy Dunlap wrote: >>> On 7/27/23 13:06, Sohil Mehta wrote: >>>> I am not sure if a Fixes tag is really needed for a redundant macro >>>> definition. If at all, shouldn't it be 874bcd00f520c ("apm-emulation: >>>> move APM_MINOR_DEV to include/linux/miscdevice.h") ? >>> >>> I don't see any need for this patch to be backported. >>> >>> Should it be commit 874bcd00f520c? Maybe. That one certainly >>> missed moving this macro. >>> >> >> Also, applying this patch anytime before 874bcd00f520c will cause a >> compilation issue unless 874bcd00f520c is applied as well. > > Yeah, that's a good point. Thanks. > I'll send a v2 with the Fixes: tag changed. Thanks.
diff -- a/arch/x86/kernel/apm_32.c b/arch/x86/kernel/apm_32.c --- a/arch/x86/kernel/apm_32.c +++ b/arch/x86/kernel/apm_32.c @@ -239,12 +239,6 @@ extern int (*console_blank_hook)(int); #endif /* - * The apm_bios device is one of the misc char devices. - * This is its minor number. - */ -#define APM_MINOR_DEV 134 - -/* * Various options can be changed at boot time as follows: * (We allow underscores for compatibility with the modules code) * apm=on/off enable/disable APM