Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7552882rwb; Wed, 23 Nov 2022 07:53:30 -0800 (PST) X-Google-Smtp-Source: AA0mqf43DZ7rV9yKMUM+QCZ9OSzo2T1wiAfLPRK7+3E7/UWaWm7wbcQd0q/0E2j2gdEyboi2aaZ/ X-Received: by 2002:a17:902:c3d1:b0:188:f5de:890b with SMTP id j17-20020a170902c3d100b00188f5de890bmr22781815plj.110.1669218810205; Wed, 23 Nov 2022 07:53:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669218810; cv=none; d=google.com; s=arc-20160816; b=0L/tsfIMhgGd2WMecrivLAMAft3xEjn8g4V/e2mFeq2eEvYaP5TOcbT8tJPqcCmExt jLdkwXtmr8Q8it04qvLf/To3DKvbx9tl164jxC3HTbUXkNNAGMQ5QF1pqkf0yy6LS2/w RZdQ5p+QNwwa2SebN3zTC04Ugw7V7VlkatP3+DNltsAm4BmBlPICXsouPLnsnkpH7LzM FXcX6NMrjzA6fdNuJWvS3Lt33YNgpStaxbvYDJDC0vGNxkMF8isnzwDxLe7ymxaMNAVi 2NoYOkXljVM6HXohToJ/30IqqSNjEY4njqOQvPGxffTSteBCpp+yq+r6HDNiT/1CAXrJ /AGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=Q2hwfJ3OGi9bNFK3Bxx9uQ9VsJMFOKPpsAznNmxcF54=; b=YzcpD2IYjGXIoybmOQvQFbNh0y+RhQry85hddY0DkUWUpcUqFM/ul3feLs1s/7NVcr ylop1FxT9Ee39wfz2neTWxxTqTdOSwJGadOZKNtt7MnWKNPOxxTV/7zPa2zXHG9ch71g 8Bxg+xlCFkNQs6uqPUI07GRHzOD78NglIoNnNYg5V4c86v1M8kCHtJiqk4R8SGRaOE4r YVJcac7ygyA8pD9YfI0O6VOTT8+0ql3SlWclfUif8ixWda+ZK/4wDfM3SOcKKf4EnrJN zoFXigFDNGXjL9HGdTK4iNuluyxW8eLHyNP27jRMHDBKqKsKGLSD1FBU4A0bmasdIyA9 7zHg== 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 20-20020a630a14000000b0047632a20407si17049744pgk.450.2022.11.23.07.53.19; Wed, 23 Nov 2022 07:53:30 -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 S238747AbiKWPuR (ORCPT + 89 others); Wed, 23 Nov 2022 10:50:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238987AbiKWPtm (ORCPT ); Wed, 23 Nov 2022 10:49:42 -0500 Received: from mail-qk1-f169.google.com (mail-qk1-f169.google.com [209.85.222.169]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1ECCC6956; Wed, 23 Nov 2022 07:49:19 -0800 (PST) Received: by mail-qk1-f169.google.com with SMTP id z1so12682631qkl.9; Wed, 23 Nov 2022 07:49:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Q2hwfJ3OGi9bNFK3Bxx9uQ9VsJMFOKPpsAznNmxcF54=; b=6DI2d28p4IB35GeQ9uhN3VYIQBXuzjNstFv4icEgtFsmcXZN1NRpaoZoyU2IQiCaaH J5D1xFR1MjoV/mQOBHnJy9aiDQ6LkUECQdYTFZ9e9NYz2qoVoaZ6hwIbLh3fQnWEScoE Wkp3M8Jt6eHiZjtznYJUv5A69KjtWGWRSepC1mzcxzJaGDaRJjU6t5UIoLDZCwDrCHK5 zAmOsoypFh/zR2mU+bwZgMKmTPINnzyWhuYqi+tfVN0lawfwzSXaX/4p0B5gZigRyXa9 tCnztaU2ebMPJhReipeOGr1zC4vucW7cmP0rQqJ+jNbvrI4cOcyEc3SM0k6HQFaboA+/ vCuw== X-Gm-Message-State: ANoB5pnC5/Az/TFoIlPWtaVKpGGntD3gu3+OdCuTRGPqi1ddO6O9x3gt N9zkjTWGvbM/ni4p0nn2c+92/GDXZ/WIEg== X-Received: by 2002:a37:8a45:0:b0:6f9:fd7a:f300 with SMTP id m66-20020a378a45000000b006f9fd7af300mr9618927qkd.257.1669218558707; Wed, 23 Nov 2022 07:49:18 -0800 (PST) Received: from mail-yb1-f177.google.com (mail-yb1-f177.google.com. [209.85.219.177]) by smtp.gmail.com with ESMTPSA id cb7-20020a05622a1f8700b0039cc0fbdb61sm10002545qtb.53.2022.11.23.07.49.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Nov 2022 07:49:17 -0800 (PST) Received: by mail-yb1-f177.google.com with SMTP id z192so21330486yba.0; Wed, 23 Nov 2022 07:49:17 -0800 (PST) X-Received: by 2002:a25:8249:0:b0:6dd:b521:a8f2 with SMTP id d9-20020a258249000000b006ddb521a8f2mr7980121ybn.380.1669218556787; Wed, 23 Nov 2022 07:49:16 -0800 (PST) MIME-Version: 1.0 References: <20221123100831.GE39395@tom-ThinkPad-T14s-Gen-2i> In-Reply-To: From: Geert Uytterhoeven Date: Wed, 23 Nov 2022 16:49:05 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH resend] media: staging: stkwebcam: Restore MEDIA_{USB,CAMERA}_SUPPORT dependencies To: Dan Carpenter Cc: Tommaso Merciai , Mauro Carvalho Chehab , Greg Kroah-Hartman , Hans Verkuil , Laurent Pinchart , Andrzej Pietrasiewicz , Ricardo Ribalda , linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.5 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 Hi Dan, On Wed, Nov 23, 2022 at 4:11 PM Dan Carpenter wrote: > On Wed, Nov 23, 2022 at 11:13:31AM +0100, Geert Uytterhoeven wrote: > > On Wed, Nov 23, 2022 at 11:08 AM Tommaso Merciai > > wrote: > > > On Mon, Nov 21, 2022 at 04:58:33PM +0100, Geert Uytterhoeven wrote: > > > > By moving support for the USB Syntek DC1125 Camera to staging, the > > > > dependencies on MEDIA_USB_SUPPORT and MEDIA_CAMERA_SUPPORT were lost. > > > > > > > > Fixes: 56280c64ecacc971 ("media: stkwebcam: deprecate driver, move to staging") > > > > > > Patch itself looks good but we have some style issue. Applying this > > > patch I got the following warning from checkpatchl: > > > > > > WARNING: Please use correct Fixes: style 'Fixes: <12 chars of sha1> ("")' - ie: 'Fixes: 56280c64ecac ("media: stkwebcam: deprecate driver, move to staging")' > > > #10: > > > > > > You have to pass only the first 12 chars of the sha1 commit into Fixes > > > msg: > > > > > > Use: > > > > > > Fixes: 56280c64ecac ("media: stkwebcam: deprecate driver, move to staging") > > > > > > Instead of: > > > > > > Fixes: 56280c64ecacc971 ("media: stkwebcam: deprecate driver, move to staging") > > > > I always use 16 chars, to avoid these becoming ambiguous in a few years. > > If we assume hashes are randomly distributed and that people commit > 100k patches every year then with 12 character we would have 17 > collisions every 1000 years. So I can expect to see a collision before my retirement day (which coincides with the signed 32-bit time_t flag day ;-) BTW, does the above take into account that commit hashes can collide with other object type hashes, too? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds