Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1937915pxy; Fri, 23 Apr 2021 23:37:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeuVTKOz5awxZzE1m0AENYjYMIF8Ase0+3p4nrLD1HLyixIeGAK3O8IcX/Y4pic6bb8Ial X-Received: by 2002:aa7:cfd0:: with SMTP id r16mr8960361edy.330.1619246277359; Fri, 23 Apr 2021 23:37:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619246277; cv=none; d=google.com; s=arc-20160816; b=s4TdZD4yH6R408Vqp9q9bKYTbHwJa7RCOB8KxBathUjpRSTwDGSifDSQPjxTDCoC1u eLi4i8SJho1Z0Rioriz65dI8lqpIEWfMtQR5zHAPCiURK+18MLmGmgXDybK5y18t7wnv B7XiBlecRvMo5dOvfLMeSgGYxpu2ijEorpEyPK70Y9HYCf7q/KudeKitn6ZY2GBfgGlh p5IN2Ju39wg1Ix5pGaMMvpElIt7k8XztSWcjsGa0SGdgWbkTG3QZPWHrSnRMpFW0hBso Yiy5ghJ5Cu62bsN+Zas9L4aXckLVKP7SuRFQheZxdB2ubVqiRfD5br3v6+bl/aGrliVg QLHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=u+7u5YAxSddNuwZ0iuXyACMe11u6Ld/9nAcCfy7chps=; b=H3IdwYcrirpvTGvHzAUib5j+FG20oYe0f3V9IH6RvdyH0M/RInPUP54eHOZSKB9fNW 8xKP5mkYlCRZEdx1/LsEl3DjyV/6WF7BTZ4S2HbgYuj003YlkL/KV/vWOcRnAYD13sxg GnCFb8gD8mmtYIEMcvcNJlDmYcXL7FBqysHz/2tw0e9cCfJVXmFJg033pkeb0udgRRwO z5MLfP5CNUJVpH+zoKYVDEg/SouMdqonkUyudLkGn2IHsdl6cI+bKgnSSIUz8//iNE5W 4Ymlyube4ig2baorVQCo2n7G36X6g2KHFhXuTch5M1yEKKieoU/M6v8Og8r9VHqAHJ1O xpuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=gp9oV5hZ; 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 o1si7668726edq.95.2021.04.23.23.37.21; Fri, 23 Apr 2021 23:37:57 -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=desiato.20200630 header.b=gp9oV5hZ; 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 S230174AbhDXGfc (ORCPT + 99 others); Sat, 24 Apr 2021 02:35:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229626AbhDXGfb (ORCPT ); Sat, 24 Apr 2021 02:35:31 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4B95C061574; Fri, 23 Apr 2021 23:34:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:Content-Type :In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject: Sender:Reply-To:Content-ID:Content-Description; bh=u+7u5YAxSddNuwZ0iuXyACMe11u6Ld/9nAcCfy7chps=; b=gp9oV5hZDj6kTzqn/Thq7VwT8j D+Hkq8sp+XV5nw79gt3NT9ZK4yO/a6DwQBzqSHeQE5IE8of33UZEArZZcaxjF5f2b69PHmcS9e7Gu ykP0FI2l/po5qieSCj4ojbaZe7shsyQxUtW826u9UD88a6nx6cpT5evqBVPAe8Pxq5RgzFp9ytfiN 0YPWTJafNv/yKhMCVNYjQJf/Aghvd3FsplhNKT9qFaX7qKbhrs2tOnZsY/DmMDsjMXKdYNOBdq3dX YBsEPGI/RKDjP6JMQ7pg0vBsOVuc1p+rGt2CRmUkcxPgHSCs/VNPbgT4t0HESO2vlaT6dzn6VA1b3 0Chc8tjg==; Received: from [2601:1c0:6280:3f0::df68] by desiato.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1laBsN-003AJB-7c; Sat, 24 Apr 2021 06:34:50 +0000 Subject: Re: [PATCH 2/2] media: rc: clean up Kconfig dependencies To: Arnd Bergmann , Sean Young , Mauro Carvalho Chehab Cc: Arnd Bergmann , Greg Kroah-Hartman , Hans Verkuil , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210421135935.3653827-1-arnd@kernel.org> <20210421135935.3653827-2-arnd@kernel.org> From: Randy Dunlap Message-ID: Date: Fri, 23 Apr 2021 23:34:44 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: <20210421135935.3653827-2-arnd@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/21/21 6:58 AM, Arnd Bergmann wrote: > From: Arnd Bergmann > > I came across a randconfig build failure from one driver > that only depends on CONFIG_USB_ARCH_HAS_HCD but fails when > built without CONFIG_USB: > > ld: drivers/media/rc/ir_toy.o: in function `irtoy_disconnect': > ir_toy.c:(.text+0x24): undefined reference to `usb_kill_urb' > ld: ir_toy.c:(.text+0x2c): undefined reference to `usb_free_urb' > ld: ir_toy.c:(.text+0x34): undefined reference to `usb_kill_urb' > ld: ir_toy.c:(.text+0x3c): undefined reference to `usb_free_urb' > > Upon a closer look, I find that a lot of the other drivers > 'select USB' rather than stating 'depends on USB' as is common > for most subsystems. I also find that all except one driver > have an extra 'depends on RC_CORE' that is already implied by > the top-level 'if RC_CORE' check. > > Clean up both by reducing the dependencies to the required set. > > Signed-off-by: Arnd Bergmann Acked-by: Randy Dunlap Thanks. > --- > drivers/media/rc/Kconfig | 73 ++++++---------------------------------- > 1 file changed, 11 insertions(+), 62 deletions(-) > -- ~Randy