Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp2374606pxb; Sun, 5 Sep 2021 17:12:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGxeazXZ3k+SXcOuzwaa/a2yNvtUNLJ7hx9ezHUDm9omZVNflykIvKFXNaN8QVEEJ2FsRl X-Received: by 2002:aa7:ca04:: with SMTP id y4mr10618819eds.162.1630887134901; Sun, 05 Sep 2021 17:12:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630887134; cv=none; d=google.com; s=arc-20160816; b=IlgVHxgAyMRdU7eQhD0UH2aAXKm1nXnDv20xgHsA1q2wxFCdIGK5oyRVVtOTNKAKm2 IX/XBlkoLaV1CtivR4DooCvRiSRLqj8rrcxLJLzxhrRsGIYGPXMnLnSnPk0zO8gkRc+/ lNlEPcM3xMA7J7rqgCmJ4LGQLRcyDkwKCdxq5sf8N3gqlgb8i1m3GRCKy94gmGrgESvv jAWcJ0nCVYFiFugxyNza38ke2uqVRupjwgfZQicw8Ln1TFiMDE0Kg8l7BKp/D65C356D nNCX7rfbevvycIt5OLOHoUcpjjcXaahM4CQC6nPnpOc4rGGWLsUdQbPoUSa4O6AItOqo jhjw== 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=hIb2nK0ItXTa5MRBxU9bPeawp9abmfaSM4x8huD2VSA=; b=pnH7sIJzbEETBTYpR7ksA9l8BwqXuBq1wlMWk61wMIsZUoJE0Ue17heATyqVckTiYz 6gCf09X2AwltvJpcfUvucnqlqXr4W2jgG/wxSaudK1IToFoD5iTH2x70hczjAGSwDJVQ IMp7NxeGcey6Pf3o90ShNZoIE3ObYVwwp69o2zcDgugWl8yS/3metOHN76DNw9MrAyPO Ku7l8pdm4rdbUDhUefvDw56uZQFhrJyXPp3+plI7qdWB4j207c2VZhUcJzkT0cS4+gyW 2mQ6wVcJ9TCGpjplSvGR0du36wcX32QXwiFrwGA+P79esmWO1kAnUunmrPbWBvwVyFUU rN7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=GXGM4Jvs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bf10si6266097edb.504.2021.09.05.17.11.51; Sun, 05 Sep 2021 17:12:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=GXGM4Jvs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238457AbhIEX6Y (ORCPT + 99 others); Sun, 5 Sep 2021 19:58:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238448AbhIEX6V (ORCPT ); Sun, 5 Sep 2021 19:58:21 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BEEEC061575; Sun, 5 Sep 2021 16:57:17 -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=hIb2nK0ItXTa5MRBxU9bPeawp9abmfaSM4x8huD2VSA=; b=GXGM4Jvsk2qMYQ5VnE4ZZ7t07g SEaI2u4ex+d0rQLu8QOZlrcEaAm3nr86+DJPuebN9K/hDwIDeWNzsA01iJ3Uc7m+9VK0QZPEuAWid IYqrkWmMGNF5ghED9nFrNAA7396tM5mg+Y+nLr0mQecsMl9FGW/HGNrPIEqpY3bh/fwL4ks2Qg7IA d9v6YqZKsQlStMnrhMWiF5utMreLS1ht2rU0hkSKRBFmLsy8V4d5Aopyr5tPITfxjqT1W/f1CQrEI ya792/EM4ZZqCpRPmsNKRRsc9m692YQRkOo0TbR1ATYh5OnSzFV/mMtty8Ng7svLMHp2jq70MWGdl lyPhwTqg==; Received: from [2601:1c0:6280:3f0::aa0b] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mN20i-00Glc5-7z; Sun, 05 Sep 2021 23:57:16 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , kernel test robot , Mauro Carvalho Chehab , linux-media@vger.kernel.org, Andrzej Pietrasiewicz , Jacek Anaszewski , Sylwester Nawrocki , linux-arm-kernel@lists.infradead.org Subject: [PATCH] media: s5p-jpeg: change "RST" to "RSET" to fix build warnings Date: Sun, 5 Sep 2021 16:57:15 -0700 Message-Id: <20210905235715.12154-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The use of a macro named 'RST' conflicts with one of the same name in arch/mips/include/asm/mach-rc32434/rb.h. This causes build warnings on some MIPS builds. Change the use of RST to the name RSET. Fixes these build warnings: In file included from ../drivers/media/platform/s5p-jpeg/jpeg-hw-exynos3250.c:14: ../drivers/media/platform/s5p-jpeg/jpeg-core.h:43: warning: "RST" redefined 43 | #define RST 0xd0 | ../arch/mips/include/asm/mach-rc32434/rb.h:13: note: this is the location of the previous definition 13 | #define RST (1 << 15) In file included from ../drivers/media/platform/s5p-jpeg/jpeg-hw-s5p.c:13: ../drivers/media/platform/s5p-jpeg/jpeg-core.h:43: warning: "RST" redefined 43 | #define RST 0xd0 ../arch/mips/include/asm/mach-rc32434/rb.h:13: note: this is the location of the previous definition 13 | #define RST (1 << 15) In file included from ../drivers/media/platform/s5p-jpeg/jpeg-hw-exynos4.c:12: ../drivers/media/platform/s5p-jpeg/jpeg-core.h:43: warning: "RST" redefined 43 | #define RST 0xd0 ../arch/mips/include/asm/mach-rc32434/rb.h:13: note: this is the location of the previous definition 13 | #define RST (1 << 15) In file included from ../drivers/media/platform/s5p-jpeg/jpeg-core.c:31: ../drivers/media/platform/s5p-jpeg/jpeg-core.h:43: warning: "RST" redefined 43 | #define RST 0xd0 ../arch/mips/include/asm/mach-rc32434/rb.h:13: note: this is the location of the previous definition 13 | #define RST (1 << 15) Fixes: bb677f3ac434 ("[media] Exynos4 JPEG codec v4l2 driver") Reported-by: kernel test robot Signed-off-by: Randy Dunlap Cc: Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org Cc: Andrzej Pietrasiewicz Cc: Jacek Anaszewski Cc: Sylwester Nawrocki Cc: linux-arm-kernel@lists.infradead.org --- drivers/media/platform/s5p-jpeg/jpeg-core.c | 2 +- drivers/media/platform/s5p-jpeg/jpeg-core.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- linux-next-20210903.orig/drivers/media/platform/s5p-jpeg/jpeg-core.c +++ linux-next-20210903/drivers/media/platform/s5p-jpeg/jpeg-core.c @@ -1203,7 +1203,7 @@ static bool s5p_jpeg_parse_hdr(struct s5 break; /* skip payload-less markers */ - case RST ... RST + 7: + case RSET ... RSET + 7: case SOI: case EOI: case TEM: --- linux-next-20210903.orig/drivers/media/platform/s5p-jpeg/jpeg-core.h +++ linux-next-20210903/drivers/media/platform/s5p-jpeg/jpeg-core.h @@ -40,7 +40,7 @@ #define TEM 0x01 #define SOF0 0xc0 #define DHT 0xc4 -#define RST 0xd0 +#define RSET 0xd0 #define SOI 0xd8 #define EOI 0xd9 #define SOS 0xda