From patchwork Wed Nov 16 08:33:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matti Vaittinen X-Patchwork-Id: 20812 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp25713wru; Wed, 16 Nov 2022 00:36:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf5L3kXb34QYHhs02EP23JYquZb/jYPmFpketGm+sTBmBoR5WE4CPSMFGWQ46wpR4uECkzCH X-Received: by 2002:a17:906:2305:b0:78e:975:f0b4 with SMTP id l5-20020a170906230500b0078e0975f0b4mr16707657eja.641.1668587815653; Wed, 16 Nov 2022 00:36:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668587815; cv=none; d=google.com; s=arc-20160816; b=eG2MOgN0XnipZREnCj1N+qvLeEE/RHehIBt17sNg6b+EdlF6UfMUm7Q3Ji7Ow27wsh PORzASwfmi9OTzXYe7UeHMk1DWYJyU6gAEulOyKg0qOIrk8c6OSkjIDTqentCeNqzi/R 7SCQOgXeP47QhLJPBuPad8gw4CuoCZJhlqGHxqoyYl3lIybIqVdVJLRqchN6c9IE8r/8 /V+/Hh+95mQ1QJJnrhw41l9V8GY+arZXAMRxvGzZ4j5h3QJJY7VQOTazaf5wHUcEl1zF yGhlKo1Kj5odm8sCCu3i7S/smuejLo1bS3TBf1jYBwSHdkwFcgPzBEsGDph9uuRyDdzw 5LlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date; bh=TKlOC+omeE7Fbq3sEW7T1SZBevKbc2ofi3hDZZa2pfk=; b=c0IPUsIUNA1qQHJiv0k/W+61OK6sFZENjgvevq88aNHj5RusUTzzTTogYE+f/warBR Yv/GWJsb9wN/zbOqauYVTWaJYZ0v1b7uH4r4uWH/86H0wmTn3RRAFhTdYhd4JpGtp8gn X2ooEEJB7jT2Ql2mvgDdvoTTGGgp6BckL/sjniDwwF4XkJyQszFlJ8LyTu7SdhcDa3Z2 YE2MzXPGxMW35IY7sESxVyerAwZAZM2kCMw3SqHSOQNBx+dzQkfC2sKAhrsLOYlu9GQI Lr1O7/kyK1SbC6jp7wjyVfdXq0C2xAAqjqCDFJGxLm+qgPS65+dP1bVPymgzVoaI7zDD s6Aw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g16-20020a1709065d1000b0078de44dd61fsi14842115ejt.990.2022.11.16.00.36.30; Wed, 16 Nov 2022 00:36:55 -0800 (PST) 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 S231849AbiKPIdk (ORCPT + 99 others); Wed, 16 Nov 2022 03:33:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229942AbiKPIdi (ORCPT ); Wed, 16 Nov 2022 03:33:38 -0500 Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com [209.85.208.177]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E544DE31 for ; Wed, 16 Nov 2022 00:33:36 -0800 (PST) Received: by mail-lj1-f177.google.com with SMTP id x21so20858249ljg.10 for ; Wed, 16 Nov 2022 00:33:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=TKlOC+omeE7Fbq3sEW7T1SZBevKbc2ofi3hDZZa2pfk=; b=mpw6Q413Yi4X65VWu+UbiJXiCg78Mj7R3h0QyEx1FdneT/deiGn9+ylHYPUjqtPN3d LC4HPH3hIK5uzSDDtww/qRTCrp29r1NEGvHAeloM2VRPQPykfj6njWtv3PvGpm+d80yw +FXLk66k9Y0jTM4jx6CquKiNavkv7C+1RactX440xl5L3BLJZs+8E++ZWQdaYF2Zqghx Fd5n/2deFP6I4RicnaSxgwL0tFfEh/jmp8hxIQwnY/4f9yhRhFpbee0Fuym5YmWzZrj/ VWfEVnb8cU+ZDqcftiMKO3oW47+ie26ksa6UuC5fESGsy+KW5xDvN5jyfhSsp8CiizP1 VpYA== X-Gm-Message-State: ANoB5pl59hfCB0bmejrhzSTpH1II94R7gJ8bUaNvoSGTxZjKhl/3fMBw LPqLVR73ag2DyQ4+q5LZF1s= X-Received: by 2002:a05:651c:88f:b0:26f:c160:6dde with SMTP id d15-20020a05651c088f00b0026fc1606ddemr6990991ljq.20.1668587615176; Wed, 16 Nov 2022 00:33:35 -0800 (PST) Received: from dc75zzyyyyyyyyyyyyydt-3.rev.dnainternet.fi (dc75zzyyyyyyyyyyyyydt-3.rev.dnainternet.fi. [2001:14ba:16f3:4a00::7]) by smtp.gmail.com with ESMTPSA id y14-20020ac2420e000000b004a9b9ccfbe6sm2503115lfh.51.2022.11.16.00.33.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 00:33:34 -0800 (PST) Date: Wed, 16 Nov 2022 10:33:25 +0200 From: Matti Vaittinen To: Matti Vaittinen , Matti Vaittinen Cc: Matti Vaittinen , Mauro Carvalho Chehab , Dmitry Torokhov , Hans Verkuil , Prashant Laddha , linux-kernel@vger.kernel.org Subject: [PATCH RESEND] fixp-arith: do not require users to include bug.h Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749641137231202525?= X-GMAIL-MSGID: =?utf-8?q?1749641137231202525?= The fixp_sin32_rad()() contains a call to BUG_ON(). If users of fixp-arith.h have not included the bug.h prior including the fixp-arith.h the compiler will not find the BUG_ON. Thus every user of fixp-arith.h must also include bug.h (or roll own variant of BUG_ON()). Include bug.h from fixp-arith.h so every user of fixp-arith.h does not need to include the bug.h prior inclusion of fixp-arith.h Fixes: 559addc25b00 ("[media] fixp-arith: replace sin/cos table by a better precision one") Signed-off-by: Matti Vaittinen --- Another forgotten patch I encountered while cleaning up my local git. Seems like this has fell through the cracks. include/linux/fixp-arith.h | 1 + 1 file changed, 1 insertion(+) base-commit: 094226ad94f471a9f19e8f8e7140a09c2625abaa diff --git a/include/linux/fixp-arith.h b/include/linux/fixp-arith.h index 281cb4f83dbe..e485fb0c1201 100644 --- a/include/linux/fixp-arith.h +++ b/include/linux/fixp-arith.h @@ -2,6 +2,7 @@ #ifndef _FIXP_ARITH_H #define _FIXP_ARITH_H +#include #include /*