Received: by 2002:a19:f614:0:0:0:0:0 with SMTP id x20csp59753lfe; Fri, 15 Apr 2022 19:28:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNEeSWF5FokUm7fN3laiwJx6glFRAqTd005N2l78ZJEIZ+RXEOAybaJe60B7bsxfOEawW/ X-Received: by 2002:a62:5343:0:b0:4f7:baad:5c22 with SMTP id h64-20020a625343000000b004f7baad5c22mr1704249pfb.30.1650076099789; Fri, 15 Apr 2022 19:28:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650076099; cv=none; d=google.com; s=arc-20160816; b=LcpUJsmewyw6yr8YtVf6zEnqEBSdR61Xm9FxDLTOUeXZrUNZVqSsPNOqhm8dj4ZZnm LOlAa9H9MhS5E1xJOTe5QnxdrBqB66JqxYa3fU2QtfiRFRNQ/PJAdXPVKN1LRIX1MskU S+y+ljUS/jTWhpoPWBHAP/o4UA4iMEVhXBUDbQod+cHiZXofK3RSTCUz5OkgGMJ72grN lAEn6jHCxjXvL8G1U/+vrxFA7rKHIyJAdNvXWpSFC6VMLuXymRuCcRtnWuCjB57cf0wi 1IFXVR7hjwik3HIlKDazTIRZTFCcS7gD2Z+/dQeipkr0rCNfzdNRdMPPLlQU4W1T5Cwg ay8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=QWxdhbL8bXm/fNhn6GXmwt668iO5RiNBagKq9feE/Fo=; b=xwDWonGc+d9cPxQETx2VJD2AGIeUhV/g04Jn/AQJ0j5CSgH7wkUKxLl7KlLZiRuaja zbBxt0BbXjdrcrNzPuHN542VxkP3u10HmQnKVjexSGbYO4560PKWL//Ggur/HgJiWrIv KemTXKTzG+dxL3A+KfMOQf4H+TZL3CRz3CGWyJsbsFjNHfJBw6jOAYHrsepNzboHy39Z KtuNtKZbfXTYbt7LyhCQE6u/4ZoZTqUUpILiMGYcNDadFgWXJNlB/nr+PXER1h3fqwc6 /0A42M8fAQGFOUD3vfgHSUVmFLCKXnBxefprv7Mf7oqKraqf2tFxaUtO5Z86LM5up3i0 PEhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=W72ZZbjG; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id y33-20020a634961000000b003a2211d2604si2825958pgk.320.2022.04.15.19.28.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 19:28:19 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=W72ZZbjG; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3460F1017; Fri, 15 Apr 2022 18:40:11 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354665AbiDOOsW (ORCPT + 99 others); Fri, 15 Apr 2022 10:48:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235565AbiDOOsT (ORCPT ); Fri, 15 Apr 2022 10:48:19 -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 4B7CC73041 for ; Fri, 15 Apr 2022 07:45:47 -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:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID: Sender:Reply-To:Content-ID:Content-Description; bh=QWxdhbL8bXm/fNhn6GXmwt668iO5RiNBagKq9feE/Fo=; b=W72ZZbjGfB/fnnZ02Pihi6NHkn lrIO5UceziNVJjvzdRS0PYq8kLQoAK4Nu7zkrC94GwEA6j6J8UkSOIrhn4/+Ov76aGj3L+uOBmGor 33xN1DmIGjgc1QrGRRBImTYhAr5iz8osT03d8vhGH339njujF5sp2EqEh2GSCAh9r4dy1MFeqYnvn 1ciFtQbbdtTMBgrPFtAAGfJInAY0CXnWy7lm6NwpBKX88N6w/q1rrB6BkD5R6cJYvq3M6m0QgWfMy k4IqwvWONH8AsfDUiSd4ly6HumNXofrhxV4XYxnWDlmgOfxmKjX7fx3tR+lLFsbRuHidSALWfyYZw mM/BlECQ==; Received: from [2601:1c0:6280:3f0::aa0b] by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nfNCg-005Ppn-1C; Fri, 15 Apr 2022 14:45:42 +0000 Message-ID: <34f3fe4a-7d75-d007-2b22-54d44f49a435@infradead.org> Date: Fri, 15 Apr 2022 07:45:36 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH v3] sound/oss/dmasound: fix build when drivers are mixed =y/=m Content-Language: en-US To: Guenter Roeck Cc: linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, kernel test robot , Arnd Bergmann , Takashi Iwai , Geert Uytterhoeven References: <20220405234118.24830-1-rdunlap@infradead.org> <20220415134852.GA2271702@roeck-us.net> From: Randy Dunlap In-Reply-To: <20220415134852.GA2271702@roeck-us.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On 4/15/22 06:48, Guenter Roeck wrote: > On Tue, Apr 05, 2022 at 04:41:18PM -0700, Randy Dunlap wrote: >> When CONFIG_DMASOUND_ATARI=m and CONFIG_DMASOUND_Q40=y (or vice versa), >> dmasound_core.o can be built without dmasound_deinit() being defined, >> causing a build error: >> >> ERROR: modpost: "dmasound_deinit" [sound/oss/dmasound/dmasound_atari.ko] undefined! >> >> Modify dmasound_core.c and dmasound.h so that dmasound_deinit() is >> always available. >> >> The mixed modes (=y/=m) also mean that several variables and structs >> have to be declared in all cases. >> >> Suggested-by: Arnd Bergmann >> Suggested-by: Geert Uytterhoeven >> Signed-off-by: Randy Dunlap >> Reported-by: kernel test robot >> Link: lore.kernel.org/r/202204032138.EFT9qGEd-lkp@intel.com >> Cc: Geert Uytterhoeven >> Cc: Jaroslav Kysela >> Cc: Takashi Iwai >> Cc: alsa-devel@alsa-project.org >> --- > > m68k:allmodconfig fails to build with this patch in the tree. > > Error log: > sound/oss/dmasound/dmasound_core.c:1431:12: error: 'dmasound_setup' defined but not used > > ... because __setup() is empty if MODULE is defined. > > Guenter Takashi has already merged a patch for this from Miles Chen. thanks. -- ~Randy