lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Fri, 10 Sep 2010 08:02:09 -0700
From:	Randy Dunlap <randy.dunlap@...cle.com>
To:	Joey Lee <jlee@...ell.com>
CC:	mjg@...hat.com, mjg59@...f.ucam.org, gregkh@...e.de, trenn@...e.de,
	linux-acpi@...r.kernel.org, linux-kernel@...r.kernel.org,
	Dennis.Jansen@....de
Subject: Re: [PATCH] Add Intel Poulsbo Stub Driver

On 09/09/10 21:36, Joey Lee wrote:
>>> +        # Poulsbo stub depends on ACPI_VIDEO when ACPI is enabled
>>> +        # but for select to work, need to select ACPI_VIDEO's dependencies, ick
>>> +        select ACPI_VIDEO if ACPI
>>
>> What does it do when ACPI is not enabled?  Does the driver even build
>> when APCI is not enabled?  (given the acpi_video* calls in it)
>>
> 
> This driver will not do anything if API is not enabled. It only call
> acpi_video_register/acpi_video_unregister, and acpi/video.h handle it
> like the following:
> 
> #if (defined CONFIG_ACPI_VIDEO || defined CONFIG_ACPI_VIDEO_MODULE)
> extern int acpi_video_register(void);
> extern void acpi_video_unregister(void);
> extern int acpi_video_get_edid(struct acpi_device *device, int type,
>                                int device_id, void **edid);
> #else
> static inline int acpi_video_register(void) { return 0; }
> static inline void acpi_video_unregister(void) { return; }
> static inline int acpi_video_get_edid(struct acpi_device *device, int
> type,
>                                       int device_id, void **edid)
> {
>         return -ENODEV;
> }
> #endif
> 
> So, I think don't need add "depends on ACPI_VIDEO". How do you think?

Yes, OK, I see.  Thanks.

-- 
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ